From da929b2184f21aa19dc49f5adc0e494fb750bc42 Mon Sep 17 00:00:00 2001 From: mathewjordan Date: Thu, 12 Dec 2024 21:04:20 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20samvera-?= =?UTF-8?q?labs/clover-iiif@7f8f210fd6d9fa68c5cd37df358d486cd4570e32=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- _next/static/chunks/20-6dfd4d3dfe6bb94f.js | 1 + ...555f5a37a4f.js => 243-e09b6f1a662611b3.js} | 2 +- ...4b7d935a49f.js => 290-e0cbbe85ba0caa94.js} | 2 +- _next/static/chunks/338.7cacf46b26fdec08.js | 1 - _next/static/chunks/34.e0fc861ad98ca893.js | 1 + _next/static/chunks/389-01a4bdc67945262f.js | 1 - _next/static/chunks/404.fca7fcbcf0e1c223.js | 22 ------------------- _next/static/chunks/514-5c0e50803ee4fe0f.js | 1 - _next/static/chunks/540.fb1748cfefeb6165.js | 1 + _next/static/chunks/542-d9ec244ae8135746.js | 1 - _next/static/chunks/546-1f75f42d42e53b58.js | 15 ------------- _next/static/chunks/558-bc154901e3c9b519.js | 1 + _next/static/chunks/565.fce6eb7fecea6f4d.js | 1 + ...7128a90e563.js => 580-95d74d97f924b199.js} | 2 +- _next/static/chunks/606.9f4c0e4c37be459a.js | 1 + _next/static/chunks/634-6c35c8ba6b586437.js | 1 - _next/static/chunks/641.953bdc1e75f33fd9.js | 1 - _next/static/chunks/683.f8beb7314ee3ee86.js | 1 - _next/static/chunks/697-6d809d03a751ba71.js | 1 + _next/static/chunks/707.6bf2c330c38b6f44.js | 1 + _next/static/chunks/765-bbd127092fa04803.js | 15 +++++++++++++ _next/static/chunks/769-bca440da70d3d0ab.js | 1 - _next/static/chunks/779-12219ff4a829ebae.js | 1 + _next/static/chunks/793.ff0e294758447eb4.js | 22 +++++++++++++++++++ _next/static/chunks/841-d33f5d17f582ae92.js | 1 + ...315d9af7954.js => 938.b303827c51591e2b.js} | 2 +- ...283aabea075.js => 947.7a2f36cc27343c56.js} | 2 +- _next/static/chunks/991.5038083d38cc2ac5.js | 1 - _next/static/chunks/992.157e6798e51324d1.js | 1 - ...a98bd.js => framework-861465232b9a69c0.js} | 2 +- _next/static/chunks/main-2492ae4bece4fe68.js | 1 + _next/static/chunks/main-3ba902c205155e27.js | 1 - _next/static/chunks/nextra-data-en-US.json | 2 +- .../chunks/pages/_app-2ef2ebd459f1a61c.js | 1 - .../chunks/pages/_app-3faa3157f3c25af4.js | 1 + .../chunks/pages/_error-7707a3459bb7189d.js | 1 - .../chunks/pages/_error-7f2abe307ad0d2b0.js | 1 + .../chunks/pages/docs-41d8a6734cdc0665.js | 1 + .../chunks/pages/docs-d5592eabd2e7c013.js | 1 - .../pages/docs/composing-554c82b4ec879b20.js | 1 - .../pages/docs/composing-eeac1dfbf6547c74.js | 1 + .../pages/docs/homepage-09d11455346d1d62.js | 1 - .../pages/docs/homepage-1f1dad16b4edc0f5.js | 1 + .../pages/docs/i18n-59cbea0fa6f4fe31.js | 1 - .../pages/docs/i18n-84020eefbe317567.js | 1 + .../pages/docs/image-c162437d4be0b6bf.js | 1 + .../pages/docs/image-ea018b85daa2443e.js | 1 - ...d4813d179.js => label-a4e99e449ef05f5f.js} | 2 +- ...044885.js => metadata-d7258d58c6932f87.js} | 2 +- ...e94803a3.js => partOf-105188dd5bd31ffe.js} | 2 +- ...9fab6.js => rendering-554dc30698a8c8dd.js} | 2 +- .../requiredStatement-c635ae0a0a48a44c.js | 1 + .../requiredStatement-d8a68a5c47fe2049.js | 1 - .../pages/docs/scroll-31a33b1cbe032642.js | 1 - .../pages/docs/scroll-f055f30f69bb9fe6.js | 1 + .../docs/scroll/demo-6fc7d6992954a23b.js | 1 + .../docs/scroll/demo-b8df51def888af5c.js | 1 - ...33d8740.js => seeAlso-73ec10868ddff071.js} | 2 +- .../pages/docs/slider-b18981f97c04016f.js | 1 + .../pages/docs/slider-f4c87d85b49e6b6c.js | 1 - .../docs/slider/demo-1530e2294f3419dd.js | 1 + .../docs/slider/demo-5e0de3b73f74e754.js | 1 - .../pages/docs/summary-5401e751b14bec88.js | 1 + .../pages/docs/summary-f45514296c5de0c2.js | 1 - ...6a3ef.js => thumbnail-53920acbee32b2fa.js} | 2 +- ...83c3827e.js => viewer-42378a95d83cf194.js} | 2 +- .../viewer/contentsearch-0315c6ef0a785a53.js | 1 - .../viewer/contentsearch-a06c6b6b19b458db.js | 1 + .../docs/viewer/demo-16ce01c8dfc0b9dc.js | 1 + .../docs/viewer/demo-784b7395807205a2.js | 1 - .../chunks/pages/index-13bf1dbd630fa09e.js | 1 - .../chunks/pages/index-8526a44f93eccee2.js | 1 + .../static/chunks/webpack-5e436fd55efeeeee.js | 1 - .../static/chunks/webpack-cbbc112ed9a2eae9.js | 1 + .../hgrCT0l3EIaFhROu-EQC4/_buildManifest.js | 1 + .../_ssgManifest.js | 0 .../naP8vWdHFx9l1d-pTBLLb/_buildManifest.js | 1 - docs.html | 4 ++-- docs/composing.html | 4 ++-- docs/homepage.html | 4 ++-- docs/i18n.html | 4 ++-- docs/image.html | 4 ++-- docs/label.html | 4 ++-- docs/metadata.html | 4 ++-- docs/partOf.html | 4 ++-- docs/rendering.html | 4 ++-- docs/requiredStatement.html | 4 ++-- docs/scroll.html | 4 ++-- docs/scroll/demo.html | 4 ++-- docs/seeAlso.html | 4 ++-- docs/slider.html | 4 ++-- docs/slider/demo.html | 4 ++-- docs/summary.html | 4 ++-- docs/thumbnail.html | 4 ++-- docs/viewer.html | 4 ++-- docs/viewer/contentsearch.html | 4 ++-- docs/viewer/demo.html | 4 ++-- index.html | 4 ++-- 99 files changed, 123 insertions(+), 123 deletions(-) create mode 100644 _next/static/chunks/20-6dfd4d3dfe6bb94f.js rename _next/static/chunks/{965-ea656555f5a37a4f.js => 243-e09b6f1a662611b3.js} (99%) rename _next/static/chunks/{966-0d9184b7d935a49f.js => 290-e0cbbe85ba0caa94.js} (99%) delete mode 100644 _next/static/chunks/338.7cacf46b26fdec08.js create mode 100644 _next/static/chunks/34.e0fc861ad98ca893.js delete mode 100644 _next/static/chunks/389-01a4bdc67945262f.js delete mode 100644 _next/static/chunks/404.fca7fcbcf0e1c223.js delete mode 100644 _next/static/chunks/514-5c0e50803ee4fe0f.js create mode 100644 _next/static/chunks/540.fb1748cfefeb6165.js delete mode 100644 _next/static/chunks/542-d9ec244ae8135746.js delete mode 100644 _next/static/chunks/546-1f75f42d42e53b58.js create mode 100644 _next/static/chunks/558-bc154901e3c9b519.js create mode 100644 _next/static/chunks/565.fce6eb7fecea6f4d.js rename _next/static/chunks/{580-95fb37128a90e563.js => 580-95d74d97f924b199.js} (92%) create mode 100644 _next/static/chunks/606.9f4c0e4c37be459a.js delete mode 100644 _next/static/chunks/634-6c35c8ba6b586437.js delete mode 100644 _next/static/chunks/641.953bdc1e75f33fd9.js delete mode 100644 _next/static/chunks/683.f8beb7314ee3ee86.js create mode 100644 _next/static/chunks/697-6d809d03a751ba71.js create mode 100644 _next/static/chunks/707.6bf2c330c38b6f44.js create mode 100644 _next/static/chunks/765-bbd127092fa04803.js delete mode 100644 _next/static/chunks/769-bca440da70d3d0ab.js create mode 100644 _next/static/chunks/779-12219ff4a829ebae.js create mode 100644 _next/static/chunks/793.ff0e294758447eb4.js create mode 100644 _next/static/chunks/841-d33f5d17f582ae92.js rename _next/static/chunks/{938.e7c70315d9af7954.js => 938.b303827c51591e2b.js} (98%) rename _next/static/chunks/{282.1a9f0283aabea075.js => 947.7a2f36cc27343c56.js} (52%) delete mode 100644 _next/static/chunks/991.5038083d38cc2ac5.js delete mode 100644 _next/static/chunks/992.157e6798e51324d1.js rename _next/static/chunks/{framework-d6eed9637a0a98bd.js => framework-861465232b9a69c0.js} (99%) create mode 100644 _next/static/chunks/main-2492ae4bece4fe68.js delete mode 100644 _next/static/chunks/main-3ba902c205155e27.js delete mode 100644 _next/static/chunks/pages/_app-2ef2ebd459f1a61c.js create mode 100644 _next/static/chunks/pages/_app-3faa3157f3c25af4.js delete mode 100644 _next/static/chunks/pages/_error-7707a3459bb7189d.js create mode 100644 _next/static/chunks/pages/_error-7f2abe307ad0d2b0.js create mode 100644 _next/static/chunks/pages/docs-41d8a6734cdc0665.js delete mode 100644 _next/static/chunks/pages/docs-d5592eabd2e7c013.js delete mode 100644 _next/static/chunks/pages/docs/composing-554c82b4ec879b20.js create mode 100644 _next/static/chunks/pages/docs/composing-eeac1dfbf6547c74.js delete mode 100644 _next/static/chunks/pages/docs/homepage-09d11455346d1d62.js create mode 100644 _next/static/chunks/pages/docs/homepage-1f1dad16b4edc0f5.js delete mode 100644 _next/static/chunks/pages/docs/i18n-59cbea0fa6f4fe31.js create mode 100644 _next/static/chunks/pages/docs/i18n-84020eefbe317567.js create mode 100644 _next/static/chunks/pages/docs/image-c162437d4be0b6bf.js delete mode 100644 _next/static/chunks/pages/docs/image-ea018b85daa2443e.js rename _next/static/chunks/pages/docs/{label-8f0a8a0d4813d179.js => label-a4e99e449ef05f5f.js} (54%) rename _next/static/chunks/pages/docs/{metadata-cf2e4c6961044885.js => metadata-d7258d58c6932f87.js} (77%) rename _next/static/chunks/pages/docs/{partOf-200fbf40e94803a3.js => partOf-105188dd5bd31ffe.js} (58%) rename _next/static/chunks/pages/docs/{rendering-469ada2a4b09fab6.js => rendering-554dc30698a8c8dd.js} (54%) create mode 100644 _next/static/chunks/pages/docs/requiredStatement-c635ae0a0a48a44c.js delete mode 100644 _next/static/chunks/pages/docs/requiredStatement-d8a68a5c47fe2049.js delete mode 100644 _next/static/chunks/pages/docs/scroll-31a33b1cbe032642.js create mode 100644 _next/static/chunks/pages/docs/scroll-f055f30f69bb9fe6.js create mode 100644 _next/static/chunks/pages/docs/scroll/demo-6fc7d6992954a23b.js delete mode 100644 _next/static/chunks/pages/docs/scroll/demo-b8df51def888af5c.js rename _next/static/chunks/pages/docs/{seeAlso-d257c41c433d8740.js => seeAlso-73ec10868ddff071.js} (54%) create mode 100644 _next/static/chunks/pages/docs/slider-b18981f97c04016f.js delete mode 100644 _next/static/chunks/pages/docs/slider-f4c87d85b49e6b6c.js create mode 100644 _next/static/chunks/pages/docs/slider/demo-1530e2294f3419dd.js delete mode 100644 _next/static/chunks/pages/docs/slider/demo-5e0de3b73f74e754.js create mode 100644 _next/static/chunks/pages/docs/summary-5401e751b14bec88.js delete mode 100644 _next/static/chunks/pages/docs/summary-f45514296c5de0c2.js rename _next/static/chunks/pages/docs/{thumbnail-a765d547fd56a3ef.js => thumbnail-53920acbee32b2fa.js} (53%) rename _next/static/chunks/pages/docs/{viewer-3ed6ea0e83c3827e.js => viewer-42378a95d83cf194.js} (97%) delete mode 100644 _next/static/chunks/pages/docs/viewer/contentsearch-0315c6ef0a785a53.js create mode 100644 _next/static/chunks/pages/docs/viewer/contentsearch-a06c6b6b19b458db.js create mode 100644 _next/static/chunks/pages/docs/viewer/demo-16ce01c8dfc0b9dc.js delete mode 100644 _next/static/chunks/pages/docs/viewer/demo-784b7395807205a2.js delete mode 100644 _next/static/chunks/pages/index-13bf1dbd630fa09e.js create mode 100644 _next/static/chunks/pages/index-8526a44f93eccee2.js delete mode 100644 _next/static/chunks/webpack-5e436fd55efeeeee.js create mode 100644 _next/static/chunks/webpack-cbbc112ed9a2eae9.js create mode 100644 _next/static/hgrCT0l3EIaFhROu-EQC4/_buildManifest.js rename _next/static/{naP8vWdHFx9l1d-pTBLLb => hgrCT0l3EIaFhROu-EQC4}/_ssgManifest.js (100%) delete mode 100644 _next/static/naP8vWdHFx9l1d-pTBLLb/_buildManifest.js diff --git a/404.html b/404.html index e051b705c..75940a8b8 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/chunks/20-6dfd4d3dfe6bb94f.js b/_next/static/chunks/20-6dfd4d3dfe6bb94f.js new file mode 100644 index 000000000..2fd2fb8e2 --- /dev/null +++ b/_next/static/chunks/20-6dfd4d3dfe6bb94f.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[20],{583:function(e,t,r){"use strict";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 a},noSSR:function(){return o}});let l=r(2430);r(2676),r(5271);let i=l._(r(3708));function n(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function a(e,t){let r=i.default,l={loading:e=>{let{error:t,isLoading:r,pastDelay:l}=e;return null}};e instanceof Promise?l.loader=()=>e:"function"==typeof e?l.loader=e:"object"==typeof e&&(l={...l,...e});let a=(l={...l,...t}).loader;return(l.loadableGenerated&&(l={...l,...l.loadableGenerated},delete l.loadableGenerated),"boolean"!=typeof l.ssr||l.ssr)?r({...l,loader:()=>null!=a?a().then(n):Promise.resolve(n(()=>null))}):(delete l.webpack,delete l.modules,o(r,l))}("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)},1172:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return l}});let l=r(2430)._(r(5271)).default.createContext(null)},3708:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let l=r(2430)._(r(5271)),i=r(1172),n=[],o=[],a=!1;function s(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function s(){if(!n){let t=new d(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!a){let e=r.webpack?r.webpack():r.modules;e&&o.push(t=>{for(let r of e)if(t.includes(r))return s()})}function c(e,t){!function(){s();let e=l.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let o=l.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return l.default.useImperativeHandle(t,()=>({retry:n.retry}),[]),l.default.useMemo(()=>{var t;return o.loading||o.error?l.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:n.retry}):o.loaded?l.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>s(),c.displayName="LoadableComponent",l.default.forwardRef(c)}(s,e)}function u(e,t){let r=[];for(;e.length;){let l=e.pop();r.push(l(t))}return Promise.all(r).then(()=>{if(e.length)return u(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{u(n).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(a=!0,t());u(o,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let p=c},2117:function(e,t,r){e.exports=r(583)},1028:function(e,t,r){"use strict";r.d(t,{Th:function(){return Q},jG:function(){return et}});var l,i=r(5271),n="colors",o="sizes",a="space",s={gap:a,gridGap:a,columnGap:a,gridColumnGap:a,rowGap:a,gridRowGap:a,inset:a,insetBlock:a,insetBlockEnd:a,insetBlockStart:a,insetInline:a,insetInlineEnd:a,insetInlineStart:a,margin:a,marginTop:a,marginRight:a,marginBottom:a,marginLeft:a,marginBlock:a,marginBlockEnd:a,marginBlockStart:a,marginInline:a,marginInlineEnd:a,marginInlineStart:a,padding:a,paddingTop:a,paddingRight:a,paddingBottom:a,paddingLeft:a,paddingBlock:a,paddingBlockEnd:a,paddingBlockStart:a,paddingInline:a,paddingInlineEnd:a,paddingInlineStart:a,top:a,right:a,bottom:a,left:a,scrollMargin:a,scrollMarginTop:a,scrollMarginRight:a,scrollMarginBottom:a,scrollMarginLeft:a,scrollMarginX:a,scrollMarginY:a,scrollMarginBlock:a,scrollMarginBlockEnd:a,scrollMarginBlockStart:a,scrollMarginInline:a,scrollMarginInlineEnd:a,scrollMarginInlineStart:a,scrollPadding:a,scrollPaddingTop:a,scrollPaddingRight:a,scrollPaddingBottom:a,scrollPaddingLeft:a,scrollPaddingX:a,scrollPaddingY:a,scrollPaddingBlock:a,scrollPaddingBlockEnd:a,scrollPaddingBlockStart:a,scrollPaddingInline:a,scrollPaddingInlineEnd:a,scrollPaddingInlineStart:a,fontSize:"fontSizes",background:n,backgroundColor:n,backgroundImage:n,borderImage:n,border:n,borderBlock:n,borderBlockEnd:n,borderBlockStart:n,borderBottom:n,borderBottomColor:n,borderColor:n,borderInline:n,borderInlineEnd:n,borderInlineStart:n,borderLeft:n,borderLeftColor:n,borderRight:n,borderRightColor:n,borderTop:n,borderTopColor:n,caretColor:n,color:n,columnRuleColor:n,fill:n,outline:n,outlineColor:n,stroke:n,textDecorationColor:n,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:o,minBlockSize:o,maxBlockSize:o,inlineSize:o,minInlineSize:o,maxInlineSize:o,width:o,minWidth:o,maxWidth:o,height:o,minHeight:o,maxHeight:o,flexBasis:o,gridTemplateColumns:o,gridTemplateRows:o,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},d=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,c=()=>{let e=Object.create(null);return(t,r,...l)=>{let i=JSON.stringify(t,d);return i in e?e[i]:e[i]=r(t,...l)}},u=Symbol.for("sxs.internal"),p=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),g=e=>{for(let t in e)return!0;return!1},{hasOwnProperty:f}=Object.prototype,h=e=>e.includes("-")?e:e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),m=/\s+(?![^()]*\))/,b=e=>t=>e(..."string"==typeof t?String(t).split(m):[t]),S={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:b((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:b((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:b((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:b((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:b((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:b((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},y=/([\d.]+)([^]*)/,k=(e,t)=>e.length?e.reduce((e,r)=>(e.push(...t.map(e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e)),e),[]):t,B=(e,t)=>e in $&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(t,r,l,i)=>r+("stretch"===l?`-moz-available${i};${h(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${h(e)}:${r}fit-content`)+i):String(t),$={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},x=e=>e?e+"-":"",R=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(e,l,i,n,o)=>"$"==n==!!i?e:(l||"--"==n?"calc(":"")+"var(--"+("$"===n?x(t)+(o.includes("$")?"":x(r))+o.replace(/\$/g,"-"):o)+")"+(l||"--"==n?"*"+(l||"")+(i||"1")+")":"")),I=/\s*,\s*(?![^()]*\))/,j=Object.prototype.toString,_=(e,t,r,l,i)=>{let n,o,a;let s=(e,t,r)=>{let d,c;let u=e=>{var p;for(d in e){let g=64===d.charCodeAt(0);for(c of g&&Array.isArray(e[d])?e[d]:[e[d]]){let e=/[A-Z]/.test(p=d)?p:p.replace(/-[^]/g,e=>e[1].toUpperCase()),f="object"==typeof c&&c&&c.toString===j&&(!l.utils[e]||!t.length);if(e in l.utils&&!f){let t=l.utils[e];if(t!==o){o=t,u(t(c)),o=null;continue}}else if(e in S){let t=S[e];if(t!==a){a=t,u(t(c)),a=null;continue}}if(g&&(d=(d.slice(1) in l.media?"@media "+l.media[d.slice(1)]:d).replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(e,t,r,l,i,n)=>{let o=y.test(t),a=.0625*(o?-1:1),[s,d]=o?[l,t]:[t,l];return"("+("="===r[0]?"":">"===r[0]===o?"max-":"min-")+s+":"+("="!==r[0]&&1===r.length?d.replace(y,(e,t,l)=>Number(t)+a*(">"===r?1:-1)+l):d)+(i?") and ("+(">"===i[0]?"min-":"max-")+s+":"+(1===i.length?n.replace(y,(e,t,r)=>Number(t)+a*(">"===i?-1:1)+r):n):"")+")"})),f){let e=g?r.concat(d):[...r],l=g?[...t]:k(t,d.split(I));void 0!==n&&i(E(...n)),n=void 0,s(c,l,e)}else void 0===n&&(n=[[],t,r]),d=g||36!==d.charCodeAt(0)?d:`--${x(l.prefix)}${d.slice(1).replace(/\$/g,"-")}`,c=f?c:"number"==typeof c?c&&e in w?String(c)+"px":String(c):R(B(e,null==c?"":c),l.prefix,l.themeMap[e]),n[0].push(`${g?`${d} `:`${h(d)}:`}${c}`)}}};u(e),void 0!==n&&i(E(...n)),n=void 0};s(e,t,r)},E=(e,t,r)=>`${r.map(e=>`${e}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,w={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},z=e=>String.fromCharCode(e+(e>25?39:97)),W=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=z(t%52)+r;return z(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),T=["themed","global","styled","onevar","resonevar","allvar","inline"],v=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},P=e=>{let t;let r=()=>{let{cssRules:e}=t.sheet;return[].map.call(e,(r,l)=>{let{cssText:i}=r,n="";if(i.startsWith("--sxs"))return"";if(e[l-1]&&(n=e[l-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(let e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${i}`;return r.cssRules.length?`${n}${i}`:""}return i}).join("")},l=()=>{if(t){let{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(let t in e)delete e[t]}for(let i of Object(e).styleSheets||[])if(v(i)){for(let e=0,n=i.cssRules;n[e];++e){let o=Object(n[e]);if(1!==o.type)continue;let a=Object(n[e+1]);if(4!==a.type)continue;++e;let{cssText:s}=o;if(!s.startsWith("--sxs"))continue;let d=s.slice(14,-3).trim().split(/\s+/),c=T[d[0]];c&&(t||(t={sheet:i,reset:l,rules:{},toString:r}),t.rules[c]={group:a,index:e,cache:new Set(d)})}if(t)break}if(!t){let i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,e=>e.cssText).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:l,toString:r}}let{sheet:i,rules:n}=t;for(let e=T.length-1;e>=0;--e){let t=T[e];if(!n[t]){let r=T[e+1],l=n[r]?n[r].index:i.cssRules.length;i.insertRule("@media{}",l),i.insertRule(`--sxs{--sxs:${e}}`,l),n[t]={group:i.cssRules[l+1],index:l,cache:new Set([e])}}C(n[t])}};return l(),t},C=e=>{let t=e.group,r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},M=Symbol(),O=c(),L=(e,t)=>O(e,()=>(...r)=>{let l={type:null,composers:new Set};for(let t of r)if(null!=t){if(t[u])for(let e of(null==l.type&&(l.type=t[u].type),t[u].composers))l.composers.add(e);else t.constructor!==Object||t.$$typeof?null==l.type&&(l.type=t):l.composers.add(A(t,e))}return null==l.type&&(l.type="span"),l.composers.size||l.composers.add(["PJLV",{},[],[],{},[]]),D(e,l,t)}),A=({variants:e,compoundVariants:t,defaultVariants:r,...l},i)=>{let n=`${x(i.prefix)}c-${W(l)}`,o=[],a=[],s=Object.create(null),d=[];for(let e in r)s[e]=String(r[e]);if("object"==typeof e&&e)for(let t in e){f.call(s,t)||(s[t]="undefined");let r=e[t];for(let e in r){let l={[t]:String(e)};"undefined"===String(e)&&d.push(t);let i=r[e],n=[l,i,!g(i)];o.push(n)}}if("object"==typeof t&&t)for(let e of t){let{css:t,...r}=e;for(let e in t="object"==typeof t&&t||{},r)r[e]=String(r[e]);let l=[r,t,!g(t)];a.push(l)}return[n,l,o,a,s,d]},D=(e,t,r)=>{let[l,i,n,o]=N(t.composers),a="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;rt.rules[e]={apply:r=>t[M].push([e,r])}),t})(r):null,s=(a||r).rules,d=`.${l}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,c=c=>{let{css:u,...p}=c="object"==typeof c&&c||G,g={};for(let e in n)if(delete p[e],e in c){let t=c[e];"object"==typeof t&&t?g[e]={"@initial":n[e],...t}:(t=String(t),g[e]="undefined"!==t||o.has(e)?t:n[e])}else g[e]=n[e];let f=new Set([...i]);for(let[l,i,n,o]of t.composers){r.rules.styled.cache.has(l)||(r.rules.styled.cache.add(l),_(i,[`.${l}`],[],e,e=>{s.styled.apply(e)}));let t=V(n,g,e.media),a=V(o,g,e.media,!0);for(let i of t)if(void 0!==i)for(let[t,n,o]of i){let i=`${l}-${W(n)}-${t}`;f.add(i);let a=(o?r.rules.resonevar:r.rules.onevar).cache,d=o?s.resonevar:s.onevar;a.has(i)||(a.add(i),_(n,[`.${i}`],[],e,e=>{d.apply(e)}))}for(let t of a)if(void 0!==t)for(let[i,n]of t){let t=`${l}-${W(n)}-${i}`;f.add(t),r.rules.allvar.cache.has(t)||(r.rules.allvar.cache.add(t),_(n,[`.${t}`],[],e,e=>{s.allvar.apply(e)}))}}if("object"==typeof u&&u){let t=`${l}-i${W(u)}-css`;f.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),_(u,[`.${t}`],[],e,e=>{s.inline.apply(e)}))}for(let e of String(c.className||"").trim().split(/\s+/))e&&f.add(e);let h=p.className=[...f].join(" ");return{type:t.type,className:h,selector:d,props:p,toString:()=>h,deferredInjector:a}};return p(c,{className:l,selector:d,[u]:t,toString:()=>(r.rules.styled.cache.has(l)||c(),l)})},N=e=>{let t="",r=[],l={},i=[];for(let[n,,,,o,a]of e)for(let e in""===t&&(t=n),r.push(n),i.push(...a),o){let t=o[e];(void 0===l[e]||"undefined"!==t||a.includes(t))&&(l[e]=t)}return[t,r,l,new Set(i)]},V=(e,t,r,l)=>{let i=[];e:for(let[n,o,a]of e){if(a)continue;let e,s=0,d=!1;for(e in n){let l=n[e],i=t[e];if(i!==l){if("object"!=typeof i||!i)continue e;{let e,t,n=0;for(let o in i){if(l===String(i[o])){if("@initial"!==o){let e=o.slice(1);(t=t||[]).push(e in r?r[e]:o.replace(/^@media ?/,"")),d=!0}s+=n,e=!0}++n}if(t&&t.length&&(o={["@media "+t.join(", ")]:o}),!e)continue e}}}(i[s]=i[s]||[]).push([l?"cv":`${e}-${n[e]}`,o,d])}return i},G={},H=c(),F=(e,t)=>H(e,()=>(...r)=>{let l=()=>{for(let l of r){let r=W(l="object"==typeof l&&l||{});if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in l){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(l["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete l["@import"]}_(l,[],[],e,e=>{t.rules.global.apply(e)})}}return""};return p(l,{toString:l})}),J=c(),U=(e,t)=>J(e,()=>r=>{let l=`${x(e.prefix)}k-${W(r)}`,i=()=>{if(!t.rules.global.cache.has(l)){t.rules.global.cache.add(l);let i=[];_(r,[],[],e,e=>i.push(e));let n=`@keyframes ${l}{${i.join("")}}`;t.rules.global.apply(n)}return l};return p(i,{get name(){return i()},toString:i})}),X=class{constructor(e,t,r,l){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==l?"":String(l)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+x(this.prefix)+x(this.scale)+this.token}toString(){return this.computedValue}},Y=c(),Z=(e,t)=>Y(e,()=>(r,l)=>{l="object"==typeof r&&r||Object(l);let i=`.${r=(r="string"==typeof r?r:"")||`${x(e.prefix)}t-${W(l)}`}`,n={},o=[];for(let t in l)for(let r in n[t]={},l[t]){let i=`--${x(e.prefix)}${t}-${r}`,a=R(String(l[t][r]),e.prefix,t);n[t][r]=new X(r,a,t,e.prefix),o.push(`${i}:${a}`)}let a=()=>{if(o.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);let i=`${l===e.theme?":root,":""}.${r}{${o.join(";")}}`;t.rules.themed.apply(i)}return r};return{...n,get className(){return a()},selector:i,toString:a}}),q=c(),K=c(),Q=e=>{let t=(e=>{let t=!1,r=q(e,e=>{t=!0;let r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",l="object"==typeof e.media&&e.media||{},i="object"==typeof e.root?e.root||null:globalThis.document||null,n="object"==typeof e.theme&&e.theme||{},o={prefix:r,media:l,theme:n,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...s},utils:"object"==typeof e.utils&&e.utils||{}},a=P(i),d={css:L(o,a),globalCss:F(o,a),keyframes:U(o,a),createTheme:Z(o,a),reset(){a.reset(),d.theme.toString()},theme:{},sheet:a,config:o,prefix:r,getCssText:a.toString,toString:a.toString};return String(d.theme=d.createTheme(n)),d});return t||r.reset(),r})(e);return t.styled=(({config:e,sheet:t})=>K(e,()=>{let r=L(e,t);return(...e)=>{let t=r(...e),l=t[u].type,n=i.forwardRef((e,r)=>{let n=e&&e.as||l,{props:o,deferredInjector:a}=t(e);return delete o.as,o.ref=r,a?i.createElement(i.Fragment,null,i.createElement(n,o),i.createElement(a,null)):i.createElement(n,o)});return n.className=t.className,n.displayName=`Styled.${l.displayName||l.name||l}`,n.selector=t.selector,n.toString=()=>t.selector,n[u]=t[u],n}}))(t),t},ee=()=>l||(l=Q()),et=(...e)=>ee().createTheme(...e)}}]); \ No newline at end of file diff --git a/_next/static/chunks/965-ea656555f5a37a4f.js b/_next/static/chunks/243-e09b6f1a662611b3.js similarity index 99% rename from _next/static/chunks/965-ea656555f5a37a4f.js rename to _next/static/chunks/243-e09b6f1a662611b3.js index 6eeec1238..7ee077158 100644 --- a/_next/static/chunks/965-ea656555f5a37a4f.js +++ b/_next/static/chunks/243-e09b6f1a662611b3.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[965],{8965:function(t){!function(){var r={675:function(t,r){"use strict";r.byteLength=function(t){var r=s(t),e=r[0],n=r[1];return(e+n)*3/4-n},r.toByteArray=function(t){var r,e,i=s(t),f=i[0],u=i[1],h=new o((f+u)*3/4-u),a=0,p=u>0?f-4:f;for(e=0;e>16&255,h[a++]=r>>8&255,h[a++]=255&r;return 2===u&&(r=n[t.charCodeAt(e)]<<2|n[t.charCodeAt(e+1)]>>4,h[a++]=255&r),1===u&&(r=n[t.charCodeAt(e)]<<10|n[t.charCodeAt(e+1)]<<4|n[t.charCodeAt(e+2)]>>2,h[a++]=r>>8&255,h[a++]=255&r),h},r.fromByteArray=function(t){for(var r,n=t.length,o=n%3,i=[],f=0,u=n-o;f>18&63]+e[o>>12&63]+e[o>>6&63]+e[63&o]);return i.join("")}(t,f,f+16383>u?u:f+16383));return 1===o?i.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):2===o&&i.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),i.join("")};for(var e=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,u=i.length;f0)throw Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");-1===e&&(e=r);var n=e===r?0:4-e%4;return[e,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(t,r,e){"use strict";var n=e(675),o=e(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,e){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return a(t)}return s(t,r,e)}function s(t,r,e){if("string"==typeof t)return function(t,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!u.isEncoding(r))throw TypeError("Unknown encoding: "+r);var e=0|l(t,r),n=f(e),o=n.write(t,r);return o!==e&&(n=n.slice(0,o)),n}(t,r);if(ArrayBuffer.isView(t))return p(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(L(t,ArrayBuffer)||t&&L(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(t,SharedArrayBuffer)||t&&L(t.buffer,SharedArrayBuffer)))return function(t,r,e){var n;if(r<0||t.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function l(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||L(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return T(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return C(t).length;default:if(o)return n?-1:T(t).length;r=(""+r).toLowerCase(),o=!0}}function y(t,r,e){var o,i,f=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0||(e>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var o="",i=r;i2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),(i=e=+e)!=i&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(o)return -1;e=t.length-1}else if(e<0){if(!o)return -1;e=0}if("string"==typeof r&&(r=u.from(r,n)),u.isBuffer(r))return 0===r.length?-1:v(t,r,e,n,o);if("number"==typeof r)return(r&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):v(t,[r],e,n,o);throw TypeError("val must be string, number or Buffer")}function v(t,r,e,n,o){var i,f=1,u=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return -1;f=2,u/=2,s/=2,e/=2}function h(t,r){return 1===f?t[r]:t.readUInt16BE(r*f)}if(o){var a=-1;for(i=e;iu&&(e=u-s),i=e;i>=0;i--){for(var p=!0,c=0;c239?4:h>223?3:h>191?2:1;if(o+p<=e)switch(p){case 1:h<128&&(a=h);break;case 2:(192&(i=t[o+1]))==128&&(s=(31&h)<<6|63&i)>127&&(a=s);break;case 3:i=t[o+1],f=t[o+2],(192&i)==128&&(192&f)==128&&(s=(15&h)<<12|(63&i)<<6|63&f)>2047&&(s<55296||s>57343)&&(a=s);break;case 4:i=t[o+1],f=t[o+2],u=t[o+3],(192&i)==128&&(192&f)==128&&(192&u)==128&&(s=(15&h)<<18|(63&i)<<12|(63&f)<<6|63&u)>65535&&s<1114112&&(a=s)}null===a?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=p}return function(t){var r=t.length;if(r<=4096)return String.fromCharCode.apply(String,t);for(var e="",n=0;ne)throw RangeError("Trying to access beyond buffer length")}function m(t,r,e,n,o,i){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>o||rt.length)throw RangeError("Index out of range")}function E(t,r,e,n,o,i){if(e+n>t.length||e<0)throw RangeError("Index out of range")}function A(t,r,e,n,i){return r=+r,e>>>=0,i||E(t,r,e,4,34028234663852886e22,-34028234663852886e22),o.write(t,r,e,n,23,4),e+4}function B(t,r,e,n,i){return r=+r,e>>>=0,i||E(t,r,e,8,17976931348623157e292,-17976931348623157e292),o.write(t,r,e,n,52,8),e+8}r.Buffer=u,r.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=2147483647,u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,r,e){return s(t,r,e)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,r,e){return(h(t),t<=0)?f(t):void 0!==r?"string"==typeof e?f(t).fill(r,e):f(t).fill(r):f(t)},u.allocUnsafe=function(t){return a(t)},u.allocUnsafeSlow=function(t){return a(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,r){if(L(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),L(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var e=t.length,n=r.length,o=0,i=Math.min(e,n);oe&&(t+=" ... "),""},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,r,e,n,o){if(L(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return -1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,f=e-r,s=Math.min(i,f),h=this.slice(n,o),a=t.slice(r,e),p=0;p>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,f,u,s,h,a,p,c,l,y,g,d=this.length-r;if((void 0===e||e>d)&&(e=d),t.length>0&&(e<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var v=!1;;)switch(n){case"hex":return function(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n))>o&&(n=o):n=o;var i=r.length;n>i/2&&(n=i/2);for(var f=0;f>8,o.push(e%256),o.push(n);return o}(t,this.length-y),this,y,g);default:if(v)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),v=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t],o=1,i=0;++i>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},u.prototype.readUInt8=function(t,r){return t>>>=0,r||w(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,r){return t>>>=0,r||w(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,r){return t>>>=0,r||w(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,r){return t>>>=0,r||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,r){return t>>>=0,r||w(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*r)),n},u.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*r)),i},u.prototype.readInt8=function(t,r){return(t>>>=0,r||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,r){t>>>=0,r||w(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},u.prototype.readInt16BE=function(t,r){t>>>=0,r||w(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},u.prototype.readInt32LE=function(t,r){return t>>>=0,r||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,r){return t>>>=0,r||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,r){return t>>>=0,r||w(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,r){return t>>>=0,r||w(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,r){return t>>>=0,r||w(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,r){return t>>>=0,r||w(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,r,e,n){if(t=+t,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;m(this,t,r,e,o,0)}var i=1,f=0;for(this[r]=255&t;++f>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;m(this,t,r,e,o,0)}var i=e-1,f=1;for(this[r+i]=255&t;--i>=0&&(f*=256);)this[r+i]=t/f&255;return r+e},u.prototype.writeUInt8=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,1,255,0),this[r]=255&t,r+1},u.prototype.writeUInt16LE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeUInt16BE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeUInt32LE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},u.prototype.writeUInt32BE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r>>>=0,!n){var o=Math.pow(2,8*e-1);m(this,t,r,e,o-1,-o)}var i=0,f=1,u=0;for(this[r]=255&t;++i>0)-u&255;return r+e},u.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r>>>=0,!n){var o=Math.pow(2,8*e-1);m(this,t,r,e,o-1,-o)}var i=e-1,f=1,u=0;for(this[r+i]=255&t;--i>=0&&(f*=256);)t<0&&0===u&&0!==this[r+i+1]&&(u=1),this[r+i]=(t/f>>0)-u&255;return r+e},u.prototype.writeInt8=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},u.prototype.writeInt16LE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeInt16BE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeInt32LE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,4,2147483647,-2147483648),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},u.prototype.writeInt32BE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeFloatLE=function(t,r,e){return A(this,t,r,!0,e)},u.prototype.writeFloatBE=function(t,r,e){return A(this,t,r,!1,e)},u.prototype.writeDoubleLE=function(t,r,e){return B(this,t,r,!0,e)},u.prototype.writeDoubleBE=function(t,r,e){return B(this,t,r,!1,e)},u.prototype.copy=function(t,r,e,n){if(!u.isBuffer(t))throw TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,n),r);return o},u.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o55295&&e<57344){if(!o){if(e>56319||f+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=(o-55296<<10|e-56320)+65536}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else if(e<1114112){if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}else throw Error("Invalid code point")}return i}function I(t){for(var r=[],e=0;e=r.length)&&!(o>=t.length);++o)r[o+e]=t[o];return o}function L(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}var O=function(){for(var t="0123456789abcdef",r=Array(256),e=0;e<16;++e)for(var n=16*e,o=0;o<16;++o)r[n+o]=t[e]+t[o];return r}()},783:function(t,r){r.read=function(t,r,e,n,o){var i,f,u=8*o-n-1,s=(1<>1,a=-7,p=e?o-1:0,c=e?-1:1,l=t[r+p];for(p+=c,i=l&(1<<-a)-1,l>>=-a,a+=u;a>0;i=256*i+t[r+p],p+=c,a-=8);for(f=i&(1<<-a)-1,i>>=-a,a+=n;a>0;f=256*f+t[r+p],p+=c,a-=8);if(0===i)i=1-h;else{if(i===s)return f?NaN:1/0*(l?-1:1);f+=Math.pow(2,n),i-=h}return(l?-1:1)*f*Math.pow(2,i-n)},r.write=function(t,r,e,n,o,i){var f,u,s,h=8*i-o-1,a=(1<>1,c=23===o?5960464477539062e-23:0,l=n?0:i-1,y=n?1:-1,g=r<0||0===r&&1/r<0?1:0;for(isNaN(r=Math.abs(r))||r===1/0?(u=isNaN(r)?1:0,f=a):(f=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-f))<1&&(f--,s*=2),f+p>=1?r+=c/s:r+=c*Math.pow(2,1-p),r*s>=2&&(f++,s/=2),f+p>=a?(u=0,f=a):f+p>=1?(u=(r*s-1)*Math.pow(2,o),f+=p):(u=r*Math.pow(2,p-1)*Math.pow(2,o),f=0));o>=8;t[e+l]=255&u,l+=y,u/=256,o-=8);for(f=f<0;t[e+l]=255&f,l+=y,f/=256,h-=8);t[e+l-y]|=128*g}}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={exports:{}},f=!0;try{r[t](i,i.exports,n),f=!1}finally{f&&delete e[t]}return i.exports}n.ab="//";var o=n(72);t.exports=o}()}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[243],{5243:function(t){!function(){var r={675:function(t,r){"use strict";r.byteLength=function(t){var r=s(t),e=r[0],n=r[1];return(e+n)*3/4-n},r.toByteArray=function(t){var r,e,i=s(t),f=i[0],u=i[1],h=new o((f+u)*3/4-u),a=0,p=u>0?f-4:f;for(e=0;e>16&255,h[a++]=r>>8&255,h[a++]=255&r;return 2===u&&(r=n[t.charCodeAt(e)]<<2|n[t.charCodeAt(e+1)]>>4,h[a++]=255&r),1===u&&(r=n[t.charCodeAt(e)]<<10|n[t.charCodeAt(e+1)]<<4|n[t.charCodeAt(e+2)]>>2,h[a++]=r>>8&255,h[a++]=255&r),h},r.fromByteArray=function(t){for(var r,n=t.length,o=n%3,i=[],f=0,u=n-o;f>18&63]+e[o>>12&63]+e[o>>6&63]+e[63&o]);return i.join("")}(t,f,f+16383>u?u:f+16383));return 1===o?i.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):2===o&&i.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),i.join("")};for(var e=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,u=i.length;f0)throw Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");-1===e&&(e=r);var n=e===r?0:4-e%4;return[e,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(t,r,e){"use strict";var n=e(675),o=e(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,e){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return a(t)}return s(t,r,e)}function s(t,r,e){if("string"==typeof t)return function(t,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!u.isEncoding(r))throw TypeError("Unknown encoding: "+r);var e=0|l(t,r),n=f(e),o=n.write(t,r);return o!==e&&(n=n.slice(0,o)),n}(t,r);if(ArrayBuffer.isView(t))return p(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(L(t,ArrayBuffer)||t&&L(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(t,SharedArrayBuffer)||t&&L(t.buffer,SharedArrayBuffer)))return function(t,r,e){var n;if(r<0||t.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function l(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||L(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return T(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return C(t).length;default:if(o)return n?-1:T(t).length;r=(""+r).toLowerCase(),o=!0}}function y(t,r,e){var o,i,f=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0||(e>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var o="",i=r;i2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),(i=e=+e)!=i&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(o)return -1;e=t.length-1}else if(e<0){if(!o)return -1;e=0}if("string"==typeof r&&(r=u.from(r,n)),u.isBuffer(r))return 0===r.length?-1:v(t,r,e,n,o);if("number"==typeof r)return(r&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):v(t,[r],e,n,o);throw TypeError("val must be string, number or Buffer")}function v(t,r,e,n,o){var i,f=1,u=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return -1;f=2,u/=2,s/=2,e/=2}function h(t,r){return 1===f?t[r]:t.readUInt16BE(r*f)}if(o){var a=-1;for(i=e;iu&&(e=u-s),i=e;i>=0;i--){for(var p=!0,c=0;c239?4:h>223?3:h>191?2:1;if(o+p<=e)switch(p){case 1:h<128&&(a=h);break;case 2:(192&(i=t[o+1]))==128&&(s=(31&h)<<6|63&i)>127&&(a=s);break;case 3:i=t[o+1],f=t[o+2],(192&i)==128&&(192&f)==128&&(s=(15&h)<<12|(63&i)<<6|63&f)>2047&&(s<55296||s>57343)&&(a=s);break;case 4:i=t[o+1],f=t[o+2],u=t[o+3],(192&i)==128&&(192&f)==128&&(192&u)==128&&(s=(15&h)<<18|(63&i)<<12|(63&f)<<6|63&u)>65535&&s<1114112&&(a=s)}null===a?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=p}return function(t){var r=t.length;if(r<=4096)return String.fromCharCode.apply(String,t);for(var e="",n=0;ne)throw RangeError("Trying to access beyond buffer length")}function m(t,r,e,n,o,i){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>o||rt.length)throw RangeError("Index out of range")}function E(t,r,e,n,o,i){if(e+n>t.length||e<0)throw RangeError("Index out of range")}function A(t,r,e,n,i){return r=+r,e>>>=0,i||E(t,r,e,4,34028234663852886e22,-34028234663852886e22),o.write(t,r,e,n,23,4),e+4}function B(t,r,e,n,i){return r=+r,e>>>=0,i||E(t,r,e,8,17976931348623157e292,-17976931348623157e292),o.write(t,r,e,n,52,8),e+8}r.Buffer=u,r.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=2147483647,u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,r,e){return s(t,r,e)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,r,e){return(h(t),t<=0)?f(t):void 0!==r?"string"==typeof e?f(t).fill(r,e):f(t).fill(r):f(t)},u.allocUnsafe=function(t){return a(t)},u.allocUnsafeSlow=function(t){return a(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,r){if(L(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),L(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var e=t.length,n=r.length,o=0,i=Math.min(e,n);oe&&(t+=" ... "),""},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,r,e,n,o){if(L(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return -1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,f=e-r,s=Math.min(i,f),h=this.slice(n,o),a=t.slice(r,e),p=0;p>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,f,u,s,h,a,p,c,l,y,g,d=this.length-r;if((void 0===e||e>d)&&(e=d),t.length>0&&(e<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var v=!1;;)switch(n){case"hex":return function(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n))>o&&(n=o):n=o;var i=r.length;n>i/2&&(n=i/2);for(var f=0;f>8,o.push(e%256),o.push(n);return o}(t,this.length-y),this,y,g);default:if(v)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),v=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t],o=1,i=0;++i>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},u.prototype.readUInt8=function(t,r){return t>>>=0,r||w(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,r){return t>>>=0,r||w(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,r){return t>>>=0,r||w(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,r){return t>>>=0,r||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,r){return t>>>=0,r||w(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*r)),n},u.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*r)),i},u.prototype.readInt8=function(t,r){return(t>>>=0,r||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,r){t>>>=0,r||w(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},u.prototype.readInt16BE=function(t,r){t>>>=0,r||w(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},u.prototype.readInt32LE=function(t,r){return t>>>=0,r||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,r){return t>>>=0,r||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,r){return t>>>=0,r||w(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,r){return t>>>=0,r||w(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,r){return t>>>=0,r||w(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,r){return t>>>=0,r||w(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,r,e,n){if(t=+t,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;m(this,t,r,e,o,0)}var i=1,f=0;for(this[r]=255&t;++f>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;m(this,t,r,e,o,0)}var i=e-1,f=1;for(this[r+i]=255&t;--i>=0&&(f*=256);)this[r+i]=t/f&255;return r+e},u.prototype.writeUInt8=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,1,255,0),this[r]=255&t,r+1},u.prototype.writeUInt16LE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeUInt16BE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeUInt32LE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},u.prototype.writeUInt32BE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r>>>=0,!n){var o=Math.pow(2,8*e-1);m(this,t,r,e,o-1,-o)}var i=0,f=1,u=0;for(this[r]=255&t;++i>0)-u&255;return r+e},u.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r>>>=0,!n){var o=Math.pow(2,8*e-1);m(this,t,r,e,o-1,-o)}var i=e-1,f=1,u=0;for(this[r+i]=255&t;--i>=0&&(f*=256);)t<0&&0===u&&0!==this[r+i+1]&&(u=1),this[r+i]=(t/f>>0)-u&255;return r+e},u.prototype.writeInt8=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},u.prototype.writeInt16LE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeInt16BE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeInt32LE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,4,2147483647,-2147483648),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},u.prototype.writeInt32BE=function(t,r,e){return t=+t,r>>>=0,e||m(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeFloatLE=function(t,r,e){return A(this,t,r,!0,e)},u.prototype.writeFloatBE=function(t,r,e){return A(this,t,r,!1,e)},u.prototype.writeDoubleLE=function(t,r,e){return B(this,t,r,!0,e)},u.prototype.writeDoubleBE=function(t,r,e){return B(this,t,r,!1,e)},u.prototype.copy=function(t,r,e,n){if(!u.isBuffer(t))throw TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,n),r);return o},u.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o55295&&e<57344){if(!o){if(e>56319||f+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=(o-55296<<10|e-56320)+65536}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else if(e<1114112){if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}else throw Error("Invalid code point")}return i}function I(t){for(var r=[],e=0;e=r.length)&&!(o>=t.length);++o)r[o+e]=t[o];return o}function L(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}var O=function(){for(var t="0123456789abcdef",r=Array(256),e=0;e<16;++e)for(var n=16*e,o=0;o<16;++o)r[n+o]=t[e]+t[o];return r}()},783:function(t,r){r.read=function(t,r,e,n,o){var i,f,u=8*o-n-1,s=(1<>1,a=-7,p=e?o-1:0,c=e?-1:1,l=t[r+p];for(p+=c,i=l&(1<<-a)-1,l>>=-a,a+=u;a>0;i=256*i+t[r+p],p+=c,a-=8);for(f=i&(1<<-a)-1,i>>=-a,a+=n;a>0;f=256*f+t[r+p],p+=c,a-=8);if(0===i)i=1-h;else{if(i===s)return f?NaN:1/0*(l?-1:1);f+=Math.pow(2,n),i-=h}return(l?-1:1)*f*Math.pow(2,i-n)},r.write=function(t,r,e,n,o,i){var f,u,s,h=8*i-o-1,a=(1<>1,c=23===o?5960464477539062e-23:0,l=n?0:i-1,y=n?1:-1,g=r<0||0===r&&1/r<0?1:0;for(isNaN(r=Math.abs(r))||r===1/0?(u=isNaN(r)?1:0,f=a):(f=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-f))<1&&(f--,s*=2),f+p>=1?r+=c/s:r+=c*Math.pow(2,1-p),r*s>=2&&(f++,s/=2),f+p>=a?(u=0,f=a):f+p>=1?(u=(r*s-1)*Math.pow(2,o),f+=p):(u=r*Math.pow(2,p-1)*Math.pow(2,o),f=0));o>=8;t[e+l]=255&u,l+=y,u/=256,o-=8);for(f=f<0;t[e+l]=255&f,l+=y,f/=256,h-=8);t[e+l-y]|=128*g}}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={exports:{}},f=!0;try{r[t](i,i.exports,n),f=!1}finally{f&&delete e[t]}return i.exports}n.ab="//";var o=n(72);t.exports=o}()}}]); \ No newline at end of file diff --git a/_next/static/chunks/966-0d9184b7d935a49f.js b/_next/static/chunks/290-e0cbbe85ba0caa94.js similarity index 99% rename from _next/static/chunks/966-0d9184b7d935a49f.js rename to _next/static/chunks/290-e0cbbe85ba0caa94.js index 8f56591d1..63348274e 100644 --- a/_next/static/chunks/966-0d9184b7d935a49f.js +++ b/_next/static/chunks/290-e0cbbe85ba0caa94.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[966],{4966:function(e,t,r){function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function u(...e){return(0,l.useCallback)(o(...e),e)}let d=(null==globalThis?void 0:globalThis.document)?l.useLayoutEffect:()=>{},s=i["useId".toString()]||(()=>void 0),c=0;function f(e){let[t,r]=l.useState(s());return d(()=>{e||r(e=>null!=e?e:String(c++))},[e]),e||(t?`radix-${t}`:"")}r(967);let m=(0,l.forwardRef)((e,t)=>{let{children:r,...i}=e,a=l.Children.toArray(r),o=a.find(p);if(o){let e=o.props.children,r=a.map(t=>t!==o?t:l.Children.count(e)>1?l.Children.only(null):(0,l.isValidElement)(e)?e.props.children:null);return(0,l.createElement)(v,n({},i,{ref:t}),(0,l.isValidElement)(e)?(0,l.cloneElement)(e,void 0,r):null)}return(0,l.createElement)(v,n({},i,{ref:t}),r)});m.displayName="Slot";let v=(0,l.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,l.isValidElement)(r)?(0,l.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let l=e[n],i=t[n];/^on[A-Z]/.test(n)?l&&i?r[n]=(...e)=>{i(...e),l(...e)}:l&&(r[n]=l):"style"===n?r[n]={...l,...i}:"className"===n&&(r[n]=[l,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?o(t,r.ref):r.ref}):l.Children.count(r)>1?l.Children.only(null):null});v.displayName="SlotClone";let h=({children:e})=>(0,l.createElement)(l.Fragment,null,e);function p(e){return(0,l.isValidElement)(e)&&e.type===h}let E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,l.forwardRef)((e,r)=>{let{asChild:i,...a}=e,o=i?m:t;return(0,l.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,l.createElement)(o,n({},a,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),g=(0,l.forwardRef)((e,t)=>(0,l.createElement)(E.label,n({},e,{ref:t,onMouseDown:t=>{var r;null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}}))),[C,F]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>(0,l.createContext)(e));return function(r){let n=(null==r?void 0:r[e])||t;return(0,l.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=(0,l.createContext)(n),a=r.length;function o(t){let{scope:r,children:n,...o}=t,u=(null==r?void 0:r[e][a])||i,d=(0,l.useMemo)(()=>o,Object.values(o));return(0,l.createElement)(u.Provider,{value:d},n)}return r=[...r,n],o.displayName=t+"Provider",[o,function(r,o){let u=(null==o?void 0:o[e][a])||i,d=(0,l.useContext)(u);if(d)return d;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let l=r(e)[`__scope${n}`];return{...t,...l}},{});return(0,l.useMemo)(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}("Form"),y="Form",[b,_]=C(y),[w,M]=C(y),k=(0,l.forwardRef)((e,t)=>{let{__scopeForm:r,onClearServerErrors:i=()=>{},...o}=e,d=u(t,(0,l.useRef)(null)),[s,c]=(0,l.useState)({}),f=(0,l.useCallback)(e=>s[e],[s]),m=(0,l.useCallback)((e,t)=>c(r=>{var n;return{...r,[e]:{...null!==(n=r[e])&&void 0!==n?n:{},...t}}}),[]),v=(0,l.useCallback)(e=>{c(t=>({...t,[e]:void 0})),_(t=>({...t,[e]:{}}))},[]),[h,p]=(0,l.useState)({}),g=(0,l.useCallback)(e=>{var t;return null!==(t=h[e])&&void 0!==t?t:[]},[h]),C=(0,l.useCallback)((e,t)=>{p(r=>{var n;return{...r,[e]:[...null!==(n=r[e])&&void 0!==n?n:[],t]}})},[]),F=(0,l.useCallback)((e,t)=>{p(r=>{var n;return{...r,[e]:(null!==(n=r[e])&&void 0!==n?n:[]).filter(e=>e.id!==t)}})},[]),[y,_]=(0,l.useState)({}),M=(0,l.useCallback)(e=>{var t;return null!==(t=y[e])&&void 0!==t?t:{}},[y]),k=(0,l.useCallback)((e,t)=>{_(r=>{var n;return{...r,[e]:{...null!==(n=r[e])&&void 0!==n?n:{},...t}}})},[]),[I,R]=(0,l.useState)({}),S=(0,l.useCallback)((e,t)=>{R(r=>{let n=new Set(r[e]).add(t);return{...r,[e]:n}})},[]),V=(0,l.useCallback)((e,t)=>{R(r=>{let n=new Set(r[e]);return n.delete(t),{...r,[e]:n}})},[]),N=(0,l.useCallback)(e=>{var t;return Array.from(null!==(t=I[e])&&void 0!==t?t:[]).join(" ")||void 0},[I]);return(0,l.createElement)(b,{scope:r,getFieldValidity:f,onFieldValidityChange:m,getFieldCustomMatcherEntries:g,onFieldCustomMatcherEntryAdd:C,onFieldCustomMatcherEntryRemove:F,getFieldCustomErrors:M,onFieldCustomErrorsChange:k,onFieldValiditionClear:v},(0,l.createElement)(w,{scope:r,onFieldMessageIdAdd:S,onFieldMessageIdRemove:V,getFieldDescription:N},(0,l.createElement)(E.form,n({},o,{ref:d,onInvalid:a(e.onInvalid,e=>{let t=H(e.currentTarget);t===e.target&&t.focus(),e.preventDefault()}),onSubmit:a(e.onSubmit,i,{checkForDefaultPrevented:!1}),onReset:a(e.onReset,i)}))))}),I="FormField",[R,S]=C(I),V=(0,l.forwardRef)((e,t)=>{let{__scopeForm:r,name:i,serverInvalid:a=!1,...o}=e,u=_(I,r).getFieldValidity(i),d=f();return(0,l.createElement)(R,{scope:r,id:d,name:i,serverInvalid:a},(0,l.createElement)(E.div,n({"data-valid":Z(u,a),"data-invalid":z(u,a)},o,{ref:t})))}),N="FormLabel",T=(0,l.forwardRef)((e,t)=>{let{__scopeForm:r,...i}=e,a=_(N,r),o=S(N,r),u=i.htmlFor||o.id,d=a.getFieldValidity(o.name);return(0,l.createElement)(g,n({"data-valid":Z(d,o.serverInvalid),"data-invalid":z(d,o.serverInvalid)},i,{ref:t,htmlFor:u}))}),A="FormControl",D=(0,l.forwardRef)((e,t)=>{let{__scopeForm:r,...i}=e,o=_(A,r),d=S(A,r),s=M(A,r),c=(0,l.useRef)(null),f=u(t,c),m=i.name||d.name,v=i.id||d.id,h=o.getFieldCustomMatcherEntries(m),{onFieldValidityChange:p,onFieldCustomErrorsChange:g,onFieldValiditionClear:C}=o,F=(0,l.useCallback)(async e=>{if(U(e.validity)){p(m,x(e.validity));return}let t=e.form?new FormData(e.form):new FormData,r=[e.value,t],n=[],l=[];h.forEach(e=>{"AsyncFunction"===e.match.constructor.name||(0,e.match)(...r) instanceof Promise?l.push(e):"Function"===e.match.constructor.name&&n.push(e)});let i=Object.fromEntries(n.map(({id:e,match:t})=>[e,t(...r)])),a=Object.values(i).some(Boolean);if(e.setCustomValidity(a?P:""),p(m,x(e.validity)),g(m,i),!a&&l.length>0){let t=l.map(({id:e,match:t})=>t(...r).then(t=>[e,t])),n=Object.fromEntries(await Promise.all(t)),i=Object.values(n).some(Boolean);e.setCustomValidity(i?P:""),p(m,x(e.validity)),g(m,n)}},[h,m,g,p]);(0,l.useEffect)(()=>{let e=c.current;if(e){let t=()=>F(e);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}},[F]);let y=(0,l.useCallback)(()=>{let e=c.current;e&&(e.setCustomValidity(""),C(m))},[m,C]);(0,l.useEffect)(()=>{var e;let t=null===(e=c.current)||void 0===e?void 0:e.form;if(t)return t.addEventListener("reset",y),()=>t.removeEventListener("reset",y)},[y]),(0,l.useEffect)(()=>{let e=c.current,t=null==e?void 0:e.closest("form");if(t&&d.serverInvalid){let r=H(t);r===e&&r.focus()}},[d.serverInvalid]);let b=o.getFieldValidity(m);return(0,l.createElement)(E.input,n({"data-valid":Z(b,d.serverInvalid),"data-invalid":z(b,d.serverInvalid),"aria-invalid":!!d.serverInvalid||void 0,"aria-describedby":s.getFieldDescription(m),title:""},i,{ref:f,id:v,name:m,onInvalid:a(e.onInvalid,e=>{F(e.currentTarget)}),onChange:a(e.onChange,e=>{y()})}))}),P="This value is not valid",j={badInput:P,patternMismatch:"This value does not match the required pattern",rangeOverflow:"This value is too large",rangeUnderflow:"This value is too small",stepMismatch:"This value does not match the required step",tooLong:"This value is too long",tooShort:"This value is too short",typeMismatch:"This value does not match the required type",valid:void 0,valueMissing:"This value is missing"},O="FormMessage",L=((e,t)=>{let{match:r,forceMatch:i=!1,name:a,children:o,...u}=e,d=_(O,u.__scopeForm).getFieldValidity(a);return i||(null==d?void 0:d[r])?(0,l.createElement)(L,n({ref:t},u,{name:a}),null!=o?o:j[r]):null},(0,l.forwardRef)((e,t)=>{let{__scopeForm:r,id:i,name:a,...o}=e,u=M(O,r),d=f(),s=null!=i?i:d,{onFieldMessageIdAdd:c,onFieldMessageIdRemove:m}=u;return(0,l.useEffect)(()=>(c(a,s),()=>m(a,s)),[a,s,c,m]),(0,l.createElement)(E.span,n({id:s},o,{ref:t}))})),$=(0,l.forwardRef)((e,t)=>{let{__scopeForm:r,...i}=e;return(0,l.createElement)(E.button,n({type:"submit"},i,{ref:t}))});function x(e){let t={};for(let r in e)t[r]=e[r];return t}function q(e){return e instanceof HTMLElement}function B(e){return"validity"in e&&(!1===e.validity.valid||"true"===e.getAttribute("aria-invalid"))}function H(e){let[t]=Array.from(e.elements).filter(q).filter(B);return t}function U(e){let t=!1;for(let r in e)if("valid"!==r&&"customError"!==r&&e[r]){t=!0;break}return t}function Z(e,t){if((null==e?void 0:e.valid)===!0&&!t)return!0}function z(e,t){if((null==e?void 0:e.valid)===!1||t)return!0}let G=k,J=V,K=T,Q=D,W=$}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[290],{1290:function(e,t,r){function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function u(...e){return(0,l.useCallback)(o(...e),e)}let d=(null==globalThis?void 0:globalThis.document)?l.useLayoutEffect:()=>{},s=i["useId".toString()]||(()=>void 0),c=0;function f(e){let[t,r]=l.useState(s());return d(()=>{e||r(e=>null!=e?e:String(c++))},[e]),e||(t?`radix-${t}`:"")}r(967);let m=(0,l.forwardRef)((e,t)=>{let{children:r,...i}=e,a=l.Children.toArray(r),o=a.find(p);if(o){let e=o.props.children,r=a.map(t=>t!==o?t:l.Children.count(e)>1?l.Children.only(null):(0,l.isValidElement)(e)?e.props.children:null);return(0,l.createElement)(v,n({},i,{ref:t}),(0,l.isValidElement)(e)?(0,l.cloneElement)(e,void 0,r):null)}return(0,l.createElement)(v,n({},i,{ref:t}),r)});m.displayName="Slot";let v=(0,l.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,l.isValidElement)(r)?(0,l.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let l=e[n],i=t[n];/^on[A-Z]/.test(n)?l&&i?r[n]=(...e)=>{i(...e),l(...e)}:l&&(r[n]=l):"style"===n?r[n]={...l,...i}:"className"===n&&(r[n]=[l,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?o(t,r.ref):r.ref}):l.Children.count(r)>1?l.Children.only(null):null});v.displayName="SlotClone";let h=({children:e})=>(0,l.createElement)(l.Fragment,null,e);function p(e){return(0,l.isValidElement)(e)&&e.type===h}let E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,l.forwardRef)((e,r)=>{let{asChild:i,...a}=e,o=i?m:t;return(0,l.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,l.createElement)(o,n({},a,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),g=(0,l.forwardRef)((e,t)=>(0,l.createElement)(E.label,n({},e,{ref:t,onMouseDown:t=>{var r;null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}}))),[C,F]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>(0,l.createContext)(e));return function(r){let n=(null==r?void 0:r[e])||t;return(0,l.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=(0,l.createContext)(n),a=r.length;function o(t){let{scope:r,children:n,...o}=t,u=(null==r?void 0:r[e][a])||i,d=(0,l.useMemo)(()=>o,Object.values(o));return(0,l.createElement)(u.Provider,{value:d},n)}return r=[...r,n],o.displayName=t+"Provider",[o,function(r,o){let u=(null==o?void 0:o[e][a])||i,d=(0,l.useContext)(u);if(d)return d;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let l=r(e)[`__scope${n}`];return{...t,...l}},{});return(0,l.useMemo)(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}("Form"),y="Form",[b,_]=C(y),[w,M]=C(y),k=(0,l.forwardRef)((e,t)=>{let{__scopeForm:r,onClearServerErrors:i=()=>{},...o}=e,d=u(t,(0,l.useRef)(null)),[s,c]=(0,l.useState)({}),f=(0,l.useCallback)(e=>s[e],[s]),m=(0,l.useCallback)((e,t)=>c(r=>{var n;return{...r,[e]:{...null!==(n=r[e])&&void 0!==n?n:{},...t}}}),[]),v=(0,l.useCallback)(e=>{c(t=>({...t,[e]:void 0})),_(t=>({...t,[e]:{}}))},[]),[h,p]=(0,l.useState)({}),g=(0,l.useCallback)(e=>{var t;return null!==(t=h[e])&&void 0!==t?t:[]},[h]),C=(0,l.useCallback)((e,t)=>{p(r=>{var n;return{...r,[e]:[...null!==(n=r[e])&&void 0!==n?n:[],t]}})},[]),F=(0,l.useCallback)((e,t)=>{p(r=>{var n;return{...r,[e]:(null!==(n=r[e])&&void 0!==n?n:[]).filter(e=>e.id!==t)}})},[]),[y,_]=(0,l.useState)({}),M=(0,l.useCallback)(e=>{var t;return null!==(t=y[e])&&void 0!==t?t:{}},[y]),k=(0,l.useCallback)((e,t)=>{_(r=>{var n;return{...r,[e]:{...null!==(n=r[e])&&void 0!==n?n:{},...t}}})},[]),[I,R]=(0,l.useState)({}),S=(0,l.useCallback)((e,t)=>{R(r=>{let n=new Set(r[e]).add(t);return{...r,[e]:n}})},[]),V=(0,l.useCallback)((e,t)=>{R(r=>{let n=new Set(r[e]);return n.delete(t),{...r,[e]:n}})},[]),N=(0,l.useCallback)(e=>{var t;return Array.from(null!==(t=I[e])&&void 0!==t?t:[]).join(" ")||void 0},[I]);return(0,l.createElement)(b,{scope:r,getFieldValidity:f,onFieldValidityChange:m,getFieldCustomMatcherEntries:g,onFieldCustomMatcherEntryAdd:C,onFieldCustomMatcherEntryRemove:F,getFieldCustomErrors:M,onFieldCustomErrorsChange:k,onFieldValiditionClear:v},(0,l.createElement)(w,{scope:r,onFieldMessageIdAdd:S,onFieldMessageIdRemove:V,getFieldDescription:N},(0,l.createElement)(E.form,n({},o,{ref:d,onInvalid:a(e.onInvalid,e=>{let t=H(e.currentTarget);t===e.target&&t.focus(),e.preventDefault()}),onSubmit:a(e.onSubmit,i,{checkForDefaultPrevented:!1}),onReset:a(e.onReset,i)}))))}),I="FormField",[R,S]=C(I),V=(0,l.forwardRef)((e,t)=>{let{__scopeForm:r,name:i,serverInvalid:a=!1,...o}=e,u=_(I,r).getFieldValidity(i),d=f();return(0,l.createElement)(R,{scope:r,id:d,name:i,serverInvalid:a},(0,l.createElement)(E.div,n({"data-valid":Z(u,a),"data-invalid":z(u,a)},o,{ref:t})))}),N="FormLabel",T=(0,l.forwardRef)((e,t)=>{let{__scopeForm:r,...i}=e,a=_(N,r),o=S(N,r),u=i.htmlFor||o.id,d=a.getFieldValidity(o.name);return(0,l.createElement)(g,n({"data-valid":Z(d,o.serverInvalid),"data-invalid":z(d,o.serverInvalid)},i,{ref:t,htmlFor:u}))}),A="FormControl",D=(0,l.forwardRef)((e,t)=>{let{__scopeForm:r,...i}=e,o=_(A,r),d=S(A,r),s=M(A,r),c=(0,l.useRef)(null),f=u(t,c),m=i.name||d.name,v=i.id||d.id,h=o.getFieldCustomMatcherEntries(m),{onFieldValidityChange:p,onFieldCustomErrorsChange:g,onFieldValiditionClear:C}=o,F=(0,l.useCallback)(async e=>{if(U(e.validity)){p(m,x(e.validity));return}let t=e.form?new FormData(e.form):new FormData,r=[e.value,t],n=[],l=[];h.forEach(e=>{"AsyncFunction"===e.match.constructor.name||(0,e.match)(...r) instanceof Promise?l.push(e):"Function"===e.match.constructor.name&&n.push(e)});let i=Object.fromEntries(n.map(({id:e,match:t})=>[e,t(...r)])),a=Object.values(i).some(Boolean);if(e.setCustomValidity(a?P:""),p(m,x(e.validity)),g(m,i),!a&&l.length>0){let t=l.map(({id:e,match:t})=>t(...r).then(t=>[e,t])),n=Object.fromEntries(await Promise.all(t)),i=Object.values(n).some(Boolean);e.setCustomValidity(i?P:""),p(m,x(e.validity)),g(m,n)}},[h,m,g,p]);(0,l.useEffect)(()=>{let e=c.current;if(e){let t=()=>F(e);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}},[F]);let y=(0,l.useCallback)(()=>{let e=c.current;e&&(e.setCustomValidity(""),C(m))},[m,C]);(0,l.useEffect)(()=>{var e;let t=null===(e=c.current)||void 0===e?void 0:e.form;if(t)return t.addEventListener("reset",y),()=>t.removeEventListener("reset",y)},[y]),(0,l.useEffect)(()=>{let e=c.current,t=null==e?void 0:e.closest("form");if(t&&d.serverInvalid){let r=H(t);r===e&&r.focus()}},[d.serverInvalid]);let b=o.getFieldValidity(m);return(0,l.createElement)(E.input,n({"data-valid":Z(b,d.serverInvalid),"data-invalid":z(b,d.serverInvalid),"aria-invalid":!!d.serverInvalid||void 0,"aria-describedby":s.getFieldDescription(m),title:""},i,{ref:f,id:v,name:m,onInvalid:a(e.onInvalid,e=>{F(e.currentTarget)}),onChange:a(e.onChange,e=>{y()})}))}),P="This value is not valid",j={badInput:P,patternMismatch:"This value does not match the required pattern",rangeOverflow:"This value is too large",rangeUnderflow:"This value is too small",stepMismatch:"This value does not match the required step",tooLong:"This value is too long",tooShort:"This value is too short",typeMismatch:"This value does not match the required type",valid:void 0,valueMissing:"This value is missing"},O="FormMessage",L=((e,t)=>{let{match:r,forceMatch:i=!1,name:a,children:o,...u}=e,d=_(O,u.__scopeForm).getFieldValidity(a);return i||(null==d?void 0:d[r])?(0,l.createElement)(L,n({ref:t},u,{name:a}),null!=o?o:j[r]):null},(0,l.forwardRef)((e,t)=>{let{__scopeForm:r,id:i,name:a,...o}=e,u=M(O,r),d=f(),s=null!=i?i:d,{onFieldMessageIdAdd:c,onFieldMessageIdRemove:m}=u;return(0,l.useEffect)(()=>(c(a,s),()=>m(a,s)),[a,s,c,m]),(0,l.createElement)(E.span,n({id:s},o,{ref:t}))})),$=(0,l.forwardRef)((e,t)=>{let{__scopeForm:r,...i}=e;return(0,l.createElement)(E.button,n({type:"submit"},i,{ref:t}))});function x(e){let t={};for(let r in e)t[r]=e[r];return t}function q(e){return e instanceof HTMLElement}function B(e){return"validity"in e&&(!1===e.validity.valid||"true"===e.getAttribute("aria-invalid"))}function H(e){let[t]=Array.from(e.elements).filter(q).filter(B);return t}function U(e){let t=!1;for(let r in e)if("valid"!==r&&"customError"!==r&&e[r]){t=!0;break}return t}function Z(e,t){if((null==e?void 0:e.valid)===!0&&!t)return!0}function z(e,t){if((null==e?void 0:e.valid)===!1||t)return!0}let G=k,J=V,K=T,Q=D,W=$}}]); \ No newline at end of file diff --git a/_next/static/chunks/338.7cacf46b26fdec08.js b/_next/static/chunks/338.7cacf46b26fdec08.js deleted file mode 100644 index 1e3a952c6..000000000 --- a/_next/static/chunks/338.7cacf46b26fdec08.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[338],{3413:function(e,t,o){o.d(t,{c:function(){return n}});let n=(0,o(8158).zo)("button",{display:"flex",height:"2rem",width:"2rem",borderRadius:"2rem",padding:"0",margin:"0",fontFamily:"inherit",background:"none",backgroundColor:"$primary",border:"none",color:"white",cursor:"pointer",marginLeft:"0.618rem",filter:"drop-shadow(2px 2px 5px #0003)",transition:"$all",boxSizing:"content-box !important","&:first-child":{marginLeft:"0"},"@xs":{marginBottom:"0.618rem",marginLeft:"0","&:last-child":{marginBottom:"0"}},svg:{height:"60%",width:"60%",padding:"20%",fill:"$secondary",stroke:"$secondary",filter:"drop-shadow(2px 2px 5px #0003)",transition:"$all",boxSizing:"inherit"},"&:hover, &:focus":{backgroundColor:"$accent"},"&[data-button=rotate-right]":{"&:hover, &:focus":{svg:{rotate:"45deg"}}},"&[data-button=rotate-left]":{transform:"scaleX(-1)","&:hover, &:focus":{svg:{rotate:"45deg"}}},"&[data-button=reset]":{"&:hover, &:focus":{svg:{rotate:"-15deg"}}}})},1338:function(e,t,o){o.r(t),o.d(t,{default:function(){return z}});var n=o(2676),r=o(4250),i=o(7467),a=o(2461),l=o(8158);let s=(0,l.zo)("div",{position:"absolute !important",zIndex:"1",top:"1rem",left:"1rem",width:"161.8px",height:"100px",backgroundColor:"#000D",boxShadow:"5px 5px 5px #0002",borderRadius:"3px",".displayregion":{border:" 3px solid $accent !important",boxShadow:"0 0 3px #0006"},"@sm":{width:"123px",height:"76px"},"@xs":{width:"100px",height:"61.8px"}}),c=(0,l.zo)("div",{position:"relative",width:"100%",height:"100%",zIndex:"0"}),d=(0,l.zo)("div",{width:"100%",height:"100%",maxHeight:"100vh",background:"transparent",backgroundSize:"contain",color:"white",position:"relative",zIndex:"0",overflow:"hidden",variants:{hasNavigator:{true:{["".concat(s)]:{display:"block"}},false:{["".concat(s)]:{display:"none"}}}}});var u=o(9212),h=o.n(u),g=o(5271),v=o(7498),f=o(3413),p=e=>{let{className:t,id:o,label:r,children:i}=e,a=r.toLowerCase().replace(/\s/g,"-");return(0,n.jsx)(f.c,{id:o,className:t,"data-testid":"openseadragon-button","data-button":a,children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"".concat(o,"-svg-title"),"data-testid":"openseadragon-button-svg",focusable:"false",viewBox:"0 0 512 512",role:"img",children:[(0,n.jsx)("title",{id:"".concat(o,"-svg-title"),children:r}),i]})})};let m=(0,l.zo)("div",{position:"absolute",zIndex:"1",top:"1rem",right:"1rem",display:"flex","@xs":{flexDirection:"column",zIndex:"2"},variants:{hasPlaceholder:{true:{right:"3.618rem","@xs":{top:"3.618rem",right:"1rem"}},false:{right:"1rem","@xs":{top:"1rem",right:"1rem"}}}}}),w=()=>(0,n.jsx)("path",{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M256 112v288M400 256H112"}),x=()=>(0,n.jsx)("path",{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M400 256H112"}),b=()=>(0,n.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320v112H320M421.8 421.77L304 304M80 192V80h112M90.2 90.23L208 208M320 80h112v112M421.77 90.2L304 208M192 432H80V320M90.23 421.8L208 304"}),y=()=>(0,n.jsx)("path",{d:"M448 440a16 16 0 01-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335 352.88 301 345.59 256 344.23V424a16 16 0 01-27 11.57l-176-168a16 16 0 010-23.14l176-168A16 16 0 01256 88v80.36c74.14 3.41 129.38 30.91 164.35 81.87C449.32 292.44 464 350.9 464 424a16 16 0 01-16 16z"}),S=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M400 148l-21.12-24.57A191.43 191.43 0 00240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 00181.07-128"}),(0,n.jsx)("path",{d:"M464 97.42V208a16 16 0 01-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"})]});var C=e=>{let{_cloverViewerHasPlaceholder:t,config:o}=e,{activeCanvas:r,plugins:i,vault:a}=(0,v.D1)(),l=a.get({id:r,type:"Canvas"});return(0,n.jsxs)(m,{"data-testid":"clover-iiif-image-openseadragon-controls",hasPlaceholder:t,children:[o.showZoomControl&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p,{id:o.zoomInButton,label:"zoom in",children:(0,n.jsx)(w,{})}),(0,n.jsx)(p,{id:o.zoomOutButton,label:"zoom out",children:(0,n.jsx)(x,{})})]}),o.showFullPageControl&&(0,n.jsx)(p,{id:o.fullPageButton,label:"full page",children:(0,n.jsx)(b,{})}),o.showRotationControl&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p,{id:o.rotateRightButton,label:"rotate right",children:(0,n.jsx)(S,{})}),(0,n.jsx)(p,{id:o.rotateLeftButton,label:"rotate left",children:(0,n.jsx)(S,{})})]}),o.showHomeControl&&(0,n.jsx)(p,{id:o.homeButton,label:"reset",children:(0,n.jsx)(y,{})}),i.filter(e=>{var t;return null===(t=e.imageViewer)||void 0===t?void 0:t.controls}).map((e,t)=>{var o,r,i,a;let s=null===(r=e.imageViewer)||void 0===r?void 0:null===(o=r.controls)||void 0===o?void 0:o.component;return(0,n.jsx)(s,{...null==e?void 0:null===(a=e.imageViewer)||void 0===a?void 0:null===(i=a.controls)||void 0===i?void 0:i.componentProps,canvas:l,useViewerDispatch:v.Cu,useViewerState:v.D1},t)})]})},k=o(6864),I=e=>{let{ariaLabel:t,config:o,uri:r,_cloverViewerHasPlaceholder:i,imageType:a,openSeadragonCallback:l}=e,[u,f]=(0,g.useState)(),[p,m]=(0,g.useState)(),w=(0,v.Cu)(),x=(0,g.useRef)(!1);return(0,g.useEffect)(()=>(x.current||(x.current=!0,p||m(h()(o))),()=>null==p?void 0:p.destroy()),[]),(0,g.useEffect)(()=>{p&&l&&l(p)},[p,l]),(0,g.useEffect)(()=>{p&&r!==u&&(null==p||p.forceRedraw(),f(r))},[p,u,r]),(0,g.useEffect)(()=>{if(u&&p)switch(a){case"simpleImage":null==p||p.addSimpleImage({url:u});break;case"tiledImage":(0,k.Er)(u).then(e=>{try{if(!e)throw Error("No tile source found for ".concat(u));null==p||p.addTiledImage({tileSource:e,success:()=>{"function"==typeof w&&w({type:"updateOSDImageLoaded",OSDImageLoaded:!0})}})}catch(e){console.error(e)}});break;default:null==p||p.close(),console.warn("Unable to render ".concat(u,' in OpenSeadragon as type: "').concat(a,'"'))}},[a,u]),(0,n.jsxs)(d,{className:"clover-iiif-image-openseadragon","data-testid":"clover-iiif-image-openseadragon","data-openseadragon-instance":o.id,hasNavigator:o.showNavigator,children:[(0,n.jsx)(C,{_cloverViewerHasPlaceholder:i,config:o}),o.showNavigator&&(0,n.jsx)(s,{id:o.navigatorId,"data-testid":"clover-iiif-image-openseadragon-navigator"}),(0,n.jsx)(c,{id:o.id,"data-testid":"clover-iiif-image-openseadragon-viewport",role:"img",...t&&{"aria-label":t}})]})},j=o(9219),_=o(2950),z=e=>{let{_cloverViewerHasPlaceholder:t=!1,body:o,instanceId:l,isTiledImage:s=!1,label:c,src:d="",openSeadragonCallback:u,openSeadragonConfig:h={}}=e,g=l||(0,_.Z)(),v="string"==typeof c?c:(0,j.M)(c),f={id:"openseadragon-".concat(g),navigatorId:"openseadragon-navigator-".concat(g),loadTilesWithAjax:!0,fullPageButton:"fullPage-".concat(g),homeButton:"reset-".concat(g),rotateLeftButton:"rotateLeft-".concat(g),rotateRightButton:"rotateRight-".concat(g),zoomInButton:"zoomIn-".concat(g),zoomOutButton:"zoomOut-".concat(g),showNavigator:!0,showFullPageControl:!0,showHomeControl:!0,showRotationControl:!0,showZoomControl:!0,navigatorBorderColor:"transparent",gestureSettingsMouse:{clickToZoom:!0,dblClickToZoom:!0,pinchToZoom:!0,scrollToZoom:!1},...h},{imageType:p,uri:m}=o?(0,r.z9)(o):(0,r.D1)(d,s);return m?(0,n.jsx)(i.SV,{FallbackComponent:a.Z,children:(0,n.jsx)(I,{_cloverViewerHasPlaceholder:t,ariaLabel:v,config:f,imageType:p,uri:m,openSeadragonCallback:u},g)}):null}},2461:function(e,t,o){o.d(t,{Z:function(){return s}});var n=o(2676),r=o(8158);let i=(0,r.zo)("div",{display:"flex",flexDirection:"column",alignItems:"center"}),a=(0,r.zo)("p",{fontWeight:"bold",fontSize:"x-large"}),l=(0,r.zo)("span",{fontSize:"medium"});o(5271);var s=e=>{let{error:t}=e,{message:o}=t;return(0,n.jsxs)(i,{role:"alert",children:[(0,n.jsx)(a,{"data-testid":"headline",children:"Something went wrong"}),o&&(0,n.jsxs)(l,{children:["Error message: ".concat(o)," "]})]})}},7498:function(e,t,o){o.d(t,{Cu:function(){return b},D1:function(){return x},MY:function(){return w},W2:function(){return v},as:function(){return h}});var n,r,i,a=o(2676),l=o(5271),s=o(4340),c=o(1644),d=o(2950);let u={annotationOverlays:{backgroundColor:"#6666ff",borderColor:"#000099",borderType:"solid",borderWidth:"1px",opacity:"0.5",renderOverlays:!0,zoomLevel:2},background:"transparent",canvasBackgroundColor:"#6662",canvasHeight:"500px",contentSearch:{searchResultsLimit:20,overlays:{backgroundColor:"#ff6666",borderColor:"#990000",borderType:"solid",borderWidth:"1px",opacity:"0.5",renderOverlays:!0,zoomLevel:4}},ignoreCaptionLabels:[],informationPanel:{vtt:{autoScroll:{enabled:!0,settings:{behavior:"smooth",block:"center"}}},open:!0,renderAbout:!0,renderSupplementing:!0,renderToggle:!0,renderAnnotation:!0,renderContentSearch:!0},openSeadragon:{},requestHeaders:{"Content-Type":"application/json"},showDownload:!0,showIIIFBadge:!0,showTitle:!0,withCredentials:!1,localeText:{contentSearch:{tabLabel:"Search Results",formPlaceholder:"Enter search words",noSearchResults:"No search results",loading:"Loading...",moreResults:"more results"}}};function h(e){let t={...u.informationPanel.vtt.autoScroll};return"object"==typeof e&&(t="enabled"in e?e:{enabled:!0,settings:e}),!1===e&&(t.enabled=!1),function(e){let{behavior:t,block:o}=e,n=["auto","instant","smooth"],r=["center","end","nearest","start"];if(!n.includes(t))throw TypeError("'".concat(t,"' not in ").concat(n.join(" | ")));if(!r.includes(o))throw TypeError("'".concat(o,"' not in ").concat(r.join(" | ")))}(t.settings),t}let g=h(null==u?void 0:null===(r=u.informationPanel)||void 0===r?void 0:null===(n=r.vtt)||void 0===n?void 0:n.autoScroll),v={activeCanvas:"",activeManifest:"",OSDImageLoaded:!1,collection:{},configOptions:u,customDisplays:[],plugins:[],isAutoScrollEnabled:g.enabled,isAutoScrolling:!1,isInformationOpen:null==u?void 0:null===(i=u.informationPanel)||void 0===i?void 0:i.open,isLoaded:!1,isUserScrolling:void 0,vault:new s.j,contentSearchVault:new s.j,openSeadragonViewer:null,viewerId:(0,d.Z)()},f=l.createContext(v),p=l.createContext(v);function m(e,t){switch(t.type){case"updateActiveCanvas":return t.canvasId||(t.canvasId=""),{...e,activeCanvas:t.canvasId};case"updateActiveManifest":return{...e,activeManifest:t.manifestId};case"updateOSDImageLoaded":return{...e,OSDImageLoaded:t.OSDImageLoaded};case"updateAutoScrollAnnotationEnabled":return{...e,isAutoScrollEnabled:t.isAutoScrollEnabled};case"updateAutoScrolling":return{...e,isAutoScrolling:t.isAutoScrolling};case"updateCollection":return{...e,collection:t.collection};case"updateConfigOptions":return{...e,configOptions:(0,c.RH)(e.configOptions,t.configOptions)};case"updateInformationOpen":return{...e,isInformationOpen:t.isInformationOpen};case"updateIsLoaded":return{...e,isLoaded:t.isLoaded};case"updateUserScrolling":return{...e,isUserScrolling:t.isUserScrolling};case"updateOpenSeadragonViewer":return{...e,openSeadragonViewer:t.openSeadragonViewer};case"updateViewerId":return{...e,viewerId:t.viewerId};default:throw Error("Unhandled action type: ".concat(t.type))}}let w=e=>{let{initialState:t=v,children:o}=e,[n,r]=(0,l.useReducer)(m,t);return(0,a.jsx)(f.Provider,{value:n,children:(0,a.jsx)(p.Provider,{value:r,children:o})})};function x(){let e=l.useContext(f);if(void 0===e)throw Error("useViewerState must be used within a ViewerProvider");return e}function b(){let e=l.useContext(p);if(void 0===e)throw Error("useViewerDispatch must be used within a ViewerProvider");return e}},5323:function(e,t,o){o.d(t,{L:function(){return n},k:function(){return r}});let n=e=>{let t={id:"string"==typeof e?e:e.source};if("string"==typeof e){if(e.includes("#xywh=")){let o=e.split("#xywh=");if(o&&o[1]){let[e,n,r,i]=o[1].split(",").map(e=>Number(e));t={id:o[0],rect:{x:e,y:n,w:r,h:i}}}}else if(e.includes("#t=")){let o=e.split("#t=");o&&o[1]&&(t={id:o[0],t:o[1]})}}else if("object"==typeof e){var o,n,r,i,a;if((null===(o=e.selector)||void 0===o?void 0:o.type)==="PointSelector")t={id:e.source,point:{x:e.selector.x,y:e.selector.y}};else if((null===(n=e.selector)||void 0===n?void 0:n.type)==="SvgSelector")t={id:e.source,svg:e.selector.value};else if((null===(r=e.selector)||void 0===r?void 0:r.type)==="FragmentSelector"&&(null===(i=e.selector)||void 0===i?void 0:i.value.includes("xywh="))&&"Canvas"==e.source.type&&e.source.id){let o=null===(a=e.selector)||void 0===a?void 0:a.value.split("xywh=");if(o&&o[1]){let[n,r,i,a]=o[1].split(",").map(e=>Number(e));t={id:e.source.id,rect:{x:n,y:r,w:i,h:a}}}}}return t};function r(e){let t=new Set;return!function e(o){Array.isArray(o)?o.forEach(e):o&&"object"==typeof o&&(o.language&&t.add(o.language),Object.values(o).forEach(e))}(e),Array.from(t)}},6864:function(e,t,o){o.d(t,{AG:function(){return i},Er:function(){return r},FO:function(){return s},Mx:function(){return c},Vu:function(){return l}});var n=o(1858);let r=e=>fetch("".concat(e.replace(/\/$/,""),"/info.json")).then(e=>e.json()).then(e=>e).catch(t=>{console.error("The IIIF tilesource ".concat(e.replace(/\/$/,""),"/info.json failed to load: ").concat(t))}),i=e=>{let t,o;return Array.isArray(e)&&(t=e[0])&&(o="@id"in t?t["@id"]:t.id),o},a=e=>{let t,o;if(d(e))t=e,o={};else{let i=JSON.parse((0,n.o0)(e));switch(null==i?void 0:i.type){case"SpecificResource":case"Range":case"Annotation":o={manifest:t=null==i?void 0:i.target.partOf[0].id,canvas:null==i?void 0:i.target.id};break;case"Canvas":o={manifest:t=null==i?void 0:i.partOf[0].id,canvas:null==i?void 0:i.id};break;case"Manifest":var r;t=null==i?void 0:i.id,o={collection:null==i?void 0:null===(r=i.partOf[0])||void 0===r?void 0:r.id,manifest:null==i?void 0:i.id};break;case"Collection":o={collection:t=null==i?void 0:i.id}}}return{resourceId:t,active:o}},l=e=>{let{resourceId:t,active:o}=a(e);return o.collection||o.manifest||t},s=(e,t)=>{let o=t.items.map(e=>e.id),{active:n}=a(e),r=n.canvas;return o.includes(r)?r:o[0]},c=(e,t)=>{let{active:o}=a(e),n=o.manifest,r=t.items.filter(e=>"Manifest"===e.type).map(e=>e.id);return 0==r.length?null:r.includes(n)?n:r[0]},d=e=>{try{new URL(e)}catch(e){return!1}return!0}},4250:function(e,t,o){o.d(t,{LW:function(){return x},zG:function(){return g},$H:function(){return w},z9:function(){return f},D1:function(){return p},dH:function(){return m}});var n,r,i=o(9212),a=o.n(i);let l=window.OpenSeadragon;if(!l&&!(l=a()))throw Error("OpenSeadragon is missing.");let s="http://www.w3.org/2000/svg";l.Viewer&&(l.Viewer.prototype.svgOverlay=function(){return this._svgOverlayInfo||(this._svgOverlayInfo=new c(this)),this._svgOverlayInfo});let c=function(e){let t=this;this._viewer=e,this._containerWidth=0,this._containerHeight=0,this._svg=document.createElementNS(s,"svg"),this._svg.style.position="absolute",this._svg.style.left=0,this._svg.style.top=0,this._svg.style.width="100%",this._svg.style.height="100%",this._viewer.canvas.appendChild(this._svg),this._node=document.createElementNS(s,"g"),this._svg.appendChild(this._node),this._viewer.addHandler("animation",function(){t.resize()}),this._viewer.addHandler("open",function(){t.resize()}),this._viewer.addHandler("rotate",function(){t.resize()}),this._viewer.addHandler("flip",function(){t.resize()}),this._viewer.addHandler("resize",function(){t.resize()}),this.resize()};c.prototype={node:function(){return this._node},resize:function(){this._containerWidth!==this._viewer.container.clientWidth&&(this._containerWidth=this._viewer.container.clientWidth,this._svg.setAttribute("width",this._containerWidth)),this._containerHeight!==this._viewer.container.clientHeight&&(this._containerHeight=this._viewer.container.clientHeight,this._svg.setAttribute("height",this._containerHeight));let e=this._viewer.viewport.pixelFromPoint(new l.Point(0,0),!0),t=this._viewer.viewport.getZoom(!0),o=this._viewer.viewport.getRotation(),n=this._viewer.viewport.getFlip(),r=this._viewer.viewport._containerInnerSize.x,i=r*t,a=i;n&&(i=-i,e.x=-e.x+r),this._node.setAttribute("transform","translate("+e.x+","+e.y+") scale("+i+","+a+") rotate("+o+")")},onClick:function(e,t){new l.MouseTracker({element:e,clickHandler:t}).setTracking(!0)}};let d=e=>new c(e);var u=o(5323),h=o(6864);function g(e,t,o,n,r){if(!e)return;let i=1/t.width;n.forEach(t=>{if(!t.target)return;let{point:n,rect:l,svg:s}=(0,u.L)(t.target);if(l){let{x:t,y:n,w:s,h:c}=l;!function(e,t,o,n,r,i,l){let s=new(a()).Rect(t,o,n,r),c=document.createElement("div");if(i){let{backgroundColor:e,opacity:t,borderType:o,borderColor:n,borderWidth:r}=i;c.style.backgroundColor=e,c.style.opacity=t,c.style.border="".concat(o," ").concat(r," ").concat(n),c.className=l}e.addOverlay(c,s)}(e,t*i,n*i,s*i,c*i,o,r)}if(n){let{x:t,y:a}=n;v(e,'\n \n \n \n '),o,i,r)}s&&v(e,s,o,i,r)})}function v(e,t,o,n,r){let i=function(e){if(!e)return null;let t=document.createElement("template");return t.innerHTML=e.trim(),t.content.children[0]}(t);if(i)for(let t of i.children)!function e(t,o,n,r,i){var a;if("#text"===o.nodeName)!o.textContent||o.textContent.includes("\n")||console.log("nodeName:",o.nodeName,", textContent:",o.textContent,", childNodes.length",o.childNodes.length);else{let l=function(e,t,o){let n=!1,r=!1,i=!1,a=!1,l=document.createElementNS("http://www.w3.org/2000/svg",e.nodeName);if(e.attributes.length>0)for(let t=0;t{e(t,o,n,r,i)})}}(e,t,o,n,r)}(n=r||(r={})).TiledImage="tiledImage",n.SimpleImage="simpleImage";let f=e=>{let t=Array.isArray(null==e?void 0:e.service)&&(null==e?void 0:e.service.length)>0;return{uri:t?(0,h.AG)(null==e?void 0:e.service):null==e?void 0:e.id,imageType:t?r.TiledImage:r.SimpleImage}},p=(e,t)=>({uri:e,imageType:t?r.TiledImage:r.SimpleImage});function m(e,t){if(!e)return;t.startsWith(".")||(t="."+t);let o=document.querySelectorAll(t);o&&o.forEach(t=>e.removeOverlay(t))}function w(e,t,o,n){let r=(0,u.L)(o),{point:i,rect:l,svg:s}=r;if(i||l||s){let o=function(e,t,o){let n,r,i=40,l=40;t.rect&&(n=t.rect.x,r=t.rect.y,i=t.rect.w,l=t.rect.h),t.point&&(n=t.point.x,r=t.point.y),u.L.svg;let s=1/e.width;return new(a()).Rect(n*s-i*s/2*(o-1),r*s-l*s/2*(o-1),i*s*o,l*s*o)}(n,r,t);null==e||e.viewport.fitBounds(o)}}function x(e,t,o,n,r){var i;if(!(null==t?void 0:t.items)||(null==t?void 0:t.items.length)===0)return;let a=[];t.items.forEach(t=>{let o=e.get(t.id);"string"==typeof o.target&&o.target.startsWith(n.id)&&a.push(o)}),o&&(null===(i=r.contentSearch)||void 0===i?void 0:i.overlays)&&g(o,n,r.contentSearch.overlays,a,"content-search-overlay")}}}]); \ No newline at end of file diff --git a/_next/static/chunks/34.e0fc861ad98ca893.js b/_next/static/chunks/34.e0fc861ad98ca893.js new file mode 100644 index 000000000..5eadcc0b2 --- /dev/null +++ b/_next/static/chunks/34.e0fc861ad98ca893.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34],{7396:function(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},o=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,h=arguments[0],p=1,d=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,s]=t[i];switch(a){case 0:case -1:return n(s,i);case 1:{let e=n([],i);for(let t of s)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of s)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of s)e.add(r(t));return e}case 7:{let{name:e,message:t}=s;return n(new H[e](t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new H[a](s),i)};return r},G=e=>U(new Map,e)(0),{toString:Y}={},{keys:z}=Object,q=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=Y.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},W=([e,t])=>0===e&&("function"===t||"symbol"===t),V=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[s,o]=q(r);switch(s){case 0:{let t=r;switch(o){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+o);t=null;break;case"undefined":return i([-1],r)}return i([s,t],r)}case 1:{if(o)return i([o,[...r]],r);let e=[],t=i([s,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(o)switch(o){case"BigInt":return i([o,r.toString()],r);case"Boolean":case"Number":case"String":return i([o,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());let n=[],l=i([s,n],r);for(let t of z(r))(e||!W(q(r[t])))&&n.push([a(t),a(r[t])]);return l}case 3:return i([s,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([s,{source:e,flags:t}],r)}case 5:{let t=[],n=i([s,t],r);for(let[n,i]of r)(e||!(W(q(n))||W(q(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([s,t],r);for(let n of r)(e||!W(q(n)))&&t.push(a(n));return n}}let{message:l}=r;return i([s,{name:o,message:l}],r)};return a},Q=(e,{json:t,lossy:n}={})=>{let r=[];return V(!(t||n),!!t,new Map,r)(e),r};var j="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?G(Q(e,t)):structuredClone(e):(e,t)=>G(Q(e,t));class K{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function X(e,t){let n={},r={},i=-1;for(;++i"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ed=eh({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ef(e,t){return t in e?e[t]:t}function em(e,t){return ef(e,t.toLowerCase())}let eE=eh({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:em,properties:{xmlns:null,xmlnsXLink:null}}),eT=eh({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:et,ariaAutoComplete:null,ariaBusy:et,ariaChecked:et,ariaColCount:er,ariaColIndex:er,ariaColSpan:er,ariaControls:ei,ariaCurrent:null,ariaDescribedBy:ei,ariaDetails:null,ariaDisabled:et,ariaDropEffect:ei,ariaErrorMessage:null,ariaExpanded:et,ariaFlowTo:ei,ariaGrabbed:et,ariaHasPopup:null,ariaHidden:et,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ei,ariaLevel:er,ariaLive:null,ariaModal:et,ariaMultiLine:et,ariaMultiSelectable:et,ariaOrientation:null,ariaOwns:ei,ariaPlaceholder:null,ariaPosInSet:er,ariaPressed:et,ariaReadOnly:et,ariaRelevant:null,ariaRequired:et,ariaRoleDescription:ei,ariaRowCount:er,ariaRowIndex:er,ariaRowSpan:er,ariaSelected:et,ariaSetSize:er,ariaSort:null,ariaValueMax:er,ariaValueMin:er,ariaValueNow:er,ariaValueText:null,role:null}}),eg=eh({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:em,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ea,acceptCharset:ei,accessKey:ei,action:null,allow:null,allowFullScreen:ee,allowPaymentRequest:ee,allowUserMedia:ee,alt:null,as:null,async:ee,autoCapitalize:null,autoComplete:ei,autoFocus:ee,autoPlay:ee,blocking:ei,capture:null,charSet:null,checked:ee,cite:null,className:ei,cols:er,colSpan:null,content:null,contentEditable:et,controls:ee,controlsList:ei,coords:er|ea,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ee,defer:ee,dir:null,dirName:null,disabled:ee,download:en,draggable:et,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ee,formTarget:null,headers:ei,height:er,hidden:ee,high:er,href:null,hrefLang:null,htmlFor:ei,httpEquiv:ei,id:null,imageSizes:null,imageSrcSet:null,inert:ee,inputMode:null,integrity:null,is:null,isMap:ee,itemId:null,itemProp:ei,itemRef:ei,itemScope:ee,itemType:ei,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ee,low:er,manifest:null,max:null,maxLength:er,media:null,method:null,min:null,minLength:er,multiple:ee,muted:ee,name:null,nonce:null,noModule:ee,noValidate:ee,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ee,optimum:er,pattern:null,ping:ei,placeholder:null,playsInline:ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ee,referrerPolicy:null,rel:ei,required:ee,reversed:ee,rows:er,rowSpan:er,sandbox:ei,scope:null,scoped:ee,seamless:ee,selected:ee,shadowRootClonable:ee,shadowRootDelegatesFocus:ee,shadowRootMode:null,shape:null,size:er,sizes:null,slot:null,span:er,spellCheck:et,src:null,srcDoc:null,srcLang:null,srcSet:null,start:er,step:null,style:null,tabIndex:er,target:null,title:null,translate:null,type:null,typeMustMatch:ee,useMap:null,value:et,width:er,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ei,axis:null,background:null,bgColor:null,border:er,borderColor:null,bottomMargin:er,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ee,declare:ee,event:null,face:null,frame:null,frameBorder:null,hSpace:er,leftMargin:er,link:null,longDesc:null,lowSrc:null,marginHeight:er,marginWidth:er,noResize:ee,noHref:ee,noShade:ee,noWrap:ee,object:null,profile:null,prompt:null,rev:null,rightMargin:er,rules:null,scheme:null,scrolling:et,standby:null,summary:null,text:null,topMargin:er,valueType:null,version:null,vAlign:null,vLink:null,vSpace:er,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ee,disableRemotePlayback:ee,prefix:null,property:null,results:er,security:null,unselectable:null}}),eA=eh({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ef,properties:{about:es,accentHeight:er,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:er,amplitude:er,arabicForm:null,ascent:er,attributeName:null,attributeType:null,azimuth:er,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:er,by:null,calcMode:null,capHeight:er,className:ei,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:er,diffuseConstant:er,direction:null,display:null,dur:null,divisor:er,dominantBaseline:null,download:ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:er,enableBackground:null,end:null,event:null,exponent:er,externalResourcesRequired:null,fill:null,fillOpacity:er,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ea,g2:ea,glyphName:ea,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:er,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:er,horizOriginX:er,horizOriginY:er,id:null,ideographic:er,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:er,k:er,k1:er,k2:er,k3:er,k4:er,kernelMatrix:es,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:er,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:er,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:er,overlineThickness:er,paintOrder:null,panose1:null,path:null,pathLength:er,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ei,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:er,pointsAtY:er,pointsAtZ:er,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:es,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:es,rev:es,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:es,requiredFeatures:es,requiredFonts:es,requiredFormats:es,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:er,specularExponent:er,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:er,strikethroughThickness:er,string:null,stroke:null,strokeDashArray:es,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:er,strokeOpacity:er,strokeWidth:null,style:null,surfaceScale:er,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:es,tabIndex:er,tableValues:null,target:null,targetX:er,targetY:er,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:es,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:er,underlineThickness:er,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:er,values:null,vAlphabetic:er,vMathematical:er,vectorEffect:null,vHanging:er,vIdeographic:er,version:null,vertAdvY:er,vertOriginX:er,vertOriginY:er,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:er,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),e_=X([ed,ep,eE,eT,eg],"html"),eN=X([ed,ep,eE,eT,eA],"svg");function eI(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function eS(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}let eC=/[#.]/g,ek=/^data[-\w.:]+$/i,eD=/-[a-z]/g,eO=/[A-Z]/g;function eb(e,t){let n=J(t),r=t,i=Z;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ek.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(eD,ey);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!eD.test(e)){let n=e.replace(eO,eR);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=ec}return new i(r,t)}function eR(e){return"-"+e.toLowerCase()}function ey(e){return e.charAt(1).toUpperCase()}function eL(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function eP(e){return e.join(" ").trim()}let eM={}.hasOwnProperty;function ex(e,t,n){let r=n&&function(e){let t={},n=-1;for(;++n1?n[e.line-2]:0)+e.column-1;if(r-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(void 0===i){let e=ew(t,n[r-1]);i=-1===e?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),i=r.toPoint(0),a=r.toPoint(t.length);n.position={start:i,end:a}}return n}case"#documentType":return eq(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},eq(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===eH.svg?eN:e_;let r=-1,i={};for(;++r=55296&&e<=57343}function e2(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function e5(e){return e>=64976&&e<=65007||e1.has(e)}(a=_||(_={})).controlCharacterInInputStream="control-character-in-input-stream",a.noncharacterInInputStream="noncharacter-in-input-stream",a.surrogateInInputStream="surrogate-in-input-stream",a.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",a.endTagWithAttributes="end-tag-with-attributes",a.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",a.unexpectedSolidusInTag="unexpected-solidus-in-tag",a.unexpectedNullCharacter="unexpected-null-character",a.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",a.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",a.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",a.missingEndTagName="missing-end-tag-name",a.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",a.unknownNamedCharacterReference="unknown-named-character-reference",a.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",a.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",a.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",a.eofBeforeTagName="eof-before-tag-name",a.eofInTag="eof-in-tag",a.missingAttributeValue="missing-attribute-value",a.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",a.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",a.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",a.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",a.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",a.missingDoctypePublicIdentifier="missing-doctype-public-identifier",a.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",a.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",a.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",a.cdataInHtmlContent="cdata-in-html-content",a.incorrectlyOpenedComment="incorrectly-opened-comment",a.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",a.eofInDoctype="eof-in-doctype",a.nestedComment="nested-comment",a.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",a.eofInComment="eof-in-comment",a.incorrectlyClosedComment="incorrectly-closed-comment",a.eofInCdata="eof-in-cdata",a.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",a.nullCharacterReference="null-character-reference",a.surrogateCharacterReference="surrogate-character-reference",a.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",a.controlCharacterReference="control-character-reference",a.noncharacterCharacterReference="noncharacter-character-reference",a.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",a.missingDoctypeName="missing-doctype-name",a.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",a.duplicateAttribute="duplicate-attribute",a.nonConformingDoctype="non-conforming-doctype",a.missingDoctype="missing-doctype",a.misplacedDoctype="misplaced-doctype",a.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",a.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",a.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",a.openElementsLeftAfterEof="open-elements-left-after-eof",a.abandonedHeadElementChild="abandoned-head-element-child",a.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",a.nestedNoscriptInHead="nested-noscript-in-head",a.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class e4{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,s=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(_.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let n=this.html.charCodeAt(t);return n===A.CARRIAGE_RETURN?A.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let e=this.html.charCodeAt(this.pos);return e===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):e===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,e3(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===A.LINE_FEED||e===A.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){e2(e)?this._err(_.controlCharacterInInputStream):e5(e)&&this._err(_.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(s=N||(N={}))[s.CHARACTER=0]="CHARACTER",s[s.NULL_CHARACTER=1]="NULL_CHARACTER",s[s.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",s[s.START_TAG=3]="START_TAG",s[s.END_TAG=4]="END_TAG",s[s.COMMENT=5]="COMMENT",s[s.DOCTYPE=6]="DOCTYPE",s[s.EOF=7]="EOF",s[s.HIBERNATION=8]="HIBERNATION";var e8=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),e9=new Uint16Array("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));let e7=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),te=null!==(I=String.fromCodePoint)&&void 0!==I?I:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function tt(e){return e>=S.ZERO&&e<=S.NINE}(o=S||(S={}))[o.NUM=35]="NUM",o[o.SEMI=59]="SEMI",o[o.EQUALS=61]="EQUALS",o[o.ZERO=48]="ZERO",o[o.NINE=57]="NINE",o[o.LOWER_A=97]="LOWER_A",o[o.LOWER_F=102]="LOWER_F",o[o.LOWER_X=120]="LOWER_X",o[o.LOWER_Z=122]="LOWER_Z",o[o.UPPER_A=65]="UPPER_A",o[o.UPPER_F=70]="UPPER_F",o[o.UPPER_Z=90]="UPPER_Z",(l=C||(C={}))[l.VALUE_LENGTH=49152]="VALUE_LENGTH",l[l.BRANCH_LENGTH=16256]="BRANCH_LENGTH",l[l.JUMP_TABLE=127]="JUMP_TABLE",(c=k||(k={}))[c.EntityStart=0]="EntityStart",c[c.NumericStart=1]="NumericStart",c[c.NumericDecimal=2]="NumericDecimal",c[c.NumericHex=3]="NumericHex",c[c.NamedEntity=4]="NamedEntity",(u=D||(D={}))[u.Legacy=0]="Legacy",u[u.Strict=1]="Strict",u[u.Attribute=2]="Attribute";class tn{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=k.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=D.Strict}startEntity(e){this.decodeMode=e,this.state=k.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case k.EntityStart:if(e.charCodeAt(t)===S.NUM)return this.state=k.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=k.NamedEntity,this.stateNamedEntity(e,t);case k.NumericStart:return this.stateNumericStart(e,t);case k.NumericDecimal:return this.stateNumericDecimal(e,t);case k.NumericHex:return this.stateNumericHex(e,t);case k.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===S.LOWER_X?(this.state=k.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=k.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t=S.UPPER_A)||!(r<=S.UPPER_F))&&(!(r>=S.LOWER_A)||!(r<=S.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t=55296&&r<=57343||r>1114111?65533:null!==(i=e7.get(r))&&void 0!==i?i:r,this.consumed),this.errors&&(e!==S.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&C.VALUE_LENGTH)>>14;for(;t>7,a=t&C.JUMP_TABLE;if(0===i)return 0!==a&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let s=n,o=s+i-1;for(;s<=o;){let t=s+o>>>1,n=e[t];if(nr))return e[t+i];o=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===D.Attribute&&(0===i||function(e){var t;return e===S.EQUALS||(t=e)>=S.UPPER_A&&t<=S.UPPER_Z||t>=S.LOWER_A&&t<=S.LOWER_Z||tt(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((r=n[this.treeIndex])&C.VALUE_LENGTH)>>14)){if(a===S.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==D.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&C.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~C.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case k.NamedEntity:return 0!==this.result&&(this.decodeMode!==D.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case k.NumericDecimal:return this.emitNumericEntity(0,2);case k.NumericHex:return this.emitNumericEntity(0,3);case k.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case k.EntityStart:return 0}}}function tr(e){let t="",n=new tn(e,e=>t+=te(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf("&",a))>=0;){t+=e.slice(i,a),n.startEntity(r);let s=n.write(e,a+1);if(s<0){i=a+n.end();break}i=a+s,a=0===s?i+1:i}let s=t+e.slice(i);return t="",s}}tr(e8),tr(e9),(h=O||(O={})).HTML="http://www.w3.org/1999/xhtml",h.MATHML="http://www.w3.org/1998/Math/MathML",h.SVG="http://www.w3.org/2000/svg",h.XLINK="http://www.w3.org/1999/xlink",h.XML="http://www.w3.org/XML/1998/namespace",h.XMLNS="http://www.w3.org/2000/xmlns/",(p=b||(b={})).TYPE="type",p.ACTION="action",p.ENCODING="encoding",p.PROMPT="prompt",p.NAME="name",p.COLOR="color",p.FACE="face",p.SIZE="size",(d=R||(R={})).NO_QUIRKS="no-quirks",d.QUIRKS="quirks",d.LIMITED_QUIRKS="limited-quirks",(f=y||(y={})).A="a",f.ADDRESS="address",f.ANNOTATION_XML="annotation-xml",f.APPLET="applet",f.AREA="area",f.ARTICLE="article",f.ASIDE="aside",f.B="b",f.BASE="base",f.BASEFONT="basefont",f.BGSOUND="bgsound",f.BIG="big",f.BLOCKQUOTE="blockquote",f.BODY="body",f.BR="br",f.BUTTON="button",f.CAPTION="caption",f.CENTER="center",f.CODE="code",f.COL="col",f.COLGROUP="colgroup",f.DD="dd",f.DESC="desc",f.DETAILS="details",f.DIALOG="dialog",f.DIR="dir",f.DIV="div",f.DL="dl",f.DT="dt",f.EM="em",f.EMBED="embed",f.FIELDSET="fieldset",f.FIGCAPTION="figcaption",f.FIGURE="figure",f.FONT="font",f.FOOTER="footer",f.FOREIGN_OBJECT="foreignObject",f.FORM="form",f.FRAME="frame",f.FRAMESET="frameset",f.H1="h1",f.H2="h2",f.H3="h3",f.H4="h4",f.H5="h5",f.H6="h6",f.HEAD="head",f.HEADER="header",f.HGROUP="hgroup",f.HR="hr",f.HTML="html",f.I="i",f.IMG="img",f.IMAGE="image",f.INPUT="input",f.IFRAME="iframe",f.KEYGEN="keygen",f.LABEL="label",f.LI="li",f.LINK="link",f.LISTING="listing",f.MAIN="main",f.MALIGNMARK="malignmark",f.MARQUEE="marquee",f.MATH="math",f.MENU="menu",f.META="meta",f.MGLYPH="mglyph",f.MI="mi",f.MO="mo",f.MN="mn",f.MS="ms",f.MTEXT="mtext",f.NAV="nav",f.NOBR="nobr",f.NOFRAMES="noframes",f.NOEMBED="noembed",f.NOSCRIPT="noscript",f.OBJECT="object",f.OL="ol",f.OPTGROUP="optgroup",f.OPTION="option",f.P="p",f.PARAM="param",f.PLAINTEXT="plaintext",f.PRE="pre",f.RB="rb",f.RP="rp",f.RT="rt",f.RTC="rtc",f.RUBY="ruby",f.S="s",f.SCRIPT="script",f.SEARCH="search",f.SECTION="section",f.SELECT="select",f.SOURCE="source",f.SMALL="small",f.SPAN="span",f.STRIKE="strike",f.STRONG="strong",f.STYLE="style",f.SUB="sub",f.SUMMARY="summary",f.SUP="sup",f.TABLE="table",f.TBODY="tbody",f.TEMPLATE="template",f.TEXTAREA="textarea",f.TFOOT="tfoot",f.TD="td",f.TH="th",f.THEAD="thead",f.TITLE="title",f.TR="tr",f.TRACK="track",f.TT="tt",f.U="u",f.UL="ul",f.SVG="svg",f.VAR="var",f.WBR="wbr",f.XMP="xmp",(m=L||(L={}))[m.UNKNOWN=0]="UNKNOWN",m[m.A=1]="A",m[m.ADDRESS=2]="ADDRESS",m[m.ANNOTATION_XML=3]="ANNOTATION_XML",m[m.APPLET=4]="APPLET",m[m.AREA=5]="AREA",m[m.ARTICLE=6]="ARTICLE",m[m.ASIDE=7]="ASIDE",m[m.B=8]="B",m[m.BASE=9]="BASE",m[m.BASEFONT=10]="BASEFONT",m[m.BGSOUND=11]="BGSOUND",m[m.BIG=12]="BIG",m[m.BLOCKQUOTE=13]="BLOCKQUOTE",m[m.BODY=14]="BODY",m[m.BR=15]="BR",m[m.BUTTON=16]="BUTTON",m[m.CAPTION=17]="CAPTION",m[m.CENTER=18]="CENTER",m[m.CODE=19]="CODE",m[m.COL=20]="COL",m[m.COLGROUP=21]="COLGROUP",m[m.DD=22]="DD",m[m.DESC=23]="DESC",m[m.DETAILS=24]="DETAILS",m[m.DIALOG=25]="DIALOG",m[m.DIR=26]="DIR",m[m.DIV=27]="DIV",m[m.DL=28]="DL",m[m.DT=29]="DT",m[m.EM=30]="EM",m[m.EMBED=31]="EMBED",m[m.FIELDSET=32]="FIELDSET",m[m.FIGCAPTION=33]="FIGCAPTION",m[m.FIGURE=34]="FIGURE",m[m.FONT=35]="FONT",m[m.FOOTER=36]="FOOTER",m[m.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",m[m.FORM=38]="FORM",m[m.FRAME=39]="FRAME",m[m.FRAMESET=40]="FRAMESET",m[m.H1=41]="H1",m[m.H2=42]="H2",m[m.H3=43]="H3",m[m.H4=44]="H4",m[m.H5=45]="H5",m[m.H6=46]="H6",m[m.HEAD=47]="HEAD",m[m.HEADER=48]="HEADER",m[m.HGROUP=49]="HGROUP",m[m.HR=50]="HR",m[m.HTML=51]="HTML",m[m.I=52]="I",m[m.IMG=53]="IMG",m[m.IMAGE=54]="IMAGE",m[m.INPUT=55]="INPUT",m[m.IFRAME=56]="IFRAME",m[m.KEYGEN=57]="KEYGEN",m[m.LABEL=58]="LABEL",m[m.LI=59]="LI",m[m.LINK=60]="LINK",m[m.LISTING=61]="LISTING",m[m.MAIN=62]="MAIN",m[m.MALIGNMARK=63]="MALIGNMARK",m[m.MARQUEE=64]="MARQUEE",m[m.MATH=65]="MATH",m[m.MENU=66]="MENU",m[m.META=67]="META",m[m.MGLYPH=68]="MGLYPH",m[m.MI=69]="MI",m[m.MO=70]="MO",m[m.MN=71]="MN",m[m.MS=72]="MS",m[m.MTEXT=73]="MTEXT",m[m.NAV=74]="NAV",m[m.NOBR=75]="NOBR",m[m.NOFRAMES=76]="NOFRAMES",m[m.NOEMBED=77]="NOEMBED",m[m.NOSCRIPT=78]="NOSCRIPT",m[m.OBJECT=79]="OBJECT",m[m.OL=80]="OL",m[m.OPTGROUP=81]="OPTGROUP",m[m.OPTION=82]="OPTION",m[m.P=83]="P",m[m.PARAM=84]="PARAM",m[m.PLAINTEXT=85]="PLAINTEXT",m[m.PRE=86]="PRE",m[m.RB=87]="RB",m[m.RP=88]="RP",m[m.RT=89]="RT",m[m.RTC=90]="RTC",m[m.RUBY=91]="RUBY",m[m.S=92]="S",m[m.SCRIPT=93]="SCRIPT",m[m.SEARCH=94]="SEARCH",m[m.SECTION=95]="SECTION",m[m.SELECT=96]="SELECT",m[m.SOURCE=97]="SOURCE",m[m.SMALL=98]="SMALL",m[m.SPAN=99]="SPAN",m[m.STRIKE=100]="STRIKE",m[m.STRONG=101]="STRONG",m[m.STYLE=102]="STYLE",m[m.SUB=103]="SUB",m[m.SUMMARY=104]="SUMMARY",m[m.SUP=105]="SUP",m[m.TABLE=106]="TABLE",m[m.TBODY=107]="TBODY",m[m.TEMPLATE=108]="TEMPLATE",m[m.TEXTAREA=109]="TEXTAREA",m[m.TFOOT=110]="TFOOT",m[m.TD=111]="TD",m[m.TH=112]="TH",m[m.THEAD=113]="THEAD",m[m.TITLE=114]="TITLE",m[m.TR=115]="TR",m[m.TRACK=116]="TRACK",m[m.TT=117]="TT",m[m.U=118]="U",m[m.UL=119]="UL",m[m.SVG=120]="SVG",m[m.VAR=121]="VAR",m[m.WBR=122]="WBR",m[m.XMP=123]="XMP";let ti=new Map([[y.A,L.A],[y.ADDRESS,L.ADDRESS],[y.ANNOTATION_XML,L.ANNOTATION_XML],[y.APPLET,L.APPLET],[y.AREA,L.AREA],[y.ARTICLE,L.ARTICLE],[y.ASIDE,L.ASIDE],[y.B,L.B],[y.BASE,L.BASE],[y.BASEFONT,L.BASEFONT],[y.BGSOUND,L.BGSOUND],[y.BIG,L.BIG],[y.BLOCKQUOTE,L.BLOCKQUOTE],[y.BODY,L.BODY],[y.BR,L.BR],[y.BUTTON,L.BUTTON],[y.CAPTION,L.CAPTION],[y.CENTER,L.CENTER],[y.CODE,L.CODE],[y.COL,L.COL],[y.COLGROUP,L.COLGROUP],[y.DD,L.DD],[y.DESC,L.DESC],[y.DETAILS,L.DETAILS],[y.DIALOG,L.DIALOG],[y.DIR,L.DIR],[y.DIV,L.DIV],[y.DL,L.DL],[y.DT,L.DT],[y.EM,L.EM],[y.EMBED,L.EMBED],[y.FIELDSET,L.FIELDSET],[y.FIGCAPTION,L.FIGCAPTION],[y.FIGURE,L.FIGURE],[y.FONT,L.FONT],[y.FOOTER,L.FOOTER],[y.FOREIGN_OBJECT,L.FOREIGN_OBJECT],[y.FORM,L.FORM],[y.FRAME,L.FRAME],[y.FRAMESET,L.FRAMESET],[y.H1,L.H1],[y.H2,L.H2],[y.H3,L.H3],[y.H4,L.H4],[y.H5,L.H5],[y.H6,L.H6],[y.HEAD,L.HEAD],[y.HEADER,L.HEADER],[y.HGROUP,L.HGROUP],[y.HR,L.HR],[y.HTML,L.HTML],[y.I,L.I],[y.IMG,L.IMG],[y.IMAGE,L.IMAGE],[y.INPUT,L.INPUT],[y.IFRAME,L.IFRAME],[y.KEYGEN,L.KEYGEN],[y.LABEL,L.LABEL],[y.LI,L.LI],[y.LINK,L.LINK],[y.LISTING,L.LISTING],[y.MAIN,L.MAIN],[y.MALIGNMARK,L.MALIGNMARK],[y.MARQUEE,L.MARQUEE],[y.MATH,L.MATH],[y.MENU,L.MENU],[y.META,L.META],[y.MGLYPH,L.MGLYPH],[y.MI,L.MI],[y.MO,L.MO],[y.MN,L.MN],[y.MS,L.MS],[y.MTEXT,L.MTEXT],[y.NAV,L.NAV],[y.NOBR,L.NOBR],[y.NOFRAMES,L.NOFRAMES],[y.NOEMBED,L.NOEMBED],[y.NOSCRIPT,L.NOSCRIPT],[y.OBJECT,L.OBJECT],[y.OL,L.OL],[y.OPTGROUP,L.OPTGROUP],[y.OPTION,L.OPTION],[y.P,L.P],[y.PARAM,L.PARAM],[y.PLAINTEXT,L.PLAINTEXT],[y.PRE,L.PRE],[y.RB,L.RB],[y.RP,L.RP],[y.RT,L.RT],[y.RTC,L.RTC],[y.RUBY,L.RUBY],[y.S,L.S],[y.SCRIPT,L.SCRIPT],[y.SEARCH,L.SEARCH],[y.SECTION,L.SECTION],[y.SELECT,L.SELECT],[y.SOURCE,L.SOURCE],[y.SMALL,L.SMALL],[y.SPAN,L.SPAN],[y.STRIKE,L.STRIKE],[y.STRONG,L.STRONG],[y.STYLE,L.STYLE],[y.SUB,L.SUB],[y.SUMMARY,L.SUMMARY],[y.SUP,L.SUP],[y.TABLE,L.TABLE],[y.TBODY,L.TBODY],[y.TEMPLATE,L.TEMPLATE],[y.TEXTAREA,L.TEXTAREA],[y.TFOOT,L.TFOOT],[y.TD,L.TD],[y.TH,L.TH],[y.THEAD,L.THEAD],[y.TITLE,L.TITLE],[y.TR,L.TR],[y.TRACK,L.TRACK],[y.TT,L.TT],[y.U,L.U],[y.UL,L.UL],[y.SVG,L.SVG],[y.VAR,L.VAR],[y.WBR,L.WBR],[y.XMP,L.XMP]]);function ta(e){var t;return null!==(t=ti.get(e))&&void 0!==t?t:L.UNKNOWN}let ts=L,to={[O.HTML]:new Set([ts.ADDRESS,ts.APPLET,ts.AREA,ts.ARTICLE,ts.ASIDE,ts.BASE,ts.BASEFONT,ts.BGSOUND,ts.BLOCKQUOTE,ts.BODY,ts.BR,ts.BUTTON,ts.CAPTION,ts.CENTER,ts.COL,ts.COLGROUP,ts.DD,ts.DETAILS,ts.DIR,ts.DIV,ts.DL,ts.DT,ts.EMBED,ts.FIELDSET,ts.FIGCAPTION,ts.FIGURE,ts.FOOTER,ts.FORM,ts.FRAME,ts.FRAMESET,ts.H1,ts.H2,ts.H3,ts.H4,ts.H5,ts.H6,ts.HEAD,ts.HEADER,ts.HGROUP,ts.HR,ts.HTML,ts.IFRAME,ts.IMG,ts.INPUT,ts.LI,ts.LINK,ts.LISTING,ts.MAIN,ts.MARQUEE,ts.MENU,ts.META,ts.NAV,ts.NOEMBED,ts.NOFRAMES,ts.NOSCRIPT,ts.OBJECT,ts.OL,ts.P,ts.PARAM,ts.PLAINTEXT,ts.PRE,ts.SCRIPT,ts.SECTION,ts.SELECT,ts.SOURCE,ts.STYLE,ts.SUMMARY,ts.TABLE,ts.TBODY,ts.TD,ts.TEMPLATE,ts.TEXTAREA,ts.TFOOT,ts.TH,ts.THEAD,ts.TITLE,ts.TR,ts.TRACK,ts.UL,ts.WBR,ts.XMP]),[O.MATHML]:new Set([ts.MI,ts.MO,ts.MN,ts.MS,ts.MTEXT,ts.ANNOTATION_XML]),[O.SVG]:new Set([ts.TITLE,ts.FOREIGN_OBJECT,ts.DESC]),[O.XLINK]:new Set,[O.XML]:new Set,[O.XMLNS]:new Set},tl=new Set([ts.H1,ts.H2,ts.H3,ts.H4,ts.H5,ts.H6]);y.STYLE,y.SCRIPT,y.XMP,y.IFRAME,y.NOEMBED,y.NOFRAMES,y.PLAINTEXT,(E=P||(P={}))[E.DATA=0]="DATA",E[E.RCDATA=1]="RCDATA",E[E.RAWTEXT=2]="RAWTEXT",E[E.SCRIPT_DATA=3]="SCRIPT_DATA",E[E.PLAINTEXT=4]="PLAINTEXT",E[E.TAG_OPEN=5]="TAG_OPEN",E[E.END_TAG_OPEN=6]="END_TAG_OPEN",E[E.TAG_NAME=7]="TAG_NAME",E[E.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",E[E.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",E[E.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",E[E.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",E[E.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",E[E.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",E[E.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",E[E.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",E[E.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",E[E.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",E[E.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",E[E.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",E[E.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",E[E.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",E[E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",E[E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",E[E.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",E[E.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",E[E.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",E[E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",E[E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",E[E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",E[E.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",E[E.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",E[E.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",E[E.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",E[E.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",E[E.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",E[E.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",E[E.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",E[E.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",E[E.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",E[E.BOGUS_COMMENT=40]="BOGUS_COMMENT",E[E.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",E[E.COMMENT_START=42]="COMMENT_START",E[E.COMMENT_START_DASH=43]="COMMENT_START_DASH",E[E.COMMENT=44]="COMMENT",E[E.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",E[E.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",E[E.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",E[E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",E[E.COMMENT_END_DASH=49]="COMMENT_END_DASH",E[E.COMMENT_END=50]="COMMENT_END",E[E.COMMENT_END_BANG=51]="COMMENT_END_BANG",E[E.DOCTYPE=52]="DOCTYPE",E[E.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",E[E.DOCTYPE_NAME=54]="DOCTYPE_NAME",E[E.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",E[E.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",E[E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",E[E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",E[E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",E[E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",E[E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",E[E.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",E[E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",E[E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",E[E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",E[E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",E[E.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",E[E.CDATA_SECTION=68]="CDATA_SECTION",E[E.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",E[E.CDATA_SECTION_END=70]="CDATA_SECTION_END",E[E.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",E[E.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let tc={DATA:P.DATA,RCDATA:P.RCDATA,RAWTEXT:P.RAWTEXT,SCRIPT_DATA:P.SCRIPT_DATA,PLAINTEXT:P.PLAINTEXT,CDATA_SECTION:P.CDATA_SECTION};function tu(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function th(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z||tu(e)}function tp(e){return th(e)||e>=A.DIGIT_0&&e<=A.DIGIT_9}function td(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function tf(e){return td(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}class tm{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=P.DATA,this.returnState=P.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new e4(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new tn(e8,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(_.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(_.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{var t;let n=(t=e)===A.NULL?_.nullCharacterReference:t>1114111?_.characterReferenceOutsideUnicodeRange:e3(t)?_.surrogateCharacterReference:e5(t)?_.noncharacterCharacterReference:e2(t)||t===A.CARRIAGE_RETURN?_.controlCharacterReference:null;n&&this._err(n,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(_.endTagWithAttributes),e.selfClosing&&this._err(_.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case N.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case N.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case N.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:N.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=td(e)?N.WHITESPACE_CHARACTER:e===A.NULL?N.NULL_CHARACTER:N.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(N.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=P.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?D.Attribute:D.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===P.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===P.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===P.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case P.DATA:this._stateData(e);break;case P.RCDATA:this._stateRcdata(e);break;case P.RAWTEXT:this._stateRawtext(e);break;case P.SCRIPT_DATA:this._stateScriptData(e);break;case P.PLAINTEXT:this._statePlaintext(e);break;case P.TAG_OPEN:this._stateTagOpen(e);break;case P.END_TAG_OPEN:this._stateEndTagOpen(e);break;case P.TAG_NAME:this._stateTagName(e);break;case P.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case P.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case P.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case P.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case P.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case P.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case P.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case P.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case P.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case P.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case P.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case P.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case P.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case P.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case P.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case P.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case P.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case P.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case P.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case P.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case P.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case P.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case P.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case P.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case P.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case P.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case P.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case P.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case P.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case P.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case P.BOGUS_COMMENT:this._stateBogusComment(e);break;case P.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case P.COMMENT_START:this._stateCommentStart(e);break;case P.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case P.COMMENT:this._stateComment(e);break;case P.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case P.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case P.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case P.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case P.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case P.COMMENT_END:this._stateCommentEnd(e);break;case P.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case P.DOCTYPE:this._stateDoctype(e);break;case P.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case P.DOCTYPE_NAME:this._stateDoctypeName(e);break;case P.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case P.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case P.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case P.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case P.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case P.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case P.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case P.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case P.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case P.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case P.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case P.CDATA_SECTION:this._stateCdataSection(e);break;case P.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case P.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case P.CHARACTER_REFERENCE:this._stateCharacterReference();break;case P.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case A.LESS_THAN_SIGN:this.state=P.TAG_OPEN;break;case A.AMPERSAND:this._startCharacterReference();break;case A.NULL:this._err(_.unexpectedNullCharacter),this._emitCodePoint(e);break;case A.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case A.AMPERSAND:this._startCharacterReference();break;case A.LESS_THAN_SIGN:this.state=P.RCDATA_LESS_THAN_SIGN;break;case A.NULL:this._err(_.unexpectedNullCharacter),this._emitChars("�");break;case A.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case A.LESS_THAN_SIGN:this.state=P.RAWTEXT_LESS_THAN_SIGN;break;case A.NULL:this._err(_.unexpectedNullCharacter),this._emitChars("�");break;case A.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case A.LESS_THAN_SIGN:this.state=P.SCRIPT_DATA_LESS_THAN_SIGN;break;case A.NULL:this._err(_.unexpectedNullCharacter),this._emitChars("�");break;case A.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case A.NULL:this._err(_.unexpectedNullCharacter),this._emitChars("�");break;case A.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(th(e))this._createStartTagToken(),this.state=P.TAG_NAME,this._stateTagName(e);else switch(e){case A.EXCLAMATION_MARK:this.state=P.MARKUP_DECLARATION_OPEN;break;case A.SOLIDUS:this.state=P.END_TAG_OPEN;break;case A.QUESTION_MARK:this._err(_.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=P.BOGUS_COMMENT,this._stateBogusComment(e);break;case A.EOF:this._err(_.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(_.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=P.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(th(e))this._createEndTagToken(),this.state=P.TAG_NAME,this._stateTagName(e);else switch(e){case A.GREATER_THAN_SIGN:this._err(_.missingEndTagName),this.state=P.DATA;break;case A.EOF:this._err(_.eofBeforeTagName),this._emitChars("");break;case A.NULL:this._err(_.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case A.EOF:this._err(_.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=P.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===A.SOLIDUS?this.state=P.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:th(e)?(this._emitChars("<"),this.state=P.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=P.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){th(e)?(this.state=P.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case A.NULL:this._err(_.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case A.EOF:this._err(_.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===A.SOLIDUS?(this.state=P.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(e0.SCRIPT,!1)&&tf(this.preprocessor.peek(e0.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==O.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(tk,O.HTML)}clearBackToTableBodyContext(){this.clearBackTo(tC,O.HTML)}clearBackToTableRowContext(){this.clearBackTo(tS,O.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===L.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===L.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case O.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case O.SVG:if(tI.has(r))return!1;break;case O.MATHML:if(tN.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,tg)}hasInListItemScope(e){return this.hasInDynamicScope(e,tA)}hasInButtonScope(e){return this.hasInDynamicScope(e,t_)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case O.HTML:if(tl.has(t))return!0;if(tg.has(t))return!1;break;case O.SVG:if(tI.has(t))return!1;break;case O.MATHML:if(tN.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===O.HTML)switch(this.tagIDs[t]){case e:return!0;case L.TABLE:case L.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===O.HTML)switch(this.tagIDs[e]){case L.TBODY:case L.THEAD:case L.TFOOT:return!0;case L.TABLE:case L.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===O.HTML)switch(this.tagIDs[t]){case e:return!0;case L.OPTION:case L.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;tE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;tT.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&tT.has(this.currentTagId);)this.pop()}}(T=M||(M={}))[T.Marker=0]="Marker",T[T.Element=1]="Element";let tb={type:M.Marker};class tR{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e[e.name,e.value])),i=0;for(let e=0;er.get(e.name)===e.value)&&(i+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(tb)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:M.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:M.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(tb);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===M.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===M.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===M.Element&&t.element===e)}}let ty={createDocument:()=>({nodeName:"#document",mode:R.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>"#documentType"===e.nodeName);i?(i.name=t,i.publicId=n,i.systemId=r):ty.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(ty.isTextNode(n)){n.value+=t;return}}ty.appendChild(e,ty.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ty.isTextNode(r)?r.value+=t:ty.insertBefore(e,ty.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;re.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},tL="html",tP=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],tM=[...tP,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],tx=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),tv=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],tF=[...tv,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function tB(e,t){return t.some(t=>e.startsWith(t))}let tw={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},tH=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),tU=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:O.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:O.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:O.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:O.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:O.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:O.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:O.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:O.XML}],["xml:space",{prefix:"xml",name:"space",namespace:O.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:O.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:O.XMLNS}]]),tG=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),tY=new Set([L.B,L.BIG,L.BLOCKQUOTE,L.BODY,L.BR,L.CENTER,L.CODE,L.DD,L.DIV,L.DL,L.DT,L.EM,L.EMBED,L.H1,L.H2,L.H3,L.H4,L.H5,L.H6,L.HEAD,L.HR,L.I,L.IMG,L.LI,L.LISTING,L.MENU,L.META,L.NOBR,L.OL,L.P,L.PRE,L.RUBY,L.S,L.SMALL,L.SPAN,L.STRONG,L.STRIKE,L.SUB,L.SUP,L.TABLE,L.TT,L.U,L.UL,L.VAR]);function tz(e){for(let t=0;t0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||this.treeAdapter.getNamespaceURI(e)===O.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,O.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=x.TEXT}switchToPlaintextParsing(){this.insertionMode=x.TEXT,this.originalInsertionMode=x.IN_BODY,this.tokenizer.state=tc.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===y.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===O.HTML)switch(this.fragmentContextID){case L.TITLE:case L.TEXTAREA:this.tokenizer.state=tc.RCDATA;break;case L.STYLE:case L.XMP:case L.IFRAME:case L.NOEMBED:case L.NOFRAMES:case L.NOSCRIPT:this.tokenizer.state=tc.RAWTEXT;break;case L.SCRIPT:this.tokenizer.state=tc.SCRIPT_DATA;break;case L.PLAINTEXT:this.tokenizer.state=tc.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,O.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,O.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(y.HTML,O.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,L.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,a=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===N.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==L.SVG||this.treeAdapter.getTagName(t)!==y.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==O.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===L.MGLYPH||e.tagID===L.MALIGNMARK)&&!this._isIntegrationPoint(n,t,O.HTML)))}_processToken(e){switch(e.type){case N.CHARACTER:this.onCharacter(e);break;case N.NULL_CHARACTER:this.onNullCharacter(e);break;case N.COMMENT:this.onComment(e);break;case N.DOCTYPE:this.onDoctype(e);break;case N.START_TAG:this._processStartTag(e);break;case N.END_TAG:this.onEndTag(e);break;case N.EOF:this.onEof(e);break;case N.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return(!n||n===O.HTML)&&function(e,t,n){if(t===O.MATHML&&e===L.ANNOTATION_XML){for(let e=0;ee.type===M.Marker||this.openElements.contains(e.element)),n=t<0?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=x.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(L.P),this.openElements.popUntilTagNamePopped(L.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case L.TR:this.insertionMode=x.IN_ROW;return;case L.TBODY:case L.THEAD:case L.TFOOT:this.insertionMode=x.IN_TABLE_BODY;return;case L.CAPTION:this.insertionMode=x.IN_CAPTION;return;case L.COLGROUP:this.insertionMode=x.IN_COLUMN_GROUP;return;case L.TABLE:this.insertionMode=x.IN_TABLE;return;case L.BODY:this.insertionMode=x.IN_BODY;return;case L.FRAMESET:this.insertionMode=x.IN_FRAMESET;return;case L.SELECT:this._resetInsertionModeForSelect(e);return;case L.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case L.HTML:this.insertionMode=this.headElement?x.AFTER_HEAD:x.BEFORE_HEAD;return;case L.TD:case L.TH:if(e>0){this.insertionMode=x.IN_CELL;return}break;case L.HEAD:if(e>0){this.insertionMode=x.IN_HEAD;return}}this.insertionMode=x.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===L.TEMPLATE)break;if(e===L.TABLE){this.insertionMode=x.IN_SELECT_IN_TABLE;return}}this.insertionMode=x.IN_SELECT}_isElementCausesFosterParenting(e){return tQ.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case L.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===O.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case L.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return to[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){this._insertCharacters(e),this.framesetOk=!1;return}switch(this.insertionMode){case x.INITIAL:t$(this,e);break;case x.BEFORE_HTML:t1(this,e);break;case x.BEFORE_HEAD:t0(this,e);break;case x.IN_HEAD:t5(this,e);break;case x.IN_HEAD_NO_SCRIPT:t4(this,e);break;case x.AFTER_HEAD:t6(this,e);break;case x.IN_BODY:case x.IN_CAPTION:case x.IN_CELL:case x.IN_TEMPLATE:t7(this,e);break;case x.TEXT:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:nl(this,e);break;case x.IN_TABLE_TEXT:nd(this,e);break;case x.IN_COLUMN_GROUP:nT(this,e);break;case x.AFTER_BODY:nD(this,e);break;case x.AFTER_AFTER_BODY:nO(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){e.chars="�",this._insertCharacters(e);return}switch(this.insertionMode){case x.INITIAL:t$(this,e);break;case x.BEFORE_HTML:t1(this,e);break;case x.BEFORE_HEAD:t0(this,e);break;case x.IN_HEAD:t5(this,e);break;case x.IN_HEAD_NO_SCRIPT:t4(this,e);break;case x.AFTER_HEAD:t6(this,e);break;case x.TEXT:this._insertCharacters(e);break;case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:nl(this,e);break;case x.IN_COLUMN_GROUP:nT(this,e);break;case x.AFTER_BODY:nD(this,e);break;case x.AFTER_AFTER_BODY:nO(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){tJ(this,e);return}switch(this.insertionMode){case x.INITIAL:case x.BEFORE_HTML:case x.BEFORE_HEAD:case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:case x.IN_BODY:case x.IN_TABLE:case x.IN_CAPTION:case x.IN_COLUMN_GROUP:case x.IN_TABLE_BODY:case x.IN_ROW:case x.IN_CELL:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:case x.IN_TEMPLATE:case x.IN_FRAMESET:case x.AFTER_FRAMESET:tJ(this,e);break;case x.IN_TABLE_TEXT:nf(this,e);break;case x.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case x.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?R.QUIRKS:function(e){if(e.name!==tL)return R.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return R.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),tx.has(n))return R.QUIRKS;let e=null===t?tM:tP;if(tB(n,e))return R.QUIRKS;if(tB(n,e=null===t?tv:tF))return R.LIMITED_QUIRKS}return R.NO_QUIRKS}(t);t.name===tL&&null===t.publicId&&(null===t.systemId||"about:legacy-compat"===t.systemId)||e._err(t,_.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=x.BEFORE_HTML}(this,e);break;case x.BEFORE_HEAD:case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:this._err(e,_.misplacedDoctype);break;case x.IN_TABLE_TEXT:nf(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,_.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){let t=e.tagID;return t===L.FONT&&e.attrs.some(({name:e})=>e===b.COLOR||e===b.SIZE||e===b.FACE)||tY.has(t)}(t))nb(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===O.MATHML?tz(t):r===O.SVG&&(function(e){let t=tG.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=ta(e.tagName))}(t),tq(t)),tW(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case x.INITIAL:t$(this,e);break;case x.BEFORE_HTML:e.tagID===L.HTML?(this._insertElement(e,O.HTML),this.insertionMode=x.BEFORE_HEAD):t1(this,e);break;case x.BEFORE_HEAD:!function(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.HEAD:e._insertElement(t,O.HTML),e.headElement=e.openElements.current,e.insertionMode=x.IN_HEAD;break;default:t0(e,t)}}(this,e);break;case x.IN_HEAD:t3(this,e);break;case x.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.BASEFONT:case L.BGSOUND:case L.HEAD:case L.LINK:case L.META:case L.NOFRAMES:case L.STYLE:t3(e,t);break;case L.NOSCRIPT:e._err(t,_.nestedNoscriptInHead);break;default:t4(e,t)}}(this,e);break;case x.AFTER_HEAD:!function(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.BODY:e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=x.IN_BODY;break;case L.FRAMESET:e._insertElement(t,O.HTML),e.insertionMode=x.IN_FRAMESET;break;case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:case L.NOFRAMES:case L.SCRIPT:case L.STYLE:case L.TEMPLATE:case L.TITLE:e._err(t,_.abandonedHeadElementChild),e.openElements.push(e.headElement,L.HEAD),t3(e,t),e.openElements.remove(e.headElement);break;case L.HEAD:e._err(t,_.misplacedStartTagForHeadElement);break;default:t6(e,t)}}(this,e);break;case x.IN_BODY:ni(this,e);break;case x.IN_TABLE:nc(this,e);break;case x.IN_TABLE_TEXT:nf(this,e);break;case x.IN_CAPTION:!function(e,t){let n=t.tagID;nm.has(n)?e.openElements.hasInTableScope(L.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(L.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_TABLE,nc(e,t)):ni(e,t)}(this,e);break;case x.IN_COLUMN_GROUP:nE(this,e);break;case x.IN_TABLE_BODY:ng(this,e);break;case x.IN_ROW:n_(this,e);break;case x.IN_CELL:!function(e,t){let n=t.tagID;nm.has(n)?(e.openElements.hasInTableScope(L.TD)||e.openElements.hasInTableScope(L.TH))&&(e._closeTableCell(),n_(e,t)):ni(e,t)}(this,e);break;case x.IN_SELECT:nI(this,e);break;case x.IN_SELECT_IN_TABLE:!function(e,t){let n=t.tagID;n===L.CAPTION||n===L.TABLE||n===L.TBODY||n===L.TFOOT||n===L.THEAD||n===L.TR||n===L.TD||n===L.TH?(e.openElements.popUntilTagNamePopped(L.SELECT),e._resetInsertionMode(),e._processStartTag(t)):nI(e,t)}(this,e);break;case x.IN_TEMPLATE:!function(e,t){switch(t.tagID){case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:case L.NOFRAMES:case L.SCRIPT:case L.STYLE:case L.TEMPLATE:case L.TITLE:t3(e,t);break;case L.CAPTION:case L.COLGROUP:case L.TBODY:case L.TFOOT:case L.THEAD:e.tmplInsertionModeStack[0]=x.IN_TABLE,e.insertionMode=x.IN_TABLE,nc(e,t);break;case L.COL:e.tmplInsertionModeStack[0]=x.IN_COLUMN_GROUP,e.insertionMode=x.IN_COLUMN_GROUP,nE(e,t);break;case L.TR:e.tmplInsertionModeStack[0]=x.IN_TABLE_BODY,e.insertionMode=x.IN_TABLE_BODY,ng(e,t);break;case L.TD:case L.TH:e.tmplInsertionModeStack[0]=x.IN_ROW,e.insertionMode=x.IN_ROW,n_(e,t);break;default:e.tmplInsertionModeStack[0]=x.IN_BODY,e.insertionMode=x.IN_BODY,ni(e,t)}}(this,e);break;case x.AFTER_BODY:e.tagID===L.HTML?ni(this,e):nD(this,e);break;case x.IN_FRAMESET:!function(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.FRAMESET:e._insertElement(t,O.HTML);break;case L.FRAME:e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case L.NOFRAMES:t3(e,t)}}(this,e);break;case x.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.NOFRAMES:t3(e,t)}}(this,e);break;case x.AFTER_AFTER_BODY:e.tagID===L.HTML?ni(this,e):nO(this,e);break;case x.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.NOFRAMES:t3(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===L.P||t.tagID===L.BR){nb(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===O.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){var t;switch(this.insertionMode){case x.INITIAL:t$(this,e);break;case x.BEFORE_HTML:!function(e,t){let n=t.tagID;(n===L.HTML||n===L.HEAD||n===L.BODY||n===L.BR)&&t1(e,t)}(this,e);break;case x.BEFORE_HEAD:!function(e,t){let n=t.tagID;n===L.HEAD||n===L.BODY||n===L.HTML||n===L.BR?t0(e,t):e._err(t,_.endTagWithoutMatchingOpenElement)}(this,e);break;case x.IN_HEAD:!function(e,t){switch(t.tagID){case L.HEAD:e.openElements.pop(),e.insertionMode=x.AFTER_HEAD;break;case L.BODY:case L.BR:case L.HTML:t5(e,t);break;case L.TEMPLATE:t2(e,t);break;default:e._err(t,_.endTagWithoutMatchingOpenElement)}}(this,e);break;case x.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case L.NOSCRIPT:e.openElements.pop(),e.insertionMode=x.IN_HEAD;break;case L.BR:t4(e,t);break;default:e._err(t,_.endTagWithoutMatchingOpenElement)}}(this,e);break;case x.AFTER_HEAD:!function(e,t){switch(t.tagID){case L.BODY:case L.HTML:case L.BR:t6(e,t);break;case L.TEMPLATE:t2(e,t);break;default:e._err(t,_.endTagWithoutMatchingOpenElement)}}(this,e);break;case x.IN_BODY:ns(this,e);break;case x.TEXT:e.tagID===L.SCRIPT&&(null===(t=this.scriptHandler)||void 0===t||t.call(this,this.openElements.current)),this.openElements.pop(),this.insertionMode=this.originalInsertionMode;break;case x.IN_TABLE:nu(this,e);break;case x.IN_TABLE_TEXT:nf(this,e);break;case x.IN_CAPTION:!function(e,t){let n=t.tagID;switch(n){case L.CAPTION:case L.TABLE:e.openElements.hasInTableScope(L.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(L.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_TABLE,n===L.TABLE&&nu(e,t));break;case L.BODY:case L.COL:case L.COLGROUP:case L.HTML:case L.TBODY:case L.TD:case L.TFOOT:case L.TH:case L.THEAD:case L.TR:break;default:ns(e,t)}}(this,e);break;case x.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case L.COLGROUP:e.openElements.currentTagId===L.COLGROUP&&(e.openElements.pop(),e.insertionMode=x.IN_TABLE);break;case L.TEMPLATE:t2(e,t);break;case L.COL:break;default:nT(e,t)}}(this,e);break;case x.IN_TABLE_BODY:nA(this,e);break;case x.IN_ROW:nN(this,e);break;case x.IN_CELL:!function(e,t){let n=t.tagID;switch(n){case L.TD:case L.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_ROW);break;case L.TABLE:case L.TBODY:case L.TFOOT:case L.THEAD:case L.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),nN(e,t));break;case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:break;default:ns(e,t)}}(this,e);break;case x.IN_SELECT:nS(this,e);break;case x.IN_SELECT_IN_TABLE:!function(e,t){let n=t.tagID;n===L.CAPTION||n===L.TABLE||n===L.TBODY||n===L.TFOOT||n===L.THEAD||n===L.TR||n===L.TD||n===L.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(L.SELECT),e._resetInsertionMode(),e.onEndTag(t)):nS(e,t)}(this,e);break;case x.IN_TEMPLATE:e.tagID===L.TEMPLATE&&t2(this,e);break;case x.AFTER_BODY:nk(this,e);break;case x.IN_FRAMESET:e.tagID!==L.FRAMESET||this.openElements.isRootHtmlElementCurrent()||(this.openElements.pop(),this.fragmentContext||this.openElements.currentTagId===L.FRAMESET||(this.insertionMode=x.AFTER_FRAMESET));break;case x.AFTER_FRAMESET:e.tagID===L.HTML&&(this.insertionMode=x.AFTER_AFTER_FRAMESET);break;case x.AFTER_AFTER_BODY:nO(this,e)}}onEof(e){switch(this.insertionMode){case x.INITIAL:t$(this,e);break;case x.BEFORE_HTML:t1(this,e);break;case x.BEFORE_HEAD:t0(this,e);break;case x.IN_HEAD:t5(this,e);break;case x.IN_HEAD_NO_SCRIPT:t4(this,e);break;case x.AFTER_HEAD:t6(this,e);break;case x.IN_BODY:case x.IN_TABLE:case x.IN_CAPTION:case x.IN_COLUMN_GROUP:case x.IN_TABLE_BODY:case x.IN_ROW:case x.IN_CELL:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:no(this,e);break;case x.TEXT:this._err(e,_.eofInElementThatCanContainOnlyText),this.openElements.pop(),this.insertionMode=this.originalInsertionMode,this.onEof(e);break;case x.IN_TABLE_TEXT:nf(this,e);break;case x.IN_TEMPLATE:nC(this,e);break;case x.AFTER_BODY:case x.IN_FRAMESET:case x.AFTER_FRAMESET:case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:tZ(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===A.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:case x.TEXT:case x.IN_COLUMN_GROUP:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:case x.IN_FRAMESET:case x.AFTER_FRAMESET:this._insertCharacters(e);break;case x.IN_BODY:case x.IN_CAPTION:case x.IN_CELL:case x.IN_TEMPLATE:case x.AFTER_BODY:case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:t9(this,e);break;case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:nl(this,e);break;case x.IN_TABLE_TEXT:np(this,e)}}}function tX(e,t){for(let n=0;n<8;n++){let n=function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):na(e,t),n}(e,t);if(!n)break;let r=function(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=function(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);let n=e.activeFormattingElements.getElementEntry(s),o=n&&a>=3;!n||o?(o&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&function(e,t,n){let r=ta(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===L.TEMPLATE&&i===O.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,a,i),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}(e,r,n)}}function tJ(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function tZ(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function t$(e,t){e._err(t,_.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,R.QUIRKS),e.insertionMode=x.BEFORE_HTML,e._processToken(t)}function t1(e,t){e._insertFakeRootElement(),e.insertionMode=x.BEFORE_HEAD,e._processToken(t)}function t0(e,t){e._insertFakeElement(y.HEAD,L.HEAD),e.headElement=e.openElements.current,e.insertionMode=x.IN_HEAD,e._processToken(t)}function t3(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case L.TITLE:e._switchToTextParsing(t,tc.RCDATA);break;case L.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,tc.RAWTEXT):(e._insertElement(t,O.HTML),e.insertionMode=x.IN_HEAD_NO_SCRIPT);break;case L.NOFRAMES:case L.STYLE:e._switchToTextParsing(t,tc.RAWTEXT);break;case L.SCRIPT:e._switchToTextParsing(t,tc.SCRIPT_DATA);break;case L.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=x.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(x.IN_TEMPLATE);break;case L.HEAD:e._err(t,_.misplacedStartTagForHeadElement);break;default:t5(e,t)}}function t2(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==L.TEMPLATE&&e._err(t,_.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(L.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,_.endTagWithoutMatchingOpenElement)}function t5(e,t){e.openElements.pop(),e.insertionMode=x.AFTER_HEAD,e._processToken(t)}function t4(e,t){let n=t.type===N.EOF?_.openElementsLeftAfterEof:_.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=x.IN_HEAD,e._processToken(t)}function t6(e,t){e._insertFakeElement(y.BODY,L.BODY),e.insertionMode=x.IN_BODY,t8(e,t)}function t8(e,t){switch(t.type){case N.CHARACTER:t7(e,t);break;case N.WHITESPACE_CHARACTER:t9(e,t);break;case N.COMMENT:tJ(e,t);break;case N.START_TAG:ni(e,t);break;case N.END_TAG:ns(e,t);break;case N.EOF:no(e,t)}}function t9(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function t7(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ne(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function nt(e){let t=e6(e,b.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function nn(e,t){e._switchToTextParsing(t,tc.RAWTEXT)}function nr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function ni(e,t){switch(t.tagID){case L.I:case L.S:case L.B:case L.U:case L.EM:case L.TT:case L.BIG:case L.CODE:case L.FONT:case L.SMALL:case L.STRIKE:case L.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case L.A:!function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(y.A);n&&(tX(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case L.H1:case L.H2:case L.H3:case L.H4:case L.H5:case L.H6:e.openElements.hasInButtonScope(L.P)&&e._closePElement(),tl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,O.HTML);break;case L.P:case L.DL:case L.OL:case L.UL:case L.DIV:case L.DIR:case L.NAV:case L.MAIN:case L.MENU:case L.ASIDE:case L.CENTER:case L.FIGURE:case L.FOOTER:case L.HEADER:case L.HGROUP:case L.DIALOG:case L.DETAILS:case L.ADDRESS:case L.ARTICLE:case L.SEARCH:case L.SECTION:case L.SUMMARY:case L.FIELDSET:case L.BLOCKQUOTE:case L.FIGCAPTION:e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,O.HTML);break;case L.LI:case L.DD:case L.DT:!function(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===L.LI&&r===L.LI||(n===L.DD||n===L.DT)&&(r===L.DD||r===L.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==L.ADDRESS&&r!==L.DIV&&r!==L.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,O.HTML)}(e,t);break;case L.BR:case L.IMG:case L.WBR:case L.AREA:case L.EMBED:case L.KEYGEN:ne(e,t);break;case L.HR:e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case L.RB:case L.RTC:e.openElements.hasInScope(L.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,O.HTML);break;case L.RT:case L.RP:e.openElements.hasInScope(L.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(L.RTC),e._insertElement(t,O.HTML);break;case L.PRE:case L.LISTING:e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case L.XMP:e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,tc.RAWTEXT);break;case L.SVG:e._reconstructActiveFormattingElements(),tq(t),tW(t),t.selfClosing?e._appendElement(t,O.SVG):e._insertElement(t,O.SVG),t.ackSelfClosing=!0;break;case L.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case L.BASE:case L.LINK:case L.META:case L.STYLE:case L.TITLE:case L.SCRIPT:case L.BGSOUND:case L.BASEFONT:case L.TEMPLATE:t3(e,t);break;case L.BODY:!function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case L.FORM:!function(e,t){let n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,O.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case L.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(L.NOBR)&&(tX(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case L.MATH:e._reconstructActiveFormattingElements(),tz(t),tW(t),t.selfClosing?e._appendElement(t,O.MATHML):e._insertElement(t,O.MATHML),t.ackSelfClosing=!0;break;case L.TABLE:e.treeAdapter.getDocumentMode(e.document)!==R.QUIRKS&&e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=x.IN_TABLE;break;case L.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),nt(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case L.PARAM:case L.TRACK:case L.SOURCE:e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case L.IMAGE:t.tagName=y.IMG,t.tagID=L.IMG,ne(e,t);break;case L.BUTTON:e.openElements.hasInScope(L.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(L.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1;break;case L.APPLET:case L.OBJECT:case L.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case L.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,tc.RAWTEXT);break;case L.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===x.IN_TABLE||e.insertionMode===x.IN_CAPTION||e.insertionMode===x.IN_TABLE_BODY||e.insertionMode===x.IN_ROW||e.insertionMode===x.IN_CELL?x.IN_SELECT_IN_TABLE:x.IN_SELECT;break;case L.OPTION:case L.OPTGROUP:e.openElements.currentTagId===L.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML);break;case L.NOEMBED:case L.NOFRAMES:nn(e,t);break;case L.FRAMESET:!function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,O.HTML),e.insertionMode=x.IN_FRAMESET)}(e,t);break;case L.TEXTAREA:e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.tokenizer.state=tc.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=x.TEXT;break;case L.NOSCRIPT:e.options.scriptingEnabled?nn(e,t):nr(e,t);break;case L.PLAINTEXT:e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.tokenizer.state=tc.PLAINTEXT;break;case L.COL:case L.TH:case L.TD:case L.TR:case L.HEAD:case L.FRAME:case L.TBODY:case L.TFOOT:case L.THEAD:case L.CAPTION:case L.COLGROUP:break;default:nr(e,t)}}function na(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==L.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function ns(e,t){switch(t.tagID){case L.A:case L.B:case L.I:case L.S:case L.U:case L.EM:case L.TT:case L.BIG:case L.CODE:case L.FONT:case L.NOBR:case L.SMALL:case L.STRIKE:case L.STRONG:tX(e,t);break;case L.P:e.openElements.hasInButtonScope(L.P)||e._insertFakeElement(y.P,L.P),e._closePElement();break;case L.DL:case L.UL:case L.OL:case L.DIR:case L.DIV:case L.NAV:case L.PRE:case L.MAIN:case L.MENU:case L.ASIDE:case L.BUTTON:case L.CENTER:case L.FIGURE:case L.FOOTER:case L.HEADER:case L.HGROUP:case L.DIALOG:case L.ADDRESS:case L.ARTICLE:case L.DETAILS:case L.SEARCH:case L.SECTION:case L.SUMMARY:case L.LISTING:case L.FIELDSET:case L.BLOCKQUOTE:case L.FIGCAPTION:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case L.LI:e.openElements.hasInListItemScope(L.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(L.LI),e.openElements.popUntilTagNamePopped(L.LI));break;case L.DD:case L.DT:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case L.H1:case L.H2:case L.H3:case L.H4:case L.H5:case L.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case L.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(y.BR,L.BR),e.openElements.pop(),e.framesetOk=!1;break;case L.BODY:!function(e,t){if(e.openElements.hasInScope(L.BODY)&&(e.insertionMode=x.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case L.HTML:e.openElements.hasInScope(L.BODY)&&(e.insertionMode=x.AFTER_BODY,nk(e,t));break;case L.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(L.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(L.FORM):n&&e.openElements.remove(n))}(e);break;case L.APPLET:case L.OBJECT:case L.MARQUEE:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case L.TEMPLATE:t2(e,t);break;default:na(e,t)}}function no(e,t){e.tmplInsertionModeStack.length>0?nC(e,t):tZ(e,t)}function nl(e,t){if(tQ.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=x.IN_TABLE_TEXT,t.type){case N.CHARACTER:nd(e,t);break;case N.WHITESPACE_CHARACTER:np(e,t)}else nh(e,t)}function nc(e,t){switch(t.tagID){case L.TD:case L.TH:case L.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(y.TBODY,L.TBODY),e.insertionMode=x.IN_TABLE_BODY,ng(e,t);break;case L.STYLE:case L.SCRIPT:case L.TEMPLATE:t3(e,t);break;case L.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(y.COLGROUP,L.COLGROUP),e.insertionMode=x.IN_COLUMN_GROUP,nE(e,t);break;case L.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,O.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case L.TABLE:e.openElements.hasInTableScope(L.TABLE)&&(e.openElements.popUntilTagNamePopped(L.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case L.TBODY:case L.TFOOT:case L.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=x.IN_TABLE_BODY;break;case L.INPUT:nt(t)?e._appendElement(t,O.HTML):nh(e,t),t.ackSelfClosing=!0;break;case L.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,O.HTML),e.insertionMode=x.IN_CAPTION;break;case L.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=x.IN_COLUMN_GROUP;break;default:nh(e,t)}}function nu(e,t){switch(t.tagID){case L.TABLE:e.openElements.hasInTableScope(L.TABLE)&&(e.openElements.popUntilTagNamePopped(L.TABLE),e._resetInsertionMode());break;case L.TEMPLATE:t2(e,t);break;case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:case L.TBODY:case L.TD:case L.TFOOT:case L.TH:case L.THEAD:case L.TR:break;default:nh(e,t)}}function nh(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,t8(e,t),e.fosterParentingEnabled=n}function np(e,t){e.pendingCharacterTokens.push(t)}function nd(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function nf(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===L.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===L.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===L.OPTGROUP&&e.openElements.pop();break;case L.OPTION:e.openElements.currentTagId===L.OPTION&&e.openElements.pop();break;case L.SELECT:e.openElements.hasInSelectScope(L.SELECT)&&(e.openElements.popUntilTagNamePopped(L.SELECT),e._resetInsertionMode());break;case L.TEMPLATE:t2(e,t)}}function nC(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(L.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):tZ(e,t)}function nk(e,t){var n;if(t.tagID===L.HTML){if(e.fragmentContext||(e.insertionMode=x.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===L.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];!r||(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)||e._setEndLocation(r,t)}}else nD(e,t)}function nD(e,t){e.insertionMode=x.IN_BODY,t8(e,t)}function nO(e,t){e.insertionMode=x.IN_BODY,t8(e,t)}function nb(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==O.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}let nR=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function ny(e,t){return function(n){let r;let i=0,a="";for(;r=e.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=t.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}null!=String.prototype.codePointAt||((e,t)=>(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)),ny(/[&<>'"]/g,nR),ny(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),ny(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),y.AREA,y.BASE,y.BASEFONT,y.BGSOUND,y.BR,y.COL,y.EMBED,y.FRAME,y.HR,y.IMG,y.INPUT,y.KEYGEN,y.LINK,y.META,y.PARAM,y.SOURCE,y.TRACK,y.WBR;let nL=nM("end"),nP=nM("start");function nM(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}let nx=function(e){if(null==e)return nF;if("function"==typeof e)return nv(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n":"")+")"})}return u;function u(){var c;let u,h,p,d=nB;if((!t||a(i,o,l[l.length-1]||void 0))&&!1===(d=Array.isArray(c=n(i,l))?c:"number"==typeof c?[!0,c]:null==c?nB:[c])[0])return d;if("children"in i&&i.children&&i.children&&"skip"!==d[0])for(h=(r?i.children.length:-1)+s,p=l.concat(i);h>-1&&h])/gi,nG=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),nY={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function nz(e,t){let n=function(e){let t="root"===e.type?e.children[0]:e;return!!(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=ej("type",{handlers:{root:nW,element:nV,text:nQ,comment:nK,doctype:nj,raw:nX},unknown:nJ}),i={parser:n?new tK(nY):tK.getFragmentParser(void 0,nY),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),nZ(i,nP());let a=function(e,t){let n=t||{};return eY({file:n.file||void 0,location:!1,schema:"svg"===n.space?eN:e_,verbose:n.verbose||!1},e)}(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return(i.stitches&&nH(a,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t}),"root"===a.type&&1===a.children.length&&a.children[0].type===e.type)?a.children[0]:a}function nq(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);let n={type:N.CHARACTER,chars:e.value,location:n1(e)};nZ(t,nP(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function nj(e,t){let n={type:N.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:n1(e)};nZ(t,nP(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function nK(e,t){let n=e.value,r={type:N.COMMENT,data:n,location:n1(e)};nZ(t,nP(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function nX(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,n$(t,nP(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(nU,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function nJ(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type))!function(e,t){t.stitches=!0;let n="children"in e?j({...e,children:[]}):j(e);if("children"in e&&"children"in n){let r=nz({type:"root",children:e.children},t.options);n.children=r.children}nK({type:"comment",value:{stitch:n}},t)}(e,t);else{let t="";throw nG.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function nZ(e,t){n$(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=tc.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function n$(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function n1(e){let t=nP(e)||{line:void 0,column:void 0,offset:void 0},n=nL(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function n0(e){return function(t,n){return nz(t,{...e,file:n})}}let n3=/["&'<>`]/g,n2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n5=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n4=/[|\\{}()[\]^$+*?.]/g,n6=new WeakMap,n8=/[\dA-Fa-f]/,n9=/\d/,n7=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],re={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},rt=["cent","copy","divide","gt","lt","not","para","times"],rn={}.hasOwnProperty,rr={};for(r in re)rn.call(re,r)&&(rr[re[r]]=r);let ri=/[^\dA-Za-z]/;function ra(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!n8.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let i=String.fromCharCode(e);if(rn.call(rr,i)){let e=rr[i],a="&"+e;return n&&n7.includes(e)&&!rt.includes(e)&&(!r||t&&61!==t&&ri.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!n9.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length|^->||--!>|"],rc=["<",">"];function ru(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let rh=/[ \t\n\f\r]/g;function rp(e){return"object"==typeof e?"text"===e.type&&rd(e.value):rd(e)}function rd(e){return""===e.replace(rh,"")}let rf=rT(1),rm=rT(-1),rE=[];function rT(e){return function(t,n,r){let i=t?t.children:rE,a=(n||0)+e,s=i[a];if(!r)for(;s&&rp(s);)a+=e,s=i[a];return s}}let rg={}.hasOwnProperty;function rA(e){return function(t,n,r){return rg.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let r_=rA({body:function(e,t,n){let r=rf(n,t);return!r||"comment"!==r.type},caption:rN,colgroup:rN,dd:function(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=rf(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:rN,html:function(e,t,n){let r=rf(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=rf(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:rI,rt:rI,tbody:function(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:rS,tfoot:function(e,t,n){return!rf(n,t)},th:rS,thead:function(e,t,n){let r=rf(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function rN(e,t,n){let r=rf(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&rp(r.value.charAt(0)))}function rI(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function rS(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let rC=rA({body:function(e){let t=rf(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&rp(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){let r=rm(n,t),i=rf(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&r_(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=rf(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=rm(n,t),i=rf(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&r_(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),rk={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},rD=["<","&"];function rO(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:rs(e.value,Object.assign({},r.settings.characterReferences,{subset:rD}))}let rb=ej("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"":""},doctype:function(e,t,n,r){return""},element:function(e,t,n,r){let i;let a=r.schema,s="svg"!==a.space&&r.settings.omitOptionalTags,o="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=eN);let c=function(e,t){let n;let r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r;let i=eb(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=e.settings.allowDangerousCharacters?0:1,o=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean&&"string"!=typeof n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=rs(i.attribute,Object.assign({},e.settings.characterReferences,{subset:rk.name[a][s]}));return!0===n?l:(n=Array.isArray(n)?(i.commaSeparated?eS:eP)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=rs(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:rk.unquoted[a][s]}))),r!==n&&(e.settings.quoteSmart&&ru(n,o)>ru(n,e.alternative)&&(o=e.alternative),r=o+rs(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?rk.single:rk.double)[a][s],attribute:!0}))+o),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i")),l.push(u),o||s&&r_(e,t,n)||l.push(""),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:rO(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:rO}}),rR={},ry={},rL=[];function rP(e,t,n){return rb(e,t,n,this)}function rM(e){let t=[],n=e&&e.children||rL,r=-1;for(;++r-1&&e.test(String.fromCharCode(t))}}var rj=n(2352);let rK="phrasing",rX=["autolink","link","image","label"];function rJ(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function rZ(e){this.config.enter.autolinkProtocol.call(this,e)}function r$(e){this.config.exit.autolinkProtocol.call(this,e)}function r1(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function r0(e){this.config.exit.autolinkEmail.call(this,e)}function r3(e){this.exit(e)}function r2(e){!function(e,t,n){let r=nx((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(o!==n&&u.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),o=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}return c?(o?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=ru(e,"("),a=ru(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!s[0])return!1;let o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function r4(e,t,n,r){return!(!r6(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function r6(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||rV(n)||rW(n))&&(!t||47!==n)}function r8(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function r9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function r7(){this.buffer()}function ie(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=r8(this.sliceSerialize(e)).toLowerCase()}function it(e){this.exit(e)}function ir(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ii(){this.buffer()}function ia(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=r8(this.sliceSerialize(e)).toLowerCase()}function is(e){this.exit(e)}function io(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),s(),a+=i.move("]")}function il(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),s=n.enter("footnoteDefinition"),o=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),ic)),s(),a}function ic(e,t,n){return 0===t?e:(n?"":" ")+e}io.peek=function(){return"["};let iu=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function ih(e){this.enter({type:"delete",children:[]},e)}function ip(e){this.exit(e)}function id(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"})+i.move("~~"),a(),s}function im(e){return e.length}function iE(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}id.peek=function(){return"~"};function iT(e){return null===e||rz(e)||rV(e)?1:rW(e)?2:void 0}let ig={};function iA(e,t){let n=t||ig;return i_(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function i_(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return iN(e.children,t,n)}return Array.isArray(e)?iN(e,t,n):""}function iN(e,t,n){let r=[],i=-1;for(;++i-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let s=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?a:a+" ".repeat(s-a.length))+e});return l(),c};function iC(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function ik(e){this.exit(e),this.data.inTable=void 0}function iD(e){this.enter({type:"tableRow",children:[]},e)}function iO(e){this.exit(e)}function ib(e){this.enter({type:"tableCell",children:[]},e)}function iR(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,iy));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function iy(e,t){return"|"===t?t:e}function iL(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function iP(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,a=-1;for(;++aa?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s0?(ix(e,e.length,0,t),e):t}let iF={}.hasOwnProperty;function iB(e){let t={},n=-1;for(;++n0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function i$(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,a=0;return function(r){return rq(r)?(e.enter(n),function r(s){return rq(s)&&a++999||93===o&&!r||null===o||91===o||rz(o))return n(o);if(93===o){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return a.includes(r8(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return rz(o)||(r=!0),s++,e.consume(o),92===o?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function i4(e,t,n){let r,i;let a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(o>999||93===t&&!i||null===t||91===t||rz(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=r8(a.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return rz(t)||(i=!0),o++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),i$(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function i6(e,t,n){return e.check(i1,t,e.attempt(i0,t,n))}function i8(e){e.exit("gfmFootnoteDefinition")}function i9(e,t,n){let r=[],i=-1;for(;++i0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function ae(e,t,n){let r;let i=this,a=0,s=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?g:o;return a===g&&i.parser.lazy[i.now().line]?n(e):a(e)};function o(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,s+=1),l(t)}function l(t){return null===t?n(t):rY(t)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):rq(t)?i$(e,l,"whitespace")(t):(s+=1,r&&(r=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),c(t))}function c(t){return null===t||124===t||rz(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,rq(t))?i$(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):n(t)}function d(t){return rq(t)?i$(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||rY(t)?T(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(n))}(t)):n(t)}function E(t){return rq(t)?i$(e,T,"whitespace")(t):T(t)}function T(i){return 124===i?p(i):null===i||rY(i)?r&&a===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i):n(i)}function g(t){return e.enter("tableRow"),A(t)}function A(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),A):null===n||rY(n)?(e.exit("tableRow"),t(n)):rq(n)?i$(e,A,"whitespace")(n):(e.enter("data"),_(n))}function _(t){return null===t||124===t||rz(t)?(e.exit("data"),A(t)):(e.consume(t),92===t?N:_)}function N(t){return 92===t||124===t?(e.consume(t),_):_(t)}}function at(e,t){let n,r,i,a=-1,s=!0,o=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0,p=new i7;for(;++an[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(a.end=Object.assign({},ai(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function ar(e,t,n,r,i){let a=[],s=ai(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function ai(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let aa={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return rz(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return rY(r)?t(r):rq(r)?e.check({tokenize:as},t,n)(r):n(r)}}};function as(e,t,n){return i$(e,function(e){return null===e?n(e):t(e)},"whitespace")}let ao={};function al(e){let t=e||ao,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(iB([{text:iV},{document:{91:{name:"gfmFootnoteDefinition",tokenize:i4,continuation:{tokenize:i6},exit:i8}},text:{91:{name:"gfmFootnoteCall",tokenize:i5},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:i3,resolveTo:i2}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,s=0;return function(o){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function a(o){let l=iT(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);let c=e.exit("strikethroughSequenceTemporary"),u=iT(o);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++nc&&(c=e[u].length);++al[a])&&(l[a]=e)}t.push(s)}s[u]=t,o[u]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++pl[p]&&(l[p]=i),f[p]=i),d[p]=s}s.splice(1,0,d),o.splice(1,0,f),u=-1;let m=[];for(;++u=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&au(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),au(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),au(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(er))return;let o=i.events.length,l=o;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(E(s),a=o;at;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function T(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},af={tokenize:function(e,t,n){return i$(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},am={resolve:function(e){return ah(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):rY(t)?e.check(aE,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},aE={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i$(e,i,"linePrefix")};function i(i){if(null===i||rY(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},aT={tokenize:function(e){let t=this,n=e.attempt(i1,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,i$(e,e.attempt(this.parser.constructs.flow,r,e.attempt(am,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},ag={resolveAll:aI()},aA=aN("string"),a_=aN("text");function aN(e){return{resolveAll:aI("text"===e?aS:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,s);return a;function a(e){return l(e)?i(e):s(e)}function s(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),o}function o(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i=3&&(null===s||rY(s))?(e.exit("thematicBreak"),t(s)):n(s)}(a)}}},ak={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(i1,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,i$(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!rq(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(aO,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,i$(e,e.attempt(ak,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:rH(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(aC,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return rH(i)&&++s<10?(e.consume(i),t):(!r.interrupt||s<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),o(i)):n(i)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(i1,r.interrupt?n:l,e.attempt(aD,u,c))}function l(e){return r.containerState.initialBlankLine=!0,a++,u(e)}function c(t){return rq(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},aD={partial:!0,tokenize:function(e,t,n){let r=this;return i$(e,function(e){let i=r.events[r.events.length-1];return!rq(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},aO={partial:!0,tokenize:function(e,t,n){let r=this;return i$(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},ab={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return rq(t)?i$(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(ab,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return rq(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function aR(e,t,n,r,i,a,s,o,l){let c=l||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),h):null===t||32===t||41===t||rw(t)?n(t):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),f(t))};function h(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(o),h(t)):null===t||60===t||rY(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(i){return!u&&(null===i||41===i||rz(i))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(i)):u999||null===h||91===h||93===h&&!s||94===h&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):93===h?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):rY(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||rY(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!rq(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function aL(e,t,n,r,i,a){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,o):n(t)};function o(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===s?(e.exit(a),o(s)):null===t?n(t):rY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i$(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||rY(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function aP(e,t){let n;return function r(i){return rY(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):rq(i)?i$(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}let aM={partial:!0,tokenize:function(e,t,n){return function(t){return rz(t)?aP(e,r)(t):n(t)};function r(t){return aL(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return rq(t)?i$(e,a,"whitespace")(t):a(t)}function a(e){return null===e||rY(e)?t(e):n(e)}}},ax={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),i$(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):rY(n)?e.attempt(av,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||rY(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},av={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):rY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):i$(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):rY(e)?i(e):n(e)}}},aF={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){let r;let i=this;return function(t){let s,o=i.events.length;for(;o--;)if("lineEnding"!==i.events[o][1].type&&"linePrefix"!==i.events[o][1].type&&"content"!==i.events[o][1].type){s="paragraph"===i.events[o][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),rq(n)?i$(e,a,"lineSuffix")(n):a(n))}(t)):n(t)};function a(r){return null===r||rY(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},aB=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],aw=["pre","script","style","textarea"],aH={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(i1,t,n)}}},aU={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return rY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},aG={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},aY={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};function s(t){return e.enter("codeFencedFence"),rq(t)?i$(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=o?(e.exit("codeFencedFenceSequence"),rq(i)?i$(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||rY(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},s=0,o=0;return function(t){return function(t){let a=i.events[i.events.length-1];return s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o<3?n(i):(e.exit("codeFencedFenceSequence"),rq(i)?i$(e,l,"whitespace")(i):l(i))}(t)}(t)};function l(a){return null===a||rY(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(aG,u,f)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||rY(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):rq(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),i$(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function c(t){return null===t||rY(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||rY(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(a,f,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return s>0&&rq(t)?i$(e,d,"linePrefix",s+1)(t):d(t)}function d(t){return null===t||rY(t)?e.check(aG,u,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||rY(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},az=document.createElement("i");function aq(e){let t="&"+e+";";az.innerHTML=t;let n=az.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let aW={name:"characterReference",tokenize:function(e,t,n){let r,i;let a=this,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=rF,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=rU,c):(e.enter("characterReferenceValue"),r=7,i=rH,c(t))}function c(o){if(59===o&&s){let r=e.exit("characterReferenceValue");return i!==rF||aq(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return i(o)&&s++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let h={...e[n][1].end},p={...e[u][1].start};a1(h,-o),a1(p,o),a={type:o>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:o>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[n][1].end={...a.start},e[u][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=iv(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=iv(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=iv(l,i9(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=iv(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=iv(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,ix(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++ua&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},ix(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||rz(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||rY(r)?(e.exit("atxHeading"),t(r)):rq(r)?i$(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||rz(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(i)}}},42:aC,45:[aF,aC],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,a,s,o;let l=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,d):63===s?(e.consume(s),r=3,l.interrupt?t:P):rv(s)?(e.consume(s),a=String.fromCharCode(s),f):n(s)}function u(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,s=0,p):rv(i)?(e.consume(i),r=4,l.interrupt?t:P):n(i)}function h(r){return 45===r?(e.consume(r),l.interrupt?t:P):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(s++)?(e.consume(r),s===i.length)?l.interrupt?t:C:p:n(r)}function d(t){return rv(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||rz(s)){let o=47===s,c=a.toLowerCase();return!o&&!i&&aw.includes(c)?(r=1,l.interrupt?t(s):C(s)):aB.includes(a.toLowerCase())?(r=6,o)?(e.consume(s),m):l.interrupt?t(s):C(s):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(s):i?function t(n){return rq(n)?(e.consume(n),t):I(n)}(s):E(s))}return 45===s||rF(s)?(e.consume(s),a+=String.fromCharCode(s),f):n(s)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:C):n(r)}function E(t){return 47===t?(e.consume(t),I):58===t||95===t||rv(t)?(e.consume(t),T):rq(t)?(e.consume(t),E):I(t)}function T(t){return 45===t||46===t||58===t||95===t||rF(t)?(e.consume(t),T):g(t)}function g(t){return 61===t?(e.consume(t),A):rq(t)?(e.consume(t),g):E(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,_):rq(t)?(e.consume(t),A):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||rz(n)?g(n):(e.consume(n),t)}(t)}function _(t){return t===o?(e.consume(t),o=null,N):null===t||rY(t)?n(t):(e.consume(t),_)}function N(e){return 47===e||62===e||rq(e)?E(e):n(e)}function I(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||rY(t)?C(t):rq(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),b):60===t&&1===r?(e.consume(t),R):62===t&&4===r?(e.consume(t),M):63===t&&3===r?(e.consume(t),P):93===t&&5===r?(e.consume(t),L):rY(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(aH,x,k)(t)):null===t||rY(t)?(e.exit("htmlFlowData"),k(t)):(e.consume(t),C)}function k(t){return e.check(aU,D,x)(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||rY(t)?k(t):(e.enter("htmlFlowData"),C(t))}function b(t){return 45===t?(e.consume(t),P):C(t)}function R(t){return 47===t?(e.consume(t),a="",y):C(t)}function y(t){if(62===t){let n=a.toLowerCase();return aw.includes(n)?(e.consume(t),M):C(t)}return rv(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),y):C(t)}function L(t){return 93===t?(e.consume(t),P):C(t)}function P(t){return 62===t?(e.consume(t),M):45===t&&2===r?(e.consume(t),P):C(t)}function M(t){return null===t||rY(t)?(e.exit("htmlFlowData"),x(t)):(e.consume(t),M)}function x(n){return e.exit("htmlFlow"),t(n)}}},61:aF,95:aC,96:aY,126:aY},a6={38:aW,92:aV},a8={[-5]:aQ,[-4]:aQ,[-3]:aQ,33:aZ,38:aW,42:a$,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return rv(t)?(e.consume(t),a):64===t?n(t):o(t)}function a(t){return 43===t||45===t||46===t||rF(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,s):(43===n||45===n||46===n||rF(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||rw(r)?n(r):(e.consume(r),s)}function o(t){return 64===t?(e.consume(t),l):rB(t)?(e.consume(t),o):n(t)}function l(i){return rF(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||rF(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a;let s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),_):63===t?(e.consume(t),g):rv(t)?(e.consume(t),I):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,d):rv(t)?(e.consume(t),T):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):rY(t)?(a=u,y(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?R(e):45===e?h(e):u(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?f:d):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):rY(t)?(a=f,y(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),E):f(t)}function E(t){return 62===t?R(t):93===t?(e.consume(t),E):f(t)}function T(t){return null===t||62===t?R(t):rY(t)?(a=T,y(t)):(e.consume(t),T)}function g(t){return null===t?n(t):63===t?(e.consume(t),A):rY(t)?(a=g,y(t)):(e.consume(t),g)}function A(e){return 62===e?R(e):g(e)}function _(t){return rv(t)?(e.consume(t),N):n(t)}function N(t){return 45===t||rF(t)?(e.consume(t),N):function t(n){return rY(n)?(a=t,y(n)):rq(n)?(e.consume(n),t):R(n)}(t)}function I(t){return 45===t||rF(t)?(e.consume(t),I):47===t||62===t||rz(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),R):58===t||95===t||rv(t)?(e.consume(t),C):rY(t)?(a=S,y(t)):rq(t)?(e.consume(t),S):R(t)}function C(t){return 45===t||46===t||58===t||95===t||rF(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),k):rY(n)?(a=t,y(n)):rq(n)?(e.consume(n),t):S(n)}(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,D):rY(t)?(a=k,y(t)):rq(t)?(e.consume(t),k):(e.consume(t),O)}function D(t){return t===r?(e.consume(t),r=void 0,b):null===t?n(t):rY(t)?(a=D,y(t)):(e.consume(t),D)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||rz(t)?S(t):(e.consume(t),O)}function b(e){return 47===e||62===e||rz(e)?S(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function y(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return rq(t)?i$(e,P,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),a(t)}}}],91:a0,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return rY(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},aV],93:aj,95:a$,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let sr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function si(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return sn(n.slice(t?2:1),t?16:10)}return aq(n)||e}function sa(e){return e&&"object"==typeof e?"position"in e||"type"in e?so(e.position):"start"in e||"end"in e?so(e):"line"in e||"column"in e?ss(e):"":""}function ss(e){return sl(e&&e.line)+":"+sl(e&&e.column)}function so(e){return ss(e&&e.start)+"-"+ss(e&&e.end)}function sl(e){return e&&"number"==typeof e?e:1}let sc={}.hasOwnProperty;function su(e){return{line:e.line,column:e.column,offset:e.offset}}function sh(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+sa({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+sa({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+sa({start:t.start,end:t.end})+") is still open")}function sp(e){let t=this;t.parser=function(n){var r,i;let a,s,o,l;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(T),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(f),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(E,i),htmlFlowData:c,htmlText:r(E,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(T),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(g,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(g),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(f),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=sn(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=aq(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=su(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=r8(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(h),hardBreakTrailing:s(h),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(sr,si),n.identifier=r8(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=su(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=r8(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};(function e(t,n){let r=-1;for(;++r0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||sh).call(s,void 0,e[0])}for(r.position={start:su(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:su(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}s>0&&n.push(e[a].slice(0,s))}return n}(s,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function d(e,t){t.restore()}function f(e,t){return function(n,i,a){let s,u,h,d;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function f(e){return(s=e,u=0,0===e.length)?a:m(e[u])}function m(e){return function(n){return(d=function(){let e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,a=Array.from(o);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,o=a,E()}}}(),h=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?g(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,T,g)(n)}}function T(t){return e(h,d),i}function g(e){return(d.restore(),++u55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(s=String.fromCharCode(a,t),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function sf(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function sm(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function sE(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function sT(e){let t=e.spread;return null==t?e.children.length>1:t}function sg(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let sA={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=sd(i.toLowerCase()),s=e.footnoteOrder.indexOf(i),o=e.footnoteCounts.get(i);void 0===o?(o=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=s+1,o+=1,e.footnoteCounts.set(i,o);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sE(e,t);let i={src:sd(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:sd(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sE(e,t);let i={href:sd(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:sd(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=nP(t.children[1]),s=nL(t.children[t.children.length-1]);a&&s&&(r.position={start:a,end:s}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,s=a?a.length:t.children.length,o=-1,l=[];for(;++o0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(sg(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:s_,yaml:s_,definition:s_,footnoteDefinition:s_};function s_(){}let sN={}.hasOwnProperty,sI={};function sS(e,t){e.position&&(t.position=function(e){let t=nP(e),n=nL(e);if(t&&n)return{start:t,end:n}}(e))}function sC(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,j(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function sk(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text",value:"\n"}),n}function sD(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function sO(e,t){let n=function(e,t){let n=t||sI,r=new Map,i=new Map,a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r0&&h.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let d=a[a.length-1];if(d&&"element"===d.type&&"p"===d.tagName){let e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...h)}else a.push(...h);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,f),o.push(f)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...j(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:"\n"},i),a}function sb(e,t){return e&&"run"in e?async function(n,r){let i=sO(n,{file:r,...t});await e.run(i,r)}:function(n,r){return sO(n,{file:r,...e||t})}}function sR(e){if(e)throw e}var sy=n(7396);function sL(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}class sP extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=s?s.line:void 0,this.name=sa(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}sP.prototype.file="",sP.prototype.name="",sP.prototype.reason="",sP.prototype.message="",sP.prototype.stack="",sP.prototype.column=void 0,sP.prototype.line=void 0,sP.prototype.ancestors=void 0,sP.prototype.cause=void 0,sP.prototype.fatal=void 0,sP.prototype.place=void 0,sP.prototype.ruleId=void 0,sP.prototype.source=void 0;let sM={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');sx(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(i=a):(o=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(sx(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;sx(e);let n=e.length,r=-1,i=0,a=-1,s=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?a<0?a=n:1!==s&&(s=1):a>-1&&(s=-1)}return a<0||r<0||0===s||1===s&&a===r-1&&a===i+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),s=l,o=0;continue}}else if(i.length>0){i="",a=0,s=l,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),a=l-s-1;s=l,o=0}else 46===n&&o>-1?o++:o=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function sx(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let sv={cwd:function(){return"/"}};function sF(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let sB=["history","path","basename","stem","extname","dirname"];class sw{constructor(e){let t,n;t=e?sF(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="cwd"in t?"":sv.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++rt.length;s&&t.push(r);try{a=e.apply(this,t)}catch(e){if(s&&n)throw e;return r(e)}s||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(o,i)(...s):r(null,...s)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new sq,t=-1;for(;++t0){let[r,...a]=t,s=n[i][1];sL(s)&&sL(r)&&(r=sy(!0,s,r)),n[i]=[e,r,...a]}}}}let sW=new sq().freeze();function sV(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function sQ(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function sj(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sK(e){if(!sL(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function sX(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function sJ(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new sw(e)}var sZ={exports:{}},s$={};sZ.exports=function(){if(v)return s$;v=1;var e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,r=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(t,a,s){var o,l={},c=null,u=null;for(o in void 0!==s&&(c=""+s),void 0!==a.key&&(c=""+a.key),void 0!==a.ref&&(u=a.ref),a)n.call(a,o)&&!i.hasOwnProperty(o)&&(l[o]=a[o]);if(t&&t.defaultProps)for(o in a=t.defaultProps)void 0===l[o]&&(l[o]=a[o]);return{$$typeof:e,type:t,key:c,ref:u,props:l,_owner:r.current}}return s$.Fragment=t,s$.jsx=a,s$.jsxs=a,s$}();var s1=sZ.exports;async function s0(e){return String(await sW().use(sp).use(al).use(sb,{allowDangerousHtml:!0}).use(n0).use(rx).processSync(e))}function s3(e){let[t,n]=w.useState("");return w.useEffect(()=>{(async()=>{n(await s0(e))})()},[e]),{html:t,jsx:s1.jsx("div",{dangerouslySetInnerHTML:{__html:t}})}}},2508:function(e,t,n){n.d(t,{f:function(){return o},o:function(){return s}});var r=n(5271),i=n(1559),a=n(2676),s=r.forwardRef((e,t)=>{let{ratio:n=1,style:r,...s}=e;return(0,a.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:(0,a.jsx)(i.WV.div,{...s,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});s.displayName="AspectRatio";var o=s},6424:function(e,t,n){n.d(t,{fC:function(){return C},z$:function(){return k}});var r=n(5271),i=n(4657),a=n(8689),s=n(5061),o=n(9895),l=n(6673),c=n(2979),u=n(8061),h=n(1559),p=n(2676),d="Checkbox",[f,m]=(0,a.b)(d),[E,T]=f(d),g=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:a,checked:l,defaultChecked:c,required:u,disabled:d,value:f="on",onCheckedChange:m,form:T,...g}=e,[A,_]=r.useState(null),C=(0,i.e)(t,e=>_(e)),k=r.useRef(!1),D=!A||T||!!A.closest("form"),[O=!1,b]=(0,o.T)({prop:l,defaultProp:c,onChange:m}),R=r.useRef(O);return r.useEffect(()=>{let e=A?.form;if(e){let t=()=>b(R.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[A,b]),(0,p.jsxs)(E,{scope:n,state:O,disabled:d,children:[(0,p.jsx)(h.WV.button,{type:"button",role:"checkbox","aria-checked":I(O)?"mixed":O,"aria-required":u,"data-state":S(O),"data-disabled":d?"":void 0,disabled:d,value:f,...g,ref:C,onKeyDown:(0,s.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,s.M)(e.onClick,e=>{b(e=>!!I(e)||!e),D&&(k.current=e.isPropagationStopped(),k.current||e.stopPropagation())})}),D&&(0,p.jsx)(N,{control:A,bubbles:!k.current,name:a,value:f,checked:O,required:u,disabled:d,form:T,style:{transform:"translateX(-100%)"},defaultChecked:!I(c)&&c})]})});g.displayName=d;var A="CheckboxIndicator",_=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=T(A,n);return(0,p.jsx)(u.z,{present:r||I(a.state)||!0===a.state,children:(0,p.jsx)(h.WV.span,{"data-state":S(a.state),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});_.displayName=A;var N=e=>{let{control:t,checked:n,bubbles:i=!0,defaultChecked:a,...s}=e,o=r.useRef(null),u=(0,l.D)(n),h=(0,c.t)(t);r.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==n&&t){let r=new Event("click",{bubbles:i});e.indeterminate=I(n),t.call(e,!I(n)&&n),e.dispatchEvent(r)}},[u,n,i]);let d=r.useRef(!I(n)&&n);return(0,p.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??d.current,...s,tabIndex:-1,ref:o,style:{...e.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function I(e){return"indeterminate"===e}function S(e){return I(e)?"indeterminate":e?"checked":"unchecked"}var C=g,k=_},4657:function(e,t,n){n.d(t,{F:function(){return i},e:function(){return a}});var r=n(5271);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function a(...e){return r.useCallback(i(...e),e)}},1559:function(e,t,n){n.d(t,{WV:function(){return o},jH:function(){return l}});var r=n(5271),i=n(967),a=n(7839),s=n(2676),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...i}=e,o=r?a.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},7839:function(e,t,n){n.d(t,{g7:function(){return s}});var r=n(5271),i=n(4657),a=n(2676),s=r.forwardRef((e,t)=>{let{children:n,...i}=e,s=r.Children.toArray(n),l=s.find(c);if(l){let e=l.props.children,n=s.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.jsx)(o,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,a.jsx)(o,{...i,ref:t,children:n})});s.displayName="Slot";var o=r.forwardRef((e,t)=>{let{children:n,...a}=e;if(r.isValidElement(n)){let e,s;let o=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(a,n.props),ref:t?(0,i.F)(t,o):o})}return r.Children.count(n)>1?r.Children.only(null):null});o.displayName="SlotClone";var l=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function c(e){return r.isValidElement(e)&&e.type===l}}}]); \ No newline at end of file diff --git a/_next/static/chunks/389-01a4bdc67945262f.js b/_next/static/chunks/389-01a4bdc67945262f.js deleted file mode 100644 index 0c9f8913f..000000000 --- a/_next/static/chunks/389-01a4bdc67945262f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[389],{9626:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},1224:function(e,t,i){"use strict";i.d(t,{F:function(){return n},e:function(){return r}});var s=i(5271);function n(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function r(...e){return s.useCallback(n(...e),e)}},8141:function(e,t,i){"use strict";i.d(t,{WV:function(){return a},jH:function(){return l}});var s=i(5271),n=i(967),r=i(1557),o=i(2676),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let i=s.forwardRef((e,i)=>{let{asChild:s,...n}=e,a=s?r.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(a,{...n,ref:i})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}},1557:function(e,t,i){"use strict";i.d(t,{g7:function(){return o}});var s=i(5271),n=i(1224),r=i(2676),o=s.forwardRef((e,t)=>{let{children:i,...n}=e,o=s.Children.toArray(i),l=o.find(u);if(l){let e=l.props.children,i=o.map(t=>t!==l?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,r.jsx)(a,{...n,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,i):null})}return(0,r.jsx)(a,{...n,ref:t,children:i})});o.displayName="Slot";var a=s.forwardRef((e,t)=>{let{children:i,...r}=e;if(s.isValidElement(i)){let e,o;let a=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.ref:(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.props.ref:i.props.ref||i.ref;return s.cloneElement(i,{...function(e,t){let i={...t};for(let s in t){let n=e[s],r=t[s];/^on[A-Z]/.test(s)?n&&r?i[s]=(...e)=>{r(...e),n(...e)}:n&&(i[s]=n):"style"===s?i[s]={...n,...r}:"className"===s&&(i[s]=[n,r].filter(Boolean).join(" "))}return{...e,...i}}(r,i.props),ref:t?(0,n.F)(t,a):a})}return s.Children.count(i)>1?s.Children.only(null):null});a.displayName="SlotClone";var l=({children:e})=>(0,r.jsx)(r.Fragment,{children:e});function u(e){return s.isValidElement(e)&&e.type===l}},310:function(e,t,i){"use strict";i.d(t,{Z:function(){return x}});let{slice:s,forEach:n}=[],r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,o=(e,t,i)=>{let s=i||{};s.path=s.path||"/";let n=encodeURIComponent(t),o=`${e}=${n}`;if(s.maxAge>0){let e=s.maxAge-0;if(Number.isNaN(e))throw Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(e)}`}if(s.domain){if(!r.test(s.domain))throw TypeError("option domain is invalid");o+=`; Domain=${s.domain}`}if(s.path){if(!r.test(s.path))throw TypeError("option path is invalid");o+=`; Path=${s.path}`}if(s.expires){if("function"!=typeof s.expires.toUTCString)throw TypeError("option expires is invalid");o+=`; Expires=${s.expires.toUTCString()}`}if(s.httpOnly&&(o+="; HttpOnly"),s.secure&&(o+="; Secure"),s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"none":o+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return o},a={create(e,t,i,s){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};i&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+6e4*i)),s&&(n.domain=s),document.cookie=o(e,encodeURIComponent(t),n)},read(e){let t=`${e}=`,i=document.cookie.split(";");for(let e=0;e-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));let s=e.substring(1).split("&");for(let e=0;e0&&s[e].substring(0,n)===i&&(t=s[e].substring(n+1))}}return t}};let h=null,p=()=>{if(null!==h)return h;try{h="undefined"!==window&&null!==window.localStorage;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){h=!1}return h};var g={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&p())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:i}=t;i&&p()&&window.localStorage.setItem(i,e)}};let d=null,c=()=>{if(null!==d)return d;try{d="undefined"!==window&&null!==window.sessionStorage;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){d=!1}return d};var f={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&c())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:i}=t;i&&c()&&window.sessionStorage.setItem(i,e)}},m={name:"navigator",lookup(e){let t=[];if("undefined"!=typeof navigator){let{languages:e,userLanguage:i,language:s}=navigator;if(e)for(let i=0;i0?t:void 0}},y={name:"htmlTag",lookup(e){let t,{htmlTag:i}=e,s=i||("undefined"!=typeof document?document.documentElement:null);return s&&"function"==typeof s.getAttribute&&(t=s.getAttribute("lang")),t}},v={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"==typeof window)return;let i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(i))return i["number"==typeof t?t:0]?.replace("/","")}},b={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,i="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i["number"==typeof t?t+1:1]}};class x{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return n.call(s.call(arguments,1),t=>{if(t)for(let i in t)void 0===e[i]&&(e[i]=t[i])}),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(l),this.addDetector(u),this.addDetector(g),this.addDetector(f),this.addDetector(m),this.addDetector(y),this.addDetector(v),this.addDetector(b)}addDetector(e){return this.detectors[e.name]=e,this}detect(e){e||(e=this.options.order);let t=[];return(e.forEach(e=>{if(this.detectors[e]){let i=this.detectors[e].lookup(this.options);i&&"string"==typeof i&&(i=[i]),i&&(t=t.concat(i))}}),t=t.map(e=>this.options.convertDetectedLanguage(e)),this.services.languageUtils.getBestMatchFromCodes)?t:t.length>0?t[0]:null}cacheUserLanguage(e,t){t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}x.type="languageDetector"},9366:function(e,t,i){"use strict";i.d(t,{ZP:function(){return et}});let s=e=>"string"==typeof e,n=()=>{let e,t;let i=new Promise((i,s)=>{e=i,t=s});return i.resolve=e,i.reject=t,i},r=e=>null==e?"":""+e,o=(e,t,i)=>{e.forEach(e=>{t[e]&&(i[e]=t[e])})},a=/###/g,l=e=>e&&e.indexOf("###")>-1?e.replace(a,"."):e,u=e=>!e||s(e),h=(e,t,i)=>{let n=s(t)?t.split("."):t,r=0;for(;r{let{obj:s,k:n}=h(e,t,Object);if(void 0!==s||1===t.length){s[n]=i;return}let r=t[t.length-1],o=t.slice(0,t.length-1),a=h(e,o,Object);for(;void 0===a.obj&&o.length;)r=`${o[o.length-1]}.${r}`,(a=h(e,o=o.slice(0,o.length-1),Object))&&a.obj&&void 0!==a.obj[`${a.k}.${r}`]&&(a.obj=void 0);a.obj[`${a.k}.${r}`]=i},g=(e,t,i,s)=>{let{obj:n,k:r}=h(e,t,Object);n[r]=n[r]||[],n[r].push(i)},d=(e,t)=>{let{obj:i,k:s}=h(e,t);if(i)return i[s]},c=(e,t,i)=>{let s=d(e,i);return void 0!==s?s:d(t,i)},f=(e,t,i)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?s(e[n])||e[n]instanceof String||s(t[n])||t[n]instanceof String?i&&(e[n]=t[n]):f(e[n],t[n],i):e[n]=t[n]);return e},m=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var y={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};let v=e=>s(e)?e.replace(/[&<>"'\/]/g,e=>y[e]):e;class b{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}let x=[" ",",","?","!",";"],S=new b(20),k=(e,t,i)=>{t=t||"",i=i||"";let s=x.filter(e=>0>t.indexOf(e)&&0>i.indexOf(e));if(0===s.length)return!0;let n=S.getRegExp(`(${s.map(e=>"?"===e?"\\?":e).join("|")})`),r=!n.test(e);if(!r){let t=e.indexOf(i);t>0&&!n.test(e.substring(0,t))&&(r=!0)}return r},w=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let s=t.split(i),n=e;for(let e=0;e-1&&oe&&e.replace("_","-"),O={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class N{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||O,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),i=0;i{this.observers[e]||(this.observers[e]=new Map);let i=this.observers[e].get(t)||0;this.observers[e].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;s{let[t,s]=e;for(let e=0;e{let[s,n]=t;for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i){let n,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?n=e.split("."):(n=[e,t],i&&(Array.isArray(i)?n.push(...i):s(i)&&o?n.push(...i.split(o)):n.push(i)));let l=d(this.data,n);return(!l&&!t&&!i&&e.indexOf(".")>-1&&(e=n[0],t=n[1],i=n.slice(2).join(".")),!l&&a&&s(i))?w(this.data&&this.data[e]&&this.data[e][t],i,o):l}addResource(e,t,i,s){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=[e,t];i&&(o=o.concat(r?i.split(r):i)),e.indexOf(".")>-1&&(o=e.split("."),s=t,t=o[1]),this.addNamespaces(t),p(this.data,o,s),n.silent||this.emit("added",e,t,i,s)}addResources(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in i)(s(i[n])||Array.isArray(i[n]))&&this.addResource(e,t,n,i[n],{silent:!0});n.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,s,n){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),s=i,i=t,t=o[1]),this.addNamespaces(t);let a=d(this.data,o)||{};r.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?f(a,i,n):a={...a,...i},p(this.data,o,a),r.silent||this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var P={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,s,n){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,i,s,n))}),t}};let j={};class E extends R{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),o(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=C.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let i=this.resolve(e,t);return i&&void 0!==i.res}extractFromKey(e,t){let i=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],o=i&&e.indexOf(i)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!k(e,i,n);if(o&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:s(r)?[r]:r};let o=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(o[0])>-1)&&(r=o.shift()),e=o.join(n)}return{key:e,namespaces:s(r)?[r]:r}}translate(e,t,i){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],u=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(h){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:o}let p=this.resolve(e,t),g=p&&p.res,d=p&&p.usedKey||o,c=p&&p.exactUsedKey||o,f=Object.prototype.toString.apply(g),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!s(g)&&"boolean"!=typeof g&&"number"!=typeof g;if(y&&g&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(f)&&!(s(m)&&Array.isArray(g))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,g,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(p.res=e,p.usedParams=this.getUsedParamsDetails(t),p):e}if(r){let e=Array.isArray(g),i=e?[]:{},s=e?c:d;for(let e in g)if(Object.prototype.hasOwnProperty.call(g,e)){let n=`${s}${r}${e}`;i[e]=this.translate(n,{...t,joinArrays:!1,ns:a}),i[e]===n&&(i[e]=g[e])}g=i}}else if(y&&s(m)&&Array.isArray(g))(g=g.join(m))&&(g=this.extendTranslation(g,e,t,i));else{let n=!1,a=!1,h=void 0!==t.count&&!s(t.count),d=E.hasDefaultValue(t),c=h?this.pluralResolver.getSuffix(u,t.count,t):"",f=t.ordinal&&h?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",m=h&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),y=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${c}`]||t[`defaultValue${f}`]||t.defaultValue;!this.isValidLookup(g)&&d&&(n=!0,g=y),this.isValidLookup(g)||(a=!0,g=o);let v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:g,b=d&&y!==g&&this.options.updateMissing;if(a||n||b){if(this.logger.log(b?"updateKey":"missingKey",u,l,o,b?y:g),r){let e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],i=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&i&&i[0])for(let t=0;t{let n=d&&s!==g?s:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,i,n,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,i,n,b,t),this.emit("missingKey",e,l,i,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&h?e.forEach(e=>{let i=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>i.indexOf(`${this.options.pluralSeparator}zero`)&&i.push(`${this.options.pluralSeparator}zero`),i.forEach(i=>{s([e],o+i,t[`defaultValue${i}`]||y)})}):s(e,o,y))}g=this.extendTranslation(g,e,t,p,i),a&&g===o&&this.options.appendNamespaceToMissingKey&&(g=`${l}:${o}`),(a||n)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,n?g:void 0):this.options.parseMissingKeyHandler(g))}return n?(p.res=g,p.usedParams=this.getUsedParamsDetails(t),p):g}extendTranslation(e,t,i,n,r){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){let a;i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let l=s(e)&&(i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let u=i.replace&&!s(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,i.lng||this.language||n.usedLng,i),l){let t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(i.nest=!1)}!i.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(i.lng=this.language||n.usedLng),!1!==i.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,s=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return s(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,a),u=l.key;i=u;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));let p=void 0!==a.count&&!s(a.count),g=p&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&(s(a.context)||"number"==typeof a.context)&&""!==a.context,c=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);h.forEach(e=>{this.isValidLookup(t)||(o=e,!j[`${c[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(j[`${c[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${c.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),c.forEach(i=>{let s;if(this.isValidLookup(t))return;r=i;let o=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,u,i,e,a);else{let e;p&&(e=this.pluralResolver.getSuffix(i,a.count,a));let t=`${this.options.pluralSeparator}zero`,s=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(o.push(u+e),a.ordinal&&0===e.indexOf(s)&&o.push(u+e.replace(s,this.options.pluralSeparator)),g&&o.push(u+t)),d){let i=`${u}${this.options.contextSeparator}${a.context}`;o.push(i),p&&(o.push(i+e),a.ordinal&&0===e.indexOf(s)&&o.push(i+e.replace(s,this.options.pluralSeparator)),g&&o.push(i+t))}}for(;s=o.pop();)this.isValidLookup(t)||(n=s,t=this.getResource(i,e,s,a))}))})}),{res:t,usedKey:i,exactUsedKey:n,usedLng:r,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,s):this.resourceStore.getResource(e,t,i,s)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!s(e.replace),i=t?e.replace:e;if(t&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!t)for(let e of(i={...i},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete i[e];return i}static hasDefaultValue(e){let t="defaultValue";for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&void 0!==e[i])return!0;return!1}}let I=e=>e.charAt(0).toUpperCase()+e.slice(1);class D{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=C.create("languageUtils")}getScriptPartFromCode(e){if(!(e=L(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=L(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(s(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}let t=["hans","hant","latn","cyrl","cans","mong","arab"],i=e.split("-");return this.options.lowerCaseLng?i=i.map(e=>e.toLowerCase()):2===i.length?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=I(i[1].toLowerCase()))):3===i.length&&(i[0]=i[0].toLowerCase(),2===i[1].length&&(i[1]=i[1].toUpperCase()),"sgn"!==i[0]&&2===i[2].length&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=I(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=I(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let i=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>{if(e===i||!(0>e.indexOf("-")&&0>i.indexOf("-"))&&(e.indexOf("-")>0&&0>i.indexOf("-")&&e.substring(0,e.indexOf("-"))===i||0===e.indexOf(i)&&i.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),s(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){let i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],r=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return s(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):s(e)&&r(this.formatLanguageCode(e)),i.forEach(e=>{0>n.indexOf(e)&&r(this.formatLanguageCode(e))}),n}}let F=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],A={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},U=["v1","v2","v3"],T=["v4"],V={zero:0,one:1,two:2,few:3,many:4,other:5},M=()=>{let e={};return F.forEach(t=>{t.lngs.forEach(i=>{e[i]={numbers:t.nr,plurals:A[t.fc]}})}),e};class z{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=C.create("pluralResolver"),(!this.options.compatibilityJSON||T.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=M(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){let i;let s=L("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:s,type:n});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];try{i=new Intl.PluralRules(s,{type:n})}catch(n){if(!e.match(/-|_/))return;let s=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(s,t)}return this.pluralRulesCache[r]=i,i}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,i).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((e,t)=>V[e]-V[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):i.numbers.map(i=>this.getSuffix(e,i,t)):[]}getSuffix(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this.getRule(e,i);return s?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:this.getSuffixRetroCompatible(s,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),s=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===s?s="plural":1===s&&(s=""));let n=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?`_plural_${s.toString()}`:n():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?n():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!U.includes(this.options.compatibilityJSON)}}let K=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=c(e,t,i);return!o&&r&&s(i)&&void 0===(o=w(e,i,n))&&(o=w(t,i,n)),o},H=e=>e.replace(/\$/g,"$$$$");class B{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=C.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:i,useRawValueToEscape:s,prefix:n,prefixEscaped:r,suffix:o,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:g,nestingSuffix:d,nestingSuffixEscaped:c,nestingOptionsSeparator:f,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:v,this.escapeValue=void 0===i||i,this.useRawValueToEscape=void 0!==s&&s,this.prefix=n?m(n):r||"{{",this.suffix=o?m(o):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?m(p):g||m("$t("),this.nestingSuffix=d?m(d):c||m(")"),this.nestingOptionsSeparator=f||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,i,n){let o,a,l;let u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=e=>{if(0>e.indexOf(this.formatSeparator)){let s=K(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(s,void 0,i,{...n,...t,interpolationkey:e}):s}let s=e.split(this.formatSeparator),r=s.shift().trim(),o=s.join(this.formatSeparator).trim();return this.format(K(t,u,r,this.options.keySeparator,this.options.ignoreJSONStructure),o,i,{...n,...t,interpolationkey:r})};this.resetRegExp();let p=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,g=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>H(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?H(this.escape(e)):H(e)}].forEach(t=>{for(l=0;o=t.regex.exec(e);){let i=o[1].trim();if(void 0===(a=h(i))){if("function"==typeof p){let t=p(e,o,n);a=s(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,i))a="";else if(g){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${i} for interpolating ${e}`),a=""}else s(a)||this.useRawValueToEscape||(a=r(a));let u=t.safeValue(a);if(e=e.replace(o[0],u),g?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t){let i,n,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(e,t)=>{let i=this.nestingOptionsSeparator;if(0>e.indexOf(i))return e;let s=e.split(RegExp(`${i}[ ]*{`)),n=`{${s[1]}`;e=s[0];let r=(n=this.interpolate(n,o)).match(/'/g),a=n.match(/"/g);(r&&r.length%2==0&&!a||a.length%2!=0)&&(n=n.replace(/'/g,'"'));try{o=JSON.parse(n),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${i}${n}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let u=[];(o=(o={...a}).replace&&!s(o.replace)?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let h=!1;if(-1!==i[0].indexOf(this.formatSeparator)&&!/{.*}/.test(i[1])){let e=i[1].split(this.formatSeparator).map(e=>e.trim());i[1]=e.shift(),u=e,h=!0}if((n=t(l.call(this,i[1].trim(),o),o))&&i[0]===e&&!s(n))return n;s(n)||(n=r(n)),n||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),n=""),h&&(n=u.reduce((e,t)=>this.format(e,t,a.lng,{...a,interpolationkey:i[1].trim()}),n.trim())),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}let J=e=>{let t=e.toLowerCase().trim(),i={};if(e.indexOf("(")>-1){let s=e.split("(");t=s[0].toLowerCase().trim();let n=s[1].substring(0,s[1].length-1);"currency"===t&&0>n.indexOf(":")?i.currency||(i.currency=n.trim()):"relativetime"===t&&0>n.indexOf(":")?i.range||(i.range=n.trim()):n.split(";").forEach(e=>{if(e){let[t,...s]=e.split(":"),n=s.join(":").trim().replace(/^'+|'+$/g,""),r=t.trim();i[r]||(i[r]=n),"false"===n&&(i[r]=!1),"true"===n&&(i[r]=!0),isNaN(n)||(i[r]=parseInt(n,10))}})}return{formatName:t,formatOptions:i}},q=e=>{let t={};return(i,s,n)=>{let r=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(r={...r,[n.interpolationkey]:void 0});let o=s+JSON.stringify(r),a=t[o];return a||(a=e(L(s),n),t[o]=a),a(i)}};class _{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=C.create("formatter"),this.options=e,this.formats={number:q((e,t)=>{let i=new Intl.NumberFormat(e,{...t});return e=>i.format(e)}),currency:q((e,t)=>{let i=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>i.format(e)}),datetime:q((e,t)=>{let i=new Intl.DateTimeFormat(e,{...t});return e=>i.format(e)}),relativetime:q((e,t)=>{let i=new Intl.RelativeTimeFormat(e,{...t});return e=>i.format(e,t.range||"day")}),list:q((e,t)=>{let i=new Intl.ListFormat(e,{...t});return e=>i.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=q(t)}format(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=t.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&0>n[0].indexOf(")")&&n.find(e=>e.indexOf(")")>-1)){let e=n.findIndex(e=>e.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,e)].join(this.formatSeparator)}return n.reduce((e,t)=>{let{formatName:n,formatOptions:r}=J(t);if(this.formats[n]){let t=e;try{let o=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},a=o.locale||o.lng||s.locale||s.lng||i;t=this.formats[n](e,a,{...r,...s,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${n}`),e},e)}}let W=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class Y extends R{constructor(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=C.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,s.backend,s)}queueLoad(e,t,i,s){let n={},r={},o={},a={};return e.forEach(e=>{let s=!0;t.forEach(t=>{let o=`${e}|${t}`;!i.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===r[o]&&(r[o]=!0):(this.state[o]=1,s=!1,void 0===r[o]&&(r[o]=!0),void 0===n[o]&&(n[o]=!0),void 0===a[t]&&(a[t]=!0)))}),s||(o[e]=!0)}),(Object.keys(n).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(n),pending:Object.keys(r),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(a)}}loaded(e,t,i){let s=e.split("|"),n=s[0],r=s[1];t&&this.emit("failedLoading",n,r,t),!t&&i&&this.store.addResourceBundle(n,r,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&i&&(this.state[e]=0);let o={};this.queue.forEach(i=>{g(i.loaded,[n],r),W(i,e),t&&i.errors.push(t),0!==i.pendingCount||i.done||(Object.keys(i.loaded).forEach(e=>{o[e]||(o[e]={});let t=i.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:s,wait:n,callback:r});return}this.readingCalls++;let o=(o,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&a&&s{this.read.call(this,e,t,i,s+1,2*n,r)},n);return}r(o,a)},a=this.backend[i].bind(this.backend);if(2===a.length){try{let i=a(e,t);i&&"function"==typeof i.then?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}return}return a(e,t,o)}prepareLoading(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();s(e)&&(e=this.languageUtils.toResolveHierarchy(e)),s(t)&&(t=[t]);let r=this.queueLoad(e,t,i,n);if(!r.toLoad.length)return r.pending.length||n(),null;r.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),s=i[0],n=i[1];this.read(s,n,"read",void 0,void 0,(i,r)=>{i&&this.logger.warn(`${t}loading namespace ${n} for language ${s} failed`,i),!i&&r&&this.logger.log(`${t}loaded namespace ${n} for language ${s}`,r),this.loaded(e,i,r)})}saveMissing(e,t,i,s,n){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=i&&""!==i){if(this.backend&&this.backend.create){let a={...r,isUpdate:n},l=this.backend.create.bind(this.backend);if(l.length<6)try{let n;(n=5===l.length?l(e,t,i,s,a):l(e,t,i,s))&&"function"==typeof n.then?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}else l(e,t,i,s,o,a)}e&&e[0]&&this.store.addResource(e[0],t,i,s)}}}let Q=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),s(e[1])&&(t.defaultValue=e[1]),s(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let i=e[3]||e[2];Object.keys(i).forEach(e=>{t[e]=i[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),G=e=>(s(e.ns)&&(e.ns=[e.ns]),s(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),s(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Z=()=>{},X=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})};class ee extends R{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=G(e),this.services={},this.logger=C,this.modules={external:[]},X(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(i=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(s(t.ns)?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let r=Q();this.options={...r,...this.options,...G(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);let o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?C.init(o(this.modules.logger),this.options):C.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=_);let i=new D(this.options);this.store=new $(this.options.resources,this.options);let s=this.services;s.logger=C,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new z(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(s.formatter=o(t),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new B(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Y(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var i=arguments.length,s=Array(i>1?i-1:0),n=1;n1?i-1:0),n=1;n{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Z),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=n(),l=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),i(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,i=t,n=s(e)?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return i();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),i(e)})}else i(null)}reloadResources(e,t,i){let s=n();return"function"==typeof e&&(i=e,e=void 0),"function"==typeof t&&(i=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),i||(i=Z),this.services.backendConnector.reload(e,t,e=>{s.resolve(),i(e)}),s}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&P.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var i=this;this.isLanguageChangingTo=e;let r=n();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,s)=>{s?(o(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),t&&t(e,function(){return i.t(...arguments)})},l=t=>{e||t||!this.services.languageDetector||(t=[]);let i=s(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);i&&(this.language||o(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(i)),this.loadResources(i,e=>{a(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),r}getFixedT(e,t,i){var n=this;let r=function(e,t){let s,o;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),u=2;u`${s.keyPrefix}${h}${e}`):s.keyPrefix?`${s.keyPrefix}${h}${e}`:e,n.t(o,s)};return s(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=i,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=t.lng||this.resolvedLanguage||this.languages[0],s=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;let r=(e,t)=>{let i=this.services.backendConnector.state[`${e}|${t}`];return -1===i||0===i||2===i};if(t.precheck){let e=t.precheck(this,r);if(void 0!==e)return e}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(i,e)&&(!s||r(n,e)))}loadNamespaces(e,t){let i=n();return this.options.ns?(s(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){let i=n();s(e)&&(e=[e]);let r=this.options.preload||[],o=e.filter(e=>0>r.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new D(Q())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ee(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,i=e.forkResourceStore;i&&delete e.forkResourceStore;let s={...this.options,...e,isClone:!0},n=new ee(s);return(void 0!==e.debug||void 0!==e.prefix)&&(n.logger=n.logger.clone(e)),["store","services","language"].forEach(e=>{n[e]=this[e]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},i&&(n.store=new $(this.store.data,s),n.services.resourceStore=n.store),n.translator=new E(n.services,s),n.translator.on("*",function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;s{console?.warn&&(g(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},o={},a=(...e)=>{g(e[0])&&o[e[0]]||(g(e[0])&&(o[e[0]]=new Date),r(...e))},l=(e,t)=>()=>{if(e.isInitialized)t();else{let i=()=>{setTimeout(()=>{e.off("initialized",i)},0),t()};e.on("initialized",i)}},u=(e,t,i)=>{e.loadNamespaces(t,l(e,i))},h=(e,t,i,s)=>{if(g(i)&&(i=[i]),e.options.preload&&e.options.preload.indexOf(t)>-1)return u(e,i,s);i.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,l(e,s))},p=(e,t,i={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:i.lng,precheck:(t,s)=>{if(i.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e))return!1}}):(a("i18n.languages were undefined or empty",t.languages),!0),g=e=>"string"==typeof e,d=e=>"object"==typeof e&&null!==e,c=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,f={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"…","…":"…","/":"/","/":"/"},m=e=>f[e],y={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(c,m)},v=(e={})=>{y={...y,...e}},b=()=>y,x=e=>{s=e},S=()=>s,k={type:"3rdParty",init(e){v(e.options.react),x(e)}},w=(0,n.createContext)();class L{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let O=(e,t)=>{let i=(0,n.useRef)();return(0,n.useEffect)(()=>{i.current=t?i.current:e},[e,t]),i.current},N=(e,t,i,s)=>e.getFixedT(t,i,s),C=(e,t,i,s)=>(0,n.useCallback)(N(e,t,i,s),[e,t,i,s]),R=(e,t={})=>{let{i18n:i}=t,{i18n:s,defaultNS:r}=(0,n.useContext)(w)||{},o=i||s||S();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new L),!o){a("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>g(t)?t:d(t)&&g(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}o.options.react?.wait&&a("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let l={...b(),...o.options.react,...t},{useSuspense:c,keyPrefix:f}=l,m=e||r||o.options?.defaultNS;m=g(m)?[m]:m||["translation"],o.reportNamespaces.addUsedNamespaces?.(m);let y=(o.isInitialized||o.initializedStoreOnce)&&m.every(e=>p(e,o,l)),v=C(o,t.lng||null,"fallback"===l.nsMode?m:m[0],f),x=()=>v,k=()=>N(o,t.lng||null,"fallback"===l.nsMode?m:m[0],f),[R,$]=(0,n.useState)(x),P=m.join();t.lng&&(P=`${t.lng}${P}`);let j=O(P),E=(0,n.useRef)(!0);(0,n.useEffect)(()=>{let{bindI18n:e,bindI18nStore:i}=l;E.current=!0,y||c||(t.lng?h(o,t.lng,m,()=>{E.current&&$(k)}):u(o,m,()=>{E.current&&$(k)})),y&&j&&j!==P&&E.current&&$(k);let s=()=>{E.current&&$(k)};return e&&o?.on(e,s),i&&o?.store.on(i,s),()=>{E.current=!1,o&&e?.split(" ").forEach(e=>o.off(e,s)),i&&o&&i.split(" ").forEach(e=>o.store.off(e,s))}},[o,P]),(0,n.useEffect)(()=>{E.current&&y&&$(x)},[o,f,y]);let I=[R,o,y];if(I.t=R,I.i18n=o,I.ready=y,y||!y&&!c)return I;throw new Promise(e=>{t.lng?h(o,t.lng,m,()=>e()):u(o,m,()=>e())})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/404.fca7fcbcf0e1c223.js b/_next/static/chunks/404.fca7fcbcf0e1c223.js deleted file mode 100644 index 9aae77f04..000000000 --- a/_next/static/chunks/404.fca7fcbcf0e1c223.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[404],{3836:function(e,t,r){let n=r(815).parse,o=r(3647).compile,a=r(4604).segment,l=r(4425);e.exports={parse:n,compile:o,segment:a,hls:l}},3647:function(e){function t(e,t){this.message=e,this.error=t}function r(e){let t=n(Math.floor(e/60/60),2),r=n(Math.floor(e/60)%60,2),o=n(Math.floor(e%60),2),a=n(Math.floor(1e3*(e%1).toFixed(4)),3);return`${t}:${r}:${o}.${a}`}function n(e,t){let r=`${e}`;for(;r.length{if("string"!=typeof e[1])throw new t(`Metadata value for "${e[0]}" must be string`);n+=`${e[0]}: ${e[1]} -`})}let o=null;return e.cues.forEach((e,a)=>{if(o&&o>e.start)throw new t(`Cue number ${a} is not in chronological order`);o=e.start,n+="\n"+function(e){if("object"!=typeof e)throw new t("Cue malformed: not of type object");if("string"!=typeof e.identifier&&"number"!=typeof e.identifier&&null!==e.identifier)throw new t(`Cue malformed: identifier value is not a string. - ${JSON.stringify(e)}`);if(isNaN(e.start))throw new t(`Cue malformed: null start value. - ${JSON.stringify(e)}`);if(isNaN(e.end))throw new t(`Cue malformed: null end value. - ${JSON.stringify(e)}`);if(e.start>=e.end)throw new t(`Cue malformed: start timestamp greater than end - ${JSON.stringify(e)}`);if("string"!=typeof e.text)throw new t(`Cue malformed: null text value. - ${JSON.stringify(e)}`);if("string"!=typeof e.styles)throw new t(`Cue malformed: null styles value. - ${JSON.stringify(e)}`);let n="";e.identifier.length>0&&(n+=`${e.identifier} -`);let o=r(e.start),a=r(e.end);return n+(`${o} --> ${a}`+(e.styles?` ${e.styles}`:""))+` -${e.text}`}(e)+"\n"}),n}}},4425:function(e,t,r){let n=r(4604).segment;function o(e,t){let r="0".repeat(Math.max(0,t-e.toString().length));return`${r}${e}`}function a(e){let t=(e%1).toFixed(3),r=Math.floor((e=Math.round(e-t))/3600),n=Math.floor((e-3600*r)/60),a=e-3600*r-60*n,l=`${o(r,2)}:`;return`${l}${o(n,2)}:${o(a,2)}.${o(1e3*t,3)}`}e.exports={hlsSegment:function(e,t,r){void 0===r&&(r="900000");let o=n(e,t),l=[];return o.forEach((e,t)=>{let n=`WEBVTT -X-TIMESTAMP-MAP=MPEGTS:${r},LOCAL:00:00:00.000 - -${function(e){let t=[];return e.forEach(e=>{t.push(function(e){let t=[];e.identifier&&t.push(e.identifier);let r=a(e.start),n=a(e.end),o=e.styles?`${e.styles}`:"";return t.push(`${r} --> ${n} ${o}`),t.push(e.text),t.join("\n")}(e))}),t.join("\n\n")}(e.cues)} -`,o=`${t}.vtt`;l.push({filename:o,content:n})}),l},hlsSegmentPlaylist:function(e,t){let r;let o=n(e,t),a=function(e){let t=[];return e.forEach((e,r)=>{t.push(`#EXTINF:${e.duration.toFixed(5)}, -${r}.vtt`)}),t.join("\n")}(o),l=Math.round((r=0,o.forEach(e=>{e.duration>r&&(r=e.duration)}),r));return`#EXTM3U -#EXT-X-TARGETDURATION:${l} -#EXT-X-VERSION:3 -#EXT-X-MEDIA-SEQUENCE:0 -#EXT-X-PLAYLIST-TYPE:VOD -${a} -#EXT-X-ENDLIST -`}}},815:function(e){function t(e,t){this.message=e,this.error=t}t.prototype=Object.create(Error.prototype);let r=/([0-9]+)?:?([0-9]{2}):([0-9]{2}\.[0-9]{2,3})/;function n(e){let t=e.match(r);return 3600*parseFloat(t[1]||0)+(60*parseFloat(t[2])+parseFloat(t[3]))}e.exports={ParserError:t,parse:function(e,o){o||(o={});let{meta:a=!1,strict:l=!0}=o;if("string"!=typeof e)throw new t("Input must be a string");let i=(e=(e=(e=e.trim()).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).split("\n\n"),s=i.shift();if(!s.startsWith("WEBVTT"))throw new t('Must start with "WEBVTT"');let u=s.split("\n"),c=u[0].replace("WEBVTT","");if(c.length>0&&" "!==c[0]&&" "!==c[0])throw new t("Header comment must start with space or tab");if(0===i.length&&1===u.length)return{valid:!0,strict:l,cues:[],errors:[]};if(!a&&u.length>1&&""!==u[1])throw new t("Missing blank line after signature");let{cues:d,errors:f}=function(e,o){let a=[];return{cues:e.map((e,l)=>{try{return function(e,o,a){var l,i;let s="",u=0,c=.01,d="",f="",p=e.split("\n").filter(Boolean);if(p.length>0&&p[0].trim().startsWith("NOTE"))return null;if(1===p.length&&!p[0].includes("-->"))throw new t(`Cue identifier cannot be standalone (cue #${o})`);if(p.length>1&&!(p[0].includes("-->")||p[1].includes("-->")))throw new t(`Cue identifier needs to be followed by timestamp (cue #${o})`);p.length>1&&p[1].includes("-->")&&(s=p.shift());let h="string"==typeof p[0]&&p[0].split(" --> ");if(2!==h.length||(l=h[0],!r.test(l))||(i=h[1],!r.test(i)))throw new t(`Invalid cue timestamp (cue #${o})`);if(u=n(h[0]),c=n(h[1]),a){if(u>c)throw new t(`Start timestamp greater than end (cue #${o})`);if(c<=u)throw new t(`End must be greater than start (cue #${o})`)}if(!a&&c0)throw f[0];let p=a?function(e){let t={};return e.slice(1).forEach(e=>{let r=e.indexOf(":"),n=e.slice(0,r).trim(),o=e.slice(r+1).trim();t[n]=o}),Object.keys(t).length>0?t:null}(u):null,h={valid:0===f.length,strict:l,cues:d,errors:f};return a&&(h.meta=p),h}}},4604:function(e,t,r){let n=r(815).parse;e.exports={segment:function(e,t){t=t||10;let r=n(e),o=[],a=[],l=null,i=0,s=0;return r.cues.forEach((e,n)=>{let u=0===n,c=n===r.cues.length-1,d=e.start,f=e.end,p=c?1/0:r.cues[n+1].start,h=u?f:f-d,m=u?0:d-r.cues[n-1].end;i=i+h+m,o.length,l&&(a.push(l),i+=l.end-s,l=null),a.push(e);let v=p-ft;if(function(e,t,r,n){return(n<=t||n+(t-n%t)+e=t}(s,t,p,m)){var w,g,y,b;let e;let r=(w=t,g=i,y=s,e=w,g>w&&(e=(b=g-w)+(w-b%w)),e=c?parseFloat((f-y).toFixed(2)):Math.round(e));o.push({duration:r,cues:a}),s+=r,i=0,a=[]}else v=!1;v&&(l=e)}),o}}},4399:function(e,t,r){r.d(t,{VY:function(){return R},fC:function(){return E},xz:function(){return M}});var n=r(5271),o=r(5061),a=r(9407),l=r(9945),i=r(8722),s=r(1224),u=r(8141),c=r(2432),d=r(5065),f=r(2676),p="Collapsible",[h,m]=(0,a.b)(p),[v,w]=h(p),g=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:o,defaultOpen:a,disabled:i,onOpenChange:s,...c}=e,[p=!1,h]=(0,l.T)({prop:o,defaultProp:a,onChange:s});return(0,f.jsx)(v,{scope:r,disabled:i,contentId:(0,d.M)(),open:p,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),children:(0,f.jsx)(u.WV.div,{"data-state":j(p),"data-disabled":i?"":void 0,...c,ref:t})})});g.displayName=p;var y="CollapsibleTrigger",b=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,a=w(y,r);return(0,f.jsx)(u.WV.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":j(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:t,onClick:(0,o.M)(e.onClick,a.onOpenToggle)})});b.displayName=y;var x="CollapsibleContent",C=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=w(x,e.__scopeCollapsible);return(0,f.jsx)(c.z,{present:r||o.open,children:({present:e})=>(0,f.jsx)(S,{...n,ref:t,present:e})})});C.displayName=x;var S=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:o,children:a,...l}=e,c=w(x,r),[d,p]=n.useState(o),h=n.useRef(null),m=(0,s.e)(t,h),v=n.useRef(0),g=v.current,y=n.useRef(0),b=y.current,C=c.open||d,S=n.useRef(C),E=n.useRef();return n.useEffect(()=>{let e=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,i.b)(()=>{let e=h.current;if(e){E.current=E.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,y.current=t.width,S.current||(e.style.transitionDuration=E.current.transitionDuration,e.style.animationName=E.current.animationName),p(o)}},[c.open,o]),(0,f.jsx)(u.WV.div,{"data-state":j(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!C,...l,ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:C&&a})});function j(e){return e?"open":"closed"}var E=g,M=b,R=C},5216:function(e,t,r){r.d(t,{B:function(){return s}});var n=r(5271),o=r(8468),a=r(1224),l=r(1557),i=r(2676);function s(e){let t=e+"CollectionProvider",[r,s]=(0,o.b)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(u,{scope:t,itemMap:a,collectionRef:o,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=c(f,r),s=(0,a.e)(t,o.collectionRef);return(0,i.jsx)(l.g7,{ref:s,children:n})});p.displayName=f;let h=e+"CollectionItemSlot",m="data-radix-collection-item",v=n.forwardRef((e,t)=>{let{scope:r,children:o,...s}=e,u=n.useRef(null),d=(0,a.e)(t,u),f=c(h,r);return n.useEffect(()=>(f.itemMap.set(u,{ref:u,...s}),()=>void f.itemMap.delete(u))),(0,i.jsx)(l.g7,{[m]:"",ref:d,children:o})});return v.displayName=h,[{Provider:d,Slot:p,ItemSlot:v},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},s]}},9721:function(e,t,r){r.d(t,{gm:function(){return a}});var n=r(5271);r(2676);var o=n.createContext(void 0);function a(e){let t=n.useContext(o);return e||t||"ltr"}},2014:function(e,t,r){r.d(t,{ck:function(){return W},fC:function(){return $}});var n=r(5271),o=r(5061),a=r(1224),l=r(9407),i=r(8141),s=r(9186),u=r(9945),c=r(9721),d=r(7017),f=r(5477),p=r(2432),h=r(2676),m="Radio",[v,w]=(0,l.b)(m),[g,y]=v(m),b=n.forwardRef((e,t)=>{let{__scopeRadio:r,name:l,checked:s=!1,required:u,disabled:c,value:d="on",onCheck:f,form:p,...m}=e,[v,w]=n.useState(null),y=(0,a.e)(t,e=>w(e)),b=n.useRef(!1),x=!v||p||!!v.closest("form");return(0,h.jsxs)(g,{scope:r,checked:s,disabled:c,children:[(0,h.jsx)(i.WV.button,{type:"button",role:"radio","aria-checked":s,"data-state":j(s),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:y,onClick:(0,o.M)(e.onClick,e=>{s||f?.(),x&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),x&&(0,h.jsx)(S,{control:v,bubbles:!b.current,name:l,value:d,checked:s,required:u,disabled:c,form:p,style:{transform:"translateX(-100%)"}})]})});b.displayName=m;var x="RadioIndicator",C=n.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:n,...o}=e,a=y(x,r);return(0,h.jsx)(p.z,{present:n||a.checked,children:(0,h.jsx)(i.WV.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});C.displayName=x;var S=e=>{let{control:t,checked:r,bubbles:o=!0,...a}=e,l=n.useRef(null),i=(0,f.D)(r),s=(0,d.t)(t);return n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(i!==r&&t){let n=new Event("click",{bubbles:o});t.call(e,r),e.dispatchEvent(n)}},[i,r,o]),(0,h.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:l,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function j(e){return e?"checked":"unchecked"}var E=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],M="RadioGroup",[R,T]=(0,l.b)(M,[s.Pc,w]),k=(0,s.Pc)(),I=w(),[N,D]=R(M),P=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:l=!1,disabled:d=!1,orientation:f,dir:p,loop:m=!0,onValueChange:v,...w}=e,g=k(r),y=(0,c.gm)(p),[b,x]=(0,u.T)({prop:a,defaultProp:o,onChange:v});return(0,h.jsx)(N,{scope:r,name:n,required:l,disabled:d,value:b,onValueChange:x,children:(0,h.jsx)(s.fC,{asChild:!0,...g,orientation:f,dir:y,loop:m,children:(0,h.jsx)(i.WV.div,{role:"radiogroup","aria-required":l,"aria-orientation":f,"data-disabled":d?"":void 0,dir:y,...w,ref:t})})})});P.displayName=M;var V="RadioGroupItem",A=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,disabled:l,...i}=e,u=D(V,r),c=u.disabled||l,d=k(r),f=I(r),p=n.useRef(null),m=(0,a.e)(t,p),v=u.value===i.value,w=n.useRef(!1);return n.useEffect(()=>{let e=e=>{E.includes(e.key)&&(w.current=!0)},t=()=>w.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,h.jsx)(s.ck,{asChild:!0,...d,focusable:!c,active:v,children:(0,h.jsx)(b,{disabled:c,required:u.required,checked:v,...f,...i,name:u.name,ref:m,onCheck:()=>u.onValueChange(i.value),onKeyDown:(0,o.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,o.M)(i.onFocus,()=>{w.current&&p.current?.click()})})})});A.displayName=V,n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...n}=e,o=I(r);return(0,h.jsx)(C,{...o,...n,ref:t})}).displayName="RadioGroupIndicator";var $=P,W=A},9186:function(e,t,r){r.d(t,{Pc:function(){return x},ck:function(){return N},fC:function(){return I}});var n=r(5271),o=r(5061),a=r(5216),l=r(1224),i=r(8468),s=r(5065),u=r(8141),c=r(116),d=r(9945),f=r(9721),p=r(2676),h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[w,g,y]=(0,a.B)(v),[b,x]=(0,i.b)(v,[y]),[C,S]=b(v),j=n.forwardRef((e,t)=>(0,p.jsx)(w.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(w.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(E,{...e,ref:t})})}));j.displayName=v;var E=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:i=!1,dir:s,currentTabStopId:v,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:y,onEntryFocus:b,preventScrollOnEntryFocus:x=!1,...S}=e,j=n.useRef(null),E=(0,l.e)(t,j),M=(0,f.gm)(s),[R=null,T]=(0,d.T)({prop:v,defaultProp:w,onChange:y}),[I,N]=n.useState(!1),D=(0,c.W)(b),P=g(r),V=n.useRef(!1),[A,$]=n.useState(0);return n.useEffect(()=>{let e=j.current;if(e)return e.addEventListener(h,D),()=>e.removeEventListener(h,D)},[D]),(0,p.jsx)(C,{scope:r,orientation:a,dir:M,loop:i,currentTabStopId:R,onItemFocus:n.useCallback(e=>T(e),[T]),onItemShiftTab:n.useCallback(()=>N(!0),[]),onFocusableItemAdd:n.useCallback(()=>$(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>$(e=>e-1),[]),children:(0,p.jsx)(u.WV.div,{tabIndex:I||0===A?-1:0,"data-orientation":a,...S,ref:E,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{V.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!V.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);k([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),x)}}V.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>N(!1))})})}),M="RovingFocusGroupItem",R=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:l=!1,tabStopId:i,...c}=e,d=(0,s.M)(),f=i||d,h=S(M,r),m=h.currentTabStopId===f,v=g(r),{onFocusableItemAdd:y,onFocusableItemRemove:b}=h;return n.useEffect(()=>{if(a)return y(),()=>b()},[a,y,b]),(0,p.jsx)(w.ItemSlot,{scope:r,id:f,focusable:a,active:l,children:(0,p.jsx)(u.WV.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{a?h.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return T[o]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=h.loop?(r=o,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(a+1)}setTimeout(()=>k(o))}})})})});R.displayName=M;var T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var I=j,N=R},8807:function(e,t,r){r.d(t,{VY:function(){return eI},ck:function(){return eD},__:function(){return eN},fC:function(){return eT},DI:function(){return ei},GV:function(){return X},o6:function(){return ew},S_:function(){return em},ue:function(){return U},Jk:function(){return ex},Pn:function(){return ey},ki:function(){return K},Q_:function(){return en},xz:function(){return ek}});var n=r(5271),o=r(967);function a(e,[t,r]){return Math.min(r,Math.max(t,e))}var l=r(5061),i=r(5216),s=r(1224),u=r(9407),c=r(9721),d=r(7196),f=r(1077),p=r(4154),h=r(5065),m=r(1085),v=r(3249),w=r(8141),g=r(1557),y=r(116),b=r(9945),x=r(8722),C=r(5477),S=r(2676),j=n.forwardRef((e,t)=>(0,S.jsx)(w.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));j.displayName="VisuallyHidden";var E=r(9800),M=r(6393),R=[" ","Enter","ArrowUp","ArrowDown"],T=[" ","Enter"],k="Select",[I,N,D]=(0,i.B)(k),[P,V]=(0,u.b)(k,[D,m.D7]),A=(0,m.D7)(),[$,W]=P(k),[L,F]=P(k),O=e=>{let{__scopeSelect:t,children:r,open:o,defaultOpen:a,onOpenChange:l,value:i,defaultValue:s,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:v,required:w,form:g}=e,y=A(t),[x,C]=n.useState(null),[j,E]=n.useState(null),[M,R]=n.useState(!1),T=(0,c.gm)(d),[k=!1,N]=(0,b.T)({prop:o,defaultProp:a,onChange:l}),[D,P]=(0,b.T)({prop:i,defaultProp:s,onChange:u}),V=n.useRef(null),W=!x||g||!!x.closest("form"),[F,O]=n.useState(new Set),_=Array.from(F).map(e=>e.props.value).join(";");return(0,S.jsx)(m.fC,{...y,children:(0,S.jsxs)($,{required:w,scope:t,trigger:x,onTriggerChange:C,valueNode:j,onValueNodeChange:E,valueNodeHasChildren:M,onValueNodeHasChildrenChange:R,contentId:(0,h.M)(),value:D,onValueChange:P,open:k,onOpenChange:N,dir:T,triggerPointerDownPosRef:V,disabled:v,children:[(0,S.jsx)(I.Provider,{scope:t,children:(0,S.jsx)(L,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{O(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{O(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),W?(0,S.jsxs)(eE,{"aria-hidden":!0,required:w,tabIndex:-1,name:f,autoComplete:p,value:D,onChange:e=>P(e.target.value),disabled:v,form:g,children:[void 0===D?(0,S.jsx)("option",{value:""}):null,Array.from(F)]},_):null]})})};O.displayName=k;var _="SelectTrigger",B=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:o=!1,...a}=e,i=A(r),u=W(_,r),c=u.disabled||o,d=(0,s.e)(t,u.onTriggerChange),f=N(r),p=n.useRef("touch"),[h,v,g]=eM(e=>{let t=f().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=eR(t,e,r);void 0!==n&&u.onValueChange(n.value)}),y=e=>{c||(u.onOpenChange(!0),g()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,S.jsx)(m.ee,{asChild:!0,...i,children:(0,S.jsx)(w.WV.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":ej(u.value)?"":void 0,...a,ref:d,onClick:(0,l.M)(a.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&y(e)}),onPointerDown:(0,l.M)(a.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,l.M)(a.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&R.includes(e.key)&&(y(),e.preventDefault())})})})});B.displayName=_;var H="SelectValue",K=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:o,children:a,placeholder:l="",...i}=e,u=W(H,r),{onValueNodeHasChildrenChange:c}=u,d=void 0!==a,f=(0,s.e)(t,u.onValueNodeChange);return(0,x.b)(()=>{c(d)},[c,d]),(0,S.jsx)(w.WV.span,{...i,ref:f,style:{pointerEvents:"none"},children:ej(u.value)?(0,S.jsx)(S.Fragment,{children:l}):a})});K.displayName=H;var X=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...o}=e;return(0,S.jsx)(w.WV.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});X.displayName="SelectIcon";var U=e=>(0,S.jsx)(v.h,{asChild:!0,...e});U.displayName="SelectPortal";var z="SelectContent",G=n.forwardRef((e,t)=>{let r=W(z,e.__scopeSelect),[a,l]=n.useState();return((0,x.b)(()=>{l(new DocumentFragment)},[]),r.open)?(0,S.jsx)(J,{...e,ref:t}):a?o.createPortal((0,S.jsx)(q,{scope:e.__scopeSelect,children:(0,S.jsx)(I.Slot,{scope:e.__scopeSelect,children:(0,S.jsx)("div",{children:e.children})})}),a):null});G.displayName=z;var[q,Y]=P(z),J=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:u,side:c,sideOffset:h,align:m,alignOffset:v,arrowPadding:w,collisionBoundary:y,collisionPadding:b,sticky:x,hideWhenDetached:C,avoidCollisions:j,...R}=e,T=W(z,r),[k,I]=n.useState(null),[D,P]=n.useState(null),V=(0,s.e)(t,e=>I(e)),[A,$]=n.useState(null),[L,F]=n.useState(null),O=N(r),[_,B]=n.useState(!1),H=n.useRef(!1);n.useEffect(()=>{if(k)return(0,E.Ry)(k)},[k]),(0,f.EW)();let K=n.useCallback(e=>{let[t,...r]=O().map(e=>e.ref.current),[n]=r.slice(-1),o=document.activeElement;for(let r of e)if(r===o||(r?.scrollIntoView({block:"nearest"}),r===t&&D&&(D.scrollTop=0),r===n&&D&&(D.scrollTop=D.scrollHeight),r?.focus(),document.activeElement!==o))return},[O,D]),X=n.useCallback(()=>K([A,k]),[K,A,k]);n.useEffect(()=>{_&&X()},[_,X]);let{onOpenChange:U,triggerPointerDownPosRef:G}=T;n.useEffect(()=>{if(k){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():k.contains(r.target)||U(!1),document.removeEventListener("pointermove",t),G.current=null};return null!==G.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[k,U,G]),n.useEffect(()=>{let e=()=>U(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[U]);let[Y,J]=eM(e=>{let t=O().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eR(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=n.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==T.value&&T.value===t||n)&&($(e),n&&(H.current=!0))},[T.value]),et=n.useCallback(()=>k?.focus(),[k]),er=n.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==T.value&&T.value===t||n)&&F(e)},[T.value]),en="popper"===o?Z:Q,eo=en===Z?{side:c,sideOffset:h,align:m,alignOffset:v,arrowPadding:w,collisionBoundary:y,collisionPadding:b,sticky:x,hideWhenDetached:C,avoidCollisions:j}:{};return(0,S.jsx)(q,{scope:r,content:k,viewport:D,onViewportChange:P,itemRefCallback:ee,selectedItem:A,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:X,selectedItemText:L,position:o,isPositioned:_,searchRef:Y,children:(0,S.jsx)(M.Z,{as:g.g7,allowPinchZoom:!0,children:(0,S.jsx)(p.M,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,l.M)(a,e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,S.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,S.jsx)(en,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:e=>e.preventDefault(),...R,...eo,onPlaced:()=>B(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:(0,l.M)(R.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>K(t)),e.preventDefault()}})})})})})})});J.displayName="SelectContentImpl";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:o,...l}=e,i=W(z,r),u=Y(z,r),[c,d]=n.useState(null),[f,p]=n.useState(null),h=(0,s.e)(t,e=>p(e)),m=N(r),v=n.useRef(!1),g=n.useRef(!0),{viewport:y,selectedItem:b,selectedItemText:C,focusSelectedItem:j}=u,E=n.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&f&&y&&b&&C){let e=i.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=i.valueNode.getBoundingClientRect(),n=C.getBoundingClientRect();if("rtl"!==i.dir){let o=n.left-t.left,l=r.left-o,i=e.left-l,s=e.width+i,u=Math.max(s,t.width),d=a(l,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=s+"px",c.style.left=d+"px"}else{let o=t.right-n.right,l=window.innerWidth-r.right-o,i=window.innerWidth-e.right-l,s=e.width+i,u=Math.max(s,t.width),d=a(l,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=s+"px",c.style.right=d+"px"}let l=m(),s=window.innerHeight-20,u=y.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),w=parseInt(d.borderBottomWidth,10),g=p+h+u+parseInt(d.paddingBottom,10)+w,x=Math.min(5*b.offsetHeight,g),S=window.getComputedStyle(y),j=parseInt(S.paddingTop,10),E=parseInt(S.paddingBottom,10),M=e.top+e.height/2-10,R=b.offsetHeight/2,T=p+h+(b.offsetTop+R);if(T<=M){let e=l.length>0&&b===l[l.length-1].ref.current;c.style.bottom="0px";let t=f.clientHeight-y.offsetTop-y.offsetHeight;c.style.height=T+Math.max(s-M,R+(e?E:0)+t+w)+"px"}else{let e=l.length>0&&b===l[0].ref.current;c.style.top="0px";let t=Math.max(M,p+y.offsetTop+(e?j:0)+R);c.style.height=t+(g-T)+"px",y.scrollTop=T-M+y.offsetTop}c.style.margin="10px 0",c.style.minHeight=x+"px",c.style.maxHeight=s+"px",o?.(),requestAnimationFrame(()=>v.current=!0)}},[m,i.trigger,i.valueNode,c,f,y,b,C,i.dir,o]);(0,x.b)(()=>E(),[E]);let[M,R]=n.useState();(0,x.b)(()=>{f&&R(window.getComputedStyle(f).zIndex)},[f]);let T=n.useCallback(e=>{e&&!0===g.current&&(E(),j?.(),g.current=!1)},[E,j]);return(0,S.jsx)(ee,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:T,children:(0,S.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:(0,S.jsx)(w.WV.div,{...l,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});Q.displayName="SelectItemAlignedPosition";var Z=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:o=10,...a}=e,l=A(r);return(0,S.jsx)(m.VY,{...l,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Z.displayName="SelectPopperPosition";var[ee,et]=P(z,{}),er="SelectViewport",en=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:o,...a}=e,i=Y(er,r),u=et(er,r),c=(0,s.e)(t,i.onViewportChange),d=n.useRef(0);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,S.jsx)(I.Slot,{scope:r,children:(0,S.jsx)(w.WV.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:(0,l.M)(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if(n?.current&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,o=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(o0?i:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});en.displayName=er;var eo="SelectGroup",[ea,el]=P(eo),ei=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=(0,h.M)();return(0,S.jsx)(ea,{scope:r,id:o,children:(0,S.jsx)(w.WV.div,{role:"group","aria-labelledby":o,...n,ref:t})})});ei.displayName=eo;var es="SelectLabel",eu=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=el(es,r);return(0,S.jsx)(w.WV.div,{id:o.id,...n,ref:t})});eu.displayName=es;var ec="SelectItem",[ed,ef]=P(ec),ep=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:o,disabled:a=!1,textValue:i,...u}=e,c=W(ec,r),d=Y(ec,r),f=c.value===o,[p,m]=n.useState(i??""),[v,g]=n.useState(!1),y=(0,s.e)(t,e=>d.itemRefCallback?.(e,o,a)),b=(0,h.M)(),x=n.useRef("touch"),C=()=>{a||(c.onValueChange(o),c.onOpenChange(!1))};if(""===o)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,S.jsx)(ed,{scope:r,value:o,disabled:a,textId:b,isSelected:f,onItemTextChange:n.useCallback(e=>{m(t=>t||(e?.textContent??"").trim())},[]),children:(0,S.jsx)(I.ItemSlot,{scope:r,value:o,disabled:a,textValue:p,children:(0,S.jsx)(w.WV.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...u,ref:y,onFocus:(0,l.M)(u.onFocus,()=>g(!0)),onBlur:(0,l.M)(u.onBlur,()=>g(!1)),onClick:(0,l.M)(u.onClick,()=>{"mouse"!==x.current&&C()}),onPointerUp:(0,l.M)(u.onPointerUp,()=>{"mouse"===x.current&&C()}),onPointerDown:(0,l.M)(u.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,l.M)(u.onPointerMove,e=>{x.current=e.pointerType,a?d.onItemLeave?.():"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,l.M)(u.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:(0,l.M)(u.onKeyDown,e=>{d.searchRef?.current!==""&&" "===e.key||(T.includes(e.key)&&C()," "===e.key&&e.preventDefault())})})})})});ep.displayName=ec;var eh="SelectItemText",em=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:a,style:l,...i}=e,u=W(eh,r),c=Y(eh,r),d=ef(eh,r),f=F(eh,r),[p,h]=n.useState(null),m=(0,s.e)(t,e=>h(e),d.onItemTextChange,e=>c.itemTextRefCallback?.(e,d.value,d.disabled)),v=p?.textContent,g=n.useMemo(()=>(0,S.jsx)("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=f;return(0,x.b)(()=>(y(g),()=>b(g)),[y,b,g]),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(w.WV.span,{id:d.textId,...i,ref:m}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?o.createPortal(i.children,u.valueNode):null]})});em.displayName=eh;var ev="SelectItemIndicator",ew=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ef(ev,r).isSelected?(0,S.jsx)(w.WV.span,{"aria-hidden":!0,...n,ref:t}):null});ew.displayName=ev;var eg="SelectScrollUpButton",ey=n.forwardRef((e,t)=>{let r=Y(eg,e.__scopeSelect),o=et(eg,e.__scopeSelect),[a,l]=n.useState(!1),i=(0,s.e)(t,o.onScrollButtonChange);return(0,x.b)(()=>{if(r.viewport&&r.isPositioned){let e=function(){l(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,S.jsx)(eC,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ey.displayName=eg;var eb="SelectScrollDownButton",ex=n.forwardRef((e,t)=>{let r=Y(eb,e.__scopeSelect),o=et(eb,e.__scopeSelect),[a,l]=n.useState(!1),i=(0,s.e)(t,o.onScrollButtonChange);return(0,x.b)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,S.jsx)(eC,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ex.displayName=eb;var eC=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:o,...a}=e,i=Y("SelectScrollButton",r),s=n.useRef(null),u=N(r),c=n.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return n.useEffect(()=>()=>c(),[c]),(0,x.b)(()=>{let e=u().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[u]),(0,S.jsx)(w.WV.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:(0,l.M)(a.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(o,50))}),onPointerMove:(0,l.M)(a.onPointerMove,()=>{i.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(o,50))}),onPointerLeave:(0,l.M)(a.onPointerLeave,()=>{c()})})});n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,S.jsx)(w.WV.div,{"aria-hidden":!0,...n,ref:t})}).displayName="SelectSeparator";var eS="SelectArrow";function ej(e){return""===e||void 0===e}n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=A(r),a=W(eS,r),l=Y(eS,r);return a.open&&"popper"===l.position?(0,S.jsx)(m.Eh,{...o,...n,ref:t}):null}).displayName=eS;var eE=n.forwardRef((e,t)=>{let{value:r,...o}=e,a=n.useRef(null),l=(0,s.e)(t,a),i=(0,C.D)(r);return n.useEffect(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[i,r]),(0,S.jsx)(j,{asChild:!0,children:(0,S.jsx)("select",{...o,ref:l,defaultValue:r})})});function eM(e){let t=(0,y.W)(e),r=n.useRef(""),o=n.useRef(0),a=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),l=n.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,a,l]}function eR(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(a=a.filter(e=>e!==r));let l=a.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}eE.displayName="BubbleSelect";var eT=O,ek=B,eI=G,eN=eu,eD=ep},4662:function(e,t,r){r.d(t,{bU:function(){return S},fC:function(){return C}});var n=r(5271),o=r(5061),a=r(1224),l=r(9407),i=r(9945),s=r(5477),u=r(7017),c=r(8141),d=r(2676),f="Switch",[p,h]=(0,l.b)(f),[m,v]=p(f),w=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:l,checked:s,defaultChecked:u,required:f,disabled:p,value:h="on",onCheckedChange:v,form:w,...g}=e,[y,C]=n.useState(null),S=(0,a.e)(t,e=>C(e)),j=n.useRef(!1),E=!y||w||!!y.closest("form"),[M=!1,R]=(0,i.T)({prop:s,defaultProp:u,onChange:v});return(0,d.jsxs)(m,{scope:r,checked:M,disabled:p,children:[(0,d.jsx)(c.WV.button,{type:"button",role:"switch","aria-checked":M,"aria-required":f,"data-state":x(M),"data-disabled":p?"":void 0,disabled:p,value:h,...g,ref:S,onClick:(0,o.M)(e.onClick,e=>{R(e=>!e),E&&(j.current=e.isPropagationStopped(),j.current||e.stopPropagation())})}),E&&(0,d.jsx)(b,{control:y,bubbles:!j.current,name:l,value:h,checked:M,required:f,disabled:p,form:w,style:{transform:"translateX(-100%)"}})]})});w.displayName=f;var g="SwitchThumb",y=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,o=v(g,r);return(0,d.jsx)(c.WV.span,{"data-state":x(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});y.displayName=g;var b=e=>{let{control:t,checked:r,bubbles:o=!0,...a}=e,l=n.useRef(null),i=(0,s.D)(r),c=(0,u.t)(t);return n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(i!==r&&t){let n=new Event("click",{bubbles:o});t.call(e,r),e.dispatchEvent(n)}},[i,r,o]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:l,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function x(e){return e?"checked":"unchecked"}var C=w,S=y},3517:function(e,t,r){r.d(t,{VY:function(){return N},aV:function(){return k},fC:function(){return T},xz:function(){return I}});var n=r(5271),o=r(5061),a=r(9407),l=r(9186),i=r(2432),s=r(8141),u=r(9721),c=r(9945),d=r(5065),f=r(2676),p="Tabs",[h,m]=(0,a.b)(p,[l.Pc]),v=(0,l.Pc)(),[w,g]=h(p),y=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:l="horizontal",dir:i,activationMode:p="automatic",...h}=e,m=(0,u.gm)(i),[v,g]=(0,c.T)({prop:n,onChange:o,defaultProp:a});return(0,f.jsx)(w,{scope:r,baseId:(0,d.M)(),value:v,onValueChange:g,orientation:l,dir:m,activationMode:p,children:(0,f.jsx)(s.WV.div,{dir:m,"data-orientation":l,...h,ref:t})})});y.displayName=p;var b="TabsList",x=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...o}=e,a=g(b,r),i=v(r);return(0,f.jsx)(l.fC,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:(0,f.jsx)(s.WV.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});x.displayName=b;var C="TabsTrigger",S=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:a=!1,...i}=e,u=g(C,r),c=v(r),d=M(u.baseId,n),p=R(u.baseId,n),h=n===u.value;return(0,f.jsx)(l.ck,{asChild:!0,...c,focusable:!a,active:h,children:(0,f.jsx)(s.WV.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...i,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(n)}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(n)}),onFocus:(0,o.M)(e.onFocus,()=>{let e="manual"!==u.activationMode;h||a||!e||u.onValueChange(n)})})})});S.displayName=C;var j="TabsContent",E=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:o,forceMount:a,children:l,...u}=e,c=g(j,r),d=M(c.baseId,o),p=R(c.baseId,o),h=o===c.value,m=n.useRef(h);return n.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(i.z,{present:a||h,children:({present:r})=>(0,f.jsx)(s.WV.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:p,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&l})})});function M(e,t){return`${e}-trigger-${t}`}function R(e,t){return`${e}-content-${t}`}E.displayName=j;var T=y,k=x,I=S,N=E}}]); \ No newline at end of file diff --git a/_next/static/chunks/514-5c0e50803ee4fe0f.js b/_next/static/chunks/514-5c0e50803ee4fe0f.js deleted file mode 100644 index ac5a61b35..000000000 --- a/_next/static/chunks/514-5c0e50803ee4fe0f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[514],{6431:function(e,t,r){"use strict";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 a},noSSR:function(){return o}});let l=r(2430);r(2676),r(5271);let i=l._(r(4411));function n(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function a(e,t){let r=i.default,l={loading:e=>{let{error:t,isLoading:r,pastDelay:l}=e;return null}};e instanceof Promise?l.loader=()=>e:"function"==typeof e?l.loader=e:"object"==typeof e&&(l={...l,...e});let a=(l={...l,...t}).loader;return(l.loadableGenerated&&(l={...l,...l.loadableGenerated},delete l.loadableGenerated),"boolean"!=typeof l.ssr||l.ssr)?r({...l,loader:()=>null!=a?a().then(n):Promise.resolve(n(()=>null))}):(delete l.webpack,delete l.modules,o(r,l))}("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)},7558:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return l}});let l=r(2430)._(r(5271)).default.createContext(null)},4411:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let l=r(2430)._(r(5271)),i=r(7558),n=[],o=[],a=!1;function s(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function s(){if(!n){let t=new d(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!a){let e=r.webpack?r.webpack():r.modules;e&&o.push(t=>{for(let r of e)if(t.includes(r))return s()})}function c(e,t){!function(){s();let e=l.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let o=l.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return l.default.useImperativeHandle(t,()=>({retry:n.retry}),[]),l.default.useMemo(()=>{var t;return o.loading||o.error?l.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:n.retry}):o.loaded?l.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>s(),c.displayName="LoadableComponent",l.default.forwardRef(c)}(s,e)}function u(e,t){let r=[];for(;e.length;){let l=e.pop();r.push(l(t))}return Promise.all(r).then(()=>{if(e.length)return u(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{u(n).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(a=!0,t());u(o,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let p=c},6147:function(e,t,r){e.exports=r(6431)},1028:function(e,t,r){"use strict";r.d(t,{Th:function(){return Q},jG:function(){return et}});var l,i=r(5271),n="colors",o="sizes",a="space",s={gap:a,gridGap:a,columnGap:a,gridColumnGap:a,rowGap:a,gridRowGap:a,inset:a,insetBlock:a,insetBlockEnd:a,insetBlockStart:a,insetInline:a,insetInlineEnd:a,insetInlineStart:a,margin:a,marginTop:a,marginRight:a,marginBottom:a,marginLeft:a,marginBlock:a,marginBlockEnd:a,marginBlockStart:a,marginInline:a,marginInlineEnd:a,marginInlineStart:a,padding:a,paddingTop:a,paddingRight:a,paddingBottom:a,paddingLeft:a,paddingBlock:a,paddingBlockEnd:a,paddingBlockStart:a,paddingInline:a,paddingInlineEnd:a,paddingInlineStart:a,top:a,right:a,bottom:a,left:a,scrollMargin:a,scrollMarginTop:a,scrollMarginRight:a,scrollMarginBottom:a,scrollMarginLeft:a,scrollMarginX:a,scrollMarginY:a,scrollMarginBlock:a,scrollMarginBlockEnd:a,scrollMarginBlockStart:a,scrollMarginInline:a,scrollMarginInlineEnd:a,scrollMarginInlineStart:a,scrollPadding:a,scrollPaddingTop:a,scrollPaddingRight:a,scrollPaddingBottom:a,scrollPaddingLeft:a,scrollPaddingX:a,scrollPaddingY:a,scrollPaddingBlock:a,scrollPaddingBlockEnd:a,scrollPaddingBlockStart:a,scrollPaddingInline:a,scrollPaddingInlineEnd:a,scrollPaddingInlineStart:a,fontSize:"fontSizes",background:n,backgroundColor:n,backgroundImage:n,borderImage:n,border:n,borderBlock:n,borderBlockEnd:n,borderBlockStart:n,borderBottom:n,borderBottomColor:n,borderColor:n,borderInline:n,borderInlineEnd:n,borderInlineStart:n,borderLeft:n,borderLeftColor:n,borderRight:n,borderRightColor:n,borderTop:n,borderTopColor:n,caretColor:n,color:n,columnRuleColor:n,fill:n,outline:n,outlineColor:n,stroke:n,textDecorationColor:n,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:o,minBlockSize:o,maxBlockSize:o,inlineSize:o,minInlineSize:o,maxInlineSize:o,width:o,minWidth:o,maxWidth:o,height:o,minHeight:o,maxHeight:o,flexBasis:o,gridTemplateColumns:o,gridTemplateRows:o,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},d=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,c=()=>{let e=Object.create(null);return(t,r,...l)=>{let i=JSON.stringify(t,d);return i in e?e[i]:e[i]=r(t,...l)}},u=Symbol.for("sxs.internal"),p=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),g=e=>{for(let t in e)return!0;return!1},{hasOwnProperty:f}=Object.prototype,h=e=>e.includes("-")?e:e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),m=/\s+(?![^()]*\))/,b=e=>t=>e(..."string"==typeof t?String(t).split(m):[t]),S={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:b((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:b((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:b((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:b((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:b((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:b((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},y=/([\d.]+)([^]*)/,k=(e,t)=>e.length?e.reduce((e,r)=>(e.push(...t.map(e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e)),e),[]):t,B=(e,t)=>e in $&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(t,r,l,i)=>r+("stretch"===l?`-moz-available${i};${h(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${h(e)}:${r}fit-content`)+i):String(t),$={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},x=e=>e?e+"-":"",R=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(e,l,i,n,o)=>"$"==n==!!i?e:(l||"--"==n?"calc(":"")+"var(--"+("$"===n?x(t)+(o.includes("$")?"":x(r))+o.replace(/\$/g,"-"):o)+")"+(l||"--"==n?"*"+(l||"")+(i||"1")+")":"")),I=/\s*,\s*(?![^()]*\))/,j=Object.prototype.toString,_=(e,t,r,l,i)=>{let n,o,a;let s=(e,t,r)=>{let d,c;let u=e=>{var p;for(d in e){let g=64===d.charCodeAt(0);for(c of g&&Array.isArray(e[d])?e[d]:[e[d]]){let e=/[A-Z]/.test(p=d)?p:p.replace(/-[^]/g,e=>e[1].toUpperCase()),f="object"==typeof c&&c&&c.toString===j&&(!l.utils[e]||!t.length);if(e in l.utils&&!f){let t=l.utils[e];if(t!==o){o=t,u(t(c)),o=null;continue}}else if(e in S){let t=S[e];if(t!==a){a=t,u(t(c)),a=null;continue}}if(g&&(d=(d.slice(1) in l.media?"@media "+l.media[d.slice(1)]:d).replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(e,t,r,l,i,n)=>{let o=y.test(t),a=.0625*(o?-1:1),[s,d]=o?[l,t]:[t,l];return"("+("="===r[0]?"":">"===r[0]===o?"max-":"min-")+s+":"+("="!==r[0]&&1===r.length?d.replace(y,(e,t,l)=>Number(t)+a*(">"===r?1:-1)+l):d)+(i?") and ("+(">"===i[0]?"min-":"max-")+s+":"+(1===i.length?n.replace(y,(e,t,r)=>Number(t)+a*(">"===i?-1:1)+r):n):"")+")"})),f){let e=g?r.concat(d):[...r],l=g?[...t]:k(t,d.split(I));void 0!==n&&i(E(...n)),n=void 0,s(c,l,e)}else void 0===n&&(n=[[],t,r]),d=g||36!==d.charCodeAt(0)?d:`--${x(l.prefix)}${d.slice(1).replace(/\$/g,"-")}`,c=f?c:"number"==typeof c?c&&e in w?String(c)+"px":String(c):R(B(e,null==c?"":c),l.prefix,l.themeMap[e]),n[0].push(`${g?`${d} `:`${h(d)}:`}${c}`)}}};u(e),void 0!==n&&i(E(...n)),n=void 0};s(e,t,r)},E=(e,t,r)=>`${r.map(e=>`${e}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,w={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},z=e=>String.fromCharCode(e+(e>25?39:97)),W=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=z(t%52)+r;return z(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),T=["themed","global","styled","onevar","resonevar","allvar","inline"],v=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},P=e=>{let t;let r=()=>{let{cssRules:e}=t.sheet;return[].map.call(e,(r,l)=>{let{cssText:i}=r,n="";if(i.startsWith("--sxs"))return"";if(e[l-1]&&(n=e[l-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(let e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${i}`;return r.cssRules.length?`${n}${i}`:""}return i}).join("")},l=()=>{if(t){let{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(let t in e)delete e[t]}for(let i of Object(e).styleSheets||[])if(v(i)){for(let e=0,n=i.cssRules;n[e];++e){let o=Object(n[e]);if(1!==o.type)continue;let a=Object(n[e+1]);if(4!==a.type)continue;++e;let{cssText:s}=o;if(!s.startsWith("--sxs"))continue;let d=s.slice(14,-3).trim().split(/\s+/),c=T[d[0]];c&&(t||(t={sheet:i,reset:l,rules:{},toString:r}),t.rules[c]={group:a,index:e,cache:new Set(d)})}if(t)break}if(!t){let i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,e=>e.cssText).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:l,toString:r}}let{sheet:i,rules:n}=t;for(let e=T.length-1;e>=0;--e){let t=T[e];if(!n[t]){let r=T[e+1],l=n[r]?n[r].index:i.cssRules.length;i.insertRule("@media{}",l),i.insertRule(`--sxs{--sxs:${e}}`,l),n[t]={group:i.cssRules[l+1],index:l,cache:new Set([e])}}C(n[t])}};return l(),t},C=e=>{let t=e.group,r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},M=Symbol(),O=c(),L=(e,t)=>O(e,()=>(...r)=>{let l={type:null,composers:new Set};for(let t of r)if(null!=t){if(t[u])for(let e of(null==l.type&&(l.type=t[u].type),t[u].composers))l.composers.add(e);else t.constructor!==Object||t.$$typeof?null==l.type&&(l.type=t):l.composers.add(A(t,e))}return null==l.type&&(l.type="span"),l.composers.size||l.composers.add(["PJLV",{},[],[],{},[]]),D(e,l,t)}),A=({variants:e,compoundVariants:t,defaultVariants:r,...l},i)=>{let n=`${x(i.prefix)}c-${W(l)}`,o=[],a=[],s=Object.create(null),d=[];for(let e in r)s[e]=String(r[e]);if("object"==typeof e&&e)for(let t in e){f.call(s,t)||(s[t]="undefined");let r=e[t];for(let e in r){let l={[t]:String(e)};"undefined"===String(e)&&d.push(t);let i=r[e],n=[l,i,!g(i)];o.push(n)}}if("object"==typeof t&&t)for(let e of t){let{css:t,...r}=e;for(let e in t="object"==typeof t&&t||{},r)r[e]=String(r[e]);let l=[r,t,!g(t)];a.push(l)}return[n,l,o,a,s,d]},D=(e,t,r)=>{let[l,i,n,o]=N(t.composers),a="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;rt.rules[e]={apply:r=>t[M].push([e,r])}),t})(r):null,s=(a||r).rules,d=`.${l}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,c=c=>{let{css:u,...p}=c="object"==typeof c&&c||G,g={};for(let e in n)if(delete p[e],e in c){let t=c[e];"object"==typeof t&&t?g[e]={"@initial":n[e],...t}:(t=String(t),g[e]="undefined"!==t||o.has(e)?t:n[e])}else g[e]=n[e];let f=new Set([...i]);for(let[l,i,n,o]of t.composers){r.rules.styled.cache.has(l)||(r.rules.styled.cache.add(l),_(i,[`.${l}`],[],e,e=>{s.styled.apply(e)}));let t=V(n,g,e.media),a=V(o,g,e.media,!0);for(let i of t)if(void 0!==i)for(let[t,n,o]of i){let i=`${l}-${W(n)}-${t}`;f.add(i);let a=(o?r.rules.resonevar:r.rules.onevar).cache,d=o?s.resonevar:s.onevar;a.has(i)||(a.add(i),_(n,[`.${i}`],[],e,e=>{d.apply(e)}))}for(let t of a)if(void 0!==t)for(let[i,n]of t){let t=`${l}-${W(n)}-${i}`;f.add(t),r.rules.allvar.cache.has(t)||(r.rules.allvar.cache.add(t),_(n,[`.${t}`],[],e,e=>{s.allvar.apply(e)}))}}if("object"==typeof u&&u){let t=`${l}-i${W(u)}-css`;f.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),_(u,[`.${t}`],[],e,e=>{s.inline.apply(e)}))}for(let e of String(c.className||"").trim().split(/\s+/))e&&f.add(e);let h=p.className=[...f].join(" ");return{type:t.type,className:h,selector:d,props:p,toString:()=>h,deferredInjector:a}};return p(c,{className:l,selector:d,[u]:t,toString:()=>(r.rules.styled.cache.has(l)||c(),l)})},N=e=>{let t="",r=[],l={},i=[];for(let[n,,,,o,a]of e)for(let e in""===t&&(t=n),r.push(n),i.push(...a),o){let t=o[e];(void 0===l[e]||"undefined"!==t||a.includes(t))&&(l[e]=t)}return[t,r,l,new Set(i)]},V=(e,t,r,l)=>{let i=[];e:for(let[n,o,a]of e){if(a)continue;let e,s=0,d=!1;for(e in n){let l=n[e],i=t[e];if(i!==l){if("object"!=typeof i||!i)continue e;{let e,t,n=0;for(let o in i){if(l===String(i[o])){if("@initial"!==o){let e=o.slice(1);(t=t||[]).push(e in r?r[e]:o.replace(/^@media ?/,"")),d=!0}s+=n,e=!0}++n}if(t&&t.length&&(o={["@media "+t.join(", ")]:o}),!e)continue e}}}(i[s]=i[s]||[]).push([l?"cv":`${e}-${n[e]}`,o,d])}return i},G={},H=c(),F=(e,t)=>H(e,()=>(...r)=>{let l=()=>{for(let l of r){let r=W(l="object"==typeof l&&l||{});if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in l){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(l["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete l["@import"]}_(l,[],[],e,e=>{t.rules.global.apply(e)})}}return""};return p(l,{toString:l})}),J=c(),U=(e,t)=>J(e,()=>r=>{let l=`${x(e.prefix)}k-${W(r)}`,i=()=>{if(!t.rules.global.cache.has(l)){t.rules.global.cache.add(l);let i=[];_(r,[],[],e,e=>i.push(e));let n=`@keyframes ${l}{${i.join("")}}`;t.rules.global.apply(n)}return l};return p(i,{get name(){return i()},toString:i})}),X=class{constructor(e,t,r,l){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==l?"":String(l)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+x(this.prefix)+x(this.scale)+this.token}toString(){return this.computedValue}},Y=c(),Z=(e,t)=>Y(e,()=>(r,l)=>{l="object"==typeof r&&r||Object(l);let i=`.${r=(r="string"==typeof r?r:"")||`${x(e.prefix)}t-${W(l)}`}`,n={},o=[];for(let t in l)for(let r in n[t]={},l[t]){let i=`--${x(e.prefix)}${t}-${r}`,a=R(String(l[t][r]),e.prefix,t);n[t][r]=new X(r,a,t,e.prefix),o.push(`${i}:${a}`)}let a=()=>{if(o.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);let i=`${l===e.theme?":root,":""}.${r}{${o.join(";")}}`;t.rules.themed.apply(i)}return r};return{...n,get className(){return a()},selector:i,toString:a}}),q=c(),K=c(),Q=e=>{let t=(e=>{let t=!1,r=q(e,e=>{t=!0;let r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",l="object"==typeof e.media&&e.media||{},i="object"==typeof e.root?e.root||null:globalThis.document||null,n="object"==typeof e.theme&&e.theme||{},o={prefix:r,media:l,theme:n,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...s},utils:"object"==typeof e.utils&&e.utils||{}},a=P(i),d={css:L(o,a),globalCss:F(o,a),keyframes:U(o,a),createTheme:Z(o,a),reset(){a.reset(),d.theme.toString()},theme:{},sheet:a,config:o,prefix:r,getCssText:a.toString,toString:a.toString};return String(d.theme=d.createTheme(n)),d});return t||r.reset(),r})(e);return t.styled=(({config:e,sheet:t})=>K(e,()=>{let r=L(e,t);return(...e)=>{let t=r(...e),l=t[u].type,n=i.forwardRef((e,r)=>{let n=e&&e.as||l,{props:o,deferredInjector:a}=t(e);return delete o.as,o.ref=r,a?i.createElement(i.Fragment,null,i.createElement(n,o),i.createElement(a,null)):i.createElement(n,o)});return n.className=t.className,n.displayName=`Styled.${l.displayName||l.name||l}`,n.selector=t.selector,n.toString=()=>t.selector,n[u]=t[u],n}}))(t),t},ee=()=>l||(l=Q()),et=(...e)=>ee().createTheme(...e)}}]); \ No newline at end of file diff --git a/_next/static/chunks/540.fb1748cfefeb6165.js b/_next/static/chunks/540.fb1748cfefeb6165.js new file mode 100644 index 000000000..24ebc4e98 --- /dev/null +++ b/_next/static/chunks/540.fb1748cfefeb6165.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[540],{323:function(t,n,r){r.d(n,{M:function(){return u},Y:function(){return e}});let e=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";if(!t)return null;if("string"==typeof t)return[t];if(!t[n]){let n=Object.getOwnPropertyNames(t);if(n.length>0)return t[n[0]]}return t[n]&&Array.isArray(t[n])?t[n]:null},u=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ",u=e(t,n);return Array.isArray(u)?u.join("".concat(r)):u}},3699:function(t,n,r){r.d(n,{KT:function(){return c},RH:function(){return i},rJ:function(){return u},un:function(){return o}});let e=t=>{let n=t.toString().split(":"),r=Math.ceil(parseInt(n[0])),e=Math.ceil(parseInt(n[1])),u=a(Math.ceil(parseInt(n[2])),2),i=0!==r&&e<10?(e+"").padStart(2,"0"):e,o="".concat(i,":").concat(u);return 0!==r&&(o="".concat(r,":").concat(o)),o},u=t=>e(new Date(1e3*t).toISOString().substr(11,8)),i=(t,n)=>{if("object"!=typeof t||null===t)return n;for(let r in n)"object"!=typeof n[r]||null===n[r]||Array.isArray(n[r])?t[r]=n[r]:(t[r]||(t[r]={}),t[r]=i(t[r],n[r]));return t},o=t=>t.split("").reduce(function(t,n){return(t=(t<<5)-t+n.charCodeAt(0))&t},0),c=(t,n)=>Object.hasOwn(t,n)?t[n].toString():void 0,a=(t,n)=>String(t).padStart(n,"0")}}]); \ No newline at end of file diff --git a/_next/static/chunks/542-d9ec244ae8135746.js b/_next/static/chunks/542-d9ec244ae8135746.js deleted file mode 100644 index d574ff7e8..000000000 --- a/_next/static/chunks/542-d9ec244ae8135746.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[542,992],{4384:function(e,t,r){"use strict";r.d(t,{bw:function(){return v},__:function(){return d},SF:function(){return T},i1:function(){return _},Oy:function(){return F},bT:function(){return Z},QZ:function(){return N},ER:function(){return q},pl:function(){return Y}});var n=r(2676),a=r(5271),l=r(9219),i=r(2580),o=r.n(i);function u(e,t){let r=Object.keys(e).filter(e=>t.includes(e)?null:e),n={};return r.forEach(t=>{n[t]=e[t]}),n}var s=r(8158);let c=(0,s.zo)("span",{});var d=e=>{let{as:t,label:r}=e,a=u(e,["as","label"]);return(0,n.jsx)(c,{as:t,...a,children:(0,l.M)(r,a.lang)})},f=r(3677);let m=function(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200,",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"full";Array.isArray(e)&&(e=e[0]);let{id:a,service:l}=e;if(!l)return a;if(Array.isArray(e.service)&&e.service.length>0&&(t=l[0]),t){if(t["@id"])return"".concat(t["@id"],"/").concat(n,"/").concat(r,"/0/default.jpg");if(t.id)return"".concat(t.id,"/").concat(n,"/").concat(r,"/0/default.jpg")}},h=(0,s.zo)("img",{objectFit:"cover"});var p=e=>{let t;let r=(0,a.useRef)(null),{contentResource:i,altAsLabel:o,region:s="full"}=e;o&&(t=(0,l.M)(o));let c=u(e,["contentResource","altAsLabel"]),{type:d,id:p,width:g=200,height:v=200,duration:j}=i;(0,a.useEffect)(()=>{if(!p&&!r.current||["Image"].includes(d)||!p.includes("m3u8"))return;let e=new f.ZP;return r.current&&(e.attachMedia(r.current),e.on(f.ZP.Events.MEDIA_ATTACHED,function(){e.loadSource(p)})),e.on(f.ZP.Events.ERROR,function(t,r){if(r.fatal)switch(r.type){case f.ZP.ErrorTypes.NETWORK_ERROR:console.error("fatal ".concat(t," network error encountered, try to recover")),e.startLoad();break;case f.ZP.ErrorTypes.MEDIA_ERROR:console.error("fatal ".concat(t," media error encountered, try to recover")),e.recoverMediaError();break;default:e.destroy()}}),()=>{e&&(e.detachMedia(),e.destroy())}},[p,d]);let x=(0,a.useCallback)(()=>{if(!r.current)return;let e=0,t=30;if(j&&(t=j),!p.split("#t=")&&j&&(e=.1*j),p.split("#t=").pop()){let t=p.split("#t=").pop();t&&(e=parseInt(t.split(",")[0]))}let n=r.current;n.autoplay=!0,n.currentTime=e,setTimeout(()=>x(),1e3*t)},[j,p]);(0,a.useEffect)(()=>x(),[x]);let b=m(i,"".concat(g,",").concat(v),s);switch(d){case"Image":return(0,n.jsx)(h,{as:"img",alt:t,css:{width:g,height:v},src:b,...c},p);case"Video":return(0,n.jsx)(h,{as:"video",css:{width:g,height:v},disablePictureInPicture:!0,loop:!0,muted:!0,onPause:x,ref:r,src:p},p);default:return console.warn("Resource type: ".concat(d," is not valid or not yet supported in Primitives.")),(0,n.jsx)(n.Fragment,{})}};let g=(0,s.zo)("a",{});var v=e=>{let{children:t,homepage:r}=e,a=u(e,["children","homepage"]);return(0,n.jsx)(n.Fragment,{children:r&&r.map(e=>{let r=(0,l.M)(e.label,a.lang);return(0,n.jsx)(g,{"aria-label":t?r:void 0,href:e.id,...a,children:t||r},e.id)})})};let j={delimiter:", "},x=(0,a.createContext)(void 0),b=()=>{let e=(0,a.useContext)(x);if(void 0===e)throw Error("usePrimitivesContext must be used with a PrimitivesProvider");return e},y=e=>{let{children:t,initialState:r=j}=e,a=A(r,"delimiter");return(0,n.jsx)(x.Provider,{value:{delimiter:a},children:t})},A=(e,t)=>Object.hasOwn(e,t)?e[t].toString():void 0,M=(0,s.zo)("span",{}),w=e=>{var t;let{as:r,markup:a}=e,{delimiter:i}=b();if(!a)return(0,n.jsx)(n.Fragment,{});let s=u(e,["as","markup"]),c={__html:(t=(0,l.M)(a,s.lang,i),o()(t,{allowedAttributes:{a:["href"],img:["alt","src","height","width"]},allowedSchemes:["http","https","mailto"],allowedTags:["a","b","br","i","img","p","small","span","sub","sup"]}))};return(0,n.jsx)(M,{as:r,...s,dangerouslySetInnerHTML:c})};var E=e=>a.useContext(x)?(0,n.jsx)(w,{...e}):(0,n.jsx)(y,{children:(0,n.jsx)(w,{...e})}),R=e=>{let{as:t="dd",lang:r,value:a}=e;return(0,n.jsx)(E,{markup:a,as:t,lang:r})};let S=(0,s.zo)("span",{});var P=e=>{var t;let{as:r="dd",customValueContent:i,lang:o,value:u}=e,{delimiter:s}=b(),c=null===(t=(0,l.Y)(u,o))||void 0===t?void 0:t.map(e=>(0,a.cloneElement)(i,{value:e}));return(0,n.jsx)(S,{as:r,lang:o,children:null==c?void 0:c.map((e,t)=>[t>0&&"".concat(s),(0,n.jsx)(a.Fragment,{children:e},t)])})},O=e=>{var t;let{item:r,lang:a,customValueContent:i}=e,{label:o,value:u}=r,s=null===(t=(0,l.M)(o))||void 0===t?void 0:t.replace(" ","-").toLowerCase();return(0,n.jsxs)("div",{role:"group","data-label":s,children:[(0,n.jsx)(d,{as:"dt",label:o,lang:a}),i?(0,n.jsx)(P,{as:"dd",customValueContent:i,value:u,lang:a}):(0,n.jsx)(R,{as:"dd",value:u,lang:a})]})},k=r(1644);let C=(0,s.zo)("dl",{});var T=e=>{let{as:t,customValueContent:r,metadata:a}=e;if(!Array.isArray(a))return(0,n.jsx)(n.Fragment,{});let i=(0,k.KT)(e,"customValueDelimiter"),o=u(e,["as","customValueContent","customValueDelimiter","metadata"]);return(0,n.jsx)(y,{..."string"==typeof i?{initialState:{delimiter:i}}:void 0,children:a.length>0&&(0,n.jsx)(C,{as:t,...o,children:a.map((e,t)=>{let a=r?function(e,t){let r=t.filter(t=>{let{matchingLabel:r}=t,n=Object.keys(t.matchingLabel)[0],a=(0,l.M)(r,n);if((0,l.M)(e,n)===a)return!0}).map(e=>e.Content);if(Array.isArray(r))return r[0]}(e.label,r):void 0;return(0,n.jsx)(O,{customValueContent:a,item:e,lang:null==o?void 0:o.lang},t)})})})};let z=(0,s.zo)("li",{}),I=(0,s.zo)("ul",{});var _=e=>{let{as:t,partOf:r}=e,a=u(e,["as","partOf"]);return(0,n.jsx)(I,{as:t,children:r&&r.map(e=>{let t=e.label?(0,l.M)(e.label,a.lang):void 0;return(0,n.jsx)(z,{children:(0,n.jsx)("a",{href:e.id,...a,children:t||e.id})},e.id)})})};let V=(0,s.zo)("li",{}),D=(0,s.zo)("ul",{});var F=e=>{let{as:t,rendering:r}=e,a=u(e,["as","rendering"]);return(0,n.jsx)(D,{as:t,children:r&&r.map(e=>{let t=(0,l.M)(e.label,a.lang);return(0,n.jsx)(V,{children:(0,n.jsx)("a",{href:e.id,...a,target:"_blank",children:t||e.id})},e.id)})})};let L=(0,s.zo)("dl",{});var Z=e=>{let{as:t,requiredStatement:r}=e;if(!r)return(0,n.jsx)(n.Fragment,{});let a=(0,k.KT)(e,"customValueDelimiter"),l=u(e,["as","customValueDelimiter","requiredStatement"]);return(0,n.jsx)(y,{..."string"==typeof a?{initialState:{delimiter:a}}:void 0,children:(0,n.jsx)(L,{as:t,...l,children:(0,n.jsx)(O,{item:r,lang:l.lang})})})};let H=(0,s.zo)("li",{}),K=(0,s.zo)("ul",{});var N=e=>{let{as:t,seeAlso:r}=e,a=u(e,["as","seeAlso"]);return(0,n.jsx)(K,{as:t,children:r&&r.map(e=>{let t=(0,l.M)(e.label,a.lang);return(0,n.jsx)(H,{children:(0,n.jsx)("a",{href:e.id,...a,children:t||e.id})},e.id)})})},q=e=>{let{as:t,summary:r}=e,a=u(e,["as","customValueDelimiter","summary"]);return(0,n.jsx)(E,{as:t,markup:r,...a})},Y=e=>{let{thumbnail:t,region:r}=e,a=u(e,["thumbnail"]);return(0,n.jsx)(n.Fragment,{children:t&&t.map(e=>(0,n.jsx)(p,{contentResource:e,region:r,...a},e.id))})};let J=()=>(console.log("Use dot notation to access Primitives.*, ex: Primitives.Label"),null);J.ContentResource=p,J.Homepage=v,J.Label=d,J.Markup=E,J.Metadata=T,J.MetadataItem=O,J.PartOf=_,J.Rendering=F,J.RequiredStatement=Z,J.SeeAlso=N,J.Summary=q,J.Thumbnail=Y,J.Value=R},9219:function(e,t,r){"use strict";r.d(t,{M:function(){return a},Y:function(){return n}});let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";if(!e)return null;if("string"==typeof e)return[e];if(!e[t]){let t=Object.getOwnPropertyNames(e);if(t.length>0)return e[t[0]]}return e[t]&&Array.isArray(e[t])?e[t]:null},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ",a=n(e,t);return Array.isArray(a)?a.join("".concat(r)):a}},1644:function(e,t,r){"use strict";r.d(t,{KT:function(){return o},RH:function(){return l},rJ:function(){return a},un:function(){return i}});let n=e=>{let t=e.toString().split(":"),r=Math.ceil(parseInt(t[0])),n=Math.ceil(parseInt(t[1])),a=u(Math.ceil(parseInt(t[2])),2),l=0!==r&&n<10?(n+"").padStart(2,"0"):n,i="".concat(l,":").concat(a);return 0!==r&&(i="".concat(r,":").concat(i)),i},a=e=>n(new Date(1e3*e).toISOString().substr(11,8)),l=(e,t)=>{if("object"!=typeof e||null===e)return t;for(let r in t)"object"!=typeof t[r]||null===t[r]||Array.isArray(t[r])?e[r]=t[r]:(e[r]||(e[r]={}),e[r]=l(e[r],t[r]));return e},i=e=>e.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0),o=(e,t)=>Object.hasOwn(e,t)?e[t].toString():void 0,u=(e,t)=>String(e).padStart(t,"0")},8181:function(){},5252:function(){},9674:function(){},462:function(){}}]); \ No newline at end of file diff --git a/_next/static/chunks/546-1f75f42d42e53b58.js b/_next/static/chunks/546-1f75f42d42e53b58.js deleted file mode 100644 index eb394f8a6..000000000 --- a/_next/static/chunks/546-1f75f42d42e53b58.js +++ /dev/null @@ -1,15 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[546],{1390:function(e,t,n){"use strict";var r;function i(e){return void 0===e||e}function a(e){let t=Array(e);for(let n=0;n=r))));t++);if(n)return a?I(l,r,0):void(t[t.length]=l)}return!n&&l}function I(e,t,n){return e=1===e.length?e[0]:[].concat.apply([],e),n||e.length>t?e.slice(n,n+t):e}function A(e,t,n,r){return e=n?(e=e[(r=r&&t>n)?t:n])&&e[r?n:t]:e[t]}function L(e,t,n,r,i){let a=0;if(e.constructor===Array){if(i)-1!==(t=e.indexOf(t))?1=this.B&&(f||!d[m])){var a=S(h,r,p),s="";switch(this.G){case"full":if(2a;l--)if(l-a>=this.B){var u=S(h,r,p,i,a);N(this,d,s=m.substring(a,l),u,e,n)}break}case"reverse":if(1=this.B&&N(this,d,s,S(h,r,p,i,l),e,n);s=""}case"forward":if(1=this.B&&N(this,d,s,a,e,n);break}default:if(this.C&&(a=Math.min(a/this.C(t,m,p)|0,h-1)),N(this,d,m,a,e,n),f&&1=this.B&&!i[m]){i[m]=1;let t=this.l&&m>a;N(this,c,t?a:m,S(s+(r/2>s?0:1),r,p,l-1,u-1),e,n,t?m:a)}}}}}this.m||(this.register[e]=1)}}return this},r.search=function(e,t,n){let r,i,a;n||(!t&&u(e)?e=(n=e).query:u(t)&&(n=t));let l=[],c,d,f=0;if(n){e=n.query||e,t=n.limit,f=n.offset||0;var h=n.context;d=n.suggest}if(e&&1<(c=(e=this.encode(""+e)).length)){n=o();var p=[];for(let t=0,r=0,i;t=this.B&&!n[i]){if(!this.s&&!d&&!this.map[i])return l;p[r++]=i,n[i]=1}c=(e=p).length}if(!c)return l;for(t||(t=100),h=this.depth&&1{a=e})),i||(i=0)){case 0:if(s="reg",this.m)for(let e in l=o(),this.register)l[e]=1;else l=this.register;break;case 1:s="cfg",l={doc:0,opt:this.s?1:0};break;case 2:s="map",l=this.map;break;case 3:s="ctx",l=this.h;break;default:void 0===n&&a&&a();return}return T(e,t||this,n,s,r,i,l,a),u},r.import=function(e,t){if(t)switch(l(t)&&(t=JSON.parse(t)),e){case"cfg":this.s=!!t.opt;break;case"reg":this.m=!1,this.register=t;break;case"map":this.map=t;break;case"ctx":this.h=t}},w(C.prototype);let M=0;function Z(e){var t;if(!(this instanceof Z))return new Z(e);e?c(t=e.encode)&&(e.encode=t.toString()):e={},(t=(self||window)._factory)&&(t=t.toString());let r="undefined"==typeof window&&self.exports,i=this;this.o=function(e,t,r){let i;try{i=t?new(n(5184)).Worker("//node/node.js"):e?new Worker(URL.createObjectURL(new Blob(["onmessage="+P.toString()],{type:"text/javascript"}))):new Worker(l(r)?r:"worker/worker.js",{type:"module"})}catch(e){}return i}(t,r,e.worker),this.h=o(),this.o&&(r?this.o.on("message",function(e){i.h[e.id](e.msg),delete i.h[e.id]}):this.o.onmessage=function(e){e=e.data,i.h[e.id](e.msg),delete i.h[e.id]},this.o.postMessage({task:"init",factory:t,options:e}))}function D(e){Z.prototype[e]=Z.prototype[e+"Async"]=function(){let t;let n=this,r=[].slice.call(arguments);var i=r[r.length-1];return c(i)&&(t=i,r.splice(r.length-1,1)),i=new Promise(function(t){setTimeout(function(){n.h[++M]=t,n.o.postMessage({task:e,id:M,args:r})})}),t?(i.then(t),this):i}}function F(e){if(!(this instanceof F))return new F(e);var t,n=e.document||e.doc||e;this.K=[],this.h=[],this.A=[],this.register=o(),this.key=(t=n.key||n.id)&&z(t,this.A)||"id",this.m=i(e.fastupdate),this.C=(t=n.store)&&!0!==t&&[],this.store=t&&o(),this.I=(t=n.tag)&&z(t,this.A),this.l=t&&o(),this.cache=(t=e.cache)&&new j(t),e.cache=!1,this.o=e.worker,this.async=!1,t=o();let r=n.index||n.field||n;l(r)&&(r=[r]);for(let n=0,i,a;nt||n)&&(i=i.slice(n,n+t)),r&&(i=W.call(this,i)),{tag:e,result:i}}function W(e){let t=Array(e.length);for(let n=0,r;n{a=e})),i||(i=0),r||(r=0),r2?n.slice(1-n.length).join("."):t.source=t.resource,t.git_suffix=/\.git$/.test(t.pathname),t.name=decodeURIComponent((t.pathname||t.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),t.owner=decodeURIComponent(t.user),t.source){case"git.cloudforge.com":t.owner=t.user,t.organization=n[0],t.source="cloudforge.com";break;case"visualstudio.com":if("vs-ssh.visualstudio.com"===t.resource){4===(a=t.name.split("/")).length&&(t.organization=a[1],t.owner=a[2],t.name=a[3],t.full_name=a[2]+"/"+a[3]);break}2===(a=t.name.split("/")).length?(t.owner=a[1],t.name=a[1],t.full_name="_git/"+t.name):3===a.length?(t.name=a[2],"DefaultCollection"===a[0]?(t.owner=a[2],t.organization=a[0],t.full_name=t.organization+"/_git/"+t.name):(t.owner=a[0],t.full_name=t.owner+"/_git/"+t.name)):4===a.length&&(t.organization=a[0],t.owner=a[1],t.name=a[3],t.full_name=t.organization+"/"+t.owner+"/_git/"+t.name);break;case"dev.azure.com":case"azure.com":if("ssh.dev.azure.com"===t.resource){4===(a=t.name.split("/")).length&&(t.organization=a[1],t.owner=a[2],t.name=a[3]);break}5===(a=t.name.split("/")).length?(t.organization=a[0],t.owner=a[1],t.name=a[4],t.full_name="_git/"+t.name):3===a.length?(t.name=a[2],"DefaultCollection"===a[0]?(t.owner=a[2],t.organization=a[0],t.full_name=t.organization+"/_git/"+t.name):(t.owner=a[0],t.full_name=t.owner+"/_git/"+t.name)):4===a.length&&(t.organization=a[0],t.owner=a[1],t.name=a[3],t.full_name=t.organization+"/"+t.owner+"/_git/"+t.name),t.query&&t.query.path&&(t.filepath=t.query.path.replace(/^\/+/g,"")),t.query&&t.query.version&&(t.ref=t.query.version.replace(/^GB/,""));break;default:var o=(a=t.name.split("/")).length-1;if(a.length>=2){var s=a.indexOf("-",2),l=a.indexOf("blob",2),u=a.indexOf("tree",2),c=a.indexOf("commit",2),d=a.indexOf("src",2),f=a.indexOf("raw",2),h=a.indexOf("edit",2);o=s>0?s-1:l>0?l-1:u>0?u-1:c>0?c-1:d>0?d-1:f>0?f-1:h>0?h-1:o,t.owner=a.slice(0,o).join("/"),t.name=a[o],c&&(t.commit=a[o+2])}t.ref="",t.filepathtype="",t.filepath="";var p=a.length>o&&"-"===a[o+1]?o+1:o;a.length>p+2&&["raw","src","blob","tree","edit"].indexOf(a[p+1])>=0&&(t.filepathtype=a[p+1],t.ref=a[p+2],a.length>p+3&&(t.filepath=a.slice(p+3).join("/"))),t.organization=t.owner}!t.full_name&&(t.full_name=t.owner,t.name&&(t.full_name&&(t.full_name+="/"),t.full_name+=t.name)),t.owner.startsWith("scm/")&&(t.source="bitbucket-server",t.owner=t.owner.replace("scm/",""),t.organization=t.owner,t.full_name=t.owner+"/"+t.name);var m=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/.exec(t.pathname);return null!=m&&(t.source="bitbucket-server","users"===m[1]?t.owner="~"+m[2]:t.owner=m[2],t.organization=t.owner,t.name=m[3],(a=m[4].split("/")).length>1&&(["raw","browse"].indexOf(a[1])>=0?(t.filepathtype=a[1],a.length>2&&(t.filepath=a.slice(2).join("/"))):"commits"===a[1]&&a.length>2&&(t.commit=a[2])),t.full_name=t.owner+"/"+t.name,t.query.at?t.ref=t.query.at:t.ref=""),t}i.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var n=e.port?":"+e.port:"",r=e.user||"git",i=e.git_suffix?".git":"";switch(t){case"ssh":if(n)return"ssh://"+r+"@"+e.resource+n+"/"+e.full_name+i;return r+"@"+e.resource+":"+e.full_name+i;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+r+"@"+e.resource+n+"/"+e.full_name+i;case"http":case"https":return t+"://"+(e.token?"bitbucket.org"===e.source?"x-token-auth:"+e.token+"@":e.token+"@":e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"")+e.resource+n+"/"+("bitbucket-server"===e.source?"scm/"+e.full_name:""+e.full_name)+i;default:return e.href}},e.exports=i},5983:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var e=function(e){for(var t=e,n=i(t);n;)n=i(t=n.ownerDocument);return t}(window.document),t=[],n=null,r=null;o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?f(e,n):c(),t.forEach(function(e){e._checkForIntersections()})}),n},o._resetCrossOriginUpdater=function(){n=null,r=null},o.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!(e&&1==e.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},o.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},o.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},o.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,a=null,o=null;if(this.POLL_INTERVAL?a=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(o=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),l(e,"resize",r,!0)),l(t,"scroll",r,!0),o&&o.disconnect()}),t!=(this.root&&(this.root.ownerDocument||this.root)||e)){var u=i(t);u&&this._monitorIntersections(u.ownerDocument)}}},o.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some(function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var a=i(n);if((n=a&&a.ownerDocument)==t)return!0}return!1})){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=r){var o=i(t);o&&this._unmonitorIntersections(o.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t=0&&s>=0&&{top:n,bottom:r,left:i,right:a,width:o,height:s}||null}(c,o)),!o)break;s=s&&p(s)}return o}},o.prototype._getRootRect=function(){var t;if(this.root&&!m(this.root))t=u(this.root);else{var n=m(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;it.indexOf(this)&&t.push(this)},o.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=o,window.IntersectionObserverEntry=a}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function a(e){this.time=e.time,this.target=e.target,this.rootBounds=d(e.rootBounds),this.boundingClientRect=d(e.boundingClientRect),this.intersectionRect=d(e.intersectionRect||c()),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;n?this.intersectionRatio=Number((i/n).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(e,t){var n,r,i,a=t||{};if("function"!=typeof e)throw Error("callback must be a function");if(a.root&&1!=a.root.nodeType&&9!=a.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){n(),i=null},r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(a.rootMargin),this.thresholds=this._initThresholds(a.threshold),this.root=a.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function u(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):c()}function c(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function f(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function h(e,t){for(var n=t;n;){if(n==e)return!0;n=p(n)}return!1}function p(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host)?n.host:n}function m(e){return e&&9===e.nodeType}}()},2895:function(e,t,n){"use strict";var r=n(1039);e.exports=function e(t){if(Array.isArray(t))return -1!==t.indexOf("ssh")||-1!==t.indexOf("rsync");if("string"!=typeof t)return!1;var n=r(t);if(t=t.substring(t.indexOf("://")+3),e(n))return!0;var i=RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!t.match(i)&&t.indexOf("@")-1},R.prototype.set=function(e,t){var n=this.__data__,r=A(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},I.prototype.clear=function(){this.__data__={hash:new N,map:new(O||R),string:new N}},I.prototype.delete=function(e){return L(this,e).delete(e)},I.prototype.get=function(e){return L(this,e).get(e)},I.prototype.has=function(e){return L(this,e).has(e)},I.prototype.set=function(e,t){return L(this,e).set(e,t),this};var M=Z(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(z(e))return S?S.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}(t);var t,n=[];return l.test(e)&&n.push(""),e.replace(u,function(e,t,r,i){n.push(r?i.replace(c,"$1"):t||e)}),n});function Z(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(Z.Cache||I),n}Z.Cache=I;var D=Array.isArray;function F(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function z(e){return"symbol"==typeof e||!!e&&"object"==typeof e&&"[object Symbol]"==_.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:function(e,t){var n;t=!function(e,t){if(D(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||z(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}(t,e)?D(n=t)?n:M(n):[t];for(var r=0,i=t.length;null!=e&&r{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:v,nonce:y})=>{let[b,w]=(0,r.useState)(()=>p(l,c)),[_,k]=(0,r.useState)(()=>p(l)),j=g?Object.values(g):u,E=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=x());let a=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...j),a&&l.classList.add(a)):a?l.setAttribute(f,a):l.removeAttribute(f),o){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),O=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),T=(0,r.useCallback)(t=>{k(x(t)),"system"===b&&n&&!e&&E("system")},[b,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(a);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&O(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[O]),(0,r.useEffect)(()=>{E(null!=e?e:b)},[e,b]);let C=(0,r.useMemo)(()=>({theme:b,setTheme:O,forcedTheme:e,resolvedTheme:"system"===b?_:b,themes:n?[...u,"system"]:u,systemTheme:n?_:void 0}),[b,O,e,_,n,u]);return r.createElement(s.Provider,{value:C},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:o,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:v,attrs:j,nonce:y}),v)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let a=u?u[e]:e,o=t?e+"|| ''":`'${a}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||a?`c.add(${o})`:"null":a&&(l+=`d[s](n,${o})`),l},x=e?`!function(){${h}${m(e)}}()`:o?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${a}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:x}})},()=>!0),p=(e,t)=>{let n;if(!o){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},x=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},6987:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(6069)},5451:function(e,t){"use strict";var n,r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return o},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return h}});let o="refresh",s="navigate",l="restore",u="server-patch",c="prefetch",d="fast-refresh",f="server-action";function h(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(a=r||(r={})).fresh="fresh",a.reusable="reusable",a.expired="expired",a.stale="stale",("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)},2726:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(1127),("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)},1005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(2430),i=n(1778),a=n(2676),o=i._(n(5271)),s=r._(n(967)),l=r._(n(1246)),u=n(4949),c=n(3073),d=n(4177);n(5200);let f=n(4804),h=r._(n(2016)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/clover-iiif/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function m(e,t,n,r,i,a,o){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function x(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let g=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:p,unoptimized:g,fill:v,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:_,sizesInput:k,onLoad:j,onError:E,...O}=e;return(0,a.jsx)("img",{...O,...x(f),loading:p,width:l,height:s,decoding:u,"data-nimg":v?"fill":"1",className:c,style:d,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(E&&(e.src=e.src),e.complete&&m(e,h,y,b,w,g,k))},[n,h,y,b,w,E,g,k,t]),onLoad:e=>{m(e.currentTarget,h,y,b,w,g,k)},onError:e=>{_(!0),"empty"!==h&&w(!0),E&&E(e)}})});function v(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...x(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,r),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(f.RouterContext),r=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=p||r||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:s,onLoadingComplete:l}=e,m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let x=(0,o.useRef)(l);(0,o.useEffect)(()=>{x.current=l},[l]);let[y,b]=(0,o.useState)(!1),[w,_]=(0,o.useState)(!1),{props:k,meta:j}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:y,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,{...k,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:m,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:_,sizesInput:e.sizes,ref:t}),j.priority?(0,a.jsx)(v,{isAppRouter:!n,imgAttributes:k}):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)},8041:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(2430),i=n(2676),a=r._(n(5271)),o=n(6967),s=n(5682),l=n(3345),u=n(2616),c=n(2819),d=n(4804),f=n(9210),h=n(8629),p=n(2726),m=n(5783),x=n(5451),g=new Set;function v(e,t,n,r,i,a){if(a||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}(async()=>a?e.prefetch(t,i):e.prefetch(t,n,r))().catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=a.default.forwardRef(function(e,t){let n,r;let{href:l,as:g,children:b,prefetch:w=null,passHref:_,replace:k,shallow:j,scroll:E,locale:O,onClick:T,onMouseEnter:C,onTouchStart:S,legacyBehavior:N=!1,...R}=e;n=b,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let I=a.default.useContext(d.RouterContext),A=a.default.useContext(f.AppRouterContext),L=null!=I?I:A,P=!I,M=!1!==w,Z=null===w?x.PrefetchKind.AUTO:x.PrefetchKind.FULL,{href:D,as:F}=a.default.useMemo(()=>{if(!I){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,o.resolveHref)(I,l,!0);return{href:e,as:g?(0,o.resolveHref)(I,g):t||e}},[I,l,g]),z=a.default.useRef(D),$=a.default.useRef(F);N&&(r=a.default.Children.only(n));let U=N?r&&"object"==typeof r&&r.ref:t,[W,H,G]=(0,h.useIntersection)({rootMargin:"200px"}),V=a.default.useCallback(e=>{($.current!==F||z.current!==D)&&(G(),$.current=F,z.current=D),W(e),U&&("function"==typeof U?U(e):"object"==typeof U&&(U.current=e))},[F,U,D,G,W]);a.default.useEffect(()=>{L&&H&&M&&v(L,D,F,{locale:O},{kind:Z},P)},[F,D,H,O,M,null==I?void 0:I.locale,L,P,Z]);let B={ref:V,onClick(e){N||"function"!=typeof T||T(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),L&&!e.defaultPrevented&&function(e,t,n,r,i,o,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.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)||!c&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:o,locale:u,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?a.default.startTransition(f):f()}(e,L,D,F,k,j,E,O,P)},onMouseEnter(e){N||"function"!=typeof C||C(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),L&&(M||!P)&&v(L,D,F,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:Z},P)},onTouchStart:function(e){N||"function"!=typeof S||S(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),L&&(M||!P)&&v(L,D,F,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:Z},P)}};if((0,u.isAbsoluteUrl)(F))B.href=F;else if(!N||_||"a"===r.type&&!("href"in r.props)){let e=void 0!==O?O:null==I?void 0:I.locale,t=(null==I?void 0:I.isLocaleDomain)&&(0,p.getDomainLocale)(F,e,null==I?void 0:I.locales,null==I?void 0:I.domainLocales);B.href=t||(0,m.addBasePath)((0,c.addLocale)(F,e,null==I?void 0:I.defaultLocale))}return N?a.default.cloneElement(r,B):(0,i.jsx)("a",{...R,...B,children:n})});("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)},8629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(5271),i=n(7521),a="function"==typeof IntersectionObserver,o=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!a,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=o.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),o.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),o.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("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)},4949:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(5200);let r=n(4798),i=n(3073);function a(e){return void 0!==e.default}function o(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 s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:x,width:g,height:v,fill:y=!1,style:b,overrideSrc:w,onLoad:_,onLoadingComplete:k,placeholder:j="empty",blurDataURL:E,fetchPriority:O,decoding:T="async",layout:C,objectFit:S,objectPosition:N,lazyBoundary:R,lazyRoot:I,...A}=e,{imgConf:L,showAltText:P,blurComplete:M,defaultLoader:Z}=t,D=L||i.imageConfigDefault;if("allSizes"in D)s=D;else{let e=[...D.deviceSizes,...D.imageSizes].sort((e,t)=>e-t),t=D.deviceSizes.sort((e,t)=>e-t);s={...D,allSizes:e,deviceSizes:t}}if(void 0===Z)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let F=A.loader||Z;delete A.loader,delete A.srcSet;let z="__next_img_default"in F;if(z){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(C){"fill"===C&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[C];t&&!d&&(d=t)}let $="",U=o(g),W=o(v);if("object"==typeof(n=c)&&(a(n)||void 0!==n.src)){let e=a(c)?c.default:c;if(!e.src)throw 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));if(!e.height||!e.width)throw 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));if(l=e.blurWidth,u=e.blurHeight,E=E||e.blurDataURL,$=e.src,!y){if(U||W){if(U&&!W){let t=U/e.width;W=Math.round(e.height*t)}else if(!U&&W){let t=W/e.height;U=Math.round(e.width*t)}}else U=e.width,W=e.height}}let H=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:$)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,H=!1),s.unoptimized&&(f=!0),z&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(O="high");let G=o(x),V=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:S,objectPosition:N}:{},P?{}:{color:"transparent"},b),B=M||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:U,heightInt:W,blurWidth:l,blurHeight:u,blurDataURL:E||"",objectFit:V.objectFit})+'")':'url("'+j+'")',q=B?{backgroundSize:V.objectFit||"cover",backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:B}:{},K=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:a,sizes:o,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,o),c=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:a,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:a,width:l[c]})}}({config:s,src:c,unoptimized:f,width:U,quality:G,sizes:d,loader:F});return{props:{...A,loading:H?"lazy":p,fetchPriority:O,width:U,height:W,decoding:T,className:m,style:{...V,...q},sizes:K.sizes,srcSet:K.srcSet,src:w||K.src},meta:{unoptimized:f,priority:h,placeholder:j,fill:y}}}},4798:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:o}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%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='"+(u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},7185:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return s}});let r=n(2430),i=n(4949),a=n(1005),o=r._(n(2016));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/clover-iiif/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=a.Image},2016:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},8168:function(e,t,n){"use strict";var r=n(6987);n(661);var i=n(5271),a=i&&"object"==typeof i&&"default"in i?i:{default:i},o=void 0!==r&&r.env&&!0,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,a=void 0===i?o:i;u(s(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",u("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t>>0},d={};function f(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return d[r]||(d[r]="jsx-"+c(e+"-"+n)),d[r]}function h(e,t){var n=e+t;return d[n]||(d[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[n]}var p=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,a=void 0!==i&&i;this._sheet=r||new l({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),r&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var a=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=a,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var i=f(r,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return h(i,e)}):[h(i,t)]}}return{styleId:f(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var x=a.default.useInsertionEffect||a.default.useLayoutEffect,g=new p;function v(e){var t=g||i.useContext(m);return t&&x(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}v.dynamic=function(e){return e.map(function(e){return f(e[0],e[1])}).join(" ")},t.style=v},2936:function(e,t,n){"use strict";e.exports=n(8168).style},661:function(){},1952:function(){},6242:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),a=s,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,a=s,o=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r,i="",a=!1,o=arguments.length-1;o>=-1&&!a;o--)o>=0?r=arguments[o]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,a=47===r.charCodeAt(0));return(i=n(i,!a),a)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else o>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=a;++d)(d===a||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,a=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,a=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!o){i=r+1;break}}else -1===l&&(o=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(a=r):(s=-1,a=l))}return i===a?a=l:-1===a&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else -1===a&&(o=!1,a=r+1);return -1===a?"":e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!a){r=s+1;break}continue}-1===i&&(a=!1,i=s+1),46===l?-1===n?n=s:1!==o&&(o=1):-1!==n&&(o=-1)}return -1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),a=47===i;a?(r.root="/",n=1):n=0;for(var o=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===o?o=c:1!==d&&(d=1):-1!==o&&(d=-1)}return -1===o||-1===l||0===d||1===d&&o===l-1&&o===s+1?-1!==l&&(0===s&&a?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&a?(r.name=e.slice(1,o),r.base=e.slice(1,l)):(r.name=e.slice(s,o),r.base=e.slice(s,l)),r.ext=e.slice(o,l)),s>0?r.dir=e.slice(0,s-1):a&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},o=!0;try{t[e](a,a.exports,r),o=!1}finally{o&&delete n[e]}return a.exports}r.ab="//";var i=r(114);e.exports=i}()},6069:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n{t(!0)},[]),e}var A=n(5637),L=()=>{let{locale:e=A.ZW,asPath:t,route:n}=(0,S.useRouter)();return(0,N.useMemo)(()=>{let{pathname:r}=new URL(A.hV.has(n)?n:t,"https://nextra.vercel.app");return(e?r.replace(RegExp(`\\.${e}(\\/|$)`),"$1"):r).replace(/\.html$/,"").replace(/\/index(\/|$)/,"$1").replace(/\/$/,"")||"/"},[t,e,n])},P=n(7532),M=n(9552);(p=_||(_={})).assertEqual=e=>e,p.assertIs=function(e){},p.assertNever=function(e){throw Error()},p.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},p.getValidEnumValues=e=>{let t=p.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return p.objectValues(n)},p.objectValues=e=>p.objectKeys(e).map(function(t){return e[t]}),p.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},p.find=(e,t)=>{for(let n of e)if(t(n))return n},p.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,p.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},p.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(k||(k={})).mergeShapes=(e,t)=>({...e,...t});let Z=_.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),D=e=>{switch(typeof e){case"undefined":return Z.undefined;case"string":return Z.string;case"number":return isNaN(e)?Z.nan:Z.number;case"boolean":return Z.boolean;case"function":return Z.function;case"bigint":return Z.bigint;case"symbol":return Z.symbol;case"object":if(Array.isArray(e))return Z.array;if(null===e)return Z.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return Z.promise;if("undefined"!=typeof Map&&e instanceof Map)return Z.map;if("undefined"!=typeof Set&&e instanceof Set)return Z.set;if("undefined"!=typeof Date&&e instanceof Date)return Z.date;return Z.object;default:return Z.unknown}},F=_.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class z extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}z.create=e=>new z(e);let $=(e,t)=>{let n;switch(e.code){case F.invalid_type:n=e.received===Z.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case F.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,_.jsonStringifyReplacer)}`;break;case F.unrecognized_keys:n=`Unrecognized key(s) in object: ${_.joinValues(e.keys,", ")}`;break;case F.invalid_union:n="Invalid input";break;case F.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${_.joinValues(e.options)}`;break;case F.invalid_enum_value:n=`Invalid enum value. Expected ${_.joinValues(e.options)}, received '${e.received}'`;break;case F.invalid_arguments:n="Invalid function arguments";break;case F.invalid_return_type:n="Invalid function return type";break;case F.invalid_date:n="Invalid date";break;case F.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:_.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case F.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case F.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case F.custom:n="Invalid input";break;case F.invalid_intersection_types:n="Intersection results could not be merged";break;case F.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case F.not_finite:n="Number must be finite";break;default:n=t.defaultError,_.assertNever(e)}return{message:n}},U=$;function W(){return U}let H=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function G(e,t){let n=W(),r=H({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===$?void 0:$].filter(e=>!!e)});e.common.issues.push(r)}class V{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return B;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return V.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return B;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let B=Object.freeze({status:"aborted"}),q=e=>({status:"dirty",value:e}),K=e=>({status:"valid",value:e}),Y=e=>"aborted"===e.status,Q=e=>"dirty"===e.status,J=e=>"valid"===e.status,X=e=>"undefined"!=typeof Promise&&e instanceof Promise;function ee(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function et(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}"function"==typeof SuppressedError&&SuppressedError,(m=j||(j={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},m.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class en{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let er=(e,t)=>{if(J(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new z(e.common.issues);return this._error=t,this._error}}};function ei(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var a,o;let{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!==(a=null!=s?s:r)&&void 0!==a?a:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(o=null!=s?s:n)&&void 0!==o?o:i.defaultError}},description:i}}class ea{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return D(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:D(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new V,ctx:{common:e.parent.common,data:e.data,parsedType:D(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(X(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:D(e)},i=this._parseSync({data:e,path:r.path,parent:r});return er(r,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:D(e)},r=this._parse({data:e,path:n.path,parent:n});return er(n,await (X(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:F.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new eK({schema:this,typeName:T.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eY.create(this,this._def)}nullable(){return eQ.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return eI.create(this,this._def)}promise(){return eq.create(this,this._def)}or(e){return eL.create([this,e],this._def)}and(e){return eZ.create(this,e,this._def)}transform(e){return new eK({...ei(this._def),schema:this,typeName:T.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eJ({...ei(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:T.ZodDefault})}brand(){return new e2({typeName:T.ZodBranded,type:this,...ei(this._def)})}catch(e){return new eX({...ei(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:T.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return e4.create(this,e)}readonly(){return e5.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let eo=/^c[^\s-]{8,}$/i,es=/^[0-9a-z]+$/,el=/^[0-9A-HJKMNP-TV-Z]{26}$/,eu=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ec=/^[a-z0-9_-]{21}$/i,ed=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ef=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,eh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ep=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,em=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ex="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",eg=RegExp(`^${ex}$`);function ev(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function ey(e){let t=`${ex}T${ev(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)}class eb extends ea{_parse(e){var t,n;let i;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Z.string){let t=this._getOrReturnCtx(e);return G(t,{code:F.invalid_type,expected:Z.string,received:t.parsedType}),B}let a=new V;for(let o of this._def.checks)if("min"===o.kind)e.data.lengtho.value&&(G(i=this._getOrReturnCtx(e,i),{code:F.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if("length"===o.kind){let t=e.data.length>o.value,n=e.data.lengthe.test(t),{validation:t,code:F.invalid_string,...j.errToObj(n)})}_addCheck(e){return new eb({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...j.errToObj(e)})}url(e){return this._addCheck({kind:"url",...j.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...j.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...j.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...j.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...j.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...j.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...j.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...j.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...j.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...j.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...j.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...j.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...j.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...j.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...j.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...j.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...j.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...j.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...j.errToObj(t)})}nonempty(e){return this.min(1,j.errToObj(e))}trim(){return new eb({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new eb({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new eb({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new eb({checks:[],typeName:T.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...ei(e)})};class ew extends ea{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Z.number){let t=this._getOrReturnCtx(e);return G(t,{code:F.invalid_type,expected:Z.number,received:t.parsedType}),B}let n=new V;for(let r of this._def.checks)"int"===r.kind?_.isInteger(e.data)||(G(t=this._getOrReturnCtx(e,t),{code:F.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(G(t=this._getOrReturnCtx(e,t),{code:F.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(e.data,r.value)&&(G(t=this._getOrReturnCtx(e,t),{code:F.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(G(t=this._getOrReturnCtx(e,t),{code:F.not_finite,message:r.message}),n.dirty()):_.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,j.toString(t))}gt(e,t){return this.setLimit("min",e,!1,j.toString(t))}lte(e,t){return this.setLimit("max",e,!0,j.toString(t))}lt(e,t){return this.setLimit("max",e,!1,j.toString(t))}setLimit(e,t,n,r){return new ew({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:j.toString(r)}]})}_addCheck(e){return new ew({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:j.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:j.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:j.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:j.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:j.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:j.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:j.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:j.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:j.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&_.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.valuenew ew({checks:[],typeName:T.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...ei(e)});class e_ extends ea{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==Z.bigint){let t=this._getOrReturnCtx(e);return G(t,{code:F.invalid_type,expected:Z.bigint,received:t.parsedType}),B}let n=new V;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(G(t=this._getOrReturnCtx(e,t),{code:F.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(G(t=this._getOrReturnCtx(e,t),{code:F.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):_.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,j.toString(t))}gt(e,t){return this.setLimit("min",e,!1,j.toString(t))}lte(e,t){return this.setLimit("max",e,!0,j.toString(t))}lt(e,t){return this.setLimit("max",e,!1,j.toString(t))}setLimit(e,t,n,r){return new e_({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:j.toString(r)}]})}_addCheck(e){return new e_({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:j.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:j.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:j.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:j.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:j.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new e_({checks:[],typeName:T.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...ei(e)})};class ek extends ea{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Z.boolean){let t=this._getOrReturnCtx(e);return G(t,{code:F.invalid_type,expected:Z.boolean,received:t.parsedType}),B}return K(e.data)}}ek.create=e=>new ek({typeName:T.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...ei(e)});class ej extends ea{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Z.date){let t=this._getOrReturnCtx(e);return G(t,{code:F.invalid_type,expected:Z.date,received:t.parsedType}),B}if(isNaN(e.data.getTime()))return G(this._getOrReturnCtx(e),{code:F.invalid_date}),B;let n=new V;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(G(t=this._getOrReturnCtx(e,t),{code:F.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):_.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ej({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:j.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:j.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew ej({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:T.ZodDate,...ei(e)});class eE extends ea{_parse(e){if(this._getType(e)!==Z.symbol){let t=this._getOrReturnCtx(e);return G(t,{code:F.invalid_type,expected:Z.symbol,received:t.parsedType}),B}return K(e.data)}}eE.create=e=>new eE({typeName:T.ZodSymbol,...ei(e)});class eO extends ea{_parse(e){if(this._getType(e)!==Z.undefined){let t=this._getOrReturnCtx(e);return G(t,{code:F.invalid_type,expected:Z.undefined,received:t.parsedType}),B}return K(e.data)}}eO.create=e=>new eO({typeName:T.ZodUndefined,...ei(e)});class eT extends ea{_parse(e){if(this._getType(e)!==Z.null){let t=this._getOrReturnCtx(e);return G(t,{code:F.invalid_type,expected:Z.null,received:t.parsedType}),B}return K(e.data)}}eT.create=e=>new eT({typeName:T.ZodNull,...ei(e)});class eC extends ea{constructor(){super(...arguments),this._any=!0}_parse(e){return K(e.data)}}eC.create=e=>new eC({typeName:T.ZodAny,...ei(e)});class eS extends ea{constructor(){super(...arguments),this._unknown=!0}_parse(e){return K(e.data)}}eS.create=e=>new eS({typeName:T.ZodUnknown,...ei(e)});class eN extends ea{_parse(e){let t=this._getOrReturnCtx(e);return G(t,{code:F.invalid_type,expected:Z.never,received:t.parsedType}),B}}eN.create=e=>new eN({typeName:T.ZodNever,...ei(e)});class eR extends ea{_parse(e){if(this._getType(e)!==Z.undefined){let t=this._getOrReturnCtx(e);return G(t,{code:F.invalid_type,expected:Z.void,received:t.parsedType}),B}return K(e.data)}}eR.create=e=>new eR({typeName:T.ZodVoid,...ei(e)});class eI extends ea{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==Z.array)return G(t,{code:F.invalid_type,expected:Z.array,received:t.parsedType}),B;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(G(t,{code:F.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new en(t,e,t.path,n)))).then(e=>V.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new en(t,e,t.path,n)));return V.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new eI({...this._def,minLength:{value:e,message:j.toString(t)}})}max(e,t){return new eI({...this._def,maxLength:{value:e,message:j.toString(t)}})}length(e,t){return new eI({...this._def,exactLength:{value:e,message:j.toString(t)}})}nonempty(e){return this.min(1,e)}}eI.create=(e,t)=>new eI({type:e,minLength:null,maxLength:null,exactLength:null,typeName:T.ZodArray,...ei(t)});class eA extends ea{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=_.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Z.object){let t=this._getOrReturnCtx(e);return G(t,{code:F.invalid_type,expected:Z.object,received:t.parsedType}),B}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof eN&&"strip"===this._def.unknownKeys))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new en(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof eN){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&(G(n,{code:F.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new en(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>V.mergeObjectSync(t,e)):V.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return j.errToObj,new eA({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,o;let s=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=j.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new eA({...this._def,unknownKeys:"strip"})}passthrough(){return new eA({...this._def,unknownKeys:"passthrough"})}extend(e){return new eA({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new eA({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:T.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new eA({...this._def,catchall:e})}pick(e){let t={};return _.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new eA({...this._def,shape:()=>t})}omit(e){let t={};return _.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new eA({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof eA){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=eY.create(e(i))}return new eA({...t._def,shape:()=>n})}return t instanceof eI?new eI({...t._def,type:e(t.element)}):t instanceof eY?eY.create(e(t.unwrap())):t instanceof eQ?eQ.create(e(t.unwrap())):t instanceof eD?eD.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return _.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new eA({...this._def,shape:()=>t})}required(e){let t={};return _.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof eY;)e=e._def.innerType;t[n]=e}}),new eA({...this._def,shape:()=>t})}keyof(){return eG(_.objectKeys(this.shape))}}eA.create=(e,t)=>new eA({shape:()=>e,unknownKeys:"strip",catchall:eN.create(),typeName:T.ZodObject,...ei(t)}),eA.strictCreate=(e,t)=>new eA({shape:()=>e,unknownKeys:"strict",catchall:eN.create(),typeName:T.ZodObject,...ei(t)}),eA.lazycreate=(e,t)=>new eA({shape:e,unknownKeys:"strip",catchall:eN.create(),typeName:T.ZodObject,...ei(t)});class eL extends ea{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new z(e.ctx.common.issues));return G(t,{code:F.invalid_union,unionErrors:n}),B});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new z(e));return G(t,{code:F.invalid_union,unionErrors:i}),B}}get options(){return this._def.options}}eL.create=(e,t)=>new eL({options:e,typeName:T.ZodUnion,...ei(t)});let eP=e=>{if(e instanceof eW)return eP(e.schema);if(e instanceof eK)return eP(e.innerType());if(e instanceof eH)return[e.value];if(e instanceof eV)return e.options;if(e instanceof eB)return _.objectValues(e.enum);if(e instanceof eJ)return eP(e._def.innerType);if(e instanceof eO)return[void 0];else if(e instanceof eT)return[null];else if(e instanceof eY)return[void 0,...eP(e.unwrap())];else if(e instanceof eQ)return[null,...eP(e.unwrap())];else if(e instanceof e2)return eP(e.unwrap());else if(e instanceof e5)return eP(e.unwrap());else if(e instanceof eX)return eP(e._def.innerType);else return[]};class eM extends ea{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Z.object)return G(t,{code:F.invalid_type,expected:Z.object,received:t.parsedType}),B;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(G(t,{code:F.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),B)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=eP(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new eM({typeName:T.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...ei(n)})}}class eZ extends ea{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(Y(e)||Y(r))return B;let i=function e(t,n){let r=D(t),i=D(n);if(t===n)return{valid:!0,data:t};if(r===Z.object&&i===Z.object){let r=_.objectKeys(n),i=_.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===Z.array&&i===Z.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;ir(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}eZ.create=(e,t,n)=>new eZ({left:e,right:t,typeName:T.ZodIntersection,...ei(n)});class eD extends ea{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Z.array)return G(n,{code:F.invalid_type,expected:Z.array,received:n.parsedType}),B;if(n.data.lengththis._def.items.length&&(G(n,{code:F.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new en(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>V.mergeArray(t,e)):V.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new eD({...this._def,rest:e})}}eD.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eD({items:e,typeName:T.ZodTuple,rest:null,...ei(t)})};class eF extends ea{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Z.object)return G(n,{code:F.invalid_type,expected:Z.object,received:n.parsedType}),B;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new en(n,e,n.path,e)),value:a._parse(new en(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?V.mergeObjectAsync(t,r):V.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new eF(t instanceof ea?{keyType:e,valueType:t,typeName:T.ZodRecord,...ei(n)}:{keyType:eb.create(),valueType:e,typeName:T.ZodRecord,...ei(t)})}}class ez extends ea{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Z.map)return G(n,{code:F.invalid_type,expected:Z.map,received:n.parsedType}),B;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new en(n,e,n.path,[a,"key"])),value:i._parse(new en(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return B;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return B;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}ez.create=(e,t,n)=>new ez({valueType:t,keyType:e,typeName:T.ZodMap,...ei(n)});class e$ extends ea{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Z.set)return G(n,{code:F.invalid_type,expected:Z.set,received:n.parsedType}),B;let r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(G(n,{code:F.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return B;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new en(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new e$({...this._def,minSize:{value:e,message:j.toString(t)}})}max(e,t){return new e$({...this._def,maxSize:{value:e,message:j.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}e$.create=(e,t)=>new e$({valueType:e,minSize:null,maxSize:null,typeName:T.ZodSet,...ei(t)});class eU extends ea{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Z.function)return G(t,{code:F.invalid_type,expected:Z.function,received:t.parsedType}),B;function n(e,n){return H({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,W(),$].filter(e=>!!e),issueData:{code:F.invalid_arguments,argumentsError:n}})}function r(e,n){return H({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,W(),$].filter(e=>!!e),issueData:{code:F.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof eq){let e=this;return K(async function(...t){let o=new z([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),l=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw o.addIssue(r(l,e)),o})})}{let e=this;return K(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new z([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new z([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eU({...this._def,args:eD.create(e).rest(eS.create())})}returns(e){return new eU({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new eU({args:e||eD.create([]).rest(eS.create()),returns:t||eS.create(),typeName:T.ZodFunction,...ei(n)})}}class eW extends ea{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eW.create=(e,t)=>new eW({getter:e,typeName:T.ZodLazy,...ei(t)});class eH extends ea{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return G(t,{received:t.data,code:F.invalid_literal,expected:this._def.value}),B}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eG(e,t){return new eV({values:e,typeName:T.ZodEnum,...ei(t)})}eH.create=(e,t)=>new eH({value:e,typeName:T.ZodLiteral,...ei(t)});class eV extends ea{constructor(){super(...arguments),E.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return G(t,{expected:_.joinValues(n),received:t.parsedType,code:F.invalid_type}),B}if(ee(this,E,"f")||et(this,E,new Set(this._def.values),"f"),!ee(this,E,"f").has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return G(t,{received:t.data,code:F.invalid_enum_value,options:n}),B}return K(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eV.create(e,{...this._def,...t})}exclude(e,t=this._def){return eV.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}E=new WeakMap,eV.create=eG;class eB extends ea{constructor(){super(...arguments),O.set(this,void 0)}_parse(e){let t=_.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Z.string&&n.parsedType!==Z.number){let e=_.objectValues(t);return G(n,{expected:_.joinValues(e),received:n.parsedType,code:F.invalid_type}),B}if(ee(this,O,"f")||et(this,O,new Set(_.getValidEnumValues(this._def.values)),"f"),!ee(this,O,"f").has(e.data)){let e=_.objectValues(t);return G(n,{received:n.data,code:F.invalid_enum_value,options:e}),B}return K(e.data)}get enum(){return this._def.values}}O=new WeakMap,eB.create=(e,t)=>new eB({values:e,typeName:T.ZodNativeEnum,...ei(t)});class eq extends ea{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==Z.promise&&!1===t.common.async?(G(t,{code:F.invalid_type,expected:Z.promise,received:t.parsedType}),B):K((t.parsedType===Z.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eq.create=(e,t)=>new eq({type:e,typeName:T.ZodPromise,...ei(t)});class eK extends ea{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===T.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{G(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return B;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?B:"dirty"===r.status||"dirty"===t.value?q(r.value):r});{if("aborted"===t.value)return B;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?B:"dirty"===r.status||"dirty"===t.value?q(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?B:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?B:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>J(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!J(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}_.assertNever(r)}}eK.create=(e,t,n)=>new eK({schema:e,typeName:T.ZodEffects,effect:t,...ei(n)}),eK.createWithPreprocess=(e,t,n)=>new eK({schema:t,effect:{type:"preprocess",transform:e},typeName:T.ZodEffects,...ei(n)});class eY extends ea{_parse(e){return this._getType(e)===Z.undefined?K(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eY.create=(e,t)=>new eY({innerType:e,typeName:T.ZodOptional,...ei(t)});class eQ extends ea{_parse(e){return this._getType(e)===Z.null?K(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eQ.create=(e,t)=>new eQ({innerType:e,typeName:T.ZodNullable,...ei(t)});class eJ extends ea{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===Z.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eJ.create=(e,t)=>new eJ({innerType:e,typeName:T.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...ei(t)});class eX extends ea{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return X(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new z(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new z(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}eX.create=(e,t)=>new eX({innerType:e,typeName:T.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...ei(t)});class e0 extends ea{_parse(e){if(this._getType(e)!==Z.nan){let t=this._getOrReturnCtx(e);return G(t,{code:F.invalid_type,expected:Z.nan,received:t.parsedType}),B}return{status:"valid",value:e.data}}}e0.create=e=>new e0({typeName:T.ZodNaN,...ei(e)});let e1=Symbol("zod_brand");class e2 extends ea{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class e4 extends ea{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?B:"dirty"===e.status?(t.dirty(),q(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?B:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new e4({in:e,out:t,typeName:T.ZodPipeline})}}class e5 extends ea{_parse(e){let t=this._def.innerType._parse(e),n=e=>(J(e)&&(e.value=Object.freeze(e.value)),e);return X(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}function e7(e,t={},n){return e?eC.create().superRefine((r,i)=>{var a,o;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(o=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===o||o;i.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:s})}}):eC.create()}e5.create=(e,t)=>new e5({innerType:e,typeName:T.ZodReadonly,...ei(t)});let e3={object:eA.lazycreate};(x=T||(T={})).ZodString="ZodString",x.ZodNumber="ZodNumber",x.ZodNaN="ZodNaN",x.ZodBigInt="ZodBigInt",x.ZodBoolean="ZodBoolean",x.ZodDate="ZodDate",x.ZodSymbol="ZodSymbol",x.ZodUndefined="ZodUndefined",x.ZodNull="ZodNull",x.ZodAny="ZodAny",x.ZodUnknown="ZodUnknown",x.ZodNever="ZodNever",x.ZodVoid="ZodVoid",x.ZodArray="ZodArray",x.ZodObject="ZodObject",x.ZodUnion="ZodUnion",x.ZodDiscriminatedUnion="ZodDiscriminatedUnion",x.ZodIntersection="ZodIntersection",x.ZodTuple="ZodTuple",x.ZodRecord="ZodRecord",x.ZodMap="ZodMap",x.ZodSet="ZodSet",x.ZodFunction="ZodFunction",x.ZodLazy="ZodLazy",x.ZodLiteral="ZodLiteral",x.ZodEnum="ZodEnum",x.ZodEffects="ZodEffects",x.ZodNativeEnum="ZodNativeEnum",x.ZodOptional="ZodOptional",x.ZodNullable="ZodNullable",x.ZodDefault="ZodDefault",x.ZodCatch="ZodCatch",x.ZodPromise="ZodPromise",x.ZodBranded="ZodBranded",x.ZodPipeline="ZodPipeline",x.ZodReadonly="ZodReadonly";let e6=eb.create,e8=ew.create,e9=e0.create,te=e_.create,tt=ek.create,tn=ej.create,tr=eE.create,ti=eO.create,ta=eT.create,to=eC.create,ts=eS.create,tl=eN.create,tu=eR.create,tc=eI.create,td=eA.create,tf=eA.strictCreate,th=eL.create,tp=eM.create,tm=eZ.create,tx=eD.create,tg=eF.create,tv=ez.create,ty=e$.create,tb=eU.create,tw=eW.create,t_=eH.create,tk=eV.create,tj=eB.create,tE=eq.create,tO=eK.create,tT=eY.create,tC=eQ.create,tS=eK.createWithPreprocess,tN=e4.create;var tR=Object.freeze({__proto__:null,defaultErrorMap:$,setErrorMap:function(e){U=e},getErrorMap:W,makeIssue:H,EMPTY_PATH:[],addIssueToContext:G,ParseStatus:V,INVALID:B,DIRTY:q,OK:K,isAborted:Y,isDirty:Q,isValid:J,isAsync:X,get util(){return _},get objectUtil(){return k},ZodParsedType:Z,getParsedType:D,ZodType:ea,datetimeRegex:ey,ZodString:eb,ZodNumber:ew,ZodBigInt:e_,ZodBoolean:ek,ZodDate:ej,ZodSymbol:eE,ZodUndefined:eO,ZodNull:eT,ZodAny:eC,ZodUnknown:eS,ZodNever:eN,ZodVoid:eR,ZodArray:eI,ZodObject:eA,ZodUnion:eL,ZodDiscriminatedUnion:eM,ZodIntersection:eZ,ZodTuple:eD,ZodRecord:eF,ZodMap:ez,ZodSet:e$,ZodFunction:eU,ZodLazy:eW,ZodLiteral:eH,ZodEnum:eV,ZodNativeEnum:eB,ZodPromise:eq,ZodEffects:eK,ZodTransformer:eK,ZodOptional:eY,ZodNullable:eQ,ZodDefault:eJ,ZodCatch:eX,ZodNaN:e0,BRAND:e1,ZodBranded:e2,ZodPipeline:e4,ZodReadonly:e5,custom:e7,Schema:ea,ZodSchema:ea,late:e3,get ZodFirstPartyTypeKind(){return T},coerce:{string:e=>eb.create({...e,coerce:!0}),number:e=>ew.create({...e,coerce:!0}),boolean:e=>ek.create({...e,coerce:!0}),bigint:e=>e_.create({...e,coerce:!0}),date:e=>ej.create({...e,coerce:!0})},any:to,array:tc,bigint:te,boolean:tt,date:tn,discriminatedUnion:tp,effect:tO,enum:tk,function:tb,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>e7(t=>t instanceof e,t),intersection:tm,lazy:tw,literal:t_,map:tv,nan:e9,nativeEnum:tj,never:tl,null:ta,nullable:tC,number:e8,object:td,oboolean:()=>tt().optional(),onumber:()=>e8().optional(),optional:tT,ostring:()=>e6().optional(),pipeline:tN,preprocess:tS,promise:tE,record:tg,set:ty,strictObject:tf,string:e6,symbol:tr,transformer:tO,tuple:tx,undefined:ti,union:th,unknown:ts,void:tu,NEVER:B,ZodIssueCode:F,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:z}),tI=n(5318),tA=n.n(tI);n(5983);var tL=n(2676),tP=n(3311),tM={breadcrumb:!0,collapsed:!1,footer:!0,layout:"default",navbar:!0,pagination:!0,sidebar:!0,timestamp:!0,toc:!0,typesetting:"default"},tZ=tR.strictObject({breadcrumb:tR.boolean(),collapsed:tR.boolean(),footer:tR.boolean(),layout:tR.enum(["default","full","raw"]),navbar:tR.boolean(),pagination:tR.boolean(),sidebar:tR.boolean(),timestamp:tR.boolean(),toc:tR.boolean(),typesetting:tR.enum(["default","article"])}),tD=tR.enum(["normal","hidden","children"]),tF=tR.string(),tz=tR.strictObject({href:tR.string(),newWindow:tR.boolean(),title:tF}),t$=tR.strictObject({display:tD.optional(),items:tR.record(tz.partial({href:!0,newWindow:!0})),title:tF,type:tR.literal("menu")}),tU=tR.strictObject({title:tF.optional(),type:tR.literal("separator")}),tW=tz.extend({display:tD,theme:tZ,title:tF,type:tR.enum(["page","doc"])}).deepPartial();tR.string().or(t$).or(tU).or(tW);var tH=n(227),tG=n.n(tH);function tV(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tB(e){var t=tV(e).Element;return e instanceof t||e instanceof Element}function tq(e){var t=tV(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tK(e){if("undefined"==typeof ShadowRoot)return!1;var t=tV(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var tY=Math.max,tQ=Math.min,tJ=Math.round;function tX(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function t0(){return!/^((?!chrome|android).)*safari/i.test(tX())}function t1(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&tq(e)&&(i=e.offsetWidth>0&&tJ(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&tJ(r.height)/e.offsetHeight||1);var o=(tB(e)?tV(e):window).visualViewport,s=!t0()&&n,l=(r.left+(s&&o?o.offsetLeft:0))/i,u=(r.top+(s&&o?o.offsetTop:0))/a,c=r.width/i,d=r.height/a;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function t2(e){var t=tV(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function t4(e){return e?(e.nodeName||"").toLowerCase():null}function t5(e){return((tB(e)?e.ownerDocument:e.document)||window.document).documentElement}function t7(e){return t1(t5(e)).left+t2(e).scrollLeft}function t3(e){return tV(e).getComputedStyle(e)}function t6(e){var t=t3(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function t8(e){var t=t1(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function t9(e){return"html"===t4(e)?e:e.assignedSlot||e.parentNode||(tK(e)?e.host:null)||t5(e)}function ne(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(t4(t))>=0?t.ownerDocument.body:tq(t)&&t6(t)?t:e(t9(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=tV(r),o=i?[a].concat(a.visualViewport||[],t6(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(ne(t9(o)))}function nt(e){return tq(e)&&"fixed"!==t3(e).position?e.offsetParent:null}function nn(e){for(var t=tV(e),n=nt(e);n&&["table","td","th"].indexOf(t4(n))>=0&&"static"===t3(n).position;)n=nt(n);return n&&("html"===t4(n)||"body"===t4(n)&&"static"===t3(n).position)?t:n||function(e){var t=/firefox/i.test(tX());if(/Trident/i.test(tX())&&tq(e)&&"fixed"===t3(e).position)return null;var n=t9(e);for(tK(n)&&(n=n.host);tq(n)&&0>["html","body"].indexOf(t4(n));){var r=t3(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var nr="bottom",ni="right",na="left",no="auto",ns=["top",nr,ni,na],nl="start",nu="viewport",nc="popper",nd=ns.reduce(function(e,t){return e.concat([t+"-"+nl,t+"-end"])},[]),nf=[].concat(ns,[no]).reduce(function(e,t){return e.concat([t,t+"-"+nl,t+"-end"])},[]),nh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],np={placement:"bottom",modifiers:[],strategy:"absolute"};function nm(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function nb(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?ng(i):null,o=i?nv(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case"top":t={x:s,y:n.y-r.height};break;case nr:t={x:s,y:n.y+n.height};break;case ni:t={x:n.x+n.width,y:l};break;case na:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?ny(a):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case nl:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var nw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function n_(e){var t,n,r,i,a,o,s,l=e.popper,u=e.popperRect,c=e.placement,d=e.variation,f=e.offsets,h=e.position,p=e.gpuAcceleration,m=e.adaptive,x=e.roundOffsets,g=e.isFixed,v=f.x,y=void 0===v?0:v,b=f.y,w=void 0===b?0:b,_="function"==typeof x?x({x:y,y:w}):{x:y,y:w};y=_.x,w=_.y;var k=f.hasOwnProperty("x"),j=f.hasOwnProperty("y"),E=na,O="top",T=window;if(m){var C=nn(l),S="clientHeight",N="clientWidth";C===tV(l)&&"static"!==t3(C=t5(l)).position&&"absolute"===h&&(S="scrollHeight",N="scrollWidth"),("top"===c||(c===na||c===ni)&&"end"===d)&&(O=nr,w-=(g&&C===T&&T.visualViewport?T.visualViewport.height:C[S])-u.height,w*=p?1:-1),(c===na||("top"===c||c===nr)&&"end"===d)&&(E=ni,y-=(g&&C===T&&T.visualViewport?T.visualViewport.width:C[N])-u.width,y*=p?1:-1)}var R=Object.assign({position:h},m&&nw),I=!0===x?(t={x:y,y:w},n=tV(l),r=t.x,i=t.y,{x:tJ(r*(a=n.devicePixelRatio||1))/a||0,y:tJ(i*a)/a||0}):{x:y,y:w};return(y=I.x,w=I.y,p)?Object.assign({},R,((s={})[O]=j?"0":"",s[E]=k?"0":"",s.transform=1>=(T.devicePixelRatio||1)?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",s)):Object.assign({},R,((o={})[O]=j?w+"px":"",o[E]=k?y+"px":"",o.transform="",o))}var nk={left:"right",right:"left",bottom:"top",top:"bottom"};function nj(e){return e.replace(/left|right|bottom|top/g,function(e){return nk[e]})}var nE={start:"end",end:"start"};function nO(e){return e.replace(/start|end/g,function(e){return nE[e]})}function nT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&tK(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function nC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nS(e,t,n){var r,i,a,o,s,l,u,c,d,f;return t===nu?nC(function(e,t){var n=tV(e),r=t5(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var u=t0();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+t7(e),y:l}}(e,n)):tB(t)?((r=t1(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):nC((i=t5(e),o=t5(i),s=t2(i),l=null==(a=i.ownerDocument)?void 0:a.body,u=tY(o.scrollWidth,o.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=tY(o.scrollHeight,o.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-s.scrollLeft+t7(i),f=-s.scrollTop,"rtl"===t3(l||o).direction&&(d+=tY(o.clientWidth,l?l.clientWidth:0)-u),{width:u,height:c,x:d,y:f}))}function nN(){return{top:0,right:0,bottom:0,left:0}}function nR(e){return Object.assign({},nN(),e)}function nI(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function nA(e,t){void 0===t&&(t={});var n,r,i,a,o,s,l,u,c=t,d=c.placement,f=void 0===d?e.placement:d,h=c.strategy,p=void 0===h?e.strategy:h,m=c.boundary,x=c.rootBoundary,g=c.elementContext,v=void 0===g?nc:g,y=c.altBoundary,b=c.padding,w=void 0===b?0:b,_=nR("number"!=typeof w?w:nI(w,ns)),k=e.rects.popper,j=e.elements[void 0!==y&&y?v===nc?"reference":nc:v],E=(n=tB(j)?j:j.contextElement||t5(e.elements.popper),r=void 0===m?"clippingParents":m,i=void 0===x?nu:x,l=(s=[].concat("clippingParents"===r?(a=ne(t9(n)),tB(o=["absolute","fixed"].indexOf(t3(n).position)>=0&&tq(n)?nn(n):n)?a.filter(function(e){return tB(e)&&nT(e,o)&&"body"!==t4(e)}):[]):[].concat(r),[i]))[0],(u=s.reduce(function(e,t){var r=nS(n,t,p);return e.top=tY(r.top,e.top),e.right=tQ(r.right,e.right),e.bottom=tQ(r.bottom,e.bottom),e.left=tY(r.left,e.left),e},nS(n,l,p))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),O=t1(e.elements.reference),T=nb({reference:O,element:k,strategy:"absolute",placement:f}),C=nC(Object.assign({},k,T)),S=v===nc?C:O,N={top:E.top-S.top+_.top,bottom:S.bottom-E.bottom+_.bottom,left:E.left-S.left+_.left,right:S.right-E.right+_.right},R=e.modifiersData.offset;if(v===nc&&R){var I=R[f];Object.keys(N).forEach(function(e){var t=[ni,nr].indexOf(e)>=0?1:-1,n=["top",nr].indexOf(e)>=0?"y":"x";N[e]+=I[n]*t})}return N}function nL(e,t,n){return tY(e,tQ(t,n))}function nP(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function nM(e){return["top",ni,nr,na].some(function(t){return e[t]>=0})}var nZ=(y=void 0===(v=(g={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,o=r.resize,s=void 0===o||o,l=tV(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(e){e.addEventListener("scroll",n.update,nx)}),s&&l.addEventListener("resize",n.update,nx),function(){a&&u.forEach(function(e){e.removeEventListener("scroll",n.update,nx)}),s&&l.removeEventListener("resize",n.update,nx)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=nb({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,a=n.roundOffsets,o=void 0===a||a,s={placement:ng(t.placement),variation:nv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,n_(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:o})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,n_(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];tq(i)&&t4(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});tq(r)&&t4(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=nf.reduce(function(e,n){var r,i,o,s,l,u;return e[n]=(r=t.rects,o=[na,"top"].indexOf(i=ng(n))>=0?-1:1,l=(s="function"==typeof a?a(Object.assign({},r,{placement:n})):a)[0],u=s[1],l=l||0,u=(u||0)*o,[na,ni].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=o[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,x=t.options.placement,g=ng(x)===x,v=l||(g||!p?[nj(x)]:function(e){if(ng(e)===no)return[];var t=nj(e);return[nO(e),t,nO(t)]}(x)),y=[x].concat(v).reduce(function(e,n){var r,i,a,o,s,l,f,h,x,g,v,y;return e.concat(ng(n)===no?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,a=r.boundary,o=r.rootBoundary,s=r.padding,l=r.flipVariations,h=void 0===(f=r.allowedAutoPlacements)?nf:f,0===(v=(g=(x=nv(i))?l?nd:nd.filter(function(e){return nv(e)===x}):ns).filter(function(e){return h.indexOf(e)>=0})).length&&(v=g),Object.keys(y=v.reduce(function(e,n){return e[n]=nA(t,{placement:n,boundary:a,rootBoundary:o,padding:s})[ng(n)],e},{})).sort(function(e,t){return y[e]-y[t]})):n)},[]),b=t.rects.reference,w=t.rects.popper,_=new Map,k=!0,j=y[0],E=0;E=0,N=S?"width":"height",R=nA(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),I=S?C?ni:na:C?nr:"top";b[N]>w[N]&&(I=nj(I));var A=nj(I),L=[];if(a&&L.push(R[T]<=0),s&&L.push(R[I]<=0,R[A]<=0),L.every(function(e){return e})){j=O,k=!1;break}_.set(O,L)}if(k)for(var P=p?3:1,M=function(e){var t=y.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return j=t,"break"},Z=P;Z>0&&"break"!==M(Z);Z--);t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=n.altAxis,o=n.boundary,s=n.rootBoundary,l=n.altBoundary,u=n.padding,c=n.tether,d=void 0===c||c,f=n.tetherOffset,h=void 0===f?0:f,p=nA(t,{boundary:o,rootBoundary:s,padding:u,altBoundary:l}),m=ng(t.placement),x=nv(t.placement),g=!x,v=ny(m),y="x"===v?"y":"x",b=t.modifiersData.popperOffsets,w=t.rects.reference,_=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,j="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(b){if(void 0===i||i){var T,C="y"===v?"top":na,S="y"===v?nr:ni,N="y"===v?"height":"width",R=b[v],I=R+p[C],A=R-p[S],L=d?-_[N]/2:0,P=x===nl?w[N]:_[N],M=x===nl?-_[N]:-w[N],Z=t.elements.arrow,D=d&&Z?t8(Z):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:nN(),z=F[C],$=F[S],U=nL(0,w[N],D[N]),W=g?w[N]/2-L-U-z-j.mainAxis:P-U-z-j.mainAxis,H=g?-w[N]/2+L+U+$+j.mainAxis:M+U+$+j.mainAxis,G=t.elements.arrow&&nn(t.elements.arrow),V=G?"y"===v?G.clientTop||0:G.clientLeft||0:0,B=null!=(T=null==E?void 0:E[v])?T:0,q=nL(d?tQ(I,R+W-B-V):I,R,d?tY(A,R+H-B):A);b[v]=q,O[v]=q-R}if(void 0!==a&&a){var K,Y,Q="x"===v?"top":na,J="x"===v?nr:ni,X=b[y],ee="y"===y?"height":"width",et=X+p[Q],en=X-p[J],er=-1!==["top",na].indexOf(m),ei=null!=(Y=null==E?void 0:E[y])?Y:0,ea=er?et:X-w[ee]-_[ee]-ei+j.altAxis,eo=er?X+w[ee]+_[ee]-ei-j.altAxis:en,es=d&&er?(K=nL(ea,X,eo))>eo?eo:K:nL(d?ea:et,X,d?eo:en);b[y]=es,O[y]=es-X}t.modifiersData[r]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,l=ng(r.placement),u=ny(l),c=[na,ni].indexOf(l)>=0?"height":"width";if(o&&s){var d=nR("number"!=typeof(t="function"==typeof(t=a.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:nI(t,ns)),f=t8(o),h="y"===u?"top":na,p="y"===u?nr:ni,m=r.rects.reference[c]+r.rects.reference[u]-s[u]-r.rects.popper[c],x=s[u]-r.rects.reference[u],g=nn(o),v=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,y=d[h],b=v-f[c]-d[p],w=v/2-f[c]/2+(m/2-x/2),_=nL(y,w,b);r.modifiersData[i]=((n={})[u]=_,n.centerOffset=_-w,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&nT(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=nA(t,{elementContext:"reference"}),s=nA(t,{altBoundary:!0}),l=nP(o,r),u=nP(s,i,a),c=nM(l),d=nM(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:v,w=void 0===(b=g.defaultOptions)?np:b,function(e,t,n){void 0===n&&(n=w);var r,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},np,w),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,l={state:a,setOptions:function(n){var r,i,s,c,d,f="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},w,a.options,f),a.scrollParents={reference:tB(e)?ne(e):e.contextElement?ne(e.contextElement):[],popper:ne(t)};var h=(i=Object.keys(r=[].concat(y,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),s=new Map,c=new Set,d=[],i.forEach(function(e){s.set(e.name,e)}),i.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var n=s.get(t);n&&e(n)}}),d.push(t)}(e)}),nh.reduce(function(e,t){return e.concat(d.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=h.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:a,name:t,instance:l,options:void 0===n?{}:n});o.push(i||function(){})}}),l.update()},forceUpdate:function(){if(!s){var e,t,n,r,i,o,u,c,d,f,h,p,m=a.elements,x=m.reference,g=m.popper;if(nm(x,g)){a.rects={reference:(t=nn(g),n="fixed"===a.options.strategy,r=tq(t),c=tq(t)&&(o=tJ((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,u=tJ(i.height)/t.offsetHeight||1,1!==o||1!==u),d=t5(t),f=t1(x,c,n),h={scrollLeft:0,scrollTop:0},p={x:0,y:0},(r||!r&&!n)&&(("body"!==t4(t)||t6(d))&&(h=(e=t)!==tV(e)&&tq(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:t2(e)),tq(t)?(p=t1(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):d&&(p.x=t7(d))),{x:f.left+h.scrollLeft-p.x,y:f.top+h.scrollTop-p.y,width:f.width,height:f.height}),popper:t8(g)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var v=0;v()=>e.dispose(),[e]),e}var nU=n(8238),nW=n(1177),nH=n(1281),nG=n(3021),nV=n(3557),nB=n(680),nq=n(6260);function nK(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&e.classList.add(...n)}function nY(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&e.classList.remove(...n)}let nQ=(0,N.createContext)(null);nQ.displayName="OpenClosedContext";var nJ=((i=nJ||{})[i.Open=1]="Open",i[i.Closed=2]="Closed",i[i.Closing=4]="Closing",i[i.Opening=8]="Opening",i);function nX(){return(0,N.useContext)(nQ)}function n0(e){let{value:t,children:n}=e;return N.createElement(nQ.Provider,{value:t},n)}var n1=n(7457),n2=n(8862);function n4(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(/\s+/).filter(e=>e.length>1)}let n5=(0,N.createContext)(null);n5.displayName="TransitionContext";var n7=((a=n7||{}).Visible="visible",a.Hidden="hidden",a);let n3=(0,N.createContext)(null);function n6(e){return"children"in e?n6(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function n8(e,t){let n=(0,nG.E)(e),r=(0,N.useRef)([]),i=(0,nW.t)(),a=n$(),o=(0,nU.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n2.l4.Hidden,o=r.current.findIndex(t=>{let{el:n}=t;return n===e});-1!==o&&((0,nq.E)(t,{[n2.l4.Unmount](){r.current.splice(o,1)},[n2.l4.Hidden](){r.current[o].state="hidden"}}),a.microTask(()=>{var e;!n6(r)&&i.current&&(null==(e=n.current)||e.call(n))}))}),s=(0,nU.z)(e=>{let t=r.current.find(t=>{let{el:n}=t;return n===e});return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>o(e,n2.l4.Unmount)}),l=(0,N.useRef)([]),u=(0,N.useRef)(Promise.resolve()),c=(0,N.useRef)({enter:[],leave:[],idle:[]}),d=(0,nU.z)((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(t=>{let[n]=t;return n!==e})),null==t||t.chains.current[n].push([e,new Promise(e=>{l.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(c.current[n].map(e=>{let[t,n]=e;return n})).then(()=>e())})]),"enter"===n?u.current=u.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),f=(0,nU.z)((e,t,n)=>{Promise.all(c.current[t].splice(0).map(e=>{let[t,n]=e;return n})).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>n(t))});return(0,N.useMemo)(()=>({children:r,register:s,unregister:o,onStart:d,onStop:f,wait:u,chains:c}),[s,o,r,d,f,c,u])}function n9(){}n3.displayName="NestingContext";let re=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function rt(e){var t;let n={};for(let r of re)n[r]=null!=(t=e[r])?t:n9;return n}let rn=n2.AN.RenderStrategy,rr=(0,n2.yV)(function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=(0,N.useRef)(null),s=(0,nB.T)(o,t);(0,nV.H)();let l=nX();if(void 0===n&&null!==l&&(n=(l&nJ.Open)===nJ.Open),![!0,!1].includes(n))throw Error("A is used but it is missing a `show={true | false}` prop.");let[u,c]=(0,N.useState)(n?"visible":"hidden"),d=n8(()=>{c("hidden")}),[f,h]=(0,N.useState)(!0),p=(0,N.useRef)([n]);(0,nH.e)(()=>{!1!==f&&p.current[p.current.length-1]!==n&&(p.current.push(n),h(!1))},[p,n]);let m=(0,N.useMemo)(()=>({show:n,appear:r,initial:f}),[n,r,f]);(0,N.useEffect)(()=>{if(n)c("visible");else if(n6(d)){let e=o.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&c("hidden")}else c("hidden")},[n,d]);let x={unmount:i},g=(0,nU.z)(()=>{var t;f&&h(!1),null==(t=e.beforeEnter)||t.call(e)}),v=(0,nU.z)(()=>{var t;f&&h(!1),null==(t=e.beforeLeave)||t.call(e)});return N.createElement(n3.Provider,{value:d},N.createElement(n5.Provider,{value:m},(0,n2.sY)({ourProps:{...x,as:N.Fragment,children:N.createElement(ri,{ref:s,...x,...a,beforeEnter:g,beforeLeave:v})},theirProps:{},defaultTag:N.Fragment,features:rn,visible:"visible"===u,name:"Transition"})))}),ri=(0,n2.yV)(function(e,t){var n,r,i;let a;let{beforeEnter:o,afterEnter:s,beforeLeave:l,afterLeave:u,enter:c,enterFrom:d,enterTo:f,entered:h,leave:p,leaveFrom:m,leaveTo:x,...g}=e,v=(0,N.useRef)(null),y=(0,nB.T)(v,t),b=null==(n=g.unmount)||n?n2.l4.Unmount:n2.l4.Hidden,{show:w,appear:_,initial:k}=function(){let e=(0,N.useContext)(n5);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),[j,E]=(0,N.useState)(w?"visible":"hidden"),O=function(){let e=(0,N.useContext)(n3);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),{register:T,unregister:C}=O;(0,N.useEffect)(()=>T(v),[T,v]),(0,N.useEffect)(()=>{if(b===n2.l4.Hidden&&v.current){if(w&&"visible"!==j){E("visible");return}return(0,nq.E)(j,{hidden:()=>C(v),visible:()=>T(v)})}},[j,v,T,C,w,b]);let S=(0,nG.E)({base:n4(g.className),enter:n4(c),enterFrom:n4(d),enterTo:n4(f),entered:n4(h),leave:n4(p),leaveFrom:n4(m),leaveTo:n4(x)}),R=(i={beforeEnter:o,afterEnter:s,beforeLeave:l,afterLeave:u},a=(0,N.useRef)(rt(i)),(0,N.useEffect)(()=>{a.current=rt(i)},[i]),a),I=(0,nV.H)();(0,N.useEffect)(()=>{if(I&&"visible"===j&&null===v.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[v,j,I]);let A=_&&w&&k,L=I&&(!k||_)?w?"enter":"leave":"idle",P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,N.useState)(e),r=(0,nW.t)(),i=(0,N.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),a=(0,N.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:(0,N.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,N.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}(0),M=(0,nU.z)(e=>(0,nq.E)(e,{enter:()=>{P.addFlag(nJ.Opening),R.current.beforeEnter()},leave:()=>{P.addFlag(nJ.Closing),R.current.beforeLeave()},idle:()=>{}})),Z=(0,nU.z)(e=>(0,nq.E)(e,{enter:()=>{P.removeFlag(nJ.Opening),R.current.afterEnter()},leave:()=>{P.removeFlag(nJ.Closing),R.current.afterLeave()},idle:()=>{}})),D=n8(()=>{E("hidden"),C(v)},O),F=(0,N.useRef)(!1);!function(e){let{immediate:t,container:n,direction:r,classes:i,onStart:a,onStop:o}=e,s=(0,nW.t)(),l=n$(),u=(0,nG.E)(r);(0,nH.e)(()=>{t&&(u.current="enter")},[t]),(0,nH.e)(()=>{let e=(0,nz.k)();l.add(e.dispose);let t=n.current;if(t&&"idle"!==u.current&&s.current){var r,c,d;let n,s,l,f,h,p,m;return e.dispose(),a.current(u.current),e.add((r=i.current,c="enter"===u.current,d=()=>{e.dispose(),o.current(u.current)},s=c?"enter":"leave",l=(0,nz.k)(),f=void 0!==d?(n={called:!1},function(){for(var e=arguments.length,t=Array(e),r=0;r{},"enter"===s&&(t.removeAttribute("hidden"),t.style.display=""),h=(0,nq.E)(s,{enter:()=>r.enter,leave:()=>r.leave}),p=(0,nq.E)(s,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),m=(0,nq.E)(s,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom}),nY(t,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),nK(t,...r.base,...h,...m),l.nextFrame(()=>{nY(t,...r.base,...h,...m),nK(t,...r.base,...h,...p),function(e,t){let n=(0,nz.k)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),s=a+o;if(0!==s){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},s),n.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),r())})}else t();n.add(()=>t()),n.dispose}(t,()=>(nY(t,...r.base,...h),nK(t,...r.base,...r.entered),f()))}),l.dispose)),e.dispose}},[r])}({immediate:A,container:v,classes:S,direction:L,onStart:(0,nG.E)(e=>{F.current=!0,D.onStart(v,e,M)}),onStop:(0,nG.E)(e=>{F.current=!1,D.onStop(v,e,Z),"leave"!==e||n6(D)||(E("hidden"),C(v))})});let z=g;return A?z={...z,className:(0,n1.A)(g.className,...S.current.enter,...S.current.enterFrom)}:F.current&&(z.className=(0,n1.A)(g.className,null==(r=v.current)?void 0:r.className),""===z.className&&delete z.className),N.createElement(n3.Provider,{value:D},N.createElement(n0,{value:(0,nq.E)(j,{visible:nJ.Open,hidden:nJ.Closed})|P.flags},(0,n2.sY)({ourProps:{ref:y},theirProps:z,defaultTag:"div",features:rn,visible:"visible"===j,name:"Transition.Child"})))}),ra=(0,n2.yV)(function(e,t){let n=null!==(0,N.useContext)(n5),r=null!==nX();return N.createElement(N.Fragment,null,!n&&r?N.createElement(rr,{ref:t,...e}):N.createElement(ri,{ref:t,...e}))}),ro=Object.assign(rr,{Child:ra,Root:rr});var rs=n(5783);function rl(e,t){let[n,r]=(0,N.useState)(e),i=(0,nG.E)(e);return(0,nH.e)(()=>r(i.current),[i,r,...t]),n}var ru=n(6573),rc=n(8640);function rd(e,t,n){let r=(0,nG.E)(t);(0,N.useEffect)(()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}function rf(e,t){var n,r;let i,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=(0,N.useRef)(!1);function s(n,r){if(!o.current||n.defaultPrevented)return;let i=r(n);if(null!==i&&i.getRootNode().contains(i)&&i.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(i)||n.composed&&n.composedPath().includes(e))return}return(0,rc.sP)(i,rc.tJ.Loose)||-1===i.tabIndex||n.preventDefault(),t(n,i)}}(0,N.useEffect)(()=>{requestAnimationFrame(()=>{o.current=a})},[a]);let l=(0,N.useRef)(null);rd("pointerdown",e=>{var t,n;o.current&&(l.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),rd("mousedown",e=>{var t,n;o.current&&(l.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),rd("click",e=>{/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)||l.current&&(s(e,()=>l.current),l.current=null)},!0),rd("touchend",e=>s(e,()=>e.target instanceof HTMLElement?e.target:null),!0),n="blur",r=e=>s(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),i=(0,nG.E)(r),(0,N.useEffect)(()=>{function e(e){i.current(e)}return window.addEventListener(n,e,!0),()=>window.removeEventListener(n,e,!0)},[n,!0])}var rh=n(5025);let rp=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function rm(e){var t,n;let r=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let e of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),a=!0;let o=a?null!=(n=i.innerText)?n:"":r;return rp.test(o)&&(o=o.replace(rp,"")),o}function rx(e){let t=(0,N.useRef)(""),n=(0,N.useRef)("");return(0,nU.z)(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():rm(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return rm(e).trim()})(r).trim().toLowerCase();return t.current=i,n.current=a,a})}function rg(e){return[e.screenX,e.screenY]}function rv(){let e=(0,N.useRef)([-1,-1]);return{wasMoved(t){let n=rg(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=rg(t)}}}var ry=n(9990);function rb(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var rw=((o=rw||{})[o.First=0]="First",o[o.Previous=1]="Previous",o[o.Next=2]="Next",o[o.Last=3]="Last",o[o.Specific=4]="Specific",o[o.Nothing=5]="Nothing",o);function r_(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,rc.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return -1===i&&(i=null),{options:r,activeOptionIndex:i}}let rR={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=rN(e),i=r_(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),a=i?e.options.indexOf(i):-1;return -1===a||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=rN(e,e=>[...e,n]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=rN(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},rI=(0,N.createContext)(null);function rA(e){let t=(0,N.useContext)(rI);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,rA),t}return t}rI.displayName="ListboxActionsContext";let rL=(0,N.createContext)(null);function rP(e){let t=(0,N.useContext)(rL);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,rP),t}return t}function rM(e,t){return(0,nq.E)(t.type,rR,e,t)}rL.displayName="ListboxDataContext";let rZ=N.Fragment,rD=n2.AN.RenderStrategy|n2.AN.Static,rF=Object.assign((0,n2.yV)(function(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(e,t)=>e===t,disabled:l=!1,horizontal:u=!1,multiple:c=!1,...d}=e,f=u?"horizontal":"vertical",h=(0,nB.T)(t),[p=c?[]:void 0,m]=function(e,t,n){let[r,i]=(0,N.useState)(n),a=void 0!==e,o=(0,N.useRef)(a),s=(0,N.useRef)(!1),l=(0,N.useRef)(!1);return!a||o.current||s.current?a||!o.current||l.current||(l.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:r,(0,nU.z)(e=>(a||i(e),null==t?void 0:t(e)))]}(n,o,r),[x,g]=(0,N.useReducer)(rM,{dataRef:(0,N.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=(0,N.useRef)({static:!1,hold:!1}),y=(0,N.useRef)(null),b=(0,N.useRef)(null),w=(0,N.useRef)(null),_=(0,nU.z)("string"==typeof s?(e,t)=>(null==e?void 0:e[s])===(null==t?void 0:t[s]):s),k=(0,N.useCallback)(e=>(0,nq.E)(j.mode,{1:()=>p.some(t=>_(t,e)),0:()=>_(p,e)}),[p]),j=(0,N.useMemo)(()=>({...x,value:p,disabled:l,mode:c?1:0,orientation:f,compare:_,isSelected:k,optionsPropsRef:v,labelRef:y,buttonRef:b,optionsRef:w}),[p,l,c,x]);(0,nH.e)(()=>{x.dataRef.current=j},[j]),rf([j.buttonRef,j.optionsRef],(e,t)=>{var n;g({type:1}),(0,rc.sP)(t,rc.tJ.Loose)||(e.preventDefault(),null==(n=j.buttonRef.current)||n.focus())},0===j.listboxState);let E=(0,N.useMemo)(()=>({open:0===j.listboxState,disabled:l,value:p}),[j,l,p]),O=(0,nU.z)(e=>{let t=j.options.find(t=>t.id===e);t&&L(t.dataRef.current.value)}),T=(0,nU.z)(()=>{if(null!==j.activeOptionIndex){let{dataRef:e,id:t}=j.options[j.activeOptionIndex];L(e.current.value),g({type:2,focus:rw.Specific,id:t})}}),C=(0,nU.z)(()=>g({type:0})),S=(0,nU.z)(()=>g({type:1})),R=(0,nU.z)((e,t,n)=>e===rw.Specific?g({type:2,focus:rw.Specific,id:t,trigger:n}):g({type:2,focus:e,trigger:n})),I=(0,nU.z)((e,t)=>(g({type:5,id:e,dataRef:t}),()=>g({type:6,id:e}))),A=(0,nU.z)(e=>(g({type:7,id:e}),()=>g({type:7,id:null}))),L=(0,nU.z)(e=>(0,nq.E)(j.mode,{0:()=>null==m?void 0:m(e),1(){let t=j.value.slice(),n=t.findIndex(t=>_(t,e));return -1===n?t.push(e):t.splice(n,1),null==m?void 0:m(t)}})),P=(0,nU.z)(e=>g({type:3,value:e})),M=(0,nU.z)(()=>g({type:4})),Z=(0,N.useMemo)(()=>({onChange:L,registerOption:I,registerLabel:A,goToOption:R,closeListbox:S,openListbox:C,selectActiveOption:T,selectOption:O,search:P,clearSearch:M}),[]),D=(0,N.useRef)(null),F=n$();return(0,N.useEffect)(()=>{D.current&&void 0!==r&&F.addEventListener(D.current,"reset",()=>{null==m||m(r)})},[D,m]),N.createElement(rI.Provider,{value:Z},N.createElement(rL.Provider,{value:j},N.createElement(n0,{value:(0,nq.E)(j.listboxState,{0:nJ.Open,1:nJ.Closed})},null!=a&&null!=p&&(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[i,a]of Object.entries(t))!function t(n,r,i){if(Array.isArray(i))for(let[e,a]of i.entries())t(n,rk(r,e.toString()),a);else i instanceof Date?n.push([r,i.toISOString()]):"boolean"==typeof i?n.push([r,i?"1":"0"]):"string"==typeof i?n.push([r,i]):"number"==typeof i?n.push([r,"".concat(i)]):null==i?n.push([r,""]):e(i,r,n)}(r,rk(n,i),a);return r})({[a]:p}).map((e,t)=>{let[n,r]=e;return N.createElement(ry._,{features:ry.A.Hidden,ref:0===t?e=>{var t;D.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,n2.oA)({key:n,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,disabled:l,name:n,value:r})})}),(0,n2.sY)({ourProps:{ref:h},theirProps:d,slot:E,defaultTag:rZ,name:"Listbox"}))))}),{Button:(0,n2.yV)(function(e,t){var n;let r=(0,ru.M)(),{id:i="headlessui-listbox-button-".concat(r),...a}=e,o=rP("Listbox.Button"),s=rA("Listbox.Button"),l=(0,nB.T)(o.buttonRef,t),u=n$(),c=(0,nU.z)(e=>{switch(e.key){case rE.R.Space:case rE.R.Enter:case rE.R.ArrowDown:e.preventDefault(),s.openListbox(),u.nextFrame(()=>{o.value||s.goToOption(rw.First)});break;case rE.R.ArrowUp:e.preventDefault(),s.openListbox(),u.nextFrame(()=>{o.value||s.goToOption(rw.Last)})}}),d=(0,nU.z)(e=>{e.key===rE.R.Space&&e.preventDefault()}),f=(0,nU.z)(e=>{if(rb(e.currentTarget))return e.preventDefault();0===o.listboxState?(s.closeListbox(),u.nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(e.preventDefault(),s.openListbox())}),h=rl(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),p=(0,N.useMemo)(()=>({open:0===o.listboxState,disabled:o.disabled,value:o.value}),[o]),m={ref:l,id:i,type:(0,rh.f)(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=o.optionsRef.current)?void 0:n.id,"aria-expanded":0===o.listboxState,"aria-labelledby":h,disabled:o.disabled,onKeyDown:c,onKeyUp:d,onClick:f};return(0,n2.sY)({ourProps:m,theirProps:a,slot:p,defaultTag:"button",name:"Listbox.Button"})}),Label:(0,n2.yV)(function(e,t){let n=(0,ru.M)(),{id:r="headlessui-listbox-label-".concat(n),...i}=e,a=rP("Listbox.Label"),o=rA("Listbox.Label"),s=(0,nB.T)(a.labelRef,t);(0,nH.e)(()=>o.registerLabel(r),[r]);let l=(0,nU.z)(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),u=(0,N.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled}),[a]);return(0,n2.sY)({ourProps:{ref:s,id:r,onClick:l},theirProps:i,slot:u,defaultTag:"label",name:"Listbox.Label"})}),Options:(0,n2.yV)(function(e,t){var n;let r=(0,ru.M)(),{id:i="headlessui-listbox-options-".concat(r),...a}=e,o=rP("Listbox.Options"),s=rA("Listbox.Options"),l=(0,nB.T)(o.optionsRef,t),u=n$(),c=n$(),d=nX(),f=null!==d?(d&nJ.Open)===nJ.Open:0===o.listboxState;(0,N.useEffect)(()=>{var e;let t=o.optionsRef.current;t&&0===o.listboxState&&t!==(null==(e=(0,rj.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let h=(0,nU.z)(e=>{switch(c.dispose(),e.key){case rE.R.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),s.search(e.key);case rE.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==o.activeOptionIndex){let{dataRef:e}=o.options[o.activeOptionIndex];s.onChange(e.current.value)}0===o.mode&&(s.closeListbox(),(0,nz.k)().nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case(0,nq.E)(o.orientation,{vertical:rE.R.ArrowDown,horizontal:rE.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),s.goToOption(rw.Next);case(0,nq.E)(o.orientation,{vertical:rE.R.ArrowUp,horizontal:rE.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),s.goToOption(rw.Previous);case rE.R.Home:case rE.R.PageUp:return e.preventDefault(),e.stopPropagation(),s.goToOption(rw.First);case rE.R.End:case rE.R.PageDown:return e.preventDefault(),e.stopPropagation(),s.goToOption(rw.Last);case rE.R.Escape:return e.preventDefault(),e.stopPropagation(),s.closeListbox(),u.nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case rE.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(s.search(e.key),c.setTimeout(()=>s.clearSearch(),350))}}),p=rl(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.id},[o.buttonRef.current]),m=(0,N.useMemo)(()=>({open:0===o.listboxState}),[o]),x={"aria-activedescendant":null===o.activeOptionIndex||null==(n=o.options[o.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===o.mode||void 0,"aria-labelledby":p,"aria-orientation":o.orientation,id:i,onKeyDown:h,role:"listbox",tabIndex:0,ref:l};return(0,n2.sY)({ourProps:x,theirProps:a,slot:m,defaultTag:"ul",features:rD,visible:f,name:"Listbox.Options"})}),Option:(0,n2.yV)(function(e,t){let n=(0,ru.M)(),{id:r="headlessui-listbox-option-".concat(n),disabled:i=!1,value:a,...o}=e,s=rP("Listbox.Option"),l=rA("Listbox.Option"),u=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===r,c=s.isSelected(a),d=(0,N.useRef)(null),f=rx(d),h=(0,nG.E)({disabled:i,value:a,domRef:d,get textValue(){return f()}}),p=(0,nB.T)(t,d);(0,nH.e)(()=>{if(0!==s.listboxState||!u||0===s.activationTrigger)return;let e=(0,nz.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[d,u,s.listboxState,s.activationTrigger,s.activeOptionIndex]),(0,nH.e)(()=>l.registerOption(r,h),[h,r]);let m=(0,nU.z)(e=>{if(i)return e.preventDefault();l.onChange(a),0===s.mode&&(l.closeListbox(),(0,nz.k)().nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))}),x=(0,nU.z)(()=>{if(i)return l.goToOption(rw.Nothing);l.goToOption(rw.Specific,r)}),g=rv(),v=(0,nU.z)(e=>g.update(e)),y=(0,nU.z)(e=>{g.wasMoved(e)&&(i||u||l.goToOption(rw.Specific,r,0))}),b=(0,nU.z)(e=>{g.wasMoved(e)&&(i||u&&l.goToOption(rw.Nothing))}),w=(0,N.useMemo)(()=>({active:u,selected:c,disabled:i}),[u,c,i]);return(0,n2.sY)({ourProps:{id:r,ref:p,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":c,disabled:void 0,onClick:m,onFocus:x,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:o,slot:w,defaultTag:"li",name:"Listbox.Option"})})});var rz=n(967),r$=n(6884),rU=n.n(r$);function rW(){return(rW=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var rG=["keyOverride"],rV=["crossOrigin"],rB={templateTitle:"",noindex:!1,nofollow:!1,norobots:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},rq=function(e,t,n){void 0===t&&(t=[]);var r=void 0===n?{}:n,i=r.defaultWidth,a=r.defaultHeight;return t.reduce(function(t,n,r){return t.push(N.createElement("meta",{key:"og:"+e+":0"+r,property:"og:"+e,content:n.url})),n.alt&&t.push(N.createElement("meta",{key:"og:"+e+":alt0"+r,property:"og:"+e+":alt",content:n.alt})),n.secureUrl&&t.push(N.createElement("meta",{key:"og:"+e+":secure_url0"+r,property:"og:"+e+":secure_url",content:n.secureUrl.toString()})),n.type&&t.push(N.createElement("meta",{key:"og:"+e+":type0"+r,property:"og:"+e+":type",content:n.type.toString()})),n.width?t.push(N.createElement("meta",{key:"og:"+e+":width0"+r,property:"og:"+e+":width",content:n.width.toString()})):i&&t.push(N.createElement("meta",{key:"og:"+e+":width0"+r,property:"og:"+e+":width",content:i.toString()})),n.height?t.push(N.createElement("meta",{key:"og:"+e+":height"+r,property:"og:"+e+":height",content:n.height.toString()})):a&&t.push(N.createElement("meta",{key:"og:"+e+":height"+r,property:"og:"+e+":height",content:a.toString()})),t},[])},rK=function(e){var t,n,r,i,a,o=[];e.titleTemplate&&(rB.templateTitle=e.titleTemplate);var s="";e.title?(s=e.title,rB.templateTitle&&(s=rB.templateTitle.replace(/%s/g,function(){return s}))):e.defaultTitle&&(s=e.defaultTitle),s&&o.push(N.createElement("title",{key:"title"},s));var l=void 0===e.noindex?rB.noindex||e.dangerouslySetAllPagesToNoIndex:e.noindex,u=void 0===e.nofollow?rB.nofollow||e.dangerouslySetAllPagesToNoFollow:e.nofollow,c=e.norobots||rB.norobots,d="";if(e.robotsProps){var f=e.robotsProps,h=f.nosnippet,p=f.maxSnippet,m=f.maxImagePreview,x=f.maxVideoPreview,g=f.noarchive,v=f.noimageindex,y=f.notranslate,b=f.unavailableAfter;d=(h?",nosnippet":"")+(p?",max-snippet:"+p:"")+(m?",max-image-preview:"+m:"")+(g?",noarchive":"")+(b?",unavailable_after:"+b:"")+(v?",noimageindex":"")+(x?",max-video-preview:"+x:"")+(y?",notranslate":"")}if(e.norobots&&(rB.norobots=!0),l||u?(e.dangerouslySetAllPagesToNoIndex&&(rB.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(rB.nofollow=!0),o.push(N.createElement("meta",{key:"robots",name:"robots",content:(l?"noindex":"index")+","+(u?"nofollow":"follow")+d}))):(!c||d)&&o.push(N.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+d})),e.description&&o.push(N.createElement("meta",{key:"description",name:"description",content:e.description})),e.themeColor&&o.push(N.createElement("meta",{key:"theme-color",name:"theme-color",content:e.themeColor})),e.mobileAlternate&&o.push(N.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach(function(e){o.push(N.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))}),e.twitter&&(e.twitter.cardType&&o.push(N.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&o.push(N.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&o.push(N.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&o.push(N.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),(null!=(t=e.openGraph)&&t.title||s)&&o.push(N.createElement("meta",{key:"og:title",property:"og:title",content:(null==(i=e.openGraph)?void 0:i.title)||s})),(null!=(n=e.openGraph)&&n.description||e.description)&&o.push(N.createElement("meta",{key:"og:description",property:"og:description",content:(null==(a=e.openGraph)?void 0:a.description)||e.description})),e.openGraph){if((e.openGraph.url||e.canonical)&&o.push(N.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var w=e.openGraph.type.toLowerCase();o.push(N.createElement("meta",{key:"og:type",property:"og:type",content:w})),"profile"===w&&e.openGraph.profile?(e.openGraph.profile.firstName&&o.push(N.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&o.push(N.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&o.push(N.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&o.push(N.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===w&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEach(function(e,t){o.push(N.createElement("meta",{key:"book:author:0"+t,property:"book:author",content:e}))}),e.openGraph.book.isbn&&o.push(N.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&o.push(N.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEach(function(e,t){o.push(N.createElement("meta",{key:"book:tag:0"+t,property:"book:tag",content:e}))})):"article"===w&&e.openGraph.article?(e.openGraph.article.publishedTime&&o.push(N.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&o.push(N.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&o.push(N.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach(function(e,t){o.push(N.createElement("meta",{key:"article:author:0"+t,property:"article:author",content:e}))}),e.openGraph.article.section&&o.push(N.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach(function(e,t){o.push(N.createElement("meta",{key:"article:tag:0"+t,property:"article:tag",content:e}))})):("video.movie"===w||"video.episode"===w||"video.tv_show"===w||"video.other"===w)&&e.openGraph.video&&(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach(function(e,t){e.profile&&o.push(N.createElement("meta",{key:"video:actor:0"+t,property:"video:actor",content:e.profile})),e.role&&o.push(N.createElement("meta",{key:"video:actor:role:0"+t,property:"video:actor:role",content:e.role}))}),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach(function(e,t){o.push(N.createElement("meta",{key:"video:director:0"+t,property:"video:director",content:e}))}),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach(function(e,t){o.push(N.createElement("meta",{key:"video:writer:0"+t,property:"video:writer",content:e}))}),e.openGraph.video.duration&&o.push(N.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&o.push(N.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEach(function(e,t){o.push(N.createElement("meta",{key:"video:tag:0"+t,property:"video:tag",content:e}))}),e.openGraph.video.series&&o.push(N.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(rB.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(rB.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&o.push.apply(o,rq("image",e.openGraph.images,{defaultWidth:rB.defaultOpenGraphImageWidth,defaultHeight:rB.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(rB.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(rB.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&o.push.apply(o,rq("video",e.openGraph.videos,{defaultWidth:rB.defaultOpenGraphVideoWidth,defaultHeight:rB.defaultOpenGraphVideoHeight})),e.openGraph.audio&&o.push.apply(o,rq("audio",e.openGraph.audio)),e.openGraph.locale&&o.push(N.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),(e.openGraph.siteName||e.openGraph.site_name)&&o.push(N.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.siteName||e.openGraph.site_name}))}return e.canonical&&o.push(N.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach(function(e){var t,n,r=e.keyOverride,i=rH(e,rG);o.push(N.createElement("meta",rW({key:"meta:"+(null!=(t=null!=(n=null!=r?r:i.name)?n:i.property)?t:i.httpEquiv)},i)))}),null!=(r=e.additionalLinkTags)&&r.length&&e.additionalLinkTags.forEach(function(e){var t,n=e.crossOrigin,r=rH(e,rV);o.push(N.createElement("link",rW({key:"link"+(null!=(t=r.keyOverride)?t:r.href)+r.rel},r,{crossOrigin:"anonymous"===n||"use-credentials"===n||""===n?n:void 0})))}),o},rY=function(e){return N.createElement(rU(),null,rK(e))},rQ=function(e){var t=e.title,n=e.themeColor,r=e.noindex,i=e.nofollow,a=e.robotsProps,o=e.description,s=e.canonical,l=e.openGraph,u=e.facebook,c=e.twitter,d=e.additionalMetaTags,f=e.titleTemplate,h=e.defaultTitle,p=e.mobileAlternate,m=e.languageAlternates,x=e.additionalLinkTags;return N.createElement(N.Fragment,null,N.createElement(rY,{title:t,themeColor:n,noindex:r,nofollow:i,robotsProps:a,description:o,canonical:s,facebook:u,openGraph:l,additionalMetaTags:d,twitter:c,titleTemplate:f,defaultTitle:h,mobileAlternate:p,languageAlternates:m,additionalLinkTags:x}))};RegExp("["+Object.keys(Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"})).join("")+"]","g");var rJ=((d=rJ||{})[d.Open=0]="Open",d[d.Closed=1]="Closed",d),rX=((f=rX||{})[f.Pointer=0]="Pointer",f[f.Other=1]="Other",f),r0=((h=r0||{})[h.OpenMenu=0]="OpenMenu",h[h.CloseMenu=1]="CloseMenu",h[h.GoToItem=2]="GoToItem",h[h.Search=3]="Search",h[h.ClearSearch=4]="ClearSearch",h[h.RegisterItem=5]="RegisterItem",h[h.UnregisterItem=6]="UnregisterItem",h);function r1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=(0,rc.z2)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return -1===i&&(i=null),{items:r,activeItemIndex:i}}let r2={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n;let r=r1(e),i=r_(t,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:i,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled}),a=i?e.items.indexOf(i):-1;return -1===a||a===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:a,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=r1(e,e=>[...e,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=r1(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}}},r4=(0,N.createContext)(null);function r5(e){let t=(0,N.useContext)(r4);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,r5),t}return t}function r7(e,t){return(0,nq.E)(t.type,r2,e,t)}r4.displayName="MenuContext";let r3=N.Fragment,r6=n2.AN.RenderStrategy|n2.AN.Static,r8=N.Fragment,r9=Object.assign((0,n2.yV)(function(e,t){let{__demoMode:n=!1,...r}=e,i=(0,N.useReducer)(r7,{__demoMode:n,menuState:n?0:1,buttonRef:(0,N.createRef)(),itemsRef:(0,N.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:o,buttonRef:s},l]=i,u=(0,nB.T)(t);rf([s,o],(e,t)=>{var n;l({type:1}),(0,rc.sP)(t,rc.tJ.Loose)||(e.preventDefault(),null==(n=s.current)||n.focus())},0===a);let c=(0,nU.z)(()=>{l({type:1})}),d=(0,N.useMemo)(()=>({open:0===a,close:c}),[a,c]);return N.createElement(r4.Provider,{value:i},N.createElement(n0,{value:(0,nq.E)(a,{0:nJ.Open,1:nJ.Closed})},(0,n2.sY)({ourProps:{ref:u},theirProps:r,slot:d,defaultTag:r3,name:"Menu"})))}),{Button:(0,n2.yV)(function(e,t){var n;let r=(0,ru.M)(),{id:i="headlessui-menu-button-".concat(r),...a}=e,[o,s]=r5("Menu.Button"),l=(0,nB.T)(o.buttonRef,t),u=n$(),c=(0,nU.z)(e=>{switch(e.key){case rE.R.Space:case rE.R.Enter:case rE.R.ArrowDown:e.preventDefault(),e.stopPropagation(),s({type:0}),u.nextFrame(()=>s({type:2,focus:rw.First}));break;case rE.R.ArrowUp:e.preventDefault(),e.stopPropagation(),s({type:0}),u.nextFrame(()=>s({type:2,focus:rw.Last}))}}),d=(0,nU.z)(e=>{e.key===rE.R.Space&&e.preventDefault()}),f=(0,nU.z)(t=>{if(rb(t.currentTarget))return t.preventDefault();e.disabled||(0===o.menuState?(s({type:1}),u.nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(t.preventDefault(),s({type:0})))}),h=(0,N.useMemo)(()=>({open:0===o.menuState}),[o]),p={ref:l,id:i,type:(0,rh.f)(e,o.buttonRef),"aria-haspopup":"menu","aria-controls":null==(n=o.itemsRef.current)?void 0:n.id,"aria-expanded":0===o.menuState,onKeyDown:c,onKeyUp:d,onClick:f};return(0,n2.sY)({ourProps:p,theirProps:a,slot:h,defaultTag:"button",name:"Menu.Button"})}),Items:(0,n2.yV)(function(e,t){var n,r;let i=(0,ru.M)(),{id:a="headlessui-menu-items-".concat(i),...o}=e,[s,l]=r5("Menu.Items"),u=(0,nB.T)(s.itemsRef,t),c=function(){for(var e=arguments.length,t=Array(e),n=0;n(0,rj.r)(...t),[...t])}(s.itemsRef),d=n$(),f=nX(),h=null!==f?(f&nJ.Open)===nJ.Open:0===s.menuState;(0,N.useEffect)(()=>{let e=s.itemsRef.current;e&&0===s.menuState&&e!==(null==c?void 0:c.activeElement)&&e.focus({preventScroll:!0})},[s.menuState,s.itemsRef,c]),function(e){let{container:t,accept:n,walk:r,enabled:i=!0}=e,a=(0,N.useRef)(n),o=(0,N.useRef)(r);(0,N.useEffect)(()=>{a.current=n,o.current=r},[n,r]),(0,nH.e)(()=>{if(!t||!i)return;let e=(0,rj.r)(t);if(!e)return;let n=a.current,r=o.current,s=Object.assign(e=>n(e),{acceptNode:n}),l=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)r(l.currentNode)},[t,i,a,o])}({container:s.itemsRef.current,enabled:0===s.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let p=(0,nU.z)(e=>{var t,n;switch(d.dispose(),e.key){case rE.R.Space:if(""!==s.searchQuery)return e.preventDefault(),e.stopPropagation(),l({type:3,value:e.key});case rE.R.Enter:if(e.preventDefault(),e.stopPropagation(),l({type:1}),null!==s.activeItemIndex){let{dataRef:e}=s.items[s.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}(0,rc.wI)(s.buttonRef.current);break;case rE.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:rw.Next});case rE.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:rw.Previous});case rE.R.Home:case rE.R.PageUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:rw.First});case rE.R.End:case rE.R.PageDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:rw.Last});case rE.R.Escape:e.preventDefault(),e.stopPropagation(),l({type:1}),(0,nz.k)().nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case rE.R.Tab:e.preventDefault(),e.stopPropagation(),l({type:1}),(0,nz.k)().nextFrame(()=>{(0,rc.EO)(s.buttonRef.current,e.shiftKey?rc.TO.Previous:rc.TO.Next)});break;default:1===e.key.length&&(l({type:3,value:e.key}),d.setTimeout(()=>l({type:4}),350))}}),m=(0,nU.z)(e=>{e.key===rE.R.Space&&e.preventDefault()}),x=(0,N.useMemo)(()=>({open:0===s.menuState}),[s]),g={"aria-activedescendant":null===s.activeItemIndex||null==(n=s.items[s.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=s.buttonRef.current)?void 0:r.id,id:a,onKeyDown:p,onKeyUp:m,role:"menu",tabIndex:0,ref:u};return(0,n2.sY)({ourProps:g,theirProps:o,slot:x,defaultTag:"div",features:r6,visible:h,name:"Menu.Items"})}),Item:(0,n2.yV)(function(e,t){let n=(0,ru.M)(),{id:r="headlessui-menu-item-".concat(n),disabled:i=!1,...a}=e,[o,s]=r5("Menu.Item"),l=null!==o.activeItemIndex&&o.items[o.activeItemIndex].id===r,u=(0,N.useRef)(null),c=(0,nB.T)(t,u);(0,nH.e)(()=>{if(o.__demoMode||0!==o.menuState||!l||0===o.activationTrigger)return;let e=(0,nz.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[o.__demoMode,u,l,o.menuState,o.activationTrigger,o.activeItemIndex]);let d=rx(u),f=(0,N.useRef)({disabled:i,domRef:u,get textValue(){return d()}});(0,nH.e)(()=>{f.current.disabled=i},[f,i]),(0,nH.e)(()=>(s({type:5,id:r,dataRef:f}),()=>s({type:6,id:r})),[f,r]);let h=(0,nU.z)(()=>{s({type:1})}),p=(0,nU.z)(e=>{if(i)return e.preventDefault();s({type:1}),(0,rc.wI)(o.buttonRef.current)}),m=(0,nU.z)(()=>{if(i)return s({type:2,focus:rw.Nothing});s({type:2,focus:rw.Specific,id:r})}),x=rv(),g=(0,nU.z)(e=>x.update(e)),v=(0,nU.z)(e=>{x.wasMoved(e)&&(i||l||s({type:2,focus:rw.Specific,id:r,trigger:0}))}),y=(0,nU.z)(e=>{x.wasMoved(e)&&(i||l&&s({type:2,focus:rw.Nothing}))}),b=(0,N.useMemo)(()=>({active:l,disabled:i,close:h}),[l,i,h]);return(0,n2.sY)({ourProps:{id:r,ref:c,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,disabled:void 0,onClick:p,onFocus:m,onPointerEnter:g,onMouseEnter:g,onPointerMove:v,onMouseMove:v,onPointerLeave:y,onMouseLeave:y},theirProps:a,slot:b,defaultTag:r8,name:"Menu.Item"})})}),ie=e=>"object"==typeof e&&null!=e&&1===e.nodeType,it=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,ir=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,ia=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},io=(e,t)=>{var n,r,i,a;if("undefined"==typeof document)return[];let{scrollMode:o,block:s,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d="function"==typeof u?u:e=>e!==u;if(!ie(e))throw TypeError("Invalid target");let f=document.scrollingElement||document.documentElement,h=[],p=e;for(;ie(p)&&d(p);){if((p=ia(p))===f){h.push(p);break}null!=p&&p===document.body&&ir(p)&&!ir(document.documentElement)||null!=p&&ir(p,c)&&h.push(p)}let m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,x=null!=(a=null==(i=window.visualViewport)?void 0:i.height)?a:innerHeight,{scrollX:g,scrollY:v}=window,{height:y,width:b,top:w,right:_,bottom:k,left:j}=e.getBoundingClientRect(),{top:E,right:O,bottom:T,left:C}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),S="start"===s||"nearest"===s?w-E:"end"===s?k+T:w+y/2-E+T,N="center"===l?j+b/2-C+O:"end"===l?_+O:j-C,R=[];for(let e=0;e=0&&j>=0&&k<=x&&_<=m&&w>=i&&k<=u&&j>=c&&_<=a)break;let d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),O=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10),C=0,I=0,A="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-O:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-T:0,P="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,M="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)C="start"===s?S:"end"===s?S-x:"nearest"===s?ii(v,v+x,x,E,T,v+S,v+S+y,y):S-x/2,I="start"===l?N:"center"===l?N-m/2:"end"===l?N-m:ii(g,g+m,m,p,O,g+N,g+N+b,b),C=Math.max(0,C+v),I=Math.max(0,I+g);else{C="start"===s?S-i-E:"end"===s?S-u+T+L:"nearest"===s?ii(i,u,n,E,T+L,S,S+y,y):S-(i+n/2)+L/2,I="start"===l?N-c-p:"center"===l?N-(c+r/2)+A/2:"end"===l?N-a+O+A:ii(c,a,r,p,O+A,N,N+b,b);let{scrollLeft:e,scrollTop:o}=t;C=0===M?0:Math.max(0,Math.min(o+C/M,t.scrollHeight-n/M+L)),I=0===P?0:Math.max(0,Math.min(e+I/P,t.scrollWidth-r/P+A)),S+=o-C,N+=e-I}R.push({el:t,top:C,left:I})}return R},is=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"};function il(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(io(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:i,top:a,left:o}of io(e,is(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var iu=n(2601),ic=n.n(iu);let id={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},ih=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function ip(e,t,n){void 0===n&&(n={});let{keys:r,threshold:i=id.MATCHES,baseSort:a=ih,sorter:o=e=>e.sort((e,t)=>(function(e,t,n){let{rank:r,keyIndex:i}=e,{rank:a,keyIndex:o}=t;return r!==a?r>a?-1:1:i===o?n(e,t):i{let{rank:i,rankedValue:a,keyIndex:o,keyThreshold:l}=e,{itemValue:u,attributes:c}=n,d=im(u,t,s),f=a,{minRanking:h,maxRanking:p,threshold:m}=c;return d=id.MATCHES?d=h:d>p&&(d=p),d>i&&(i=d,o=r,l=m,f=u),{rankedValue:f,rank:i,keyIndex:o,keyThreshold:l}},{rankedValue:a,rank:id.NO_MATCH,keyIndex:-1,keyThreshold:s.threshold}):{rankedValue:a,rank:im(a,t,s),keyIndex:-1,keyThreshold:s.threshold}),{rank:u,keyThreshold:c=i}=l;return u>=c&&e.push({...l,item:a,index:o}),e},[])).map(e=>{let{item:t}=e;return t})}function im(e,t,n){let r;return(e=ix(e,n),(t=ix(t,n)).length>e.length)?id.NO_MATCH:e===t?id.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?id.EQUAL:e.startsWith(t)?id.STARTS_WITH:e.includes(` ${t}`)?id.WORD_STARTS_WITH:e.includes(t)?id.CONTAINS:1===t.length?id.NO_MATCH:(r="",e.split(" ").forEach(e=>{e.split("-").forEach(e=>{r+=e.substr(0,1)})}),r).includes(t)?id.ACRONYM:function(e,t){let n=0,r=0;function i(e,t,r){for(let i=r,a=t.length;i-1))return id.NO_MATCH;return function(e){let r=n/t.length;return id.MATCHES+1/e*r}(r-a)}(e,t)}function ix(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=ic()(e)),e}ip.rankings=id;let ig={maxRanking:1/0,minRanking:-1/0};var iv=n(3860),iy=Object.defineProperty,ib=Object.defineProperties,iw=Object.getOwnPropertyDescriptors,i_=Object.getOwnPropertySymbols,ik=Object.prototype.hasOwnProperty,ij=Object.prototype.propertyIsEnumerable,iE=(e,t,n)=>t in e?iy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iO=(e,t)=>{for(var n in t||(t={}))ik.call(t,n)&&iE(e,n,t[n]);if(i_)for(var n of i_(t))ij.call(t,n)&&iE(e,n,t[n]);return e},iT=(e,t)=>ib(e,iw(t)),iC=(e,t)=>{var n={};for(var r in e)ik.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&i_)for(var r of i_(e))0>t.indexOf(r)&&ij.call(e,r)&&(n[r]=e[r]);return n},iS=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),iN=(0,N.createContext)({}),iR=(0,N.createContext)(e=>e),iI=(0,N.createContext)(null),iA=new WeakMap,iL=(0,N.createContext)(iA),iP=()=>(0,N.useContext)(iN),iM=()=>(0,N.useContext)(iR),iZ=()=>(0,N.useContext)(iI),iD=()=>(0,N.useContext)(iL),iF=({children:e})=>{let[t,n]=(0,N.useState)({}),r=(0,N.useRef)(null);return aS&&!r.current&&(r.current=new IntersectionObserver(e=>{n(t=>{let n=iO({},t);for(let t of e)if((null==t?void 0:t.rootBounds)&&iA.has(t.target)){let[e,r]=iA.get(t.target),i=t.boundingClientRect.y+t.boundingClientRect.height<=t.rootBounds.y+t.rootBounds.height,a=t.intersectionRatio>0;n[e]={index:r,aboveHalfViewport:i,insideHalfViewport:a}}let r="",i=1/0,a=-1;for(let e in n)n[e].isActive=!1,n[e].insideHalfViewport&&n[e].indexa&&(a=n[e].index,r=e);return n[r]&&(n[r].isActive=!0),n})},{rootMargin:"0px 0px -50%",threshold:[0,1]})),(0,tL.jsx)(iN.Provider,{value:t,children:(0,tL.jsx)(iR.Provider,{value:n,children:(0,tL.jsx)(iL.Provider,{value:iA,children:(0,tL.jsx)(iI.Provider,{value:r.current,children:e})})})})},iz=(0,N.createContext)({menu:!1,setMenu:()=>!1}),i$=()=>(0,N.useContext)(iz),iU=iz.Provider,iW=(0,N.createContext)(iO({title:"",frontMatter:{}},aM));function iH(){return(0,N.useContext)(iW)}var iG=({children:e,value:{themeConfig:t,pageOpts:n}})=>{let[r,i]=(0,N.useState)(!1);C||(C=iO(iO({},aM),Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t&&"object"==typeof t&&aZ.includes(e)?iO(iO({},aM[e]),t):t]))));let a=iT(iO(iT(iO({},C),{flexsearch:n.flexsearch}),"boolean"==typeof n.newNextLinkBehavior&&{newNextLinkBehavior:n.newNextLinkBehavior}),{title:n.title,frontMatter:n.frontMatter}),{nextThemes:o}=a;return(0,tL.jsx)(tP.f,{attribute:"class",disableTransitionOnChange:!0,defaultTheme:o.defaultTheme,storageKey:o.storageKey,forcedTheme:o.forcedTheme,children:(0,tL.jsx)(iW.Provider,{value:a,children:(0,tL.jsx)(iU,{value:{menu:r,setMenu:i},children:e})})})},iV=(0,N.createContext)(e=>e),iB=()=>(0,N.useContext)(iV),iq=iV.Provider,iK=Number("14.2.18".split(".")[0]),iY=(0,N.forwardRef)(function(e,t){var{href:n="",children:r,newWindow:i}=e,a=iC(e,["href","children","newWindow"]);let o=iH();return i?(0,tL.jsxs)("a",iT(iO({ref:t,href:n,target:"_blank",rel:"noreferrer"},a),{children:[r,(0,tL.jsx)("span",{className:"nx-sr-only nx-select-none",children:" (opens in a new tab)"})]})):n?iK>12||o.newNextLinkBehavior?(0,tL.jsx)(tA(),iT(iO({ref:t,href:n},a),{children:r})):(0,tL.jsx)(tA(),{href:n,passHref:!0,children:(0,tL.jsx)("a",iT(iO({ref:t},a),{children:r}))}):(0,tL.jsx)("a",iT(iO({ref:t},a),{children:r}))});iY.displayName="Anchor";var iQ=({repository:e="",title:t,labels:n})=>{let r=tG()(e);if(!r)throw Error("Invalid `docsRepositoryBase` URL!");return r.resource.includes("gitlab")?`${r.protocol}://${r.resource}/${r.owner}/${r.name}/-/issues/new?issue[title]=${encodeURIComponent(t)}${n?`&issue[description]=/label${encodeURIComponent(` ~${n} -`)}`:""}`:r.resource.includes("github")?`${r.protocol}://${r.resource}/${r.owner}/${r.name}/issues/new?title=${encodeURIComponent(t)}&labels=${n||""}`:"#"};function iJ(e,t){return e?"function"!=typeof e?e:(0,tL.jsx)(e,iO({},t)):null}function iX(e,t={}){return("function"==typeof e?e(t):e)||""}function i0(){let{banner:e}=iH();if(!e.text)return null;let t=`try{if(localStorage.getItem(${JSON.stringify(e.key)})==='0'){document.body.classList.add('nextra-banner-hidden')}}catch(e){}`;return(0,tL.jsxs)(tL.Fragment,{children:[(0,tL.jsx)("script",{dangerouslySetInnerHTML:{__html:t}}),(0,tL.jsxs)("div",{className:(0,R.Z)("nextra-banner-container nx-sticky nx-top-0 nx-z-20 nx-flex nx-items-center md:nx-relative","nx-h-[var(--nextra-banner-height)] [body.nextra-banner-hidden_&]:nx-hidden","nx-text-slate-50 dark:nx-text-white nx-bg-neutral-900 dark:nx-bg-[linear-gradient(1deg,#383838,#212121)]","nx-px-2 ltr:nx-pl-10 rtl:nx-pr-10 print:nx-hidden"),children:[(0,tL.jsx)("div",{className:"nx-w-full nx-truncate nx-px-4 nx-text-center nx-font-medium nx-text-sm",children:iJ(e.text)}),e.dismissible&&(0,tL.jsx)("button",{type:"button","aria-label":"Dismiss banner",className:"nx-w-8 nx-h-8 nx-opacity-80 hover:nx-opacity-100",onClick:()=>{try{localStorage.setItem(e.key,"0")}catch(e){}document.body.classList.add("nextra-banner-hidden")},children:(0,tL.jsx)(M.b0,{className:"nx-mx-auto nx-h-4 nx-w-4"})})]})]})}function i1({activePath:e}){return(0,tL.jsx)("div",{className:"nextra-breadcrumb nx-mt-1.5 nx-flex nx-items-center nx-gap-1 nx-overflow-hidden nx-text-sm nx-text-gray-500 dark:nx-text-gray-400 contrast-more:nx-text-current",children:e.map((t,n)=>{let r=!t.children||t.withIndexPage,i=n===e.length-1;return(0,tL.jsxs)(N.Fragment,{children:[n>0&&(0,tL.jsx)(M.LZ,{className:"nx-w-3.5 nx-shrink-0"}),(0,tL.jsx)("div",{className:(0,R.Z)("nx-whitespace-nowrap nx-transition-colors",i?"nx-font-medium nx-text-gray-700 contrast-more:nx-font-bold contrast-more:nx-text-current dark:nx-text-gray-100 contrast-more:dark:nx-text-current":["nx-min-w-[24px] nx-overflow-hidden nx-text-ellipsis",r&&"hover:nx-text-gray-900 dark:hover:nx-text-gray-100"]),title:t.title,children:r&&!i?(0,tL.jsx)(iY,{href:t.route,children:t.title}):t.title})]},t.route+t.name)})})}function i2({children:e,className:t,isOpen:n,horizontal:r=!1}){let i=(0,N.useRef)(null),a=(0,N.useRef)(null),o=(0,N.useRef)(0),s=(0,N.useRef)(n),l=(0,N.useRef)(!0);return(0,N.useEffect)(()=>{let e=i.current,t=a.current,s=o.current;s&&clearTimeout(s),!l.current&&e&&t&&(e.classList.toggle("nx-duration-500",!n),e.classList.toggle("nx-duration-300",n),r?(t.style.width=`${t.clientWidth}px`,e.style.width=`${t.clientWidth}px`):e.style.height=`${t.clientHeight}px`,n?o.current=window.setTimeout(()=>{e.style.removeProperty("height")},300):setTimeout(()=>{r?e.style.width="0px":e.style.height="0px"},0))},[r,n]),(0,N.useEffect)(()=>{l.current=!1},[]),(0,tL.jsx)("div",{ref:i,className:"nx-transform-gpu nx-overflow-hidden nx-transition-all nx-ease-in-out motion-reduce:nx-transition-none",style:s.current||r?void 0:{height:0},children:(0,tL.jsx)("div",{ref:a,className:(0,R.Z)("nx-transition-opacity nx-duration-500 nx-ease-in-out motion-reduce:nx-transition-none",n?"nx-opacity-100":"nx-opacity-0",t),children:e})})}var i4=(0,N.memo)(function({value:e,match:t}){let n;if(!e)return null;let r=e.split(""),i=RegExp((0,nF.Z)(t.trim()).replaceAll(/\s+/g,"|"),"ig"),a=0,o=[];for(;n=i.exec(e);)if(n.index===i.lastIndex)i.lastIndex++;else{let e=r.splice(0,n.index-a).join(""),t=r.splice(0,i.lastIndex-n.index).join("");o.push(e,(0,tL.jsx)("span",{className:"nx-text-primary-600",children:t},n.index)),a=i.lastIndex}return(0,tL.jsxs)(tL.Fragment,{children:[o,r.join("")]})}),i5=(0,N.forwardRef)((e,t)=>{var{className:n,suffix:r}=e,i=iC(e,["className","suffix"]);return(0,tL.jsxs)("div",{className:"nx-relative nx-flex nx-items-center nx-text-gray-900 contrast-more:nx-text-gray-800 dark:nx-text-gray-300 contrast-more:dark:nx-text-gray-300",children:[(0,tL.jsx)("input",iO({ref:t,spellCheck:!1,className:(0,R.Z)(n,"nx-block nx-w-full nx-appearance-none nx-rounded-lg nx-px-3 nx-py-2 nx-transition-colors","nx-text-base nx-leading-tight md:nx-text-sm","nx-bg-black/[.05] dark:nx-bg-gray-50/10","focus:nx-bg-white dark:focus:nx-bg-dark","placeholder:nx-text-gray-500 dark:placeholder:nx-text-gray-400","contrast-more:nx-border contrast-more:nx-border-current")},i)),r]})});i5.displayName="Input";var i7=["input","select","button","textarea"];function i3({className:e,overlayClassName:t,value:n,onChange:r,onActive:i,loading:a,error:o,results:s}){let[l,u]=(0,N.useState)(!1),c=iH(),[d,f]=(0,N.useState)(0),h=(0,S.useRouter)(),{setMenu:p}=i$(),m=(0,N.useRef)(null),x=(0,N.useRef)(null),[g,v]=(0,N.useState)(!1),[y,b]=(0,N.useState)(!0);(0,N.useEffect)(()=>{f(0)},[n]),(0,N.useEffect)(()=>{let e=e=>{let t=document.activeElement,n=null==t?void 0:t.tagName.toLowerCase();!m.current||!n||i7.includes(n)||null!=t&&t.isContentEditable||("/"===e.key||"k"===e.key&&(e.metaKey||e.ctrlKey)?(e.preventDefault(),m.current.focus({preventScroll:!0})):"Escape"===e.key&&(u(!1),m.current.blur()))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[]);let w=(0,N.useCallback)(()=>{var e;null==(e=m.current)||e.blur(),r(""),u(!1),p(!1)},[r,p]),_=(0,N.useCallback)(e=>{let{index:t}=e.currentTarget.dataset;f(Number(t))},[]),k=(0,N.useCallback)(function(e){var t,n,r;switch(e.key){case"ArrowDown":if(d+1 a`);n&&(e.preventDefault(),_({currentTarget:n}),n.focus())}break;case"ArrowUp":if(d-1>=0){let t=null==(n=x.current)?void 0:n.querySelector(`li:nth-of-type(${d}) > a`);t&&(e.preventDefault(),_({currentTarget:t}),t.focus())}break;case"Enter":{let e=s[d];e&&y&&(h.push(e.route),w());break}case"Escape":u(!1),null==(r=m.current)||r.blur()}},[d,s,h,w,_,y]),j=I(),E=l&&!!n,O=(0,tL.jsx)(ro,{show:j&&(!l||!!n),as:N.Fragment,enter:"nx-transition-opacity",enterFrom:"nx-opacity-0",enterTo:"nx-opacity-100",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,tL.jsx)("kbd",{className:(0,R.Z)("nx-absolute nx-my-1.5 nx-select-none ltr:nx-right-1.5 rtl:nx-left-1.5","nx-h-5 nx-rounded nx-bg-white nx-px-1.5 nx-font-mono nx-text-[10px] nx-font-medium nx-text-gray-500","nx-border dark:nx-border-gray-100/20 dark:nx-bg-dark/50","contrast-more:nx-border-current contrast-more:nx-text-current contrast-more:dark:nx-border-current","nx-items-center nx-gap-1 nx-transition-opacity",n?"nx-z-20 nx-flex nx-cursor-pointer hover:nx-opacity-70":"nx-pointer-events-none nx-hidden sm:nx-flex"),title:n?"Clear":void 0,onClick:()=>{r("")},children:n&&g?"ESC":j&&(navigator.userAgent.includes("Macintosh")?(0,tL.jsxs)(tL.Fragment,{children:[(0,tL.jsx)("span",{className:"nx-text-xs",children:"⌘"}),"K"]}):"CTRL K")})}),T=(0,N.useCallback)(e=>{b("compositionend"===e.type)},[]);return(0,tL.jsxs)("div",{className:(0,R.Z)("nextra-search nx-relative md:nx-w-64",e),children:[E&&(0,tL.jsx)("div",{className:"nx-fixed nx-inset-0 nx-z-10",onClick:()=>u(!1)}),(0,tL.jsx)(i5,{ref:m,value:n,onChange:e=>{let{value:t}=e.target;r(t),u(!!t)},onFocus:()=>{null==i||i(!0),v(!0)},onBlur:()=>{v(!1)},onCompositionStart:T,onCompositionEnd:T,type:"search",placeholder:iX(c.search.placeholder),onKeyDown:k,suffix:O}),(0,tL.jsx)(ro,{show:E,as:ro.Child,leave:"nx-transition-opacity nx-duration-100",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,tL.jsx)("ul",{className:(0,R.Z)("nextra-scrollbar","nx-border nx-border-gray-200 nx-bg-white nx-text-gray-100 dark:nx-border-neutral-800 dark:nx-bg-neutral-900","nx-absolute nx-top-full nx-z-20 nx-mt-2 nx-overflow-auto nx-overscroll-contain nx-rounded-xl nx-py-2.5 nx-shadow-xl","nx-max-h-[min(calc(50vh-11rem-env(safe-area-inset-bottom)),400px)]","md:nx-max-h-[min(calc(100vh-5rem-env(safe-area-inset-bottom)),400px)]","nx-inset-x-0 ltr:md:nx-left-auto rtl:md:nx-right-auto","contrast-more:nx-border contrast-more:nx-border-gray-900 contrast-more:dark:nx-border-gray-50",t),ref:x,style:{transition:"max-height .2s ease"},children:o?(0,tL.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-red-500",children:[(0,tL.jsx)(M.AV,{className:"nx-h-5 nx-w-5"}),iX(c.search.error)]}):a?(0,tL.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:[(0,tL.jsx)(M.L4,{className:"nx-h-5 nx-w-5 nx-animate-spin"}),iJ(c.search.loading)]}):s.length>0?s.map(({route:e,prefix:t,children:n,id:r},i)=>(0,tL.jsxs)(N.Fragment,{children:[t,(0,tL.jsx)("li",{className:(0,R.Z)("nx-mx-2.5 nx-break-words nx-rounded-md","contrast-more:nx-border",i===d?"nx-bg-primary-500/10 nx-text-primary-600 contrast-more:nx-border-primary-500":"nx-text-gray-800 contrast-more:nx-border-transparent dark:nx-text-gray-300"),children:(0,tL.jsx)(iY,{className:"nx-block nx-scroll-m-12 nx-px-2.5 nx-py-2",href:e,"data-index":i,onFocus:_,onMouseMove:_,onClick:w,onKeyDown:k,children:n})})]},r)):iJ(c.search.emptyResult)})})]})}var i6={},i8=new Map,i9=(e,t)=>{let n=e+"@"+t;if(i8.has(n))return i8.get(n);let r=ae(e,t);return i8.set(n,r),r},ae=(e,t)=>iS(void 0,null,function*(){let n=yield fetch(`${e}/_next/static/chunks/nextra-data-${t}.json`),r=yield n.json(),i=new nD.Z.Document({cache:100,tokenize:"full",document:{id:"id",index:"content",store:["title"]},context:{resolution:9,depth:2,bidirectional:!0}}),a=new nD.Z.Document({cache:100,tokenize:"full",document:{id:"id",index:"content",tag:"pageId",store:["title","content","url","display"]},context:{resolution:9,depth:2,bidirectional:!0}}),o=0;for(let[e,t]of Object.entries(r)){let n="";for(let[r,i]of(++o,Object.entries(t.data))){let[s,l]=r.split("#"),u=e+(s?"#"+s:""),c=l||t.title,d=i.split("\n");a.add(iO({id:u,url:u,title:c,pageId:`page_${o}`,content:c},d[0]&&{display:d[0]}));for(let e=0;e{var n,r;if(!e)return;let[i,a]=i6[t],o=(null==(n=i.search(e,5,{enrich:!0,suggest:!0})[0])?void 0:n.result)||[],s=[],u={};for(let t=0;te._page_rk===t._page_rk?e._section_rk-t._section_rk:u[e._page_rk]!==u[t._page_rk]?u[t._page_rk]-u[e._page_rk]:e._page_rk-t._page_rk).map(e=>({id:`${e._page_rk}_${e._section_rk}`,route:e.route,prefix:e.prefix,children:e.children})))},f=(0,N.useCallback)(e=>iS(this,null,function*(){if(e&&!i6[t]){i(!0);try{yield i9(n,t)}catch(e){o(!0)}i(!1)}}),[t,n]);return(0,tL.jsx)(i3,{loading:r,error:a,value:u,onChange:e=>iS(this,null,function*(){if(c(e),!r){if(!i6[t]){i(!0);try{yield i9(n,t)}catch(e){o(!0)}i(!1)}d(e)}}),onActive:f,className:e,overlayClassName:"nx-w-screen nx-min-h-[100px] nx-max-w-[min(calc(100vw-2rem),calc(100%+20rem))]",results:s})}function an({options:e,selected:t,onChange:n,title:r,className:i}){let[a,o]=function(e){let t=(0,N.useRef)(null),n=(0,N.useRef)(null),r=(0,N.useRef)(),i=(0,N.useCallback)(()=>{var i;t.current&&n.current&&(null==(i=r.current)||i.call(r),r.current=nZ(t.current,n.current,e).destroy)},[t,n,r,e]);return(0,N.useMemo)(()=>[e=>{t.current=e,i()},e=>{n.current=e,i()}],[t,n,i])}({strategy:"fixed",placement:"top-start",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn({state:e}){e.styles.popper.minWidth=`${e.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return(0,tL.jsx)(rF,{value:t,onChange:n,children:({open:n})=>(0,tL.jsxs)(rF.Button,{ref:a,title:r,className:(0,R.Z)("nx-h-7 nx-rounded-md nx-px-2 nx-text-left nx-text-xs nx-font-medium nx-text-gray-600 nx-transition-colors dark:nx-text-gray-400",n?"nx-bg-gray-200 nx-text-gray-900 dark:nx-bg-primary-100/10 dark:nx-text-gray-50":"hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",i),children:[t.name,(0,tL.jsx)(ar,{children:(0,tL.jsx)(ro,{ref:o,show:n,as:rF.Options,className:"nx-z-20 nx-max-h-64 nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:e.map(e=>(0,tL.jsxs)(rF.Option,{value:e,className:({active:e})=>(0,R.Z)(e?"nx-bg-primary-50 nx-text-primary-600 dark:nx-bg-primary-500/10":"nx-text-gray-800 dark:nx-text-gray-100","nx-relative nx-cursor-pointer nx-whitespace-nowrap nx-py-1.5","nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),children:[e.name,e.key===t.key&&(0,tL.jsx)("span",{className:"nx-absolute nx-inset-y-0 nx-flex nx-items-center ltr:nx-right-3 rtl:nx-left-3",children:(0,tL.jsx)(M.nQ,{})})]},e.key))})})]})})}function ar(e){return I()?(0,rz.createPortal)(e.children,document.body):null}function ai({lite:e,className:t}){let n=iH(),{locale:r,asPath:i}=(0,S.useRouter)(),a=n.i18n;if(!a.length)return null;let o=a.find(e=>r===e.locale);return(0,tL.jsx)(an,{title:"Change language",className:t,onChange:e=>{let t=new Date(Date.now()+31536e6);document.cookie=`NEXT_LOCALE=${e.key}; expires=${t.toUTCString()}; path=/`,location.href=(0,rs.addBasePath)(i)},selected:{key:(null==o?void 0:o.locale)||"",name:(0,tL.jsxs)("span",{className:"nx-flex nx-items-center nx-gap-2",children:[(0,tL.jsx)(M.n9,{}),(0,tL.jsx)("span",{className:e?"nx-hidden":"",children:null==o?void 0:o.text})]})},options:a.map(e=>({key:e.locale,name:e.text}))})}function aa(){var e;let t=iH(),{resolvedTheme:n}=(0,tP.F)(),r=I(),i="function"==typeof t.head?t.head({}):t.head,{primaryHue:a,primarySaturation:o}=t,{dark:s,light:l}="number"==typeof a?{dark:a,light:a}:a,{dark:u,light:c}="number"==typeof o?{dark:o,light:o}:o,d=t.frontMatter;return(0,tL.jsxs)(tL.Fragment,{children:[(0,tL.jsx)(rQ,iO({title:t.title,description:d.description,canonical:d.canonical,openGraph:d.openGraph},null==(e=t.useNextSeoProps)?void 0:e.call(t))),(0,tL.jsxs)(rU(),{children:[t.faviconGlyph?(0,tL.jsx)("link",{rel:"icon",href:`data:image/svg+xml;utf8,${t.faviconGlyph}`}):null,r?(0,tL.jsx)("meta",{name:"theme-color",content:"dark"===n?"#111":"#fff"}):(0,tL.jsxs)(tL.Fragment,{children:[(0,tL.jsx)("meta",{name:"theme-color",content:"#fff",media:"(prefers-color-scheme: light)"}),(0,tL.jsx)("meta",{name:"theme-color",content:"#111",media:"(prefers-color-scheme: dark)"})]}),(0,tL.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,tL.jsx)("style",{children:` - :root { - --nextra-primary-hue: ${l}deg; - --nextra-primary-saturation: ${c}%; - --nextra-navbar-height: 4rem; - --nextra-menu-height: 3.75rem; - --nextra-banner-height: 2.5rem; - } - - .dark { - --nextra-primary-hue: ${s}deg; - --nextra-primary-saturation: ${u}%; - } - `}),i]})]})}var ao={link:(0,R.Z)("nx-flex nx-max-w-[50%] nx-items-center nx-gap-1 nx-py-4 nx-text-base nx-font-medium nx-text-gray-600 nx-transition-colors [word-break:break-word] hover:nx-text-primary-600 dark:nx-text-gray-300 md:nx-text-lg"),icon:(0,R.Z)("nx-inline nx-h-5 nx-shrink-0")},as=({flatDirectories:e,currentIndex:t})=>{let n=iH().navigation,r="boolean"==typeof n?{prev:n,next:n}:n,i=r.prev&&e[t-1],a=r.next&&e[t+1];return(i&&!i.isUnderCurrentDocsTree&&(i=!1),a&&!a.isUnderCurrentDocsTree&&(a=!1),i||a)?(0,tL.jsxs)("div",{className:(0,R.Z)("nx-mb-8 nx-flex nx-items-center nx-border-t nx-pt-8 dark:nx-border-neutral-800","contrast-more:nx-border-neutral-400 dark:contrast-more:nx-border-neutral-400","print:nx-hidden"),children:[i&&(0,tL.jsxs)(iY,{href:i.route,title:i.title,className:(0,R.Z)(ao.link,"ltr:nx-pr-4 rtl:nx-pl-4"),children:[(0,tL.jsx)(M.LZ,{className:(0,R.Z)(ao.icon,"ltr:nx-rotate-180")}),i.title]}),a&&(0,tL.jsxs)(iY,{href:a.route,title:a.title,className:(0,R.Z)(ao.link,"ltr:nx-ml-auto ltr:nx-pl-4 ltr:nx-text-right rtl:nx-mr-auto rtl:nx-pr-4 rtl:nx-text-left"),children:[a.title,(0,tL.jsx)(M.LZ,{className:(0,R.Z)(ao.icon,"rtl:nx-rotate-180")})]})]}):null},al={link:(0,R.Z)("nx-text-sm contrast-more:nx-text-gray-700 contrast-more:dark:nx-text-gray-100"),active:(0,R.Z)("nx-font-medium nx-subpixel-antialiased"),inactive:(0,R.Z)("nx-text-gray-600 hover:nx-text-gray-800 dark:nx-text-gray-400 dark:hover:nx-text-gray-200")};function au({className:e,menu:t,children:n}){let{items:r}=t,i=Object.fromEntries((t.children||[]).map(e=>[e.name,e]));return(0,tL.jsx)("div",{className:"nx-relative nx-inline-block",children:(0,tL.jsxs)(r9,{children:[(0,tL.jsx)(r9.Button,{className:(0,R.Z)(e,"-nx-ml-2 nx-hidden nx-items-center nx-whitespace-nowrap nx-rounded nx-p-2 md:nx-inline-flex",al.inactive),children:n}),(0,tL.jsx)(ro,{leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,tL.jsx)(r9.Items,{className:"nx-absolute nx-right-0 nx-z-20 nx-mt-1 nx-max-h-64 nx-min-w-full nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",children:Object.entries(r||{}).map(([e,n])=>{var r;return(0,tL.jsx)(r9.Item,{children:(0,tL.jsx)(iY,{href:n.href||(null==(r=i[e])?void 0:r.route)||t.route+"/"+e,className:(0,R.Z)("nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block","nx-py-1.5 nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),newWindow:n.newWindow,children:n.title||e})},e)})})})]})})}var ac=Object.create(null),ad=(0,N.createContext)(null),af=(0,N.createContext)(null),ah=(0,N.createContext)(0),ap=(0,N.memo)(function(e){let t=(0,N.useContext)(ah);return(0,tL.jsx)(ah.Provider,{value:t+1,children:(0,tL.jsx)(ax,iO({},e))})}),am={link:(0,R.Z)("nx-flex nx-rounded nx-px-2 nx-py-1.5 nx-text-sm nx-transition-colors [word-break:break-word]","nx-cursor-pointer [-webkit-tap-highlight-color:transparent] [-webkit-touch-callout:none] contrast-more:nx-border"),inactive:(0,R.Z)("nx-text-gray-500 hover:nx-bg-gray-100 hover:nx-text-gray-900","dark:nx-text-neutral-400 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50","contrast-more:nx-text-gray-900 contrast-more:dark:nx-text-gray-50","contrast-more:nx-border-transparent contrast-more:hover:nx-border-gray-900 contrast-more:dark:hover:nx-border-gray-50"),active:(0,R.Z)("nx-bg-primary-100 nx-font-semibold nx-text-primary-800 dark:nx-bg-primary-400/10 dark:nx-text-primary-600","contrast-more:nx-border-primary-500 contrast-more:dark:nx-border-primary-500"),list:(0,R.Z)("nx-flex nx-flex-col nx-gap-1"),border:(0,R.Z)("nx-relative before:nx-absolute before:nx-inset-y-1",'before:nx-w-px before:nx-bg-gray-200 before:nx-content-[""] dark:before:nx-bg-neutral-800',"ltr:nx-pl-3 ltr:before:nx-left-0 rtl:nx-pr-3 rtl:before:nx-right-0")};function ax({item:e,anchors:t}){let[n]=L().split("#"),r=[n,n+"/"].includes(e.route+"/"),i=r||n.startsWith(e.route+"/"),a=(0,N.useContext)(ad),o=!!(null==a?void 0:a.startsWith(e.route+"/")),s=(0,N.useContext)(ah),{setMenu:l}=i$(),u=iH(),{theme:c}=e,d=void 0===ac[e.route]?r||i||o||(c&&"collapsed"in c?!c.collapsed:s{u.sidebar.autoCollapse?i&&o?ac[e.route]=!0:delete ac[e.route]:(i||o)&&(ac[e.route]=!0)},[i,o,e.route,u.sidebar.autoCollapse]),"menu"===e.type){let t=Object.fromEntries((e.children||[]).map(e=>[e.name,e]));e.children=Object.entries(e.items||{}).map(([n,r])=>{let i=t[n]||iT(iO({name:n},"locale"in e&&{locale:e.locale}),{route:e.route+"/"+n});return iO(iO({},i),r)})}let h="withIndexPage"in e&&e.withIndexPage,p=h?iY:"button";return(0,tL.jsxs)("li",{className:(0,R.Z)({open:d,active:r}),children:[(0,tL.jsxs)(p,{href:h?e.route:void 0,className:(0,R.Z)("nx-items-center nx-justify-between nx-gap-2",!h&&"nx-text-left nx-w-full",am.link,r?am.active:am.inactive),onClick:t=>{let n=["svg","path"].includes(t.target.tagName.toLowerCase());if(n&&t.preventDefault(),h){r||n?ac[e.route]=!d:(ac[e.route]=!0,l(!1)),f({});return}r||(ac[e.route]=!d,f({}))},children:[iJ(u.sidebar.titleComponent,{title:e.title,type:e.type,route:e.route}),(0,tL.jsx)(M.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5 hover:nx-bg-gray-800/5 dark:hover:nx-bg-gray-100/5",pathClassName:(0,R.Z)("nx-origin-center nx-transition-transform rtl:-nx-rotate-180",d&&"ltr:nx-rotate-90 rtl:nx-rotate-[-270deg]")})]}),(0,tL.jsx)(i2,{className:"ltr:nx-pr-0 rtl:nx-pl-0 nx-pt-1",isOpen:d,children:Array.isArray(e.children)?(0,tL.jsx)(ay,{className:(0,R.Z)(am.border,"ltr:nx-ml-3 rtl:nx-mr-3"),directories:e.children,base:e.route,anchors:t}):null})]})}function ag({title:e}){let t=iH();return(0,tL.jsx)("li",{className:(0,R.Z)("[word-break:break-word]",e?"nx-mt-5 nx-mb-2 nx-px-2 nx-py-1.5 nx-text-sm nx-font-semibold nx-text-gray-900 first:nx-mt-0 dark:nx-text-gray-100":"nx-my-4"),children:e?iJ(t.sidebar.titleComponent,{title:e,type:"separator",route:""}):(0,tL.jsx)("hr",{className:"nx-mx-2 nx-border-t nx-border-gray-200 dark:nx-border-primary-100/10"})})}function av({item:e,anchors:t}){let n=L(),r=(0,N.useContext)(af),i=e.route&&[n,n+"/"].includes(e.route+"/"),a=iP(),{setMenu:o}=i$(),s=iH();return"separator"===e.type?(0,tL.jsx)(ag,{title:e.title}):(0,tL.jsxs)("li",{className:(0,R.Z)(am.list,{active:i}),children:[(0,tL.jsx)(iY,{href:e.href||e.route,newWindow:e.newWindow,className:(0,R.Z)(am.link,i?am.active:am.inactive),onClick:()=>{o(!1)},onFocus:()=>{null==r||r(e.route)},onBlur:()=>{null==r||r(null)},children:iJ(s.sidebar.titleComponent,{title:e.title,type:e.type,route:e.route})}),i&&t.length>0&&(0,tL.jsx)("ul",{className:(0,R.Z)(am.list,am.border,"ltr:nx-ml-3 rtl:nx-mr-3"),children:t.map(({id:e,value:t})=>{var n;return(0,tL.jsx)("li",{children:(0,tL.jsx)("a",{href:`#${e}`,className:(0,R.Z)(am.link,'nx-flex nx-gap-2 before:nx-opacity-25 before:nx-content-["#"]',(null==(n=a[e])?void 0:n.isActive)?am.active:am.inactive),onClick:()=>{o(!1)},children:t})},e)})})]})}function ay({directories:e,anchors:t,className:n,onlyCurrentDocs:r}){return(0,tL.jsx)("ul",{className:(0,R.Z)(am.list,n),children:e.map(e=>!r||e.isUnderCurrentDocsTree?"menu"===e.type||e.children&&(e.children.length||!e.withIndexPage)?(0,tL.jsx)(ap,{item:e,anchors:t},e.name):(0,tL.jsx)(av,{item:e,anchors:t},e.name):null)})}function ab({docsDirectories:e,flatDirectories:t,fullDirectories:n,asPopover:r=!1,headings:i,includePlaceholder:a}){let o=iH(),{menu:s,setMenu:l}=i$(),u=(0,S.useRouter)(),[c,d]=(0,N.useState)(null),[f,h]=(0,N.useState)(!0),[p,m]=(0,N.useState)(!1),x=(0,N.useMemo)(()=>i.filter(e=>2===e.depth),[i]),g=(0,N.useRef)(null),v=(0,N.useRef)(null),y=I();(0,N.useEffect)(()=>{s?document.body.classList.add("nx-overflow-hidden","md:nx-overflow-auto"):document.body.classList.remove("nx-overflow-hidden","md:nx-overflow-auto")},[s]),(0,N.useEffect)(()=>{var e;let t=null==(e=g.current)?void 0:e.querySelector("li.active");if(t&&(window.innerWidth>767||s)){let e=()=>{il(t,{block:"center",inline:"center",scrollMode:"always",boundary:v.current})};s?setTimeout(e,300):e()}},[s]),(0,N.useEffect)(()=>{l(!1)},[u.asPath,l]);let b=o.i18n.length>0,w=o.darkMode||b||o.sidebar.toggleButton;return(0,tL.jsxs)(tL.Fragment,{children:[a&&r?(0,tL.jsx)("div",{className:"max-xl:nx-hidden nx-h-0 nx-w-64 nx-shrink-0"}):null,(0,tL.jsx)("div",{className:(0,R.Z)("motion-reduce:nx-transition-none [transition:background-color_1.5s_ease]",s?"nx-fixed nx-inset-0 nx-z-10 nx-bg-black/80 dark:nx-bg-black/60":"nx-bg-transparent"),onClick:()=>l(!1)}),(0,tL.jsxs)("aside",{className:(0,R.Z)("nextra-sidebar-container nx-flex nx-flex-col","md:nx-top-16 md:nx-shrink-0 motion-reduce:nx-transform-none","nx-transform-gpu nx-transition-all nx-ease-in-out","print:nx-hidden",f?"md:nx-w-64":"md:nx-w-20",r?"md:nx-hidden":"md:nx-sticky md:nx-self-start",s?"max-md:[transform:translate3d(0,0,0)]":"max-md:[transform:translate3d(0,-100%,0)]"),ref:v,children:[(0,tL.jsx)("div",{className:"nx-px-4 nx-pt-4 md:nx-hidden",children:iJ(o.search.component,{directories:t})}),(0,tL.jsx)(ad.Provider,{value:c,children:(0,tL.jsx)(af.Provider,{value:e=>{d(e)},children:(0,tL.jsxs)("div",{className:(0,R.Z)("nx-overflow-y-auto nx-overflow-x-hidden","nx-p-4 nx-grow md:nx-h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",f?"nextra-scrollbar":"no-scrollbar"),ref:g,children:[(!r||!f)&&(0,tL.jsx)(i2,{isOpen:f,horizontal:!0,children:(0,tL.jsx)(ay,{className:"nextra-menu-desktop max-md:nx-hidden",directories:e,anchors:o.toc.float?[]:x,onlyCurrentDocs:!0})}),y&&window.innerWidth<768&&(0,tL.jsx)(ay,{className:"nextra-menu-mobile md:nx-hidden",directories:n,anchors:x})]})})}),w&&(0,tL.jsxs)("div",{className:(0,R.Z)("nx-sticky nx-bottom-0","nx-bg-white dark:nx-bg-dark","nx-mx-4 nx-py-4 nx-shadow-[0_-12px_16px_#fff]","nx-flex nx-items-center nx-gap-2","dark:nx-border-neutral-800 dark:nx-shadow-[0_-12px_16px_#111]","contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-shadow-none",f?(0,R.Z)(b&&"nx-justify-end","nx-border-t"):"nx-py-4 nx-flex-wrap nx-justify-center"),"data-toggle-animation":p?f?"show":"hide":"off",children:[(0,tL.jsx)(ai,{lite:!f,className:(0,R.Z)(f?"nx-grow":"max-md:nx-grow")}),o.darkMode&&(0,tL.jsx)("div",{className:f&&!b?"nx-grow nx-flex nx-flex-col":"",children:iJ(o.themeSwitch.component,{lite:!f||b})}),o.sidebar.toggleButton&&(0,tL.jsx)("button",{title:f?"Hide sidebar":"Show sidebar",className:"max-md:nx-hidden nx-h-7 nx-rounded-md nx-transition-colors nx-text-gray-600 dark:nx-text-gray-400 nx-px-2 hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",onClick:()=>{h(!f),m(!0)},children:(0,tL.jsx)(M.Qq,{isOpen:f})})]})]})]})}var aw="reach-skip-nav";(0,N.forwardRef)(function(e,t){var{className:n,id:r,label:i="Skip to content",styled:a}=e,o=iC(e,["className","id","label","styled"]);let s=void 0===n?a?(0,R.Z)("nx-sr-only","focus:nx-not-sr-only focus:nx-fixed focus:nx-z-50 focus:nx-m-3 focus:nx-ml-4 focus:nx-h-[calc(var(--nextra-navbar-height)-1.5rem)] focus:nx-rounded-lg focus:nx-border focus:nx-px-3 focus:nx-py-2 focus:nx-align-middle focus:nx-text-sm focus:nx-font-bold","focus:nx-text-gray-900 focus:dark:nx-text-gray-100","focus:nx-bg-white focus:dark:nx-bg-neutral-900","focus:nx-border-neutral-400 focus:dark:nx-border-neutral-800"):"":n;return(0,tL.jsx)("a",iT(iO({},o),{ref:t,href:`#${r||aw}`,className:s,"data-reach-skip-link":"",children:i}))}).displayName="SkipNavLink";var a_=(0,N.forwardRef)(function(e,t){var{id:n}=e,r=iC(e,["id"]);return(0,tL.jsx)("div",iT(iO({},r),{ref:t,id:n||aw}))});a_.displayName="SkipNavContent";var ak=tR.strictObject({light:tR.string(),dark:tR.string(),system:tR.string()});function aj(){window.scrollTo({top:0,behavior:"smooth"})}function aE({className:e}){let t=(0,N.useRef)(null);return(0,N.useEffect)(()=>{function e(){var e;let{scrollTop:n}=document.documentElement;null==(e=t.current)||e.classList.toggle("nx-opacity-0",n<300)}return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,tL.jsxs)("button",{ref:t,"aria-hidden":"true",onClick:aj,className:(0,R.Z)("nx-flex nx-items-center nx-gap-1.5 nx-transition nx-opacity-0",e),children:["Scroll to top",(0,tL.jsx)(M.LZ,{className:"-nx-rotate-90 nx-w-3.5 nx-h-3.5 nx-border nx-rounded-full nx-border-current"})]})}var aO=(0,R.Z)("nx-text-xs nx-font-medium nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100","contrast-more:nx-text-gray-800 contrast-more:dark:nx-text-gray-50");function aT({className:e,directories:t}){let[n,r]=(0,N.useState)(""),i=(0,N.useMemo)(()=>n?ip(t,n,{keys:["title"]}).map(({route:e,title:t})=>({id:e+t,route:e,children:(0,tL.jsx)(i4,{value:t,match:n})})):[],[n,t]);return(0,tL.jsx)(i3,{value:n,onChange:r,className:e,overlayClassName:"nx-w-full",results:i})}var aC="en-US",aS="undefined"!=typeof window;function aN(e){return"function"==typeof e}var aR=tR.array(tR.strictObject({direction:tR.enum(["ltr","rtl"]).optional(),locale:tR.string(),text:tR.string()})),aI=[function(e){return null==e||"string"==typeof e||aN(e)||(0,N.isValidElement)(e)},{message:"Must be React.ReactNode or React.FC"}],aA=[aN,{message:"Must be React.FC"}];tR.strictObject({banner:tR.strictObject({dismissible:tR.boolean(),key:tR.string(),text:tR.custom(...aI).optional()}),chat:tR.strictObject({icon:tR.custom(...aI),link:tR.string().startsWith("https://").optional()}),components:tR.record(tR.custom(...aA)).optional(),darkMode:tR.boolean(),direction:tR.enum(["ltr","rtl"]),docsRepositoryBase:tR.string().startsWith("https://"),editLink:tR.strictObject({component:tR.custom(...aA).or(tR.null()),text:tR.custom(...aI)}),faviconGlyph:tR.string().optional(),feedback:tR.strictObject({content:tR.custom(...aI),labels:tR.string(),useLink:tR.function().returns(tR.string())}),footer:tR.strictObject({component:tR.custom(...aI),text:tR.custom(...aI)}),gitTimestamp:tR.custom(...aI),head:tR.custom(...aI),i18n:aR,logo:tR.custom(...aI),logoLink:tR.boolean().or(tR.string()),main:tR.custom(...aA).optional(),navbar:tR.strictObject({component:tR.custom(...aI),extraContent:tR.custom(...aI).optional()}),navigation:tR.boolean().or(tR.strictObject({next:tR.boolean(),prev:tR.boolean()})),nextThemes:tR.strictObject({defaultTheme:tR.string(),forcedTheme:tR.string().optional(),storageKey:tR.string()}),notFound:tR.strictObject({content:tR.custom(...aI),labels:tR.string()}),primaryHue:tR.number().or(tR.strictObject({dark:tR.number(),light:tR.number()})),primarySaturation:tR.number().or(tR.strictObject({dark:tR.number(),light:tR.number()})),project:tR.strictObject({icon:tR.custom(...aI),link:tR.string().startsWith("https://").optional()}),search:tR.strictObject({component:tR.custom(...aI),emptyResult:tR.custom(...aI),error:tR.string().or(tR.function().returns(tR.string())),loading:tR.custom(...aI),placeholder:tR.string().or(tR.function().returns(tR.string()))}),serverSideError:tR.strictObject({content:tR.custom(...aI),labels:tR.string()}),sidebar:tR.strictObject({autoCollapse:tR.boolean().optional(),defaultMenuCollapseLevel:tR.number().min(1).int(),titleComponent:tR.custom(...aI),toggleButton:tR.boolean()}),themeSwitch:tR.strictObject({component:tR.custom(...aI),useOptions:ak.or(tR.function().returns(ak))}),toc:tR.strictObject({backToTop:tR.boolean(),component:tR.custom(...aI),extraContent:tR.custom(...aI),float:tR.boolean(),headingComponent:tR.custom(...aA).optional(),title:tR.custom(...aI)}),useNextSeoProps:tR.custom(aN)}).deepPartial().extend({i18n:aR.optional()});var aL={"en-US":"Loading",fr:"Сhargement",ru:"Загрузка","zh-CN":"正在加载"},aP={"en-US":"Search documentation",fr:"Rechercher documents",ru:"Поиск документации","zh-CN":"搜索文档"},aM={banner:{dismissible:!0,key:"nextra-banner"},chat:{icon:(0,tL.jsxs)(tL.Fragment,{children:[(0,tL.jsx)(M.D7,{}),(0,tL.jsx)("span",{className:"nx-sr-only",children:"Discord"})]})},darkMode:!0,direction:"ltr",docsRepositoryBase:"https://github.com/shuding/nextra",editLink:{component:function({className:e,filePath:t,children:n}){let r=function(e=""){let t=iH(),n=tG()(t.docsRepositoryBase||"");if(!n)throw Error("Invalid `docsRepositoryBase` URL!");return`${n.href}/${e}`}(t);return r?(0,tL.jsx)(iY,{className:e,href:r,children:n}):null},text:"Edit this page"},feedback:{content:"Question? Give us feedback →",labels:"feedback",useLink(){let e=iH();return iQ({labels:e.feedback.labels,repository:e.docsRepositoryBase,title:`Feedback for \u201C${e.title}\u201D`})}},footer:{component:function({menu:e}){let t=iH();return(0,tL.jsxs)("footer",{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent",children:[(0,tL.jsxs)("div",{className:(0,R.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-gap-2 nx-py-2 nx-px-4",e&&(t.i18n.length>0||t.darkMode)?"nx-flex":"nx-hidden"),children:[(0,tL.jsx)(ai,{}),t.darkMode&&iJ(t.themeSwitch.component)]}),(0,tL.jsx)("hr",{className:"dark:nx-border-neutral-800"}),(0,tL.jsx)("div",{className:(0,R.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-justify-center nx-py-12 nx-text-gray-600 dark:nx-text-gray-400 md:nx-justify-start","nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:iJ(t.footer.text)})]})},text:`MIT ${new Date().getFullYear()} \xa9 Nextra.`},gitTimestamp:function({timestamp:e}){let{locale:t=aC}=(0,S.useRouter)();return(0,tL.jsxs)(tL.Fragment,{children:["Last updated on"," ",(0,tL.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleDateString(t,{day:"numeric",month:"long",year:"numeric"})})]})},head:(0,tL.jsxs)(tL.Fragment,{children:[(0,tL.jsx)("meta",{name:"msapplication-TileColor",content:"#fff"}),(0,tL.jsx)("meta",{httpEquiv:"Content-Language",content:"en"}),(0,tL.jsx)("meta",{name:"description",content:"Nextra: the next docs builder"}),(0,tL.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,tL.jsx)("meta",{name:"twitter:site",content:"@shuding_"}),(0,tL.jsx)("meta",{property:"og:title",content:"Nextra: the next docs builder"}),(0,tL.jsx)("meta",{property:"og:description",content:"Nextra: the next docs builder"}),(0,tL.jsx)("meta",{name:"apple-mobile-web-app-title",content:"Nextra"})]}),i18n:[],logo:(0,tL.jsxs)(tL.Fragment,{children:[(0,tL.jsx)("span",{className:"nx-font-extrabold",children:"Nextra"}),(0,tL.jsx)("span",{className:"nx-ml-2 nx-hidden nx-font-normal nx-text-gray-600 md:nx-inline",children:"The Next Docs Builder"})]}),logoLink:!0,navbar:{component:function({flatDirectories:e,items:t}){let n=iH(),r=L(),{menu:i,setMenu:a}=i$();return(0,tL.jsxs)("div",{className:"nextra-nav-container nx-sticky nx-top-0 nx-z-20 nx-w-full nx-bg-transparent print:nx-hidden",children:[(0,tL.jsx)("div",{className:(0,R.Z)("nextra-nav-container-blur","nx-pointer-events-none nx-absolute nx-z-[-1] nx-h-full nx-w-full nx-bg-white dark:nx-bg-dark","nx-shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)] dark:nx-shadow-[0_-1px_0_rgba(255,255,255,.1)_inset]","contrast-more:nx-shadow-[0_0_0_1px_#000] contrast-more:dark:nx-shadow-[0_0_0_1px_#fff]")}),(0,tL.jsxs)("nav",{className:"nx-mx-auto nx-flex nx-h-[var(--nextra-navbar-height)] nx-max-w-[90rem] nx-items-center nx-justify-end nx-gap-2 nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]",children:[n.logoLink?(0,tL.jsx)(iY,{href:"string"==typeof n.logoLink?n.logoLink:"/",className:"nx-flex nx-items-center hover:nx-opacity-75 ltr:nx-mr-auto rtl:nx-ml-auto",children:iJ(n.logo)}):(0,tL.jsx)("div",{className:"nx-flex nx-items-center ltr:nx-mr-auto rtl:nx-ml-auto",children:iJ(n.logo)}),t.map(e=>{if("hidden"===e.display)return null;if("menu"===e.type)return(0,tL.jsxs)(au,{className:(0,R.Z)(al.link,"nx-flex nx-gap-1",al.inactive),menu:e,children:[e.title,(0,tL.jsx)(M.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5",pathClassName:"nx-origin-center nx-transition-transform nx-rotate-90"})]},e.title);let t=e.href||e.route||"#";e.children&&(t=(e.withIndexPage?e.route:e.firstChildRoute)||t);let n=e.route===r||r.startsWith(e.route+"/");return(0,tL.jsxs)(iY,{href:t,className:(0,R.Z)(al.link,"nx-relative -nx-ml-2 nx-hidden nx-whitespace-nowrap nx-p-2 md:nx-inline-block",!n||e.newWindow?al.inactive:al.active),newWindow:e.newWindow,"aria-current":!e.newWindow&&n,children:[(0,tL.jsx)("span",{className:"nx-absolute nx-inset-x-0 nx-text-center",children:e.title}),(0,tL.jsx)("span",{className:"nx-invisible nx-font-medium",children:e.title})]},t)}),iJ(n.search.component,{directories:e,className:"nx-hidden md:nx-inline-block mx-min-w-[200px]"}),n.project.link?(0,tL.jsx)(iY,{className:"nx-p-2 nx-text-current",href:n.project.link,newWindow:!0,children:iJ(n.project.icon)}):null,n.chat.link?(0,tL.jsx)(iY,{className:"nx-p-2 nx-text-current",href:n.chat.link,newWindow:!0,children:iJ(n.chat.icon)}):null,iJ(n.navbar.extraContent),(0,tL.jsx)("button",{type:"button","aria-label":"Menu",className:"nextra-hamburger -nx-mr-2 nx-rounded nx-p-2 active:nx-bg-gray-400/20 md:nx-hidden",onClick:()=>a(!i),children:(0,tL.jsx)(M.Oq,{className:(0,R.Z)({open:i})})})]})]})}},navigation:!0,nextThemes:{defaultTheme:"system",storageKey:"theme"},notFound:{content:"Submit an issue about broken link →",labels:"bug"},primaryHue:{dark:204,light:212},primarySaturation:{dark:100,light:100},project:{icon:(0,tL.jsxs)(tL.Fragment,{children:[(0,tL.jsx)(M.fy,{}),(0,tL.jsx)("span",{className:"nx-sr-only",children:"GitHub"})]})},search:{component:function({className:e,directories:t}){return iH().flexsearch?(0,tL.jsx)(at,{className:e}):(0,tL.jsx)(aT,{className:e,directories:t})},emptyResult:(0,tL.jsx)("span",{className:"nx-block nx-select-none nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:"No results found."}),error:"Failed to load search index.",loading:function(){let{locale:e,defaultLocale:t=aC}=(0,S.useRouter)(),n=e&&aL[e]||aL[t];return(0,tL.jsxs)(tL.Fragment,{children:[n,"…"]})},placeholder:function(){let{locale:e,defaultLocale:t=aC}=(0,S.useRouter)(),n=e&&aP[e]||aP[t];return`${n}\u2026`}},serverSideError:{content:"Submit an issue about error in url →",labels:"bug"},sidebar:{defaultMenuCollapseLevel:2,titleComponent:({title:e})=>(0,tL.jsx)(tL.Fragment,{children:e}),toggleButton:!1},themeSwitch:{component:function({lite:e,className:t}){let{setTheme:n,resolvedTheme:r,theme:i=""}=(0,tP.F)(),a=I(),o=iH().themeSwitch,s=a&&"dark"===r?M.kL:M.NW,l="function"==typeof o.useOptions?o.useOptions():o.useOptions;return(0,tL.jsx)(an,{className:t,title:"Change theme",options:[{key:"light",name:l.light},{key:"dark",name:l.dark},{key:"system",name:l.system}],onChange:e=>{n(e.key)},selected:{key:i,name:(0,tL.jsxs)("div",{className:"nx-flex nx-items-center nx-gap-2 nx-capitalize",children:[(0,tL.jsx)(s,{}),(0,tL.jsx)("span",{className:e?"md:nx-hidden":"",children:a?l[i]:l.light})]})}})},useOptions(){let{locale:e}=(0,S.useRouter)();return"zh-CN"===e?{dark:"深色主题",light:"浅色主题",system:"系统默认"}:{dark:"Dark",light:"Light",system:"System"}}},toc:{backToTop:!1,component:function({headings:e,filePath:t}){var n;let r=iP(),i=iH(),a=(0,N.useRef)(null),o=(0,N.useMemo)(()=>e.filter(e=>e.depth>1),[e]),s=o.length>0,l=!!(i.feedback.content||i.editLink.component||i.toc.extraContent),u=null==(n=Object.entries(r).find(([,{isActive:e}])=>e))?void 0:n[0];return(0,N.useEffect)(()=>{var e;if(!u)return;let t=null==(e=a.current)?void 0:e.querySelector(`li > a[href="#${u}"]`);t&&il(t,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:a.current})},[u]),(0,tL.jsxs)("div",{ref:a,className:(0,R.Z)("nextra-scrollbar nx-sticky nx-top-16 nx-overflow-y-auto nx-pr-4 nx-pt-6 nx-text-sm [hyphens:auto]","nx-max-h-[calc(100vh-var(--nextra-navbar-height)-env(safe-area-inset-bottom))] ltr:-nx-mr-4 rtl:-nx-ml-4"),children:[s&&(0,tL.jsxs)(tL.Fragment,{children:[(0,tL.jsx)("p",{className:"nx-mb-4 nx-font-semibold nx-tracking-tight",children:iJ(i.toc.title)}),(0,tL.jsx)("ul",{children:o.map(({id:e,value:t,depth:n})=>{var a,o,s,l;return(0,tL.jsx)("li",{className:"nx-my-2 nx-scroll-my-6 nx-scroll-py-6",children:(0,tL.jsx)("a",{href:`#${e}`,className:(0,R.Z)({2:"nx-font-semibold",3:"ltr:nx-pl-4 rtl:nx-pr-4",4:"ltr:nx-pl-8 rtl:nx-pr-8",5:"ltr:nx-pl-12 rtl:nx-pr-12",6:"ltr:nx-pl-16 rtl:nx-pr-16"}[n],"nx-inline-block",(null==(a=r[e])?void 0:a.isActive)?"nx-text-primary-600 nx-subpixel-antialiased contrast-more:!nx-text-primary-600":"nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-300","contrast-more:nx-text-gray-900 contrast-more:nx-underline contrast-more:dark:nx-text-gray-50 nx-w-full nx-break-words"),children:null!=(l=null==(s=(o=i.toc).headingComponent)?void 0:s.call(o,{id:e,children:t}))?l:t})},e)})})]}),l&&(0,tL.jsxs)("div",{className:(0,R.Z)(s&&"nx-mt-8 nx-border-t nx-bg-white nx-pt-8 nx-shadow-[0_-12px_16px_white] dark:nx-bg-dark dark:nx-shadow-[0_-12px_16px_#111]","nx-sticky nx-bottom-0 nx-flex nx-flex-col nx-items-start nx-gap-2 nx-pb-8 dark:nx-border-neutral-800","contrast-more:nx-border-t contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-border-neutral-400"),children:[i.feedback.content?(0,tL.jsx)(iY,{className:aO,href:i.feedback.useLink(),newWindow:!0,children:iJ(i.feedback.content)}):null,iJ(i.editLink.component,{filePath:t,className:aO,children:iJ(i.editLink.text)}),iJ(i.toc.extraContent),i.toc.backToTop&&(0,tL.jsx)(aE,{className:aO})]})]})},float:!0,title:"On This Page"},useNextSeoProps:()=>({titleTemplate:"%s – Nextra"})},aZ=Object.entries(aM).map(([e,t])=>{if(t&&"object"==typeof t&&!Array.isArray(t)&&!(0,N.isValidElement)(t))return e}).filter(Boolean);if(aS){let e;window.addEventListener("resize",()=>{document.body.classList.add("resizing"),clearTimeout(e),e=setTimeout(()=>{document.body.classList.remove("resizing")},200)})}function aD(e){var{tag:t,context:n,children:r,id:i,className:a}=e,o=iC(e,["tag","context","children","id","className"]);let s=iM(),l=iD(),u=iZ(),c=(0,N.useRef)(null);return(0,N.useEffect)(()=>{if(!i)return;let e=c.current;if(e)return l.set(e,[i,n.index+=1]),null==u||u.observe(e),()=>{null==u||u.disconnect(),l.delete(e),s(e=>{let t=iO({},e);return delete t[i],t})}},[i,n,l,u,s]),(0,tL.jsxs)(t,iT(iO({className:"sr-only"===a?"nx-sr-only":(0,R.Z)("nx-font-semibold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100",{h2:"nx-mt-10 nx-border-b nx-pb-1 nx-text-3xl nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400",h3:"nx-mt-8 nx-text-2xl",h4:"nx-mt-8 nx-text-xl",h5:"nx-mt-8 nx-text-lg",h6:"nx-mt-8 nx-text-base"}[t])},o),{children:[r,i&&(0,tL.jsx)("a",{href:`#${i}`,id:i,className:"subheading-anchor","aria-label":"Permalink for this section",ref:c})]}))}var aF=e=>{let t=null,n=[];return N.Children.forEach(e,(e,r)=>{var i;if(e&&e.type===a$){t||(t=e);return}let a=e;if(!t&&e&&"object"==typeof e&&e.type!==az&&"props"in e&&e.props){let n=aF(e.props.children);t=n[0],a=(0,N.cloneElement)(e,iT(iO({},e.props),{children:(null==(i=n[1])?void 0:i.length)?n[1]:void 0,key:r}))}n.push(a)}),[t,n]},az=e=>{var{children:t,open:n}=e,r=iC(e,["children","open"]);let[i,a]=(0,N.useState)(!!n),[o,s]=aF(t),[l,u]=(0,N.useState)(i);return(0,N.useEffect)(()=>{if(i)u(!0);else{let e=setTimeout(()=>u(i),500);return()=>clearTimeout(e)}},[i]),(0,tL.jsxs)("details",iT(iO(iT(iO({className:"nx-my-4 nx-rounded nx-border nx-border-gray-200 nx-bg-white nx-p-2 nx-shadow-sm first:nx-mt-0 dark:nx-border-neutral-800 dark:nx-bg-neutral-900"},r),{open:l}),i&&{"data-expanded":!0}),{children:[(0,tL.jsx)(iq,{value:a,children:o}),(0,tL.jsx)(i2,{isOpen:i,children:s})]}))},a$=e=>{let t=iB();return(0,tL.jsx)("summary",iT(iO({className:(0,R.Z)("nx-flex nx-items-center nx-cursor-pointer nx-list-none nx-p-1 nx-transition-colors hover:nx-bg-gray-100 dark:hover:nx-bg-neutral-800","before:nx-mr-1 before:nx-inline-block before:nx-transition-transform before:nx-content-[''] dark:before:nx-invert before:nx-shrink-0","rtl:before:nx-rotate-180 [[data-expanded]>&]:before:nx-rotate-90")},e),{onClick:e=>{e.preventDefault(),t(e=>!e)}}))},aU=/https?:\/\//,aW=e=>{var{href:t="",className:n}=e,r=iC(e,["href","className"]);return(0,tL.jsx)(iY,iO({href:t,newWindow:aU.test(t),className:(0,R.Z)("nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]",n)},r))},aH=e=>{var{href:t=""}=e,n=iC(e,["href"]);return(0,tL.jsx)(iY,iO({href:t,newWindow:aU.test(t)},n))},aG=({isRawLayout:e,components:t})=>{if(e)return{a:aH};let n={index:0};return iO({h1:e=>(0,tL.jsx)("h1",iO({className:"nx-mt-2 nx-text-4xl nx-font-bold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100"},e)),h2:e=>(0,tL.jsx)(aD,iO({tag:"h2",context:n},e)),h3:e=>(0,tL.jsx)(aD,iO({tag:"h3",context:n},e)),h4:e=>(0,tL.jsx)(aD,iO({tag:"h4",context:n},e)),h5:e=>(0,tL.jsx)(aD,iO({tag:"h5",context:n},e)),h6:e=>(0,tL.jsx)(aD,iO({tag:"h6",context:n},e)),ul:e=>(0,tL.jsx)("ul",iO({className:"nx-mt-6 nx-list-disc first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},e)),ol:e=>(0,tL.jsx)("ol",iO({className:"nx-mt-6 nx-list-decimal first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},e)),li:e=>(0,tL.jsx)("li",iO({className:"nx-my-2"},e)),blockquote:e=>(0,tL.jsx)("blockquote",iO({className:(0,R.Z)("nx-mt-6 nx-border-gray-300 nx-italic nx-text-gray-700 dark:nx-border-gray-700 dark:nx-text-gray-400","first:nx-mt-0 ltr:nx-border-l-2 ltr:nx-pl-6 rtl:nx-border-r-2 rtl:nx-pr-6")},e)),hr:e=>(0,tL.jsx)("hr",iO({className:"nx-my-8 nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400"},e)),a:aW,table:e=>(0,tL.jsx)(iv.iA,iO({className:"nextra-scrollbar nx-mt-6 nx-p-0 first:nx-mt-0"},e)),p:e=>(0,tL.jsx)("p",iO({className:"nx-mt-6 nx-leading-7 first:nx-mt-0"},e)),tr:iv.Tr,th:iv.Th,td:iv.Td,details:az,summary:a$,pre:iv.SU,code:iv.EK},t)},aV={toc:(0,R.Z)("nextra-toc nx-order-last nx-hidden nx-w-64 nx-shrink-0 xl:nx-block print:nx-hidden"),main:(0,R.Z)("nx-w-full nx-break-words")},aB=({themeContext:e,breadcrumb:t,timestamp:n,navigation:r,children:i})=>{var a;let o=iH(),s=I();if("raw"===e.layout)return(0,tL.jsx)("div",{className:aV.main,children:i});let l=e.timestamp&&o.gitTimestamp&&n?new Date(n):null,u=s&&l?(0,tL.jsx)("div",{className:"nx-mt-12 nx-mb-8 nx-block nx-text-xs nx-text-gray-500 ltr:nx-text-right rtl:nx-text-left dark:nx-text-gray-400",children:iJ(o.gitTimestamp,{timestamp:l})}):(0,tL.jsx)("div",{className:"nx-mt-16"}),c=(0,tL.jsxs)(tL.Fragment,{children:[i,u,r]}),d=(null==(a=o.main)?void 0:a.call(o,{children:c}))||c;return"full"===e.layout?(0,tL.jsx)("article",{className:(0,R.Z)(aV.main,"nextra-content nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:d}):(0,tL.jsx)("article",{className:(0,R.Z)(aV.main,"nextra-content nx-flex nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-min-w-0 nx-justify-center nx-pb-8 nx-pr-[calc(env(safe-area-inset-right)-1.5rem)]","article"===e.typesetting&&"nextra-body-typesetting-article"),children:(0,tL.jsxs)("main",{className:"nx-w-full nx-min-w-0 nx-max-w-6xl nx-px-6 nx-pt-4 md:nx-px-12",children:[t,d]})})},aq=({filePath:e,pageMap:t,frontMatter:n,headings:r,timestamp:i,children:a})=>{let o=iH(),{locale:s=aC,defaultLocale:l}=(0,S.useRouter)(),u=L(),{activeType:c,activeIndex:d,activeThemeContext:f,activePath:h,topLevelNavbarItems:p,docsDirectories:m,flatDirectories:x,flatDocsDirectories:g,directories:v}=(0,N.useMemo)(()=>(function e({list:t,locale:n,defaultLocale:r,route:i,docsRoot:a="",underCurrentDocsRoot:o=!1,pageThemeContext:s=tM}){let l,u;for(let e of t)if("Meta"===e.kind){if(e.locale===n){l=e.data;break}l||(l=e.data)}let c=l||{},d=Object.keys(c);for(let e of d)"string"==typeof c[e]&&(c[e]={title:c[e]});let f=[],h=[],p=[],m=[],x=[],g=0,v=s,y=[],b=-1,w=c["*"]||{};delete w.title,delete w.href;let _=t.filter(e=>"Meta"!==e.kind&&!e.name.startsWith("_")&&(!("locale"in e)||!e.locale||[n,r].includes(e.locale))).sort((e,t)=>{let n=d.indexOf(e.name),r=d.indexOf(t.name);return -1===n&&-1===r?e.name{let t;let n=[],r=d.indexOf(e.name);if(-1!==r){for(let e=b+1;e({...l,type:k,...T&&{title:T},...b&&{display:b},...O&&{children:[]}}),S=C(),N=C(),R=C();if(N.isUnderCurrentDocsTree=E,"separator"===k&&(S.isUnderCurrentDocsTree=E),l.route===i)switch(y=[S],u=k,v={...v,...j},k){case"page":case"menu":g=x.length;break;case"doc":g=m.length}if(!("hidden"===b&&"Folder"!==S.kind||A.hV.has(l.route))){if(O){if(void 0!==O.activeIndex&&void 0!==O.activeType){switch(v=O.activeThemeContext,u=O.activeType,y=[S,...O.activePath],u){case"page":case"menu":g=x.length+O.activeIndex;break;case"doc":g=m.length+O.activeIndex}l.withIndexPage&&"doc"===k&&g++}switch(k){case"page":case"menu":R.children.push(...O.directories),p.push(...O.docsDirectories),O.flatDirectories.length?(R.firstChildRoute=function e(t){for(let n of t){if(n.route)return n.route;if(n.children){let t=e(n.children);if(t)return t}}}(O.flatDirectories),x.push(R)):R.withIndexPage&&x.push(R);break;case"doc":Array.isArray(N.children)&&N.children.push(...O.docsDirectories),S.withIndexPage&&"children"!==b&&m.push(N)}h.push(...O.flatDirectories),m.push(...O.flatDocsDirectories),Array.isArray(S.children)&&S.children.push(...O.directories)}else switch(h.push(S),k){case"page":case"menu":x.push(R);break;case"doc":m.push(N)}switch("doc"===k&&"children"===b?N.children&&(f.push(...N.children),p.push(...N.children)):f.push(S),k){case"page":case"menu":p.push(R);break;case"doc":"children"!==b&&p.push(N);break;case"separator":p.push(S)}}}return{activeType:u,activeIndex:g,activeThemeContext:v,activePath:y,directories:f,flatDirectories:h,docsDirectories:p,flatDocsDirectories:m,topLevelNavbarItems:x}})({list:t,locale:s,defaultLocale:l,route:u}),[t,s,l,u]),y=iO(iO({},f),n),b=!y.sidebar||"raw"===y.layout||"page"===c,w="page"!==c&&y.toc&&"default"===y.layout?(0,tL.jsx)("nav",{className:(0,R.Z)(aV.toc,"nx-px-4"),"aria-label":"table of contents",children:iJ(o.toc.component,{headings:o.toc.float?r:[],filePath:e})}):"full"!==y.layout&&"raw"!==y.layout&&(0,tL.jsx)("nav",{className:aV.toc,"aria-label":"table of contents"}),_=o.i18n.find(e=>e.locale===s),k=(_?"rtl"===_.direction:"rtl"===o.direction)?"rtl":"ltr";return(0,tL.jsxs)("div",{dir:k,children:[(0,tL.jsx)("script",{dangerouslySetInnerHTML:{__html:`document.documentElement.setAttribute('dir','${k}')`}}),(0,tL.jsx)(aa,{}),(0,tL.jsx)(i0,{}),y.navbar&&iJ(o.navbar.component,{flatDirectories:x,items:p}),(0,tL.jsx)("div",{className:(0,R.Z)("nx-mx-auto nx-flex","raw"!==y.layout&&"nx-max-w-[90rem]"),children:(0,tL.jsxs)(iF,{children:[(0,tL.jsx)(ab,{docsDirectories:m,flatDirectories:x,fullDirectories:v,headings:r,asPopover:b,includePlaceholder:"default"===y.layout}),w,(0,tL.jsx)(a_,{}),(0,tL.jsx)(aB,{themeContext:y,breadcrumb:"page"!==c&&y.breadcrumb?(0,tL.jsx)(i1,{activePath:h}):null,timestamp:i,navigation:"page"!==c&&y.pagination?(0,tL.jsx)(as,{flatDirectories:g,currentIndex:d}):null,children:(0,tL.jsx)(P.Z,{components:aG({isRawLayout:"raw"===y.layout,components:o.components}),children:a})})]})}),y.footer&&iJ(o.footer.component,{menu:b})]})};function aK(e){var{children:t}=e,n=iC(e,["children"]);return(0,tL.jsx)(iG,{value:n,children:(0,tL.jsx)(aq,iT(iO({},n.pageOpts),{children:t}))})}},3860:function(e,t,n){"use strict";let r,i,a;n.d(t,{UW:function(){return f},EK:function(){return m},SU:function(){return x},Rg:function(){return g},OK:function(){return K},iA:function(){return J},mQ:function(){return Y},Td:function(){return Q},Th:function(){return X},Tr:function(){return ee}});var o=n(4814),s=n(2676),l=({children:e,className:t,...n})=>(0,s.jsx)("button",{className:(0,o.Z)("nextra-button nx-transition-all active:nx-opacity-50","nx-bg-primary-700/5 nx-border nx-border-black/5 nx-text-gray-600 hover:nx-text-gray-900 nx-rounded-md nx-p-1.5","dark:nx-bg-primary-300/10 dark:nx-border-white/10 dark:nx-text-gray-400 dark:hover:nx-text-gray-50",t),...n,children:e}),u=n(9552),c={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,s.jsx)(u.AV,{className:"nx-mt-1"}),warning:"⚠️"},d={default:(0,o.Z)("nx-border-orange-100 nx-bg-orange-50 nx-text-orange-800 dark:nx-border-orange-400/30 dark:nx-bg-orange-400/20 dark:nx-text-orange-300"),error:(0,o.Z)("nx-border-red-200 nx-bg-red-100 nx-text-red-900 dark:nx-border-red-200/30 dark:nx-bg-red-900/30 dark:nx-text-red-200"),info:(0,o.Z)("nx-border-blue-200 nx-bg-blue-100 nx-text-blue-900 dark:nx-border-blue-200/30 dark:nx-bg-blue-900/30 dark:nx-text-blue-200"),warning:(0,o.Z)("nx-border-yellow-100 nx-bg-yellow-50 nx-text-yellow-900 dark:nx-border-yellow-200/30 dark:nx-bg-yellow-700/30 dark:nx-text-yellow-200")};function f({children:e,type:t="default",emoji:n=c[t]}){return(0,s.jsxs)("div",{className:(0,o.Z)("nextra-callout nx-overflow-x-auto nx-mt-6 nx-flex nx-rounded-lg nx-border nx-py-2 ltr:nx-pr-4 rtl:nx-pl-4","contrast-more:nx-border-current contrast-more:dark:nx-border-current",d[t]),children:[(0,s.jsx)("div",{className:"nx-select-none nx-text-xl ltr:nx-pl-3 ltr:nx-pr-2 rtl:nx-pr-3 rtl:nx-pl-2",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},children:n}),(0,s.jsx)("div",{className:"nx-w-full nx-min-w-0 nx-leading-7",children:e})]})}var h=n(5271),p=({getValue:e,...t})=>{let[n,r]=(0,h.useState)(!1);(0,h.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>{r(!1)},2e3);return()=>{clearTimeout(e)}},[n]);let i=(0,h.useCallback)(async()=>{r(!0),navigator?.clipboard||console.error("Access to clipboard rejected!");try{await navigator.clipboard.writeText(e())}catch{console.error("Failed to copy!")}},[e]),a=n?u.nQ:u.TI;return(0,s.jsx)(l,{onClick:i,title:"Copy code",tabIndex:0,...t,children:(0,s.jsx)(a,{className:"nextra-copy-icon nx-pointer-events-none nx-h-4 nx-w-4"})})},m=({children:e,className:t,...n})=>(0,s.jsx)("code",{className:(0,o.Z)("nx-border-black nx-border-opacity-[0.04] nx-bg-opacity-[0.03] nx-bg-black nx-break-words nx-rounded-md nx-border nx-py-0.5 nx-px-[.25em] nx-text-[.9em]","dark:nx-border-white/10 dark:nx-bg-white/10","data-line-numbers"in n&&"[counter-reset:line]",t),dir:"ltr",...n,children:e}),x=({children:e,className:t,hasCopyCode:n,filename:r,...i})=>{let a=(0,h.useRef)(null),c=(0,h.useCallback)(()=>{let e=document.documentElement.dataset;"nextraWordWrap"in e?delete e.nextraWordWrap:e.nextraWordWrap=""},[]);return(0,s.jsxs)("div",{className:"nextra-code-block nx-relative nx-mt-6 first:nx-mt-0",children:[r&&(0,s.jsx)("div",{className:"nx-absolute nx-top-0 nx-z-[1] nx-w-full nx-truncate nx-rounded-t-xl nx-bg-primary-700/5 nx-py-2 nx-px-4 nx-text-xs nx-text-gray-700 dark:nx-bg-primary-300/10 dark:nx-text-gray-200",children:r}),(0,s.jsx)("pre",{className:(0,o.Z)("nx-bg-primary-700/5 nx-mb-4 nx-overflow-x-auto nx-rounded-xl nx-subpixel-antialiased dark:nx-bg-primary-300/10 nx-text-[.9em]","contrast-more:nx-border contrast-more:nx-border-primary-900/20 contrast-more:nx-contrast-150 contrast-more:dark:nx-border-primary-100/40",r?"nx-pt-12 nx-pb-4":"nx-py-4",t),ref:a,...i,children:e}),(0,s.jsxs)("div",{className:(0,o.Z)("nx-opacity-0 nx-transition [div:hover>&]:nx-opacity-100 focus-within:nx-opacity-100","nx-flex nx-gap-1 nx-absolute nx-m-[11px] nx-right-0",r?"nx-top-8":"nx-top-0"),children:[(0,s.jsx)(l,{onClick:c,className:"md:nx-hidden",title:"Toggle word wrap",children:(0,s.jsx)(u.NK,{className:"nx-pointer-events-none nx-h-4 nx-w-4"})}),n&&(0,s.jsx)(p,{getValue:()=>a.current?.querySelector("code")?.textContent||""})]})]})};function g({children:e,className:t,...n}){return(0,s.jsx)("div",{className:(0,o.Z)("nextra-steps nx-ml-4 nx-mb-12 nx-border-l nx-border-gray-200 nx-pl-6","dark:nx-border-neutral-800 [counter-reset:step]",t),...n,children:e})}var v=n(9174),y=n(8238),b=n(6573),w=n(1281),_=n(3021),k=n(5025),j=n(680),E=n(1177),O=n(9990);function T(e){let{onFocus:t}=e,[n,r]=(0,h.useState)(!0),i=(0,E.t)();return n?h.createElement(O._,{as:"button",type:"button",features:O.A.Focusable,onFocus:e=>{e.preventDefault();let n,a=50;n=requestAnimationFrame(function e(){if(a--<=0){n&&cancelAnimationFrame(n);return}if(t()){if(cancelAnimationFrame(n),!i.current)return;r(!1);return}n=requestAnimationFrame(e)})}}):null}var C=n(8640),S=n(6260),N=n(4213),R=n(9906),I=n(8862);let A=h.createContext(null);function L(e){let{children:t}=e,n=h.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let i=null!=(n=r.get(t))?n:0;return r.set(t,i+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return h.createElement(A.Provider,{value:n},t)}function P(e){let t=h.useContext(A);if(!t)throw Error("You must wrap your component in a ");let n=function(){var e,t,n;let r=null!=(n=null==(t=null==(e=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let i=[],a=r;for(;a;)i.push(a.index),a=a.return;return"$."+i.join(".")}(),[r,i]=t.current.get(e,n);return h.useEffect(()=>i,[]),r}var M=((r=M||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r),Z=((i=Z||{})[i.Less=-1]="Less",i[i.Equal=0]="Equal",i[i.Greater=1]="Greater",i),D=((a=D||{})[a.SetSelectedIndex=0]="SetSelectedIndex",a[a.RegisterTab=1]="RegisterTab",a[a.UnregisterTab=2]="UnregisterTab",a[a.RegisterPanel=3]="RegisterPanel",a[a.UnregisterPanel=4]="UnregisterPanel",a);let F={0(e,t){var n;let r=(0,C.z2)(e.tabs,e=>e.current),i=(0,C.z2)(e.panels,e=>e.current),a=r.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),o={...e,tabs:r,panels:i};if(t.index<0||t.index>r.length-1){let n=(0,S.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,S.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===a.length)return o;let i=(0,S.E)(n,{0:()=>r.indexOf(a[0]),1:()=>r.indexOf(a[a.length-1])});return{...o,selectedIndex:-1===i?e.selectedIndex:i}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find(e=>a.includes(e));if(!l)return o;let u=null!=(n=r.indexOf(l))?n:e.selectedIndex;return -1===u&&(u=e.selectedIndex),{...o,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],r=(0,C.z2)([...e.tabs,t.tab],e=>e.current),i=e.selectedIndex;return e.info.current.isControlled||-1===(i=r.indexOf(n))&&(i=e.selectedIndex),{...e,tabs:r,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,C.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},z=(0,h.createContext)(null);function $(e){let t=(0,h.useContext)(z);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,$),t}return t}z.displayName="TabsDataContext";let U=(0,h.createContext)(null);function W(e){let t=(0,h.useContext)(U);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,W),t}return t}function H(e,t){return(0,S.E)(t.type,F,e,t)}U.displayName="TabsActionsContext";let G=h.Fragment,V=I.AN.RenderStrategy|I.AN.Static,B=Object.assign((0,I.yV)(function(e,t){var n,r;let i=(0,b.M)(),{id:a="headlessui-tabs-tab-".concat(i),...o}=e,{orientation:s,activation:l,selectedIndex:u,tabs:c,panels:d}=$("Tab"),f=W("Tab"),p=$("Tab"),m=(0,h.useRef)(null),x=(0,j.T)(m,t);(0,w.e)(()=>f.registerTab(m),[f,m]);let g=P("tabs"),_=c.indexOf(m);-1===_&&(_=g);let E=_===u,O=(0,y.z)(e=>{var t;let n=e();if(n===C.fE.Success&&"auto"===l){let e=null==(t=(0,R.r)(m))?void 0:t.activeElement,n=p.tabs.findIndex(t=>t.current===e);-1!==n&&f.change(n)}return n}),T=(0,y.z)(e=>{let t=c.map(e=>e.current).filter(Boolean);if(e.key===v.R.Space||e.key===v.R.Enter){e.preventDefault(),e.stopPropagation(),f.change(_);return}switch(e.key){case v.R.Home:case v.R.PageUp:return e.preventDefault(),e.stopPropagation(),O(()=>(0,C.jA)(t,C.TO.First));case v.R.End:case v.R.PageDown:return e.preventDefault(),e.stopPropagation(),O(()=>(0,C.jA)(t,C.TO.Last))}if(O(()=>(0,S.E)(s,{vertical:()=>e.key===v.R.ArrowUp?(0,C.jA)(t,C.TO.Previous|C.TO.WrapAround):e.key===v.R.ArrowDown?(0,C.jA)(t,C.TO.Next|C.TO.WrapAround):C.fE.Error,horizontal:()=>e.key===v.R.ArrowLeft?(0,C.jA)(t,C.TO.Previous|C.TO.WrapAround):e.key===v.R.ArrowRight?(0,C.jA)(t,C.TO.Next|C.TO.WrapAround):C.fE.Error}))===C.fE.Success)return e.preventDefault()}),A=(0,h.useRef)(!1),L=(0,y.z)(()=>{var e;A.current||(A.current=!0,null==(e=m.current)||e.focus({preventScroll:!0}),f.change(_),(0,N.Y)(()=>{A.current=!1}))}),M=(0,y.z)(e=>{e.preventDefault()}),Z=(0,h.useMemo)(()=>{var t;return{selected:E,disabled:null!=(t=e.disabled)&&t}},[E,e.disabled]),D={ref:x,onKeyDown:T,onMouseDown:M,onClick:L,id:a,role:"tab",type:(0,k.f)(e,m),"aria-controls":null==(r=null==(n=d[_])?void 0:n.current)?void 0:r.id,"aria-selected":E,tabIndex:E?0:-1};return(0,I.sY)({ourProps:D,theirProps:o,slot:Z,defaultTag:"button",name:"Tabs.Tab"})}),{Group:(0,I.yV)(function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:i=!1,onChange:a,selectedIndex:o=null,...s}=e,l=r?"vertical":"horizontal",u=i?"manual":"auto",c=null!==o,d=(0,_.E)({isControlled:c}),f=(0,j.T)(t),[p,m]=(0,h.useReducer)(H,{info:d,selectedIndex:null!=o?o:n,tabs:[],panels:[]}),x=(0,h.useMemo)(()=>({selectedIndex:p.selectedIndex}),[p.selectedIndex]),g=(0,_.E)(a||(()=>{})),v=(0,_.E)(p.tabs),b=(0,h.useMemo)(()=>({orientation:l,activation:u,...p}),[l,u,p]),k=(0,y.z)(e=>(m({type:1,tab:e}),()=>m({type:2,tab:e}))),E=(0,y.z)(e=>(m({type:3,panel:e}),()=>m({type:4,panel:e}))),O=(0,y.z)(e=>{S.current!==e&&g.current(e),c||m({type:0,index:e})}),S=(0,_.E)(c?e.selectedIndex:p.selectedIndex),N=(0,h.useMemo)(()=>({registerTab:k,registerPanel:E,change:O}),[]);return(0,w.e)(()=>{m({type:0,index:null!=o?o:n})},[o]),(0,w.e)(()=>{if(void 0===S.current||p.tabs.length<=0)return;let e=(0,C.z2)(p.tabs,e=>e.current);e.some((e,t)=>p.tabs[t]!==e)&&O(e.indexOf(p.tabs[S.current]))}),h.createElement(L,null,h.createElement(U.Provider,{value:N},h.createElement(z.Provider,{value:b},b.tabs.length<=0&&h.createElement(T,{onFocus:()=>{var e,t;for(let n of v.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),(0,I.sY)({ourProps:{ref:f},theirProps:s,slot:x,defaultTag:G,name:"Tabs"}))))}),List:(0,I.yV)(function(e,t){let{orientation:n,selectedIndex:r}=$("Tab.List"),i=(0,j.T)(t);return(0,I.sY)({ourProps:{ref:i,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})}),Panels:(0,I.yV)(function(e,t){let{selectedIndex:n}=$("Tab.Panels"),r=(0,j.T)(t),i=(0,h.useMemo)(()=>({selectedIndex:n}),[n]);return(0,I.sY)({ourProps:{ref:r},theirProps:e,slot:i,defaultTag:"div",name:"Tabs.Panels"})}),Panel:(0,I.yV)(function(e,t){var n,r,i,a;let o=(0,b.M)(),{id:s="headlessui-tabs-panel-".concat(o),tabIndex:l=0,...u}=e,{selectedIndex:c,tabs:d,panels:f}=$("Tab.Panel"),p=W("Tab.Panel"),m=(0,h.useRef)(null),x=(0,j.T)(m,t);(0,w.e)(()=>p.registerPanel(m),[p,m,s]);let g=P("panels"),v=f.indexOf(m);-1===v&&(v=g);let y=v===c,_=(0,h.useMemo)(()=>({selected:y}),[y]),k={ref:x,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=d[v])?void 0:n.current)?void 0:r.id,tabIndex:y?l:-1};return y||null!=(i=u.unmount)&&!i||null!=(a=u.static)&&a?(0,I.sY)({ourProps:k,theirProps:u,slot:_,defaultTag:"div",features:V,visible:y,name:"Tabs.Panel"}):h.createElement(O._,{as:"span","aria-hidden":"true",...k})})});function q(e){return!!e&&"object"==typeof e&&"label"in e}function K({children:e,...t}){return(0,s.jsx)(B.Panel,{...t,className:"nx-rounded nx-pt-6",children:e})}var Y=Object.assign(function({items:e,selectedIndex:t,defaultIndex:n=0,onChange:r,children:i,storageKey:a}){let[l,u]=(0,h.useState)(n);(0,h.useEffect)(()=>{void 0!==t&&u(t)},[t]),(0,h.useEffect)(()=>{if(!a)return;function e(e){e.key===a&&u(Number(e.newValue))}let t=Number(localStorage.getItem(a));return u(Number.isNaN(t)?0:t),window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[]);let c=(0,h.useCallback)(e=>{if(a){let t=String(e);localStorage.setItem(a,t),window.dispatchEvent(new StorageEvent("storage",{key:a,newValue:t}));return}u(e),r?.(e)},[]);return(0,s.jsxs)(B.Group,{selectedIndex:l,defaultIndex:n,onChange:c,children:[(0,s.jsx)("div",{className:"nextra-scrollbar nx-overflow-x-auto nx-overflow-y-hidden nx-overscroll-x-contain",children:(0,s.jsx)(B.List,{className:"nx-mt-4 nx-flex nx-w-max nx-min-w-full nx-border-b nx-border-gray-200 nx-pb-px dark:nx-border-neutral-800",children:e.map((e,t)=>{let n=q(e)&&e.disabled;return(0,s.jsx)(B,{disabled:n,className:({selected:e})=>(0,o.Z)("nx-mr-2 nx-rounded-t nx-p-2 nx-font-medium nx-leading-5 nx-transition-colors","-nx-mb-0.5 nx-select-none nx-border-b-2",e?"nx-border-primary-500 nx-text-primary-600":"nx-border-transparent nx-text-gray-600 hover:nx-border-gray-200 hover:nx-text-black dark:nx-text-gray-200 dark:hover:nx-border-neutral-800 dark:hover:nx-text-white",n&&"nx-pointer-events-none nx-text-gray-400 dark:nx-text-neutral-600"),children:q(e)?e.label:e},t)})})}),(0,s.jsx)(B.Panels,{children:i})]})},{displayName:"Tabs",Tab:K}),Q=({className:e="",...t})=>(0,s.jsx)("td",{className:(0,o.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 dark:nx-border-gray-600",e),...t}),J=({className:e="",...t})=>(0,s.jsx)("table",{className:(0,o.Z)("nx-block nx-overflow-x-scroll",e),...t}),X=({className:e="",...t})=>(0,s.jsx)("th",{className:(0,o.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 nx-font-semibold dark:nx-border-gray-600",e),...t}),ee=({className:e="",...t})=>(0,s.jsx)("tr",{className:(0,o.Z)("nx-m-0 nx-border-t nx-border-gray-300 nx-p-0 dark:nx-border-gray-600","even:nx-bg-gray-100 even:dark:nx-bg-gray-600/20",e),...t}),et=n(5318),en=n.n(et),er={cards:(0,o.Z)("nextra-cards nx-mt-4 nx-gap-4 nx-grid","nx-not-prose"),card:(0,o.Z)("nextra-card nx-group nx-flex nx-flex-col nx-justify-start nx-overflow-hidden nx-rounded-lg nx-border nx-border-gray-200","nx-text-current nx-no-underline dark:nx-shadow-none","hover:nx-shadow-gray-100 dark:hover:nx-shadow-none nx-shadow-gray-100","active:nx-shadow-sm active:nx-shadow-gray-200","nx-transition-all nx-duration-200 hover:nx-border-gray-300"),title:(0,o.Z)("nx-flex nx-font-semibold nx-items-start nx-gap-2 nx-p-4 nx-text-gray-700 hover:nx-text-gray-900")},ei=(0,s.jsx)("span",{className:"nx-transition-transform nx-duration-75 group-hover:nx-translate-x-[2px]",children:"→"});Object.assign(function({children:e,num:t=3,className:n,style:r,...i}){return(0,s.jsx)("div",{className:(0,o.Z)(er.cards,n),...i,style:{...r,"--rows":t},children:e})},{displayName:"Cards",Card:function({children:e,title:t,icon:n,image:r,arrow:i,href:a,...l}){let u=i?ei:null;return r?(0,s.jsxs)(en(),{href:a,className:(0,o.Z)(er.card,"nx-bg-gray-100 nx-shadow dark:nx-border-neutral-700 dark:nx-bg-neutral-800 dark:nx-text-gray-50 hover:nx-shadow-lg dark:hover:nx-border-neutral-500 dark:hover:nx-bg-neutral-700"),...l,children:[e,(0,s.jsxs)("span",{className:(0,o.Z)(er.title,"dark:nx-text-gray-300 dark:hover:nx-text-gray-100"),children:[n,(0,s.jsxs)("span",{className:"nx-flex nx-gap-1",children:[t,u]})]})]}):(0,s.jsx)(en(),{href:a,className:(0,o.Z)(er.card,"nx-bg-transparent nx-shadow-sm dark:nx-border-neutral-800 hover:nx-bg-slate-50 hover:nx-shadow-md dark:hover:nx-border-neutral-700 dark:hover:nx-bg-neutral-900"),...l,children:(0,s.jsxs)("span",{className:(0,o.Z)(er.title,"dark:nx-text-neutral-200 dark:hover:nx-text-neutral-50 nx-flex nx-items-center"),children:[n,t,u]})})}});var ea=(0,h.createContext)(0);function eo(){return(0,h.useContext)(ea)}function es(){let e=eo();return(0,s.jsx)(s.Fragment,{children:Array.from({length:e},(e,t)=>(0,s.jsx)("span",{className:"nx-w-5"},t))})}var el=(0,h.memo)(({label:e,name:t,open:n,children:r,defaultOpen:i=!1,onToggle:a})=>{let o=eo(),[l,u]=(0,h.useState)(i),c=(0,h.useCallback)(()=>{a?.(!l),u(!l)},[l,a]),d=void 0===n?l:n;return(0,s.jsxs)("li",{className:"nx-flex nx-list-none nx-flex-col",children:[(0,s.jsxs)("button",{onClick:c,title:t,className:"nx-inline-flex nx-cursor-pointer nx-items-center nx-py-1 hover:nx-opacity-60",children:[(0,s.jsx)(es,{}),(0,s.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:d?"M5 19a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4l2 2h4a2 2 0 0 1 2 2v1M5 19h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2Z":"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2Z"})}),(0,s.jsx)("span",{className:"nx-ml-1",children:e??t})]}),d&&(0,s.jsx)("ul",{children:(0,s.jsx)(ea.Provider,{value:o+1,children:r})})]})});el.displayName="Folder";var eu=(0,h.memo)(({label:e,name:t,active:n})=>(0,s.jsx)("li",{className:(0,o.Z)("nx-flex nx-list-none",n&&"nx-text-primary-600 contrast-more:nx-underline"),children:(0,s.jsxs)("span",{className:"nx-inline-flex nx-cursor-default nx-items-center nx-py-1",children:[(0,s.jsx)(es,{}),(0,s.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2Z"})}),(0,s.jsx)("span",{className:"nx-ml-1",children:e??t})]})}));eu.displayName="File",Object.assign(function({children:e}){return(0,s.jsx)("div",{className:(0,o.Z)("nextra-filetree nx-mt-6 nx-select-none nx-text-sm nx-text-gray-800 dark:nx-text-gray-300","nx-not-prose"),children:(0,s.jsx)("div",{className:"nx-inline-block nx-rounded-lg nx-border nx-px-4 nx-py-2 dark:nx-border-neutral-800",children:e})})},{Folder:el,File:eu})},9552:function(e,t,n){"use strict";n.d(t,{LZ:function(){return i},nQ:function(){return a},TI:function(){return o},D7:function(){return s},Qq:function(){return l},fy:function(){return u},n9:function(){return c},AV:function(){return d},Oq:function(){return f},kL:function(){return h},L4:function(){return p},NW:function(){return m},NK:function(){return x},b0:function(){return g}});var r=n(2676);function i({pathClassName:e,...t}){return(0,r.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...t,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7",className:e})})}function a(e){return(0,r.jsx)("svg",{viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function o(e){return(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...e,children:[(0,r.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function s(e){return(0,r.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 5 30.67 23.25",...e,children:[(0,r.jsx)("title",{children:"Discord"}),(0,r.jsx)("path",{d:"M26.0015 6.9529C24.0021 6.03845 21.8787 5.37198 19.6623 5C19.3833 5.48048 19.0733 6.13144 18.8563 6.64292C16.4989 6.30193 14.1585 6.30193 11.8336 6.64292C11.6166 6.13144 11.2911 5.48048 11.0276 5C8.79575 5.37198 6.67235 6.03845 4.6869 6.9529C0.672601 12.8736 -0.41235 18.6548 0.130124 24.3585C2.79599 26.2959 5.36889 27.4739 7.89682 28.2489C8.51679 27.4119 9.07477 26.5129 9.55525 25.5675C8.64079 25.2265 7.77283 24.808 6.93587 24.312C7.15286 24.1571 7.36986 23.9866 7.57135 23.8161C12.6241 26.1255 18.0969 26.1255 23.0876 23.8161C23.3046 23.9866 23.5061 24.1571 23.7231 24.312C22.8861 24.808 22.0182 25.2265 21.1037 25.5675C21.5842 26.5129 22.1422 27.4119 22.7621 28.2489C25.2885 27.4739 27.8769 26.2959 30.5288 24.3585C31.1952 17.7559 29.4733 12.0212 26.0015 6.9529ZM10.2527 20.8402C8.73376 20.8402 7.49382 19.4608 7.49382 17.7714C7.49382 16.082 8.70276 14.7025 10.2527 14.7025C11.7871 14.7025 13.0425 16.082 13.0115 17.7714C13.0115 19.4608 11.7871 20.8402 10.2527 20.8402ZM20.4373 20.8402C18.9183 20.8402 17.6768 19.4608 17.6768 17.7714C17.6768 16.082 18.8873 14.7025 20.4373 14.7025C21.9717 14.7025 23.2271 16.082 23.1961 17.7714C23.1961 19.4608 21.9872 20.8402 20.4373 20.8402Z"})]})}function l({isOpen:e,...t}){return(0,r.jsxs)("svg",{height:"12",width:"12",viewBox:"0 0 16 16",fill:"currentColor",...t,children:[(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z",className:e?"":"nx-origin-[35%] nx-rotate-180"}),(0,r.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"})]})}function u(e){return(0,r.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",viewBox:"3 3 18 18",...e,children:[(0,r.jsx)("title",{children:"GitHub"}),(0,r.jsx)("path",{d:"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"})]})}function c(e){return(0,r.jsx)("svg",{viewBox:"2 2 16 16",width:"12",height:"12",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"})})}function d(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"20",height:"20",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"})})}function f(e){return(0,r.jsxs)("svg",{fill:"none",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:[(0,r.jsx)("g",{children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16"})}),(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"}),(0,r.jsx)("g",{children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 18h16"})})]})}function h(e){return(0,r.jsx)("svg",{fill:"none",viewBox:"2 2 20 20",width:"12",height:"12",stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}function p(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24",...e,children:[(0,r.jsx)("circle",{className:"nx-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"nx-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function m(e){return(0,r.jsx)("svg",{fill:"none",viewBox:"3 3 18 18",width:"12",height:"12",stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}function x(e){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}function g(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}},7532:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},a:function(){return d}});var r=n(5271);let i=r.createContext({});function a(e){let t=r.useContext(i);return r.useMemo(()=>"function"==typeof e?e(t):{...t,...e},[t,e])}let o={};function s({components:e,children:t,disableParentContext:n}){let s;return s=n?"function"==typeof e?e({}):e||o:a(e),r.createElement(i.Provider,{value:s},t)}var l=n(7370),u=n.n(l),c={img:e=>(0,r.createElement)("object"==typeof e.src?u():"img",e)},d=e=>a({...c,...e})},5384:function(e,t,n){"use strict";n.d(t,{j:function(){return v}});var r,i=n(5554),a=n.n(i),o=n(5637),s=n(5271);n(6778),"undefined"!=typeof window&&(window.requestIdleCallback=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)}),n(7532);var l=n(2676),u=(0,s.createContext)(!1),c=n(9205);function d({__nextra_pageMap:e,__nextra_dynamic_opts:t,...n}){let{context:r,Layout:i}=function(){let e=globalThis[o.eZ],{route:t}=(0,c.useRouter)();(0,s.useState)({})[1];let n=e.context[t];if(!n)throw Error("No content found for the current route. This is a Nextra bug.");return{context:n,Layout:e.Layout}}(),{Content:a,...d}=r;if(e&&(d.pageOpts={...d.pageOpts,pageMap:e}),t){let{headings:e,title:n,frontMatter:r}=JSON.parse(t);d.pageOpts={...d.pageOpts,headings:e,title:n,frontMatter:r}}return(0,l.jsx)(i,{...d,pageProps:n,children:(0,l.jsx)(u.Provider,{value:n,children:(0,l.jsx)(a,{...n})})})}var f=n(6242),h=n(4473),p=n(9378);function m(e){return p(e.replaceAll(/[-_]/g," "))}function x(e){return!!e&&"object"==typeof e&&"folder"===e.type}function g(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>{if(x(t)){let n=e.replace("/","");return[n,t.title||m(n)]}return[e,t||m(e)]}))}function v({pageNextRoute:e,pageOpts:t,nextraLayout:n,themeConfig:i,MDXContent:s,hot:l,pageOptsChecksum:u,dynamicMetaModules:c=[]}){var p;"undefined"==typeof window&&(globalThis.__nextra_resolvePageMap=async()=>{if(r)return r;let e=JSON.parse(JSON.stringify(m.pageMap));return await Promise.all(c.map(async([t,{metaObjectKeyPath:n,metaParentKeyPath:r}])=>{let i=await t,o=await i.default(),s=a()(e,n);s.data=o,function e(t,n,r=!0){if(r){e(t,{kind:"Meta",data:n.data,locale:n.locale},!1),n.data=g(n.data);return}for(let[r,a]of Object.entries(n.data)){if(!x(a)){var i;if("*"===r)continue;t.children.push({kind:"MdxPage",...n.locale&&{locale:n.locale},name:r,route:(i=t.route,h(f.join(i,r.replace(/^index$/,""))))});continue}let o=r.replace("/",""),s={kind:"Folder",name:o,route:`${t.route}/${o}`,children:[{kind:"Meta",...n.locale&&{locale:n.locale},data:g(a.items)}]};t.children.push(s),e(s,{kind:"Meta",data:a.items,locale:n.locale},!1)}}(a()(e,r),s)})),r=e});let m=globalThis[p=o.eZ]||(globalThis[p]=Object.create(null));return t.pageMap?(m.pageMap=t.pageMap,m.Layout=n):(t={...t,pageMap:m.pageMap,flexsearch:m.flexsearch},i=m.themeConfig),t={frontMatter:{},...t},m.route=t.route,m.context||(m.context=Object.create(null)),m.context[e]={Content:s,pageOpts:t,themeConfig:i},d}},5182:function(e,t,n){"use strict";var r=n(1039);e.exports=function(e){var t={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:e,query:{},parse_failed:!1};try{var n=new URL(e);t.protocols=r(n),t.protocol=t.protocols[0],t.port=n.port,t.resource=n.hostname,t.host=n.host,t.user=n.username||"",t.password=n.password||"",t.pathname=n.pathname,t.hash=n.hash.slice(1),t.search=n.search.slice(1),t.href=n.href,t.query=Object.fromEntries(n.searchParams)}catch(n){t.protocols=["file"],t.protocol=t.protocols[0],t.port="",t.resource="",t.user="",t.pathname="",t.hash="",t.search="",t.href=e,t.query={},t.parse_failed=!0}return t}},8593:function(e,t,n){"use strict";var r=n(5182),i=r&&"object"==typeof r&&"default"in r?r:{default:r};let a=(e,t)=>t.some(t=>t instanceof RegExp?t.test(e):t===e),o=(e,{stripHash:t})=>{let n=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(e);if(!n)throw Error(`Invalid URL: ${e}`);let{type:r,data:i,hash:a}=n.groups,o=r.split(";");a=t?"":a;let s=!1;"base64"===o[o.length-1]&&(o.pop(),s=!0);let l=(o.shift()||"").toLowerCase(),u=[...o.map(e=>{let[t,n=""]=e.split("=").map(e=>e.trim());return"charset"===t&&"us-ascii"===(n=n.toLowerCase())?"":`${t}${n?`=${n}`:""}`}).filter(Boolean)];return s&&u.push("base64"),(u.length>0||l&&"text/plain"!==l)&&u.unshift(l),`data:${u.join(";")},${s?i.trim():i}${a?`#${a}`:""}`},s=(e,t=!1)=>{let n=t=>{let n=Error(t);throw n.subject_url=e,n};"string"==typeof e&&e.trim()||n("Invalid url."),e.length>s.MAX_INPUT_LENGTH&&n("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),t&&("object"!=typeof t&&(t={stripHash:!1}),e=function(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return o(e,t);if(/^view-source:/i.test(e))throw Error("`view-source:` is not supported as it is a non-standard protocol");let n=e.startsWith("//");!n&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let r=new URL(e);if(t.forceHttp&&t.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===r.protocol&&(r.protocol="http:"),t.forceHttps&&"http:"===r.protocol&&(r.protocol="https:"),t.stripAuthentication&&(r.username="",r.password=""),t.stripHash?r.hash="":t.stripTextFragment&&(r.hash=r.hash.replace(/#?:~:text.*?$/i,"")),r.pathname){let e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,t=0,n="";for(;;){let i=e.exec(r.pathname);if(!i)break;let a=i[0],o=i.index;n+=r.pathname.slice(t,o).replace(/\/{2,}/g,"/")+a,t=o+a.length}n+=r.pathname.slice(t,r.pathname.length).replace(/\/{2,}/g,"/"),r.pathname=n}if(r.pathname)try{r.pathname=decodeURI(r.pathname)}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=r.pathname.split("/");a(e[e.length-1],t.removeDirectoryIndex)&&(e=e.slice(0,-1),r.pathname=e.slice(1).join("/")+"/")}if(r.hostname&&(r.hostname=r.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(r.hostname)&&(r.hostname=r.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let e of[...r.searchParams.keys()])a(e,t.removeQueryParameters)&&r.searchParams.delete(e);if(!0===t.removeQueryParameters&&(r.search=""),t.sortQueryParameters){r.searchParams.sort();try{r.search=decodeURIComponent(r.search)}catch{}}t.removeTrailingSlash&&(r.pathname=r.pathname.replace(/\/$/,""));let i=e;return e=r.toString(),t.removeSingleSlash||"/"!==r.pathname||i.endsWith("/")||""!==r.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===r.pathname)&&""===r.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}(e,t));let r=i.default(e);if(r.parse_failed){let e=r.href.match(/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/);e?(r.protocols=["ssh"],r.protocol="ssh",r.resource=e[2],r.host=e[2],r.user=e[1],r.pathname=`/${e[3]}`,r.parse_failed=!1):n("URL parsing failed.")}return r};s.MAX_INPUT_LENGTH=2048,e.exports=s},1039:function(e){"use strict";e.exports=function(e,t){!0===t&&(t=0);var n="";if("string"==typeof e)try{n=new URL(e).protocol}catch(e){}else e&&e.constructor===URL&&(n=e.protocol);var r=n.split(/\:|\+/).filter(Boolean);return"number"==typeof t?r[t]:r}},2601:function(e){var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),r=RegExp(n,"g"),i=RegExp(n,"");function a(e){return t[e]}var o=function(e){return e.replace(r,a)};e.exports=o,e.exports.has=function(e){return!!e.match(i)},e.exports.remove=o},4473:function(e){"use strict";e.exports=e=>{let t=/^\\\\\?\\/.test(e),n=/[^\u0000-\u0080]+/.test(e);return t||n?e:e.replace(/\\/g,"/")}},9378:function(e,t,n){let r=n(3587),i=n(2168),a="[^\\s'’\\(\\)!?;:\"-]",o=RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${a}))|(${a}))(${a}*[’']*${a}*)`,"g"),s=e=>e.map(e=>[RegExp(`\\b${e}\\b`,"gi"),e]);e.exports=(e,t={})=>(e=e.toLowerCase().replace(o,(e,t="",n,i,a,o,s)=>{let l=e.length+o>=s.length,u=function(e){let t=e[0];return/\s/.test(t)?e.slice(1):/[\(\)]/.test(t)?null:e}(e);return u?!n&&r.has(i+a)&&!l?u:t+(i||n).toUpperCase()+a:e}),s([...i,...t.special||[]]).forEach(([t,n])=>{e=e.replace(t,n)}),e)},3587:function(e){e.exports=new Set(["for","and","nor","but","or","yet","so","a","an","the","aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"])},2168:function(e){e.exports=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS","SQL","C","C#","GraphQL","GraphiQL","JWT","JWTs"]},6778:function(e,t,n){n(2676)},4814:function(e,t,n){"use strict";t.Z=function(){for(var e,t,n=0,r="",i=arguments.length;na.O.nextId():null);return(0,o.e)(()=>{null===t&&n(a.O.nextId())},[t]),null!=t?""+t:void 0}},1177:function(e,t,n){"use strict";n.d(t,{t:function(){return a}});var r=n(5271),i=n(1281);function a(){let e=(0,r.useRef)(!1);return(0,i.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},1281:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var r=n(5271),i=n(8798);let a=(e,t)=>{i.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},3021:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});var r=n(5271),i=n(1281);function a(e){let t=(0,r.useRef)(e);return(0,i.e)(()=>{t.current=e},[e]),t}},5025:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(5271),i=n(1281);function a(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function o(e,t){let[n,o]=(0,r.useState)(()=>a(e));return(0,i.e)(()=>{o(a(e))},[e.type,e.as]),(0,i.e)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")},[n,t]),n}},3557:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r,i=n(5271),a=n(8798);function o(){let e;let t=(e="undefined"==typeof document,(0,(r||(r=n.t(i,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[o,s]=i.useState(a.O.isHandoffComplete);return o&&!1===a.O.isHandoffComplete&&s(!1),i.useEffect(()=>{!0!==o&&s(!0)},[o]),i.useEffect(()=>a.O.handoff(),[]),!t&&o}},680:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(5271),i=n(8238);let a=Symbol();function o(){for(var e=arguments.length,t=Array(e),n=0;n{o.current=t},[t]);let s=(0,i.z)(e=>{for(let t of o.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[a]))?void 0:s}},9990:function(e,t,n){"use strict";let r;n.d(t,{A:function(){return a},_:function(){return o}});var i=n(8862),a=((r=a||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let o=(0,i.yV)(function(e,t){var n;let{features:r=1,...a}=e,o={ref:t,"aria-hidden":(2&r)==2||(null!=(n=a["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,i.sY)({ourProps:o,theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})})},7457:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}n.d(t,{A:function(){return r}})},1808:function(e,t,n){"use strict";n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,r,i)=>(e.addEventListener(t,r,i),n.add(()=>e.removeEventListener(t,r,i))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;rcancelAnimationFrame(i))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;rn.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;rclearTimeout(i))},microTask(){for(var e=arguments.length,t=Array(e),i=0;i{a.current&&t[0]()}),n.add(()=>{a.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var r=n(4213)},8798:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=Object.defineProperty,i=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(i(e,"symbol"!=typeof t?t+"":t,n),n);class o{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){a(this,"current",this.detect()),a(this,"handoffState","pending"),a(this,"currentId",0)}}let s=new o},8640:function(e,t,n){"use strict";let r,i,a,o,s;n.d(t,{EO:function(){return w},TO:function(){return f},fE:function(){return h},jA:function(){return _},sP:function(){return g},tJ:function(){return x},wI:function(){return v},z2:function(){return b}});var l=n(1808),u=n(6260),c=n(9906);let d=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var f=((r=f||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),h=((i=h||{})[i.Error=0]="Error",i[i.Overflow=1]="Overflow",i[i.Success=2]="Success",i[i.Underflow=3]="Underflow",i),p=((a=p||{})[a.Previous=-1]="Previous",a[a.Next=1]="Next",a);function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(d)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var x=((o=x||{})[o.Strict=0]="Strict",o[o.Loose=1]="Loose",o);function g(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,c.r)(e))?void 0:t.body)&&(0,u.E)(n,{0:()=>e.matches(d),1(){let t=e;for(;null!==t;){if(t.matches(d))return!0;t=t.parentElement}return!1}})}function v(e){let t=(0,c.r)(e);(0,l.k)().nextFrame(()=>{t&&!g(t.activeElement,0)&&(null==e||e.focus({preventScroll:!0}))})}var y=((s=y||{})[s.Keyboard=0]="Keyboard",s[s.Mouse=1]="Mouse",s);function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function w(e,t){return _(m(),t,{relativeTo:e})}function _(e,t){var n,r,i;let{sorted:a=!0,relativeTo:o=null,skipElements:s=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?a?b(e):e:m(e);s.length>0&&u.length>1&&(u=u.filter(e=>!s.includes(e))),o=null!=o?o:l.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(o))-1;if(4&t)return Math.max(0,u.indexOf(o))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},h=0,p=u.length,x;do{if(h>=p||h+p<=0)return 0;let e=d+h;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}null==(x=u[e])||x.focus(f),h+=c}while(x!==l.activeElement);return 6&t&&null!=(i=null==(r=null==(n=x)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&i&&x.select(),2}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},6260:function(e,t,n){"use strict";function r(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),a=2;a'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(o,r),o}n.d(t,{E:function(){return r}})},4213:function(e,t,n){"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}n.d(t,{Y:function(){return r}})},9906:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(8798);function i(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},8862:function(e,t,n){"use strict";let r,i;n.d(t,{AN:function(){return l},l4:function(){return u},oA:function(){return m},sY:function(){return c},yV:function(){return p}});var a=n(5271),o=n(7457),s=n(6260),l=((r=l||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),u=((i=u||{})[i.Unmount=0]="Unmount",i[i.Hidden=1]="Hidden",i);function c(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:i,features:a,visible:o=!0,name:l,mergeRefs:u}=e;u=null!=u?u:f;let c=h(n,t);if(o)return d(c,r,i,l,u);let p=null!=a?a:0;if(2&p){let{static:e=!1,...t}=c;if(e)return d(t,r,i,l,u)}if(1&p){let{unmount:e=!0,...t}=c;return(0,s.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},r,i,l,u)})}return d(c,r,i,l,u)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,{as:s=n,children:l,refName:u="ref",...c}=x(e,["unmount","static"]),d=void 0!==e.ref?{[u]:e.ref}:{},f="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let p={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r);e&&(p["data-headlessui-state"]=n.join(" "))}if(s===a.Fragment&&Object.keys(m(c)).length>0){if(!(0,a.isValidElement)(f)||Array.isArray(f)&&f.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(c).map(e=>" - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"));let e=f.props,t="function"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,n=Array(t),r=0;rnull==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function h(){for(var e=arguments.length,t=Array(e),n=0;n[e,void 0])));for(let e in i)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},5637:function(e,t,n){"use strict";n.d(t,{ZW:function(){return a},eZ:function(){return s},hV:function(){return l}});var r=n(6242),i=n(6987),a="en-US",o=i.cwd();r.join(o,"public");var s=Symbol.for("__nextra_internal__"),l=new Set(["/404","/500"])}}]); \ No newline at end of file diff --git a/_next/static/chunks/558-bc154901e3c9b519.js b/_next/static/chunks/558-bc154901e3c9b519.js new file mode 100644 index 000000000..1b2a022a3 --- /dev/null +++ b/_next/static/chunks/558-bc154901e3c9b519.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[558,540],{4234:function(e,t,r){"use strict";r.d(t,{bw:function(){return v},__:function(){return d},SF:function(){return T},i1:function(){return _},Oy:function(){return F},bT:function(){return Z},QZ:function(){return N},ER:function(){return q},pl:function(){return Y}});var n=r(2676),a=r(5271),l=r(323),i=r(2580),o=r.n(i);function u(e,t){let r=Object.keys(e).filter(e=>t.includes(e)?null:e),n={};return r.forEach(t=>{n[t]=e[t]}),n}var s=r(4601);let c=(0,s.zo)("span",{});var d=e=>{let{as:t,label:r}=e,a=u(e,["as","label"]);return(0,n.jsx)(c,{as:t,...a,children:(0,l.M)(r,a.lang)})},f=r(3677);let m=function(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200,",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"full";Array.isArray(e)&&(e=e[0]);let{id:a,service:l}=e;if(!l)return a;if(Array.isArray(e.service)&&e.service.length>0&&(t=l[0]),t){if(t["@id"])return"".concat(t["@id"],"/").concat(n,"/").concat(r,"/0/default.jpg");if(t.id)return"".concat(t.id,"/").concat(n,"/").concat(r,"/0/default.jpg")}},h=(0,s.zo)("img",{objectFit:"cover"});var p=e=>{let t;let r=(0,a.useRef)(null),{contentResource:i,altAsLabel:o,region:s="full"}=e;o&&(t=(0,l.M)(o));let c=u(e,["contentResource","altAsLabel"]),{type:d,id:p,width:g=200,height:v=200,duration:j}=i;(0,a.useEffect)(()=>{if(!p&&!r.current||["Image"].includes(d)||!p.includes("m3u8"))return;let e=new f.ZP;return r.current&&(e.attachMedia(r.current),e.on(f.ZP.Events.MEDIA_ATTACHED,function(){e.loadSource(p)})),e.on(f.ZP.Events.ERROR,function(t,r){if(r.fatal)switch(r.type){case f.ZP.ErrorTypes.NETWORK_ERROR:console.error("fatal ".concat(t," network error encountered, try to recover")),e.startLoad();break;case f.ZP.ErrorTypes.MEDIA_ERROR:console.error("fatal ".concat(t," media error encountered, try to recover")),e.recoverMediaError();break;default:e.destroy()}}),()=>{e&&(e.detachMedia(),e.destroy())}},[p,d]);let x=(0,a.useCallback)(()=>{if(!r.current)return;let e=0,t=30;if(j&&(t=j),!p.split("#t=")&&j&&(e=.1*j),p.split("#t=").pop()){let t=p.split("#t=").pop();t&&(e=parseInt(t.split(",")[0]))}let n=r.current;n.autoplay=!0,n.currentTime=e,setTimeout(()=>x(),1e3*t)},[j,p]);(0,a.useEffect)(()=>x(),[x]);let b=m(i,"".concat(g,",").concat(v),s);switch(d){case"Image":return(0,n.jsx)(h,{as:"img",alt:t,css:{width:g,height:v},src:b,...c},p);case"Video":return(0,n.jsx)(h,{as:"video",css:{width:g,height:v},disablePictureInPicture:!0,loop:!0,muted:!0,onPause:x,ref:r,src:p},p);default:return console.warn("Resource type: ".concat(d," is not valid or not yet supported in Primitives.")),(0,n.jsx)(n.Fragment,{})}};let g=(0,s.zo)("a",{});var v=e=>{let{children:t,homepage:r}=e,a=u(e,["children","homepage"]);return(0,n.jsx)(n.Fragment,{children:r&&r.map(e=>{let r=(0,l.M)(e.label,a.lang);return(0,n.jsx)(g,{"aria-label":t?r:void 0,href:e.id,...a,children:t||r},e.id)})})};let j={delimiter:", "},x=(0,a.createContext)(void 0),b=()=>{let e=(0,a.useContext)(x);if(void 0===e)throw Error("usePrimitivesContext must be used with a PrimitivesProvider");return e},y=e=>{let{children:t,initialState:r=j}=e,a=A(r,"delimiter");return(0,n.jsx)(x.Provider,{value:{delimiter:a},children:t})},A=(e,t)=>Object.hasOwn(e,t)?e[t].toString():void 0,M=(0,s.zo)("span",{}),w=e=>{var t;let{as:r,markup:a}=e,{delimiter:i}=b();if(!a)return(0,n.jsx)(n.Fragment,{});let s=u(e,["as","markup"]),c={__html:(t=(0,l.M)(a,s.lang,i),o()(t,{allowedAttributes:{a:["href"],img:["alt","src","height","width"]},allowedSchemes:["http","https","mailto"],allowedTags:["a","b","br","i","img","p","small","span","sub","sup"]}))};return(0,n.jsx)(M,{as:r,...s,dangerouslySetInnerHTML:c})};var E=e=>a.useContext(x)?(0,n.jsx)(w,{...e}):(0,n.jsx)(y,{children:(0,n.jsx)(w,{...e})}),R=e=>{let{as:t="dd",lang:r,value:a}=e;return(0,n.jsx)(E,{markup:a,as:t,lang:r})};let S=(0,s.zo)("span",{});var P=e=>{var t;let{as:r="dd",customValueContent:i,lang:o,value:u}=e,{delimiter:s}=b(),c=null===(t=(0,l.Y)(u,o))||void 0===t?void 0:t.map(e=>(0,a.cloneElement)(i,{value:e}));return(0,n.jsx)(S,{as:r,lang:o,children:null==c?void 0:c.map((e,t)=>[t>0&&"".concat(s),(0,n.jsx)(a.Fragment,{children:e},t)])})},O=e=>{var t;let{item:r,lang:a,customValueContent:i}=e,{label:o,value:u}=r,s=null===(t=(0,l.M)(o))||void 0===t?void 0:t.replace(" ","-").toLowerCase();return(0,n.jsxs)("div",{role:"group","data-label":s,children:[(0,n.jsx)(d,{as:"dt",label:o,lang:a}),i?(0,n.jsx)(P,{as:"dd",customValueContent:i,value:u,lang:a}):(0,n.jsx)(R,{as:"dd",value:u,lang:a})]})},k=r(3699);let C=(0,s.zo)("dl",{});var T=e=>{let{as:t,customValueContent:r,metadata:a}=e;if(!Array.isArray(a))return(0,n.jsx)(n.Fragment,{});let i=(0,k.KT)(e,"customValueDelimiter"),o=u(e,["as","customValueContent","customValueDelimiter","metadata"]);return(0,n.jsx)(y,{..."string"==typeof i?{initialState:{delimiter:i}}:void 0,children:a.length>0&&(0,n.jsx)(C,{as:t,...o,children:a.map((e,t)=>{let a=r?function(e,t){let r=t.filter(t=>{let{matchingLabel:r}=t,n=Object.keys(t.matchingLabel)[0],a=(0,l.M)(r,n);if((0,l.M)(e,n)===a)return!0}).map(e=>e.Content);if(Array.isArray(r))return r[0]}(e.label,r):void 0;return(0,n.jsx)(O,{customValueContent:a,item:e,lang:null==o?void 0:o.lang},t)})})})};let z=(0,s.zo)("li",{}),I=(0,s.zo)("ul",{});var _=e=>{let{as:t,partOf:r}=e,a=u(e,["as","partOf"]);return(0,n.jsx)(I,{as:t,children:r&&r.map(e=>{let t=e.label?(0,l.M)(e.label,a.lang):void 0;return(0,n.jsx)(z,{children:(0,n.jsx)("a",{href:e.id,...a,children:t||e.id})},e.id)})})};let V=(0,s.zo)("li",{}),D=(0,s.zo)("ul",{});var F=e=>{let{as:t,rendering:r}=e,a=u(e,["as","rendering"]);return(0,n.jsx)(D,{as:t,children:r&&r.map(e=>{let t=(0,l.M)(e.label,a.lang);return(0,n.jsx)(V,{children:(0,n.jsx)("a",{href:e.id,...a,target:"_blank",children:t||e.id})},e.id)})})};let L=(0,s.zo)("dl",{});var Z=e=>{let{as:t,requiredStatement:r}=e;if(!r)return(0,n.jsx)(n.Fragment,{});let a=(0,k.KT)(e,"customValueDelimiter"),l=u(e,["as","customValueDelimiter","requiredStatement"]);return(0,n.jsx)(y,{..."string"==typeof a?{initialState:{delimiter:a}}:void 0,children:(0,n.jsx)(L,{as:t,...l,children:(0,n.jsx)(O,{item:r,lang:l.lang})})})};let H=(0,s.zo)("li",{}),K=(0,s.zo)("ul",{});var N=e=>{let{as:t,seeAlso:r}=e,a=u(e,["as","seeAlso"]);return(0,n.jsx)(K,{as:t,children:r&&r.map(e=>{let t=(0,l.M)(e.label,a.lang);return(0,n.jsx)(H,{children:(0,n.jsx)("a",{href:e.id,...a,children:t||e.id})},e.id)})})},q=e=>{let{as:t,summary:r}=e,a=u(e,["as","customValueDelimiter","summary"]);return(0,n.jsx)(E,{as:t,markup:r,...a})},Y=e=>{let{thumbnail:t,region:r}=e,a=u(e,["thumbnail"]);return(0,n.jsx)(n.Fragment,{children:t&&t.map(e=>(0,n.jsx)(p,{contentResource:e,region:r,...a},e.id))})};let J=()=>(console.log("Use dot notation to access Primitives.*, ex: Primitives.Label"),null);J.ContentResource=p,J.Homepage=v,J.Label=d,J.Markup=E,J.Metadata=T,J.MetadataItem=O,J.PartOf=_,J.Rendering=F,J.RequiredStatement=Z,J.SeeAlso=N,J.Summary=q,J.Thumbnail=Y,J.Value=R},323:function(e,t,r){"use strict";r.d(t,{M:function(){return a},Y:function(){return n}});let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";if(!e)return null;if("string"==typeof e)return[e];if(!e[t]){let t=Object.getOwnPropertyNames(e);if(t.length>0)return e[t[0]]}return e[t]&&Array.isArray(e[t])?e[t]:null},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ",a=n(e,t);return Array.isArray(a)?a.join("".concat(r)):a}},3699:function(e,t,r){"use strict";r.d(t,{KT:function(){return o},RH:function(){return l},rJ:function(){return a},un:function(){return i}});let n=e=>{let t=e.toString().split(":"),r=Math.ceil(parseInt(t[0])),n=Math.ceil(parseInt(t[1])),a=u(Math.ceil(parseInt(t[2])),2),l=0!==r&&n<10?(n+"").padStart(2,"0"):n,i="".concat(l,":").concat(a);return 0!==r&&(i="".concat(r,":").concat(i)),i},a=e=>n(new Date(1e3*e).toISOString().substr(11,8)),l=(e,t)=>{if("object"!=typeof e||null===e)return t;for(let r in t)"object"!=typeof t[r]||null===t[r]||Array.isArray(t[r])?e[r]=t[r]:(e[r]||(e[r]={}),e[r]=l(e[r],t[r]));return e},i=e=>e.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0),o=(e,t)=>Object.hasOwn(e,t)?e[t].toString():void 0,u=(e,t)=>String(e).padStart(t,"0")},8181:function(){},5252:function(){},9674:function(){},462:function(){}}]); \ No newline at end of file diff --git a/_next/static/chunks/565.fce6eb7fecea6f4d.js b/_next/static/chunks/565.fce6eb7fecea6f4d.js new file mode 100644 index 000000000..1b1e56d05 --- /dev/null +++ b/_next/static/chunks/565.fce6eb7fecea6f4d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[565],{7304:function(e,t,o){o.d(t,{c:function(){return n}});let n=(0,o(4601).zo)("button",{display:"flex",height:"2rem",width:"2rem",borderRadius:"2rem",padding:"0",margin:"0",fontFamily:"inherit",background:"none",backgroundColor:"$primary",border:"none",color:"white",cursor:"pointer",marginLeft:"0.618rem",filter:"drop-shadow(2px 2px 5px #0003)",transition:"$all",boxSizing:"content-box !important","&:first-child":{marginLeft:"0"},"@xs":{marginBottom:"0.618rem",marginLeft:"0","&:last-child":{marginBottom:"0"}},svg:{height:"60%",width:"60%",padding:"20%",fill:"$secondary",stroke:"$secondary",filter:"drop-shadow(2px 2px 5px #0003)",transition:"$all",boxSizing:"inherit"},"&:hover, &:focus":{backgroundColor:"$accent"},"&[data-button=rotate-right]":{"&:hover, &:focus":{svg:{rotate:"45deg"}}},"&[data-button=rotate-left]":{transform:"scaleX(-1)","&:hover, &:focus":{svg:{rotate:"45deg"}}},"&[data-button=reset]":{"&:hover, &:focus":{svg:{rotate:"-15deg"}}}})},4565:function(e,t,o){o.r(t),o.d(t,{default:function(){return L}});var n=o(2676),r=o(4957),i=o(7467),a=o(8685),l=o(4601);let s=(0,l.zo)("div",{position:"absolute !important",zIndex:"1",top:"1rem",left:"1rem",width:"161.8px",height:"100px",backgroundColor:"#000D",boxShadow:"5px 5px 5px #0002",borderRadius:"3px",".displayregion":{border:" 3px solid $accent !important",boxShadow:"0 0 3px #0006"},"@sm":{width:"123px",height:"76px"},"@xs":{width:"100px",height:"61.8px"}}),c=(0,l.zo)("div",{position:"relative",width:"100%",height:"100%",zIndex:"0"}),d=(0,l.zo)("div",{width:"100%",height:"100%",maxHeight:"100vh",background:"transparent",backgroundSize:"contain",color:"white",position:"relative",zIndex:"0",overflow:"hidden",variants:{hasNavigator:{true:{["".concat(s)]:{display:"block"}},false:{["".concat(s)]:{display:"none"}}}}});var u=o(9212),h=o.n(u),g=o(5271),v=o(2523),f=o(7304),p=e=>{let{className:t,id:o,label:r,children:i}=e,a=r.toLowerCase().replace(/\s/g,"-");return(0,n.jsx)(f.c,{id:o,className:t,"data-testid":"openseadragon-button","data-button":a,children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"".concat(o,"-svg-title"),"data-testid":"openseadragon-button-svg",focusable:"false",viewBox:"0 0 512 512",role:"img",children:[(0,n.jsx)("title",{id:"".concat(o,"-svg-title"),children:r}),i]})})};let m=(0,l.zo)("div",{position:"absolute",zIndex:"1",top:"1rem",right:"1rem",display:"flex","@xs":{flexDirection:"column",zIndex:"2"},variants:{hasPlaceholder:{true:{right:"3.618rem","@xs":{top:"3.618rem",right:"1rem"}},false:{right:"1rem","@xs":{top:"1rem",right:"1rem"}}}}}),w=()=>(0,n.jsx)("path",{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M256 112v288M400 256H112"}),x=()=>(0,n.jsx)("path",{strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M400 256H112"}),b=()=>(0,n.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320v112H320M421.8 421.77L304 304M80 192V80h112M90.2 90.23L208 208M320 80h112v112M421.77 90.2L304 208M192 432H80V320M90.23 421.8L208 304"}),y=()=>(0,n.jsx)("path",{d:"M448 440a16 16 0 01-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335 352.88 301 345.59 256 344.23V424a16 16 0 01-27 11.57l-176-168a16 16 0 010-23.14l176-168A16 16 0 01256 88v80.36c74.14 3.41 129.38 30.91 164.35 81.87C449.32 292.44 464 350.9 464 424a16 16 0 01-16 16z"}),S=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M400 148l-21.12-24.57A191.43 191.43 0 00240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 00181.07-128"}),(0,n.jsx)("path",{d:"M464 97.42V208a16 16 0 01-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"})]});var C=e=>{let{_cloverViewerHasPlaceholder:t,config:o}=e,{activeCanvas:r,plugins:i,vault:a}=(0,v.D1)(),l=a.get({id:r,type:"Canvas"});return(0,n.jsxs)(m,{"data-testid":"clover-iiif-image-openseadragon-controls",hasPlaceholder:t,children:[o.showZoomControl&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p,{id:o.zoomInButton,label:"zoom in",children:(0,n.jsx)(w,{})}),(0,n.jsx)(p,{id:o.zoomOutButton,label:"zoom out",children:(0,n.jsx)(x,{})})]}),o.showFullPageControl&&(0,n.jsx)(p,{id:o.fullPageButton,label:"full page",children:(0,n.jsx)(b,{})}),o.showRotationControl&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p,{id:o.rotateRightButton,label:"rotate right",children:(0,n.jsx)(S,{})}),(0,n.jsx)(p,{id:o.rotateLeftButton,label:"rotate left",children:(0,n.jsx)(S,{})})]}),o.showHomeControl&&(0,n.jsx)(p,{id:o.homeButton,label:"reset",children:(0,n.jsx)(y,{})}),i.filter(e=>{var t;return null===(t=e.imageViewer)||void 0===t?void 0:t.controls}).map((e,t)=>{var o,r,i,a;let s=null===(r=e.imageViewer)||void 0===r?void 0:null===(o=r.controls)||void 0===o?void 0:o.component;return(0,n.jsx)(s,{...null==e?void 0:null===(a=e.imageViewer)||void 0===a?void 0:null===(i=a.controls)||void 0===i?void 0:i.componentProps,canvas:l,useViewerDispatch:v.Cu,useViewerState:v.D1},t)})]})},j=o(9092),k=e=>{let{ariaLabel:t,config:o,uri:r,_cloverViewerHasPlaceholder:i,imageType:a,openSeadragonCallback:l}=e,[u,f]=(0,g.useState)(),[p,m]=(0,g.useState)(),w=(0,v.Cu)(),x=(0,g.useRef)(!1);return(0,g.useEffect)(()=>(x.current||(x.current=!0,p||m(h()(o))),()=>null==p?void 0:p.destroy()),[]),(0,g.useEffect)(()=>{p&&l&&l(p)},[p,l]),(0,g.useEffect)(()=>{p&&r!==u&&(null==p||p.forceRedraw(),f(r))},[p,u,r]),(0,g.useEffect)(()=>{if(u&&p)switch(a){case"simpleImage":null==p||p.addSimpleImage({url:u});break;case"tiledImage":(0,j.Er)(u).then(e=>{try{if(!e)throw Error("No tile source found for ".concat(u));null==p||p.addTiledImage({tileSource:e,success:()=>{"function"==typeof w&&w({type:"updateOSDImageLoaded",OSDImageLoaded:!0})}})}catch(e){console.error(e)}});break;default:null==p||p.close(),console.warn("Unable to render ".concat(u,' in OpenSeadragon as type: "').concat(a,'"'))}},[a,u]),(0,n.jsxs)(d,{className:"clover-iiif-image-openseadragon","data-testid":"clover-iiif-image-openseadragon","data-openseadragon-instance":o.id,hasNavigator:o.showNavigator,children:[(0,n.jsx)(C,{_cloverViewerHasPlaceholder:i,config:o}),o.showNavigator&&(0,n.jsx)(s,{id:o.navigatorId,"data-testid":"clover-iiif-image-openseadragon-navigator"}),(0,n.jsx)(c,{id:o.id,"data-testid":"clover-iiif-image-openseadragon-viewport",role:"img",...t&&{"aria-label":t}})]})},I=o(323),_=o(2950),L=e=>{let{_cloverViewerHasPlaceholder:t=!1,body:o,instanceId:l,isTiledImage:s=!1,label:c,src:d="",openSeadragonCallback:u,openSeadragonConfig:h={}}=e,g=l||(0,_.Z)(),v="string"==typeof c?c:(0,I.M)(c),f={id:"openseadragon-".concat(g),navigatorId:"openseadragon-navigator-".concat(g),loadTilesWithAjax:!0,fullPageButton:"fullPage-".concat(g),homeButton:"reset-".concat(g),rotateLeftButton:"rotateLeft-".concat(g),rotateRightButton:"rotateRight-".concat(g),zoomInButton:"zoomIn-".concat(g),zoomOutButton:"zoomOut-".concat(g),showNavigator:!0,showFullPageControl:!0,showHomeControl:!0,showRotationControl:!0,showZoomControl:!0,navigatorBorderColor:"transparent",gestureSettingsMouse:{clickToZoom:!0,dblClickToZoom:!0,pinchToZoom:!0,scrollToZoom:!1},...h},{imageType:p,uri:m}=o?(0,r.z9)(o):(0,r.D1)(d,s);return m?(0,n.jsx)(i.SV,{FallbackComponent:a.Z,children:(0,n.jsx)(k,{_cloverViewerHasPlaceholder:t,ariaLabel:v,config:f,imageType:p,uri:m,openSeadragonCallback:u},g)}):null}},8685:function(e,t,o){o.d(t,{Z:function(){return s}});var n=o(2676),r=o(4601);let i=(0,r.zo)("div",{display:"flex",flexDirection:"column",alignItems:"center"}),a=(0,r.zo)("p",{fontWeight:"bold",fontSize:"x-large"}),l=(0,r.zo)("span",{fontSize:"medium"});o(5271);var s=e=>{let{error:t}=e,{message:o}=t;return(0,n.jsxs)(i,{role:"alert",children:[(0,n.jsx)(a,{"data-testid":"headline",children:"Something went wrong"}),o&&(0,n.jsxs)(l,{children:["Error message: ".concat(o)," "]})]})}},2523:function(e,t,o){o.d(t,{Cu:function(){return b},D1:function(){return x},MY:function(){return w},W2:function(){return v},as:function(){return h}});var n,r,i,a=o(2676),l=o(5271),s=o(4340),c=o(3699),d=o(2950);let u={annotationOverlays:{backgroundColor:"#6666ff",borderColor:"#000099",borderType:"solid",borderWidth:"1px",opacity:"0.5",renderOverlays:!0,zoomLevel:2},background:"transparent",canvasBackgroundColor:"#6662",canvasHeight:"500px",contentSearch:{searchResultsLimit:20,overlays:{backgroundColor:"#ff6666",borderColor:"#990000",borderType:"solid",borderWidth:"1px",opacity:"0.5",renderOverlays:!0,zoomLevel:4}},ignoreCaptionLabels:[],informationPanel:{vtt:{autoScroll:{enabled:!0,settings:{behavior:"smooth",block:"center"}}},open:!0,renderAbout:!0,renderSupplementing:!0,renderToggle:!0,renderAnnotation:!0,renderContentSearch:!0},openSeadragon:{},requestHeaders:{"Content-Type":"application/json"},showDownload:!0,showIIIFBadge:!0,showTitle:!0,withCredentials:!1,localeText:{contentSearch:{tabLabel:"Search Results",formPlaceholder:"Enter search words",noSearchResults:"No search results",loading:"Loading...",moreResults:"more results"}}};function h(e){let t={...u.informationPanel.vtt.autoScroll};return"object"==typeof e&&(t="enabled"in e?e:{enabled:!0,settings:e}),!1===e&&(t.enabled=!1),function(e){let{behavior:t,block:o}=e,n=["auto","instant","smooth"],r=["center","end","nearest","start"];if(!n.includes(t))throw TypeError("'".concat(t,"' not in ").concat(n.join(" | ")));if(!r.includes(o))throw TypeError("'".concat(o,"' not in ").concat(r.join(" | ")))}(t.settings),t}let g=h(null==u?void 0:null===(r=u.informationPanel)||void 0===r?void 0:null===(n=r.vtt)||void 0===n?void 0:n.autoScroll),v={activeCanvas:"",activeManifest:"",OSDImageLoaded:!1,collection:{},configOptions:u,customDisplays:[],plugins:[],isAutoScrollEnabled:g.enabled,isAutoScrolling:!1,isInformationOpen:null==u?void 0:null===(i=u.informationPanel)||void 0===i?void 0:i.open,isLoaded:!1,isUserScrolling:void 0,vault:new s.j,contentSearchVault:new s.j,openSeadragonViewer:null,viewerId:(0,d.Z)()},f=l.createContext(v),p=l.createContext(v);function m(e,t){switch(t.type){case"updateActiveCanvas":return t.canvasId||(t.canvasId=""),{...e,activeCanvas:t.canvasId};case"updateActiveManifest":return{...e,activeManifest:t.manifestId};case"updateOSDImageLoaded":return{...e,OSDImageLoaded:t.OSDImageLoaded};case"updateAutoScrollAnnotationEnabled":return{...e,isAutoScrollEnabled:t.isAutoScrollEnabled};case"updateAutoScrolling":return{...e,isAutoScrolling:t.isAutoScrolling};case"updateCollection":return{...e,collection:t.collection};case"updateConfigOptions":return{...e,configOptions:(0,c.RH)(e.configOptions,t.configOptions)};case"updateInformationOpen":return{...e,isInformationOpen:t.isInformationOpen};case"updateIsLoaded":return{...e,isLoaded:t.isLoaded};case"updateUserScrolling":return{...e,isUserScrolling:t.isUserScrolling};case"updateOpenSeadragonViewer":return{...e,openSeadragonViewer:t.openSeadragonViewer};case"updateViewerId":return{...e,viewerId:t.viewerId};default:throw Error("Unhandled action type: ".concat(t.type))}}let w=e=>{let{initialState:t=v,children:o}=e,[n,r]=(0,l.useReducer)(m,t);return(0,a.jsx)(f.Provider,{value:n,children:(0,a.jsx)(p.Provider,{value:r,children:o})})};function x(){let e=l.useContext(f);if(void 0===e)throw Error("useViewerState must be used within a ViewerProvider");return e}function b(){let e=l.useContext(p);if(void 0===e)throw Error("useViewerDispatch must be used within a ViewerProvider");return e}},3217:function(e,t,o){o.d(t,{LV:function(){return r},j9:function(){return n},ki:function(){return i}});let n=e=>["ar","fa","ur","ps","dv","sd","ug","ku","he","yi","jrb","jpr","nqo"].includes(e.split("-")[0])?"RTL":"LTR",r=e=>{let t={id:"string"==typeof e?e:e.source};if("string"==typeof e){if(e.includes("#xywh=")){let o=e.split("#xywh=");if(o&&o[1]){let[e,n,r,i]=o[1].split(",").map(e=>Number(e));t={id:o[0],rect:{x:e,y:n,w:r,h:i}}}}else if(e.includes("#t=")){let o=e.split("#t=");o&&o[1]&&(t={id:o[0],t:o[1]})}}else if("object"==typeof e){var o,n,r,i,a;if((null===(o=e.selector)||void 0===o?void 0:o.type)==="PointSelector")t={id:e.source,point:{x:e.selector.x,y:e.selector.y}};else if((null===(n=e.selector)||void 0===n?void 0:n.type)==="SvgSelector")t={id:e.source,svg:e.selector.value};else if((null===(r=e.selector)||void 0===r?void 0:r.type)==="FragmentSelector"&&(null===(i=e.selector)||void 0===i?void 0:i.value.includes("xywh="))&&"Canvas"==e.source.type&&e.source.id){let o=null===(a=e.selector)||void 0===a?void 0:a.value.split("xywh=");if(o&&o[1]){let[n,r,i,a]=o[1].split(",").map(e=>Number(e));t={id:e.source.id,rect:{x:n,y:r,w:i,h:a}}}}}return t};function i(e){let t=new Set;return!function e(o){Array.isArray(o)?o.forEach(e):o&&"object"==typeof o&&(o.language&&t.add(o.language),Object.values(o).forEach(e))}(e),Array.from(t)}},9092:function(e,t,o){o.d(t,{AG:function(){return i},Er:function(){return r},FO:function(){return s},Mx:function(){return c},Vu:function(){return l}});var n=o(1858);let r=e=>fetch("".concat(e.replace(/\/$/,""),"/info.json")).then(e=>e.json()).then(e=>e).catch(t=>{console.error("The IIIF tilesource ".concat(e.replace(/\/$/,""),"/info.json failed to load: ").concat(t))}),i=e=>{let t,o;return Array.isArray(e)&&(t=e[0])&&(o="@id"in t?t["@id"]:t.id),o},a=e=>{let t,o;if(d(e))t=e,o={};else{let i=JSON.parse((0,n.o0)(e));switch(null==i?void 0:i.type){case"SpecificResource":case"Range":case"Annotation":o={manifest:t=null==i?void 0:i.target.partOf[0].id,canvas:null==i?void 0:i.target.id};break;case"Canvas":o={manifest:t=null==i?void 0:i.partOf[0].id,canvas:null==i?void 0:i.id};break;case"Manifest":var r;t=null==i?void 0:i.id,o={collection:null==i?void 0:null===(r=i.partOf[0])||void 0===r?void 0:r.id,manifest:null==i?void 0:i.id};break;case"Collection":o={collection:t=null==i?void 0:i.id}}}return{resourceId:t,active:o}},l=e=>{let{resourceId:t,active:o}=a(e);return o.collection||o.manifest||t},s=(e,t)=>{let o=t.items.map(e=>e.id),{active:n}=a(e),r=n.canvas;return o.includes(r)?r:o[0]},c=(e,t)=>{let{active:o}=a(e),n=o.manifest,r=t.items.filter(e=>"Manifest"===e.type).map(e=>e.id);return 0==r.length?null:r.includes(n)?n:r[0]},d=e=>{try{new URL(e)}catch(e){return!1}return!0}},4957:function(e,t,o){o.d(t,{LW:function(){return x},zG:function(){return g},$H:function(){return w},z9:function(){return f},D1:function(){return p},dH:function(){return m}});var n,r,i=o(9212),a=o.n(i);let l=window.OpenSeadragon;if(!l&&!(l=a()))throw Error("OpenSeadragon is missing.");let s="http://www.w3.org/2000/svg";l.Viewer&&(l.Viewer.prototype.svgOverlay=function(){return this._svgOverlayInfo||(this._svgOverlayInfo=new c(this)),this._svgOverlayInfo});let c=function(e){let t=this;this._viewer=e,this._containerWidth=0,this._containerHeight=0,this._svg=document.createElementNS(s,"svg"),this._svg.style.position="absolute",this._svg.style.left=0,this._svg.style.top=0,this._svg.style.width="100%",this._svg.style.height="100%",this._viewer.canvas.appendChild(this._svg),this._node=document.createElementNS(s,"g"),this._svg.appendChild(this._node),this._viewer.addHandler("animation",function(){t.resize()}),this._viewer.addHandler("open",function(){t.resize()}),this._viewer.addHandler("rotate",function(){t.resize()}),this._viewer.addHandler("flip",function(){t.resize()}),this._viewer.addHandler("resize",function(){t.resize()}),this.resize()};c.prototype={node:function(){return this._node},resize:function(){this._containerWidth!==this._viewer.container.clientWidth&&(this._containerWidth=this._viewer.container.clientWidth,this._svg.setAttribute("width",this._containerWidth)),this._containerHeight!==this._viewer.container.clientHeight&&(this._containerHeight=this._viewer.container.clientHeight,this._svg.setAttribute("height",this._containerHeight));let e=this._viewer.viewport.pixelFromPoint(new l.Point(0,0),!0),t=this._viewer.viewport.getZoom(!0),o=this._viewer.viewport.getRotation(),n=this._viewer.viewport.getFlip(),r=this._viewer.viewport._containerInnerSize.x,i=r*t,a=i;n&&(i=-i,e.x=-e.x+r),this._node.setAttribute("transform","translate("+e.x+","+e.y+") scale("+i+","+a+") rotate("+o+")")},onClick:function(e,t){new l.MouseTracker({element:e,clickHandler:t}).setTracking(!0)}};let d=e=>new c(e);var u=o(3217),h=o(9092);function g(e,t,o,n,r){if(!e)return;let i=1/t.width;n.forEach(t=>{if(!t.target)return;let{point:n,rect:l,svg:s}=(0,u.LV)(t.target);if(l){let{x:t,y:n,w:s,h:c}=l;!function(e,t,o,n,r,i,l){let s=new(a()).Rect(t,o,n,r),c=document.createElement("div");if(i){let{backgroundColor:e,opacity:t,borderType:o,borderColor:n,borderWidth:r}=i;c.style.backgroundColor=e,c.style.opacity=t,c.style.border="".concat(o," ").concat(r," ").concat(n),c.className=l}e.addOverlay(c,s)}(e,t*i,n*i,s*i,c*i,o,r)}if(n){let{x:t,y:a}=n;v(e,'\n \n \n \n '),o,i,r)}s&&v(e,s,o,i,r)})}function v(e,t,o,n,r){let i=function(e){if(!e)return null;let t=document.createElement("template");return t.innerHTML=e.trim(),t.content.children[0]}(t);if(i)for(let t of i.children)!function e(t,o,n,r,i){var a;if("#text"===o.nodeName)!o.textContent||o.textContent.includes("\n")||console.log("nodeName:",o.nodeName,", textContent:",o.textContent,", childNodes.length",o.childNodes.length);else{let l=function(e,t,o){let n=!1,r=!1,i=!1,a=!1,l=document.createElementNS("http://www.w3.org/2000/svg",e.nodeName);if(e.attributes.length>0)for(let t=0;t{e(t,o,n,r,i)})}}(e,t,o,n,r)}(n=r||(r={})).TiledImage="tiledImage",n.SimpleImage="simpleImage";let f=e=>{let t=Array.isArray(null==e?void 0:e.service)&&(null==e?void 0:e.service.length)>0;return{uri:t?(0,h.AG)(null==e?void 0:e.service):null==e?void 0:e.id,imageType:t?r.TiledImage:r.SimpleImage}},p=(e,t)=>({uri:e,imageType:t?r.TiledImage:r.SimpleImage});function m(e,t){if(!e)return;t.startsWith(".")||(t="."+t);let o=document.querySelectorAll(t);o&&o.forEach(t=>e.removeOverlay(t))}function w(e,t,o,n){let r=(0,u.LV)(o),{point:i,rect:l,svg:s}=r;if(i||l||s){let o=function(e,t,o){let n,r,i=40,l=40;t.rect&&(n=t.rect.x,r=t.rect.y,i=t.rect.w,l=t.rect.h),t.point&&(n=t.point.x,r=t.point.y),u.LV.svg;let s=1/e.width;return new(a()).Rect(n*s-i*s/2*(o-1),r*s-l*s/2*(o-1),i*s*o,l*s*o)}(n,r,t);null==e||e.viewport.fitBounds(o)}}function x(e,t,o,n,r){var i;if(!(null==t?void 0:t.items)||(null==t?void 0:t.items.length)===0)return;let a=[];t.items.forEach(t=>{let o=e.get(t.id);"string"==typeof o.target&&o.target.startsWith(n.id)&&a.push(o)}),o&&(null===(i=r.contentSearch)||void 0===i?void 0:i.overlays)&&g(o,n,r.contentSearch.overlays,a,"content-search-overlay")}}}]); \ No newline at end of file diff --git a/_next/static/chunks/580-95fb37128a90e563.js b/_next/static/chunks/580-95d74d97f924b199.js similarity index 92% rename from _next/static/chunks/580-95fb37128a90e563.js rename to _next/static/chunks/580-95d74d97f924b199.js index 1e3e24d6f..2cdb5949e 100644 --- a/_next/static/chunks/580-95fb37128a90e563.js +++ b/_next/static/chunks/580-95d74d97f924b199.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[580],{2454:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function s(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=n;var c,u,h=Array.isArray(r);return h!==Array.isArray(e)?n(r,l):h?l.arrayMerge(e,r,l):(u={},(c=l).isMergeableObject(e)&&s(e).forEach(function(t){u[t]=n(e[t],c)}),s(r).forEach(function(t){(!o(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(o(e,t)&&c.isMergeableObject(r[t])?u[t]=(function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a})(t,c)(e[t],r[t],c):u[t]=n(r[t],c))}),u)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return a(e,r,t)},{})},e.exports=a},3899:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(e){return[e.toLowerCase(),e]})),t.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(e){return[e.toLowerCase(),e]}))},4176:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r");case a.Comment:return"");case a.CDATA:return"");case a.Script:case a.Style:case a.Tag:return function(e,t){"foreign"===t.xmlMode&&(e.name=null!==(r=c.elementNames.get(e.name))&&void 0!==r?r:e.name,e.parent&&f.has(e.parent.name)&&(t=n(n({},t),{xmlMode:!1}))),!t.xmlMode&&m.has(e.name)&&(t=n(n({},t),{xmlMode:"foreign"}));var r,i="<".concat(e.name),s=function(e,t){if(e){var r,n=(null!==(r=t.encodeEntities)&&void 0!==r?r:t.decodeEntities)===!1?h:t.xmlMode||"utf8"!==t.encodeEntities?l.encodeXML:l.escapeAttribute;return Object.keys(e).map(function(r){var i,s,o=null!==(i=e[r])&&void 0!==i?i:"";return("foreign"===t.xmlMode&&(r=null!==(s=c.attributeNames.get(r))&&void 0!==s?s:r),t.emptyAttrs||t.xmlMode||""!==o)?"".concat(r,'="').concat(n(o),'"'):r}).join(" ")}}(e.attribs,t);return s&&(i+=" ".concat(s)),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&d.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=p(e.children,t)),(t.xmlMode||!d.has(e.name))&&(i+=""))),i}(e,t);case a.Text:return function(e,t){var r,n=e.data||"";return(null!==(r=t.encodeEntities)&&void 0!==r?r:t.decodeEntities)===!1||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(n=t.xmlMode||"utf8"!==t.encodeEntities?(0,l.encodeXML)(n):(0,l.escapeText)(n)),n}(e,t)}}(r[s],t);return i}t.render=p,t.default=p;var f=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},3706:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(n=r=t.ElementType||(t.ElementType={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},1612:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var s=r(3706),o=r(4409);i(r(4409),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,r){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?s.ElementType.Tag:void 0,n=new o.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===s.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new o.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===s.ElementType.Comment){this.lastNode.data+=e;return}var t=new o.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new o.Text(""),t=new o.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new o.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},4409:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=d;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=f;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?o.ElementType.Script:"style"===t?o.ElementType.Style:o.ElementType.Tag);var s=e.call(this,n)||this;return s.name=t,s.attribs=r,s.type=i,s}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}})},enumerable:!1,configurable:!0}),t}(d);function g(e){return(0,o.isTag)(e)}function b(e){return e.type===o.ElementType.CDATA}function y(e){return e.type===o.ElementType.Text}function v(e){return e.type===o.ElementType.Comment}function w(e){return e.type===o.ElementType.Directive}function x(e){return e.type===o.ElementType.Root}function S(e,t){if(void 0===t&&(t=!1),y(e))r=new c(e.data);else if(v(e))r=new u(e.data);else if(g(e)){var r,n=t?E(e.children):[],i=new m(e.name,s({},e.attribs),n);n.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=s({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=s({},e["x-attribsPrefix"])),r=i}else if(b(e)){var n=t?E(e.children):[],o=new p(n);n.forEach(function(e){return e.parent=o}),r=o}else if(x(e)){var n=t?E(e.children):[],a=new f(n);n.forEach(function(e){return e.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(w(e)){var l=new h(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}else throw Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function E(e){for(var t=e.map(function(e){return S(e,!0)}),r=1;ru.indexOf(d)?c===t?i.FOLLOWING|i.CONTAINED_BY:i.FOLLOWING:c===e?i.PRECEDING|i.CONTAINS:i.PRECEDING}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e},(n=i=t.DocumentPosition||(t.DocumentPosition={}))[n.DISCONNECTED=1]="DISCONNECTED",n[n.PRECEDING=2]="PRECEDING",n[n.FOLLOWING=4]="FOLLOWING",n[n.CONTAINS=8]="CONTAINS",n[n.CONTAINED_BY=16]="CONTAINED_BY",t.compareDocumentPosition=o,t.uniqueSort=function(e){return(e=e.filter(function(e,t,r){return!r.includes(e,t+1)})).sort(function(e,t){var r=o(e,t);return r&i.PRECEDING?-1:r&i.FOLLOWING?1:0}),e}},6747:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(r(1382),t),i(r(4737),t),i(r(4296),t),i(r(6215),t),i(r(4936),t),i(r(3977),t),i(r(927),t);var s=r(1612);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return s.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return s.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return s.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return s.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return s.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return s.hasChildren}})},4936:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var n=r(1612),i=r(6215),s={tag_name:function(e){return"function"==typeof e?function(t){return(0,n.isTag)(t)&&e(t.name)}:"*"===e?n.isTag:function(t){return(0,n.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,n.isText)(t)&&e(t.data)}:function(t){return(0,n.isText)(t)&&t.data===e}}};function o(e,t){return"function"==typeof t?function(r){return(0,n.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,n.isTag)(r)&&r.attribs[e]===t}}function a(e,t){return function(r){return e(r)||t(r)}}function l(e){var t=Object.keys(e).map(function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(s,t)?s[t](r):o(t,r)});return 0===t.length?null:t.reduce(a)}t.testElement=function(e,t){var r=l(e);return!r||r(t)},t.getElements=function(e,t,r,n){void 0===n&&(n=1/0);var s=l(e);return s?(0,i.filter)(s,t,r,n):[]},t.getElementById=function(e,t,r){return void 0===r&&(r=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(o("id",e),t,r)},t.getElementsByTagName=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(s.tag_name(e),t,r,n)},t.getElementsByTagType=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(s.tag_type(e),t,r,n)}},4296:function(e,t){"use strict";function r(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=r,t.replaceElement=function(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var s=i.children;s[s.lastIndexOf(e)]=t,e.parent=null}},t.appendChild=function(e,t){if(r(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},t.append=function(e,t){r(t);var n=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=n,i){if(i.prev=t,n){var s=n.children;s.splice(s.lastIndexOf(i),0,t)}}else n&&n.children.push(t)},t.prependChild=function(e,t){if(r(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},t.prepend=function(e,t){r(t);var n=e.parent;if(n){var i=n.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},6215:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var n=r(1612);function i(e,t,r,i){for(var s=[],o=[t],a=[0];;){if(a[0]>=o[0].length){if(1===a.length)return s;o.shift(),a.shift();continue}var l=o[0][a[0]++];if(e(l)&&(s.push(l),--i<=0))return s;r&&(0,n.hasChildren)(l)&&l.children.length>0&&(a.unshift(0),o.unshift(l.children))}}t.filter=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),i(e,Array.isArray(t)?t:[t],r,n)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,r,i){void 0===i&&(i=!0);for(var s=null,o=0;o0&&(s=e(t,a.children,!0)))}return s},t.existsOne=function e(t,r){return r.some(function(r){return(0,n.isTag)(r)&&(t(r)||e(t,r.children))})},t.findAll=function(e,t){for(var r=[],i=[t],s=[0];;){if(s[0]>=i[0].length){if(1===i.length)return r;i.shift(),s.shift();continue}var o=i[0][s[0]++];(0,n.isTag)(o)&&(e(o)&&r.push(o),o.children.length>0&&(s.unshift(0),i.unshift(o.children)))}}},1382:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=r(1612),s=n(r(4176)),o=r(3706);function a(e,t){return(0,s.default)(e,t)}t.getOuterHTML=a,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map(function(e){return a(e,t)}).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===o.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},4737:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var n=r(1612);function i(e){return(0,n.hasChildren)(e)?e.children:[]}function s(e){return e.parent||null}t.getChildren=i,t.getParent=s,t.getSiblings=function(e){var t=s(e);if(null!=t)return i(t);for(var r=[e],n=e.prev,o=e.next;null!=n;)r.unshift(n),n=n.prev;for(;null!=o;)r.push(o),o=o.next;return r},t.getAttributeValue=function(e,t){var r;return null===(r=e.attribs)||void 0===r?void 0:r[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,n.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,n.isTag)(t);)t=t.prev;return t}},8655:function(e,t,r){"use strict";var n,i,s,o,a,l,c,u,h=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),d=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&h(t,e,r);return d(t,e),t},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var m=f(r(9737));t.htmlDecodeTree=m.default;var g=f(r(3803));t.xmlDecodeTree=g.default;var b=p(r(698));t.decodeCodePoint=b.default;var y=r(698);function v(e){return e>=a.ZERO&&e<=a.NINE}Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return y.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return y.fromCodePoint}}),(n=a||(a={}))[n.NUM=35]="NUM",n[n.SEMI=59]="SEMI",n[n.EQUALS=61]="EQUALS",n[n.ZERO=48]="ZERO",n[n.NINE=57]="NINE",n[n.LOWER_A=97]="LOWER_A",n[n.LOWER_F=102]="LOWER_F",n[n.LOWER_X=120]="LOWER_X",n[n.LOWER_Z=122]="LOWER_Z",n[n.UPPER_A=65]="UPPER_A",n[n.UPPER_F=70]="UPPER_F",n[n.UPPER_Z=90]="UPPER_Z",(i=l=t.BinTrieFlags||(t.BinTrieFlags={}))[i.VALUE_LENGTH=49152]="VALUE_LENGTH",i[i.BRANCH_LENGTH=16256]="BRANCH_LENGTH",i[i.JUMP_TABLE=127]="JUMP_TABLE",(s=c||(c={}))[s.EntityStart=0]="EntityStart",s[s.NumericStart=1]="NumericStart",s[s.NumericDecimal=2]="NumericDecimal",s[s.NumericHex=3]="NumericHex",s[s.NamedEntity=4]="NamedEntity",(o=u=t.DecodingMode||(t.DecodingMode={}))[o.Legacy=0]="Legacy",o[o.Strict=1]="Strict",o[o.Attribute=2]="Attribute";var w=function(){function e(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=c.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=u.Strict}return e.prototype.startEntity=function(e){this.decodeMode=e,this.state=c.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(e,t){switch(this.state){case c.EntityStart:if(e.charCodeAt(t)===a.NUM)return this.state=c.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=c.NamedEntity,this.stateNamedEntity(e,t);case c.NumericStart:return this.stateNumericStart(e,t);case c.NumericDecimal:return this.stateNumericDecimal(e,t);case c.NumericHex:return this.stateNumericHex(e,t);case c.NamedEntity:return this.stateNamedEntity(e,t)}},e.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===a.LOWER_X?(this.state=c.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=c.NumericDecimal,this.stateNumericDecimal(e,t))},e.prototype.addToNumericResult=function(e,t,r,n){if(t!==r){var i=r-t;this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}},e.prototype.stateNumericHex=function(e,t){for(var r=t;t=a.UPPER_A)||!(n<=a.UPPER_F))&&(!(n>=a.LOWER_A)||!(n<=a.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,r,t,16),-1},e.prototype.stateNumericDecimal=function(e,t){for(var r=t;t>14;t=a.UPPER_A&&t<=a.UPPER_Z||t>=a.LOWER_A&&t<=a.LOWER_Z||v(t)}(s))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((n=r[this.treeIndex])&l.VALUE_LENGTH)>>14)){if(s===a.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==u.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1},e.prototype.emitNotTerminatedNamedEntity=function(){var e,t=this.result,r=(this.decodeTree[t]&l.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(e,t,r){var n=this.decodeTree;return this.emitCodePoint(1===t?n[e]&~l.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r},e.prototype.end=function(){var e;switch(this.state){case c.NamedEntity:return 0!==this.result&&(this.decodeMode!==u.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case c.NumericDecimal:return this.emitNumericEntity(0,2);case c.NumericHex:return this.emitNumericEntity(0,3);case c.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case c.EntityStart:return 0}},e}();function x(e){var t="",r=new w(e,function(e){return t+=(0,b.fromCodePoint)(e)});return function(e,n){for(var i=0,s=0;(s=e.indexOf("&",s))>=0;){t+=e.slice(i,s),r.startEntity(n);var o=r.write(e,s+1);if(o<0){i=s+r.end();break}i=s+o,s=0===o?i+1:i}var a=t+e.slice(i);return t="",a}}function S(e,t,r,n){var i=(t&l.BRANCH_LENGTH)>>7,s=t&l.JUMP_TABLE;if(0===i)return 0!==s&&n===s?r:-1;if(s){var o=n-s;return o<0||o>=i?-1:e[r+o]-1}for(var a=r,c=a+i-1;a<=c;){var u=a+c>>>1,h=e[u];if(hn))return e[u+i];c=u-1}}return -1}t.EntityDecoder=w,t.determineBranch=S;var E=x(m.default),T=x(g.default);t.decodeHTML=function(e,t){return void 0===t&&(t=u.Legacy),E(e,t)},t.decodeHTMLAttribute=function(e){return E(e,u.Attribute)},t.decodeHTMLStrict=function(e){return E(e,u.Strict)},t.decodeXML=function(e){return T(e,u.Strict)}},698:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r,n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=n.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(r=String.fromCodePoint)&&void 0!==r?r:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},t.replaceCodePoint=i,t.default=function(e){return(0,t.fromCodePoint)(i(e))}},3819:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeNonAsciiHTML=t.encodeHTML=void 0;var i=n(r(490)),s=r(9912),o=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function a(e,t){for(var r,n="",o=0;null!==(r=e.exec(t));){var a=r.index;n+=t.substring(o,a);var l=t.charCodeAt(a),c=i.default.get(l);if("object"==typeof c){if(a+1$\x80-\uFFFF]/g;var r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function n(e){for(var n,i="",s=0;null!==(n=t.xmlReplacer.exec(e));){var o=n.index,a=e.charCodeAt(o),l=r.get(a);void 0!==l?(i+=e.substring(s,o)+l,s=o+1):(i+="".concat(e.substring(s,o),"&#x").concat((0,t.getCodePoint)(e,o).toString(16),";"),s=t.xmlReplacer.lastIndex+=Number((64512&a)==55296))}return i+e.substr(s)}function i(e,t){return function(r){for(var n,i=0,s="";n=e.exec(r);)i!==n.index&&(s+=r.substring(i,n.index)),s+=t.get(n[0].charCodeAt(0)),i=n.index+1;return s+r.substring(i)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=n,t.escape=n,t.escapeUTF8=i(/[&<>'"]/g,r),t.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},9737:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}))},3803:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}))},490:function(e,t){"use strict";function r(e){for(var t=1;t{if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},7198:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var o=s(r(7706)),a=r(8655),l=new Set(["input","option","optgroup","select","button","datalist","textarea"]),c=new Set(["p"]),u=new Set(["thead","tbody"]),h=new Set(["dd","dt"]),d=new Set(["rt","rp"]),p=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",c],["h1",c],["h2",c],["h3",c],["h4",c],["h5",c],["h6",c],["select",l],["input",l],["output",l],["button",l],["datalist",l],["textarea",l],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",h],["dt",h],["address",c],["article",c],["aside",c],["blockquote",c],["details",c],["div",c],["dl",c],["fieldset",c],["figcaption",c],["figure",c],["footer",c],["form",c],["header",c],["hr",c],["main",c],["nav",c],["ol",c],["pre",c],["section",c],["table",c],["ul",c],["rt",d],["rp",d],["tbody",u],["tfoot",u]]),f=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),m=new Set(["math","svg"]),g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),b=/\s|\//,y=function(){function e(e,t){var r,n,i,s,a;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(r=t.lowerCaseTags)&&void 0!==r?r:!t.xmlMode,this.lowerCaseAttributeNames=null!==(n=t.lowerCaseAttributeNames)&&void 0!==n?n:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:o.default)(this.options,this),null===(a=(s=this.cbs).onparserinit)||void 0===a||a.call(s,this)}return e.prototype.ontext=function(e,t){var r,n,i=this.getSlice(e,t);this.endIndex=t-1,null===(n=(r=this.cbs).ontext)||void 0===n||n.call(r,i),this.startIndex=t},e.prototype.ontextentity=function(e){var t,r,n=this.tokenizer.getSectionStart();this.endIndex=n-1,null===(r=(t=this.cbs).ontext)||void 0===r||r.call(t,(0,a.fromCodePoint)(e)),this.startIndex=n},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&f.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)},e.prototype.emitOpenTag=function(e){this.openTagStart=this.startIndex,this.tagname=e;var t,r,n,i,s=!this.options.xmlMode&&p.get(e);if(s)for(;this.stack.length>0&&s.has(this.stack[this.stack.length-1]);){var o=this.stack.pop();null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,o,!0)}!this.isVoidElement(e)&&(this.stack.push(e),m.has(e)?this.foreignContext.push(!0):g.has(e)&&this.foreignContext.push(!1)),null===(i=(n=this.cbs).onopentagname)||void 0===i||i.call(n,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&(null===(r=(t=this.cbs).onopentag)||void 0===r||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){this.endIndex=t;var r,n,i,s,o,a,l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(m.has(l)||g.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))this.options.xmlMode||"br"!==l||(null===(n=(r=this.cbs).onopentagname)||void 0===n||n.call(r,"br"),null===(s=(i=this.cbs).onopentag)||void 0===s||s.call(i,"br",{},!0),null===(a=(o=this.cbs).onclosetag)||void 0===a||a.call(o,"br",!1));else{var c=this.stack.lastIndexOf(l);if(-1!==c){if(this.cbs.onclosetag)for(var u=this.stack.length-c;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=c}else this.options.xmlMode||"p"!==l||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,r,n=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===n&&(null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,n,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,a.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var r,n;this.endIndex=t,null===(n=(r=this.cbs).onattribute)||void 0===n||n.call(r,this.attribname,this.attribvalue,e===o.QuoteType.Double?'"':e===o.QuoteType.Single?"'":e===o.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(b),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var n=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(n),"!".concat(r))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var n=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(n),"?".concat(r))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,r){var n,i,s,o;this.endIndex=t,null===(i=(n=this.cbs).oncomment)||void 0===i||i.call(n,this.getSlice(e,t-r)),null===(o=(s=this.cbs).oncommentend)||void 0===o||o.call(s),this.startIndex=t+1},e.prototype.oncdata=function(e,t,r){this.endIndex=t;var n,i,s,o,a,l,c,u,h,d,p=this.getSlice(e,t-r);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(n=this.cbs).oncdatastart)||void 0===i||i.call(n),null===(o=(s=this.cbs).ontext)||void 0===o||o.call(s,p),null===(l=(a=this.cbs).oncdataend)||void 0===l||l.call(a)):(null===(u=(c=this.cbs).oncomment)||void 0===u||u.call(c,"[CDATA[".concat(p,"]]")),null===(d=(h=this.cbs).oncommentend)||void 0===d||d.call(h)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,r,n;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(n=(r=this.cbs).onparserinit)||void 0===n||n.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,r;if(this.ended){null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},e.prototype.end=function(e){var t,r;if(this.ended){null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex=o.Zero&&e<=o.Nine}(n=o||(o={}))[n.Tab=9]="Tab",n[n.NewLine=10]="NewLine",n[n.FormFeed=12]="FormFeed",n[n.CarriageReturn=13]="CarriageReturn",n[n.Space=32]="Space",n[n.ExclamationMark=33]="ExclamationMark",n[n.Number=35]="Number",n[n.Amp=38]="Amp",n[n.SingleQuote=39]="SingleQuote",n[n.DoubleQuote=34]="DoubleQuote",n[n.Dash=45]="Dash",n[n.Slash=47]="Slash",n[n.Zero=48]="Zero",n[n.Nine=57]="Nine",n[n.Semi=59]="Semi",n[n.Lt=60]="Lt",n[n.Eq=61]="Eq",n[n.Gt=62]="Gt",n[n.Questionmark=63]="Questionmark",n[n.UpperA=65]="UpperA",n[n.LowerA=97]="LowerA",n[n.UpperF=70]="UpperF",n[n.LowerF=102]="LowerF",n[n.UpperZ=90]="UpperZ",n[n.LowerZ=122]="LowerZ",n[n.LowerX=120]="LowerX",n[n.OpeningSquareBracket=91]="OpeningSquareBracket",(i=a||(a={}))[i.Text=1]="Text",i[i.BeforeTagName=2]="BeforeTagName",i[i.InTagName=3]="InTagName",i[i.InSelfClosingTag=4]="InSelfClosingTag",i[i.BeforeClosingTagName=5]="BeforeClosingTagName",i[i.InClosingTagName=6]="InClosingTagName",i[i.AfterClosingTagName=7]="AfterClosingTagName",i[i.BeforeAttributeName=8]="BeforeAttributeName",i[i.InAttributeName=9]="InAttributeName",i[i.AfterAttributeName=10]="AfterAttributeName",i[i.BeforeAttributeValue=11]="BeforeAttributeValue",i[i.InAttributeValueDq=12]="InAttributeValueDq",i[i.InAttributeValueSq=13]="InAttributeValueSq",i[i.InAttributeValueNq=14]="InAttributeValueNq",i[i.BeforeDeclaration=15]="BeforeDeclaration",i[i.InDeclaration=16]="InDeclaration",i[i.InProcessingInstruction=17]="InProcessingInstruction",i[i.BeforeComment=18]="BeforeComment",i[i.CDATASequence=19]="CDATASequence",i[i.InSpecialComment=20]="InSpecialComment",i[i.InCommentLike=21]="InCommentLike",i[i.BeforeSpecialS=22]="BeforeSpecialS",i[i.SpecialStartSequence=23]="SpecialStartSequence",i[i.InSpecialTag=24]="InSpecialTag",i[i.BeforeEntity=25]="BeforeEntity",i[i.BeforeNumericEntity=26]="BeforeNumericEntity",i[i.InNamedEntity=27]="InNamedEntity",i[i.InNumericEntity=28]="InNumericEntity",i[i.InHexEntity=29]="InHexEntity",(s=l=t.QuoteType||(t.QuoteType={}))[s.NoValue=0]="NoValue",s[s.Unquoted=1]="Unquoted",s[s.Single=2]="Single",s[s.Double=3]="Double";var p={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},f=function(){function e(e,t){var r=e.xmlMode,n=void 0!==r&&r,i=e.decodeEntities;this.cbs=t,this.state=a.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=a.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=n,this.decodeEntities=void 0===i||i,this.entityTrie=n?c.xmlDecodeTree:c.htmlDecodeTree}return e.prototype.reset=function(){this.state=a.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=a.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=a.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===o.Amp&&(this.state=a.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?h(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t){this.sequenceIndex++;return}}else this.isSpecial=!1;this.sequenceIndex=0,this.state=a.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===o.Gt||u(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart=o.LowerA&&e<=o.LowerZ||e>=o.UpperA&&e<=o.UpperZ},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=a.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===o.ExclamationMark)this.state=a.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===o.Questionmark)this.state=a.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var t=32|e;this.sectionStart=this.index,this.xmlMode||t!==p.TitleEnd[2]?this.state=this.xmlMode||t!==p.ScriptEnd[2]?a.InTagName:a.BeforeSpecialS:this.startSpecial(p.TitleEnd,3)}else e===o.Slash?this.state=a.BeforeClosingTagName:(this.state=a.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){h(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=a.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){u(e)||(e===o.Gt?this.state=a.Text:(this.state=this.isTagStartChar(e)?a.InClosingTagName:a.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===o.Gt||u(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=a.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===o.Gt||this.fastForwardTo(o.Gt))&&(this.state=a.Text,this.baseState=a.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===o.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=a.InSpecialTag,this.sequenceIndex=0):this.state=a.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===o.Slash?this.state=a.InSelfClosingTag:u(e)||(this.state=a.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===o.Gt?(this.cbs.onselfclosingtag(this.index),this.state=a.Text,this.baseState=a.Text,this.sectionStart=this.index+1,this.isSpecial=!1):u(e)||(this.state=a.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===o.Eq||h(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=a.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===o.Eq?this.state=a.BeforeAttributeValue:e===o.Slash||e===o.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=a.BeforeAttributeName,this.stateBeforeAttributeName(e)):u(e)||(this.cbs.onattribend(l.NoValue,this.index),this.state=a.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===o.DoubleQuote?(this.state=a.InAttributeValueDq,this.sectionStart=this.index+1):e===o.SingleQuote?(this.state=a.InAttributeValueSq,this.sectionStart=this.index+1):u(e)||(this.sectionStart=this.index,this.state=a.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===o.DoubleQuote?l.Double:l.Single,this.index),this.state=a.BeforeAttributeName):this.decodeEntities&&e===o.Amp&&(this.baseState=this.state,this.state=a.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,o.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,o.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){u(e)||e===o.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=a.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===o.Amp&&(this.baseState=this.state,this.state=a.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===o.OpeningSquareBracket?(this.state=a.CDATASequence,this.sequenceIndex=0):this.state=e===o.Dash?a.BeforeComment:a.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=a.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=a.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===o.Dash?(this.state=a.InCommentLike,this.currentSequence=p.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=a.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=a.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===p.ScriptEnd[3]?this.startSpecial(p.ScriptEnd,4):t===p.StyleEnd[3]?this.startSpecial(p.StyleEnd,4):(this.state=a.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===o.Number?this.state=a.BeforeNumericEntity:e===o.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=a.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,c.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&c.BinTrieFlags.VALUE_LENGTH;if(t){var r=(t>>14)-1;if(this.allowLegacyEntity()||e===o.Semi){var n=this.index-this.entityExcess+1;n>this.sectionStart&&this.emitPartial(this.sectionStart,n),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,0===r&&this.emitNamedEntity()}else this.trieIndex+=r}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&c.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~c.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===o.LowerX?(this.entityExcess++,this.state=a.InHexEntity):(this.state=a.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===a.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,c.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===o.Semi?this.emitNumericEntity(!0):d(e)?(this.entityResult=10*this.entityResult+(e-o.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===o.Semi?this.emitNumericEntity(!0):d(e)?(this.entityResult=16*this.entityResult+(e-o.Zero),this.entityExcess++):e>=o.UpperA&&e<=o.UpperF||e>=o.LowerA&&e<=o.LowerF?(this.entityResult=16*this.entityResult+((32|e)-o.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===a.Text||this.baseState===a.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===a.Text||this.state===a.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===a.InAttributeValueDq||this.state===a.InAttributeValueSq||this.state===a.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):u.pathname),"about:"===v.protocol&&"blank"===v.pathname&&(v.protocol="",v.pathname=""),w&&"/"!==e[0]&&(v.pathname=v.pathname.substr(1)),c&&!d.test(c)&&"/"!==e.slice(-1)&&"/"===v.pathname&&(v.pathname=""),v.path=v.pathname+v.search,v.auth=[u.username,u.password].map(decodeURIComponent).filter(Boolean).join(":"),v.port=u.port,y&&!v.host.endsWith(y)&&(v.host+=y,v.port=y.slice(1)),v.href=x?""+v.pathname+v.search+v.hash:n(v);var E=/^(file)/.test(v.href)?["host","hostname"]:[];return Object.keys(v).forEach(function(e){~E.indexOf(e)||(v[e]=v[e]||null)}),v}s.parse=b,s.format=n,s.resolve=u,s.resolveObject=function(e,t){return b(u(e,t))},s.Url=h}(),e.exports=s}()},8596:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var o=/\+/g;e=e.split(r);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var l=e.length;a>0&&l>a&&(l=a);for(var c=0;c=0?(u=f.substr(0,m),h=f.substr(m+1)):(u=f,h=""),d=decodeURIComponent(u),p=decodeURIComponent(h),Object.prototype.hasOwnProperty.call(s,d))?t(s[d])?s[d].push(p):s[d]=[s[d],p]:s[d]=p}return s};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,s,o,a){return(s=s||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var a=encodeURIComponent(t(i))+o;return r(e[i])?n(e[i],function(e){return a+encodeURIComponent(t(e))}).join(s):a+encodeURIComponent(t(e[i]))}).join(s):a?encodeURIComponent(t(a))+o+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n=l)return g;n=r(h),i=[],","===n.slice(-1)?(n=n.replace(d,""),b()):function(){for(r(c),s="",o="in descriptor";;){if(a=e.charAt(m),"in descriptor"===o){if(t(a))s&&(i.push(s),s="",o="after descriptor");else if(","===a){m+=1,s&&i.push(s),b();return}else if("("===a)s+=a,o="in parens";else if(""===a){s&&i.push(s),b();return}else s+=a}else if("in parens"===o){if(")"===a)s+=a,o="in descriptor";else if(""===a){i.push(s),b();return}else s+=a}else if("after descriptor"===o){if(t(a));else if(""===a){b();return}else o="in descriptor",m-=1}m+=1}}()}function b(){var t,r,s,o,a,l,c,u,h,d=!1,m={};for(o=0;oe[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>e.root().toProxy();if("nodes"===t)return e.nodes.map(e=>e.toProxy());if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();for(let t of(n=this.index(e),i))this.proxyOf.nodes.splice(n+1,0,t);for(let e in this.indexes)n<(r=this.indexes[e])&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),i=0===n&&"prepend",s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();for(let t of(n=this.index(e),s))this.proxyOf.nodes.splice(n,0,t);for(let e in this.indexes)n<=(r=this.indexes[e])&&(this.indexes[e]=r+s.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(i(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(let t of e=e.slice(0))t.parent&&t.parent.removeChild(t,"ignore");else if("root"===e.type&&"document"!==this.type)for(let t of e=e.nodes.slice(0))t.parent&&t.parent.removeChild(t,"ignore");else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector||e.selectors)e=[new o(e)];else if(e.name)e=[new n(e)];else if(e.text)e=[new a(e)];else throw Error("Unknown node type in node creation");return e.map(e=>(e[h]||d.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[u]&&function e(t){if(t[u]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(e),e.raws||(e.raws={}),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{(!t.props||t.props.includes(n.prop))&&(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}d.registerParse=e=>{i=e},d.registerRule=e=>{o=e},d.registerAtRule=e=>{n=e},d.registerRoot=e=>{s=e},e.exports=d,d.default=d,d.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,n.prototype):"rule"===e.type?Object.setPrototypeOf(e,o.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[h]=!0,e.nodes&&e.nodes.forEach(e=>{d.rebuild(e)})}},4968:function(e,t,r){"use strict";let n=r(4942),i=r(8181);class s extends Error{constructor(e,t,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=n.isColorSupported);let r=e=>e,s=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:a}=n.createColors(!0);s=t=>e(a(t)),r=e=>t(e),i&&(o=e=>i(e))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),u=String(c).length;return a.slice(l,c).map((e,t)=>{let n=l+1+t,i=" "+(" "+n).slice(-u)+" | ";if(n===this.line){if(e.length>160){let t=Math.max(0,this.column-20),n=Math.max(this.column+20,this.endColumn+20),a=e.slice(t,n),l=r(i.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g," ");return s(">")+r(i)+o(a)+"\n "+l+s("^")}let t=r(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+r(i)+o(e)+"\n "+t+s("^")}return" "+r(i)+o(e)}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=s,s.default=s},3368:function(e,t,r){"use strict";let n=r(3372);class i extends n{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},6414:function(e,t,r){"use strict";let n,i;let s=r(1708);class o extends s{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new n(new i,this,e).stringify()}}o.registerLazyResult=e=>{n=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o},4707:function(e,t,r){"use strict";let n=r(9271),i=r(2243),s=r(3368),o=r(1872),a=r(9828),l=r(610),c=r(2698);function u(e,t){if(Array.isArray(e))return e.map(e=>u(e));let{inputs:r,...h}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:o.prototype};r.map&&(r.map={...r.map,__proto__:a.prototype}),t.push(r)}if(h.nodes&&(h.nodes=e.nodes.map(e=>u(e,t))),h.source){let{inputId:e,...r}=h.source;h.source=r,null!=e&&(h.source.input=t[e])}if("root"===h.type)return new l(h);if("decl"===h.type)return new s(h);if("rule"===h.type)return new c(h);if("comment"===h.type)return new i(h);if("atrule"===h.type)return new n(h);throw Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},1872:function(e,t,r){"use strict";let{nanoid:n}=r(5185),{isAbsolute:i,resolve:s}=r(9674),{SourceMapConsumer:o,SourceMapGenerator:a}=r(462),{fileURLToPath:l,pathToFileURL:c}=r(1458),u=r(4968),h=r(9828),d=r(8181),p=Symbol("fromOffsetCache"),f=!!(o&&a),m=!!(s&&i);class g{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=s(t.from)),m&&f){let e=new h(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let i,s,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);s=e.line,i=e.col}else s=n.line,i=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,s,i);return(o=a?new u(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new u(e,void 0===s?t:{column:r,line:t},void 0===s?r:{column:i,line:s},this.css,this.file,n.plugin)).input={column:r,endColumn:i,endLine:s,line:t,source:this.css},this.file&&(c&&(o.input.url=c(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,r;if(this[p])r=this[p];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let n=0,i=e.length;n=t)n=r.length-1;else{let t,i=r.length-2;for(;n>1)])i=t-1;else if(e>=r[t+1])n=t+1;else{n=t;break}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:s(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){let s,o;if(!this.map)return!1;let a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof r&&(s=a.originalPositionFor({column:n,line:r})),o=i(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let h={column:u.column,endColumn:s&&s.column,endLine:s&&s.line,line:u.line,url:o.toString()};if("file:"===o.protocol){if(l)h.file=l(o);else throw Error("file: protocol is not available in this PostCSS build")}let d=a.sourceContentFor(u.source);return d&&(h.source=d),h}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=g,g.default=g,d&&d.registerInput&&d.registerInput(g)},9504:function(e,t,r){"use strict";let n=r(1708),i=r(6414),s=r(6940),o=r(9999),a=r(3230),l=r(610),c=r(3128),{isClean:u,my:h}=r(331);r(1867);let d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,r=d[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function b(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:g(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){return e[u]=!1,e.nodes&&e.nodes.forEach(e=>y(e)),e}let v={};class w{constructor(e,t,r){let i;if(this.stringified=!1,this.processed=!1,"object"==typeof t&&null!==t&&("root"===t.type||"document"===t.type))i=y(t);else if(t instanceof w||t instanceof a)i=y(t.root),t.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let e=o;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{i=e(t,r)}catch(e){this.processed=!0,this.error=e}i&&!i[h]&&n.rebuild(i)}this.result=new a(e,i,r),this.helpers={...v,postcss:v,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!p[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[r]){if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let e=this.visitTick(t);if(m(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(m(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new s(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(m(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];)e[u]=!0,this.walkSync(e);if(this.listeners.OnceExit){if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,n]of e){let e;this.result.lastPlugin=r;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent){e.pop();return}if(n.length>0&&t.visitorIndex{e[u]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}w.registerPostcss=e=>{v=e},e.exports=w,w.default=w,l.registerLazyResult(w),i.registerLazyResult(w)},6373:function(e){"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n"," "]),split(e,t,r){let n=[],i="",s=!1,o=0,a=!1,l="",c=!1;for(let r of e)c?c=!1:"\\"===r?c=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(s=!0),s?(""!==i&&n.push(i.trim()),i="",s=!1):i+=r;return(r||""!==i)&&n.push(i.trim()),n}};e.exports=t,t.default=t},6940:function(e,t,r){"use strict";var n=r(8965).Buffer;let{dirname:i,relative:s,resolve:o,sep:a}=r(9674),{SourceMapConsumer:l,SourceMapGenerator:c}=r(462),{pathToFileURL:u}=r(1458),h=r(1872),d=!!(l&&c),p=!!(i&&o&&s&&a);class f{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||i(e.file);!1===this.mapOpts.sourcesContent?(t=new l(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}}generate(){if(this.clearAnnotation(),p&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=c.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,t;this.css="",this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,n=1,i="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1):(s.source=i,s.original.line=1,s.original.column=0),this.map.addMapping(s)),(t=o.match(/\n/g))?(r+=t.length,e=o.lastIndexOf("\n"),n=o.length-e):n+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=n-2):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1),this.map.addMapping(s))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?i(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=i(o(r,this.mapOpts.annotation)));let n=s(r,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new h(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return n?n.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(u){let t=u(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===a&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}e.exports=f},8241:function(e,t,r){"use strict";let n=r(6940),i=r(9999),s=r(3230),o=r(3128);r(1867);class a{constructor(e,t,r){let i;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new s(this._processor,i,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new n(o,i,this._opts,t);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=i(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=a,a.default=a},3372:function(e,t,r){"use strict";let n=r(4968),i=r(7418),s=r(3128),{isClean:o,my:a}=r(331);function l(e,t){if(t&&void 0!==t.offset)return t.offset;let r=1,n=1,i=0;for(let s=0;se(t,n)):("object"===o&&null!==s&&(s=e(s)),n[i]=s)}return n}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new n(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markClean(){this[o]=!0}markDirty(){if(this[o]){this[o]=!1;let e=this;for(;e=e.parent;)e[o]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r=this.source.input.css.slice(l(this.source.input.css,this.source.start),l(this.source.input.css,this.source.end)).indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,n=l(this.source.input.css,this.source.start),i=n+e;for(let e=n;e"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof n&&n.toJSON)r[e]=n.toJSON(null,t);else if("source"===e){let s=t.get(n.input);null==s&&(s=i,t.set(n.input,i),i++),r[e]={end:n.end,inputId:s,start:n.start}}else r[e]=n}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=s){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}get proxyOf(){return this}}e.exports=c,c.default=c},9999:function(e,t,r){"use strict";let n=r(1708),i=r(1872),s=r(5958);function o(e,t){let r=new s(new i(e,t));try{r.parse()}catch(e){throw e}return r.root}e.exports=o,o.default=o,n.registerParse(o)},5958:function(e,t,r){"use strict";let n=r(9271),i=r(2243),s=r(3368),o=r(610),a=r(2698),l=r(7761),c={empty:!0,space:!0};class u{constructor(e){this.input=e,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,i,s=new n;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(i=l.length-1,r=l[i];r&&"space"===r[0];)r=l[--i];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(s.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(s,"params",l),o&&(e=l[l.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),a&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let n=0;for(let i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,n=0;for(let[i,s]of e.entries()){if("("===(r=s[0])&&(n+=1),")"===r&&(n-=1),0===n&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return i}this.doubleColon(s)}t=s}return!1}comment(e){let t=new i;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(e,t){let r,n,i=new s;this.init(i,e[0][2]);let o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let a=[];for(;e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){i.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(i.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),n="";for(let e=t;e>0;e--){let t=r[e][0];if(n.trim().startsWith("!")&&"space"!==t)break;n=r.pop()[1]+n}n.trim().startsWith("!")&&(i.important=!0,i.raws.important=n,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(i.raws.between+=a.map(e=>e[1]).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new a;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,i=null,s=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),s.push("("===r?")":"]");else if(o&&n&&"{"===r)i||(i=l),s.push("}");else if(0===s.length){if(";"===r){if(n){this.decl(a,o);return}break}if("{"===r){this.rule(a);return}if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(i),t&&n){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let i,s,o,a;let l=r.length,u="",h=!0;for(let e=0;ee+t[1],"");e.raws[t]={raw:n,value:u}}e[t]=u}rule(e){e.pop();let t=new a;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t;let r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let n=t;n(r||(r=s()),r)}),s.process=function(e,t,r){return S([s(r)]).process(e,t)},s},S.stringify=w,S.parse=m,S.fromJSON=u,S.list=p,S.comment=e=>new s(e),S.atRule=e=>new i(e),S.decl=e=>new l(e),S.rule=e=>new v(e),S.root=e=>new y(e),S.document=e=>new c(e),S.CssSyntaxError=a,S.Declaration=l,S.Container=o,S.Processor=g,S.Document=c,S.Comment=s,S.Warning=x,S.AtRule=i,S.Result=b,S.Input=h,S.Rule=v,S.Root=y,S.Node=f,d.registerPostcss(S),e.exports=S,S.default=S},9828:function(e,t,r){"use strict";var n=r(8965).Buffer;let{existsSync:i,readFileSync:s}=r(5252),{dirname:o,join:a}=r(9674),{SourceMapConsumer:l,SourceMapGenerator:c}=r(462);class u{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new l(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let r=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(r){var i;return i=e.substr(r[0].length),n?n.from(i,"base64").toString():window.atob(i)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=o(e),i(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof l)return c.fromSourceMap(t).toString();else if(t instanceof c)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=a(o(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=u,u.default=u},3500:function(e,t,r){"use strict";let n=r(6414),i=r(9504),s=r(8241),o=r(610);class a{constructor(e=[]){this.version="8.4.49",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new i(this,e,t):new s(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=a,a.default=a,o.registerProcessor(a),n.registerProcessor(a)},3230:function(e,t,r){"use strict";let n=r(4234);class i{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}e.exports=i,i.default=i},610:function(e,t,r){"use strict";let n,i;let s=r(1708);class o extends s{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of n)e.raws.before=t.raws.before}return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new n(new i,this,e).stringify()}}o.registerLazyResult=e=>{n=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o,s.registerRoot(o)},2698:function(e,t,r){"use strict";let n=r(1708),i=r(6373);class s extends n{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=s,s.default=s,n.registerRule(s)},7418:function(e){"use strict";let t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class r{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n{if(void 0!==(i=e.raws[r]))return!1})}return void 0===i&&(i=t[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=r,r.default=r},3128:function(e,t,r){"use strict";let n=r(7418);function i(e,t){new n(t).stringify(e)}e.exports=i,i.default=i},331:function(e){"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},7761:function(e){"use strict";let t=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,n=/.[\r\n"'(/\\]/,i=/[\da-f]/i;e.exports=function(e,s={}){let o,a,l,c,u,h,d,p,f,m,g=e.css.valueOf(),b=s.ignoreErrors,y=g.length,v=0,w=[],x=[];function S(t){throw e.error("Unclosed "+t,v)}return{back:function(e){x.push(e)},endOfFile:function(){return 0===x.length&&v>=y},nextToken:function(e){if(x.length)return x.pop();if(v>=y)return;let s=!!e&&e.ignoreUnclosed;switch(o=g.charCodeAt(v)){case 10:case 32:case 9:case 13:case 12:c=v;do c+=1,o=g.charCodeAt(c);while(32===o||10===o||9===o||13===o||12===o);h=["space",g.slice(v,c)],v=c-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(o);h=[e,e,v];break}case 40:if(m=w.length?w.pop()[1]:"",f=g.charCodeAt(v+1),"url"===m&&39!==f&&34!==f&&32!==f&&10!==f&&9!==f&&12!==f&&13!==f){c=v;do{if(d=!1,-1===(c=g.indexOf(")",c+1))){if(b||s){c=v;break}S("bracket")}for(p=c;92===g.charCodeAt(p-1);)p-=1,d=!d}while(d);h=["brackets",g.slice(v,c+1),v,c],v=c}else c=g.indexOf(")",v+1),a=g.slice(v,c+1),-1===c||n.test(a)?h=["(","(",v]:(h=["brackets",a,v,c],v=c);break;case 39:case 34:u=39===o?"'":'"',c=v;do{if(d=!1,-1===(c=g.indexOf(u,c+1))){if(b||s){c=v+1;break}S("string")}for(p=c;92===g.charCodeAt(p-1);)p-=1,d=!d}while(d);h=["string",g.slice(v,c+1),v,c],v=c;break;case 64:t.lastIndex=v+1,t.test(g),c=0===t.lastIndex?g.length-1:t.lastIndex-2,h=["at-word",g.slice(v,c+1),v,c],v=c;break;case 92:for(c=v,l=!0;92===g.charCodeAt(c+1);)c+=1,l=!l;if(o=g.charCodeAt(c+1),l&&47!==o&&32!==o&&10!==o&&9!==o&&13!==o&&12!==o&&(c+=1,i.test(g.charAt(c)))){for(;i.test(g.charAt(c+1));)c+=1;32===g.charCodeAt(c+1)&&(c+=1)}h=["word",g.slice(v,c+1),v,c],v=c;break;default:47===o&&42===g.charCodeAt(v+1)?(0===(c=g.indexOf("*/",v+2)+1)&&(b||s?c=g.length:S("comment")),h=["comment",g.slice(v,c+1),v,c]):(r.lastIndex=v+1,r.test(g),c=0===r.lastIndex?g.length-1:r.lastIndex-2,h=["word",g.slice(v,c+1),v,c],w.push(h)),v=c}return v++,h},position:function(){return v}}}},1867:function(e){"use strict";let t={};e.exports=function(e){!t[e]&&(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},4234:function(e){"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},2580:function(e,t,r){let n=r(439),i=r(3419),{isPlainObject:s}=r(3056),o=r(2454),a=r(9382),{parse:l}=r(7199),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function h(e,t){e&&Object.keys(e).forEach(function(r){t(e[r],r)})}function d(e,t){return({}).hasOwnProperty.call(e,t)}function p(e,t){let r=[];return h(e,function(e){t(e)&&r.push(e)}),r}e.exports=m;let f=/^[^\0\t\n\f\r /<=>]+$/;function m(e,t,r){let b,y,v,w,x,S,E,T,A;if(null==e)return"";"number"==typeof e&&(e=e.toString());let C="",O="";function k(e,t){let r=this;this.tag=e,this.attribs=t||{},this.tagPosition=C.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(x.length){let e=x[x.length-1];e.text+=r.text}},this.updateParentNodeMediaChildren=function(){x.length&&c.includes(this.tag)&&x[x.length-1].mediaChildren.push(this.tag)}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},g,t.parser);let I=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};u.forEach(function(e){I(e)&&!t.allowVulnerableTags&&console.warn(` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[580],{2454:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function s(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=n;var c,u,h=Array.isArray(r);return h!==Array.isArray(e)?n(r,l):h?l.arrayMerge(e,r,l):(u={},(c=l).isMergeableObject(e)&&s(e).forEach(function(t){u[t]=n(e[t],c)}),s(r).forEach(function(t){(!o(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(o(e,t)&&c.isMergeableObject(r[t])?u[t]=(function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a})(t,c)(e[t],r[t],c):u[t]=n(r[t],c))}),u)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return a(e,r,t)},{})},e.exports=a},3899:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(e){return[e.toLowerCase(),e]})),t.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(e){return[e.toLowerCase(),e]}))},4176:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r");case a.Comment:return"");case a.CDATA:return"");case a.Script:case a.Style:case a.Tag:return function(e,t){"foreign"===t.xmlMode&&(e.name=null!==(r=c.elementNames.get(e.name))&&void 0!==r?r:e.name,e.parent&&f.has(e.parent.name)&&(t=n(n({},t),{xmlMode:!1}))),!t.xmlMode&&m.has(e.name)&&(t=n(n({},t),{xmlMode:"foreign"}));var r,i="<".concat(e.name),s=function(e,t){if(e){var r,n=(null!==(r=t.encodeEntities)&&void 0!==r?r:t.decodeEntities)===!1?h:t.xmlMode||"utf8"!==t.encodeEntities?l.encodeXML:l.escapeAttribute;return Object.keys(e).map(function(r){var i,s,o=null!==(i=e[r])&&void 0!==i?i:"";return("foreign"===t.xmlMode&&(r=null!==(s=c.attributeNames.get(r))&&void 0!==s?s:r),t.emptyAttrs||t.xmlMode||""!==o)?"".concat(r,'="').concat(n(o),'"'):r}).join(" ")}}(e.attribs,t);return s&&(i+=" ".concat(s)),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&d.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=p(e.children,t)),(t.xmlMode||!d.has(e.name))&&(i+=""))),i}(e,t);case a.Text:return function(e,t){var r,n=e.data||"";return(null!==(r=t.encodeEntities)&&void 0!==r?r:t.decodeEntities)===!1||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(n=t.xmlMode||"utf8"!==t.encodeEntities?(0,l.encodeXML)(n):(0,l.escapeText)(n)),n}(e,t)}}(r[s],t);return i}t.render=p,t.default=p;var f=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},3706:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(n=r=t.ElementType||(t.ElementType={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},1612:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var s=r(3706),o=r(4409);i(r(4409),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,r){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?s.ElementType.Tag:void 0,n=new o.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===s.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new o.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===s.ElementType.Comment){this.lastNode.data+=e;return}var t=new o.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new o.Text(""),t=new o.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new o.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},4409:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=d;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=f;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?o.ElementType.Script:"style"===t?o.ElementType.Style:o.ElementType.Tag);var s=e.call(this,n)||this;return s.name=t,s.attribs=r,s.type=i,s}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}})},enumerable:!1,configurable:!0}),t}(d);function g(e){return(0,o.isTag)(e)}function b(e){return e.type===o.ElementType.CDATA}function y(e){return e.type===o.ElementType.Text}function v(e){return e.type===o.ElementType.Comment}function w(e){return e.type===o.ElementType.Directive}function x(e){return e.type===o.ElementType.Root}function S(e,t){if(void 0===t&&(t=!1),y(e))r=new c(e.data);else if(v(e))r=new u(e.data);else if(g(e)){var r,n=t?E(e.children):[],i=new m(e.name,s({},e.attribs),n);n.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=s({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=s({},e["x-attribsPrefix"])),r=i}else if(b(e)){var n=t?E(e.children):[],o=new p(n);n.forEach(function(e){return e.parent=o}),r=o}else if(x(e)){var n=t?E(e.children):[],a=new f(n);n.forEach(function(e){return e.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(w(e)){var l=new h(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}else throw Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function E(e){for(var t=e.map(function(e){return S(e,!0)}),r=1;ru.indexOf(d)?c===t?i.FOLLOWING|i.CONTAINED_BY:i.FOLLOWING:c===e?i.PRECEDING|i.CONTAINS:i.PRECEDING}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e},(n=i=t.DocumentPosition||(t.DocumentPosition={}))[n.DISCONNECTED=1]="DISCONNECTED",n[n.PRECEDING=2]="PRECEDING",n[n.FOLLOWING=4]="FOLLOWING",n[n.CONTAINS=8]="CONTAINS",n[n.CONTAINED_BY=16]="CONTAINED_BY",t.compareDocumentPosition=o,t.uniqueSort=function(e){return(e=e.filter(function(e,t,r){return!r.includes(e,t+1)})).sort(function(e,t){var r=o(e,t);return r&i.PRECEDING?-1:r&i.FOLLOWING?1:0}),e}},6747:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(r(1382),t),i(r(4737),t),i(r(4296),t),i(r(2182),t),i(r(4936),t),i(r(3977),t),i(r(927),t);var s=r(1612);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return s.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return s.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return s.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return s.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return s.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return s.hasChildren}})},4936:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var n=r(1612),i=r(2182),s={tag_name:function(e){return"function"==typeof e?function(t){return(0,n.isTag)(t)&&e(t.name)}:"*"===e?n.isTag:function(t){return(0,n.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,n.isText)(t)&&e(t.data)}:function(t){return(0,n.isText)(t)&&t.data===e}}};function o(e,t){return"function"==typeof t?function(r){return(0,n.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,n.isTag)(r)&&r.attribs[e]===t}}function a(e,t){return function(r){return e(r)||t(r)}}function l(e){var t=Object.keys(e).map(function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(s,t)?s[t](r):o(t,r)});return 0===t.length?null:t.reduce(a)}t.testElement=function(e,t){var r=l(e);return!r||r(t)},t.getElements=function(e,t,r,n){void 0===n&&(n=1/0);var s=l(e);return s?(0,i.filter)(s,t,r,n):[]},t.getElementById=function(e,t,r){return void 0===r&&(r=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(o("id",e),t,r)},t.getElementsByTagName=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(s.tag_name(e),t,r,n)},t.getElementsByTagType=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(s.tag_type(e),t,r,n)}},4296:function(e,t){"use strict";function r(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=r,t.replaceElement=function(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var s=i.children;s[s.lastIndexOf(e)]=t,e.parent=null}},t.appendChild=function(e,t){if(r(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},t.append=function(e,t){r(t);var n=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=n,i){if(i.prev=t,n){var s=n.children;s.splice(s.lastIndexOf(i),0,t)}}else n&&n.children.push(t)},t.prependChild=function(e,t){if(r(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},t.prepend=function(e,t){r(t);var n=e.parent;if(n){var i=n.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},2182:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var n=r(1612);function i(e,t,r,i){for(var s=[],o=[t],a=[0];;){if(a[0]>=o[0].length){if(1===a.length)return s;o.shift(),a.shift();continue}var l=o[0][a[0]++];if(e(l)&&(s.push(l),--i<=0))return s;r&&(0,n.hasChildren)(l)&&l.children.length>0&&(a.unshift(0),o.unshift(l.children))}}t.filter=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),i(e,Array.isArray(t)?t:[t],r,n)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,r,i){void 0===i&&(i=!0);for(var s=null,o=0;o0&&(s=e(t,a.children,!0)))}return s},t.existsOne=function e(t,r){return r.some(function(r){return(0,n.isTag)(r)&&(t(r)||e(t,r.children))})},t.findAll=function(e,t){for(var r=[],i=[t],s=[0];;){if(s[0]>=i[0].length){if(1===i.length)return r;i.shift(),s.shift();continue}var o=i[0][s[0]++];(0,n.isTag)(o)&&(e(o)&&r.push(o),o.children.length>0&&(s.unshift(0),i.unshift(o.children)))}}},1382:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=r(1612),s=n(r(4176)),o=r(3706);function a(e,t){return(0,s.default)(e,t)}t.getOuterHTML=a,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map(function(e){return a(e,t)}).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===o.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},4737:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var n=r(1612);function i(e){return(0,n.hasChildren)(e)?e.children:[]}function s(e){return e.parent||null}t.getChildren=i,t.getParent=s,t.getSiblings=function(e){var t=s(e);if(null!=t)return i(t);for(var r=[e],n=e.prev,o=e.next;null!=n;)r.unshift(n),n=n.prev;for(;null!=o;)r.push(o),o=o.next;return r},t.getAttributeValue=function(e,t){var r;return null===(r=e.attribs)||void 0===r?void 0:r[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,n.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,n.isTag)(t);)t=t.prev;return t}},8655:function(e,t,r){"use strict";var n,i,s,o,a,l,c,u,h=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),d=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&h(t,e,r);return d(t,e),t},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var m=f(r(9737));t.htmlDecodeTree=m.default;var g=f(r(3803));t.xmlDecodeTree=g.default;var b=p(r(698));t.decodeCodePoint=b.default;var y=r(698);function v(e){return e>=a.ZERO&&e<=a.NINE}Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return y.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return y.fromCodePoint}}),(n=a||(a={}))[n.NUM=35]="NUM",n[n.SEMI=59]="SEMI",n[n.EQUALS=61]="EQUALS",n[n.ZERO=48]="ZERO",n[n.NINE=57]="NINE",n[n.LOWER_A=97]="LOWER_A",n[n.LOWER_F=102]="LOWER_F",n[n.LOWER_X=120]="LOWER_X",n[n.LOWER_Z=122]="LOWER_Z",n[n.UPPER_A=65]="UPPER_A",n[n.UPPER_F=70]="UPPER_F",n[n.UPPER_Z=90]="UPPER_Z",(i=l=t.BinTrieFlags||(t.BinTrieFlags={}))[i.VALUE_LENGTH=49152]="VALUE_LENGTH",i[i.BRANCH_LENGTH=16256]="BRANCH_LENGTH",i[i.JUMP_TABLE=127]="JUMP_TABLE",(s=c||(c={}))[s.EntityStart=0]="EntityStart",s[s.NumericStart=1]="NumericStart",s[s.NumericDecimal=2]="NumericDecimal",s[s.NumericHex=3]="NumericHex",s[s.NamedEntity=4]="NamedEntity",(o=u=t.DecodingMode||(t.DecodingMode={}))[o.Legacy=0]="Legacy",o[o.Strict=1]="Strict",o[o.Attribute=2]="Attribute";var w=function(){function e(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=c.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=u.Strict}return e.prototype.startEntity=function(e){this.decodeMode=e,this.state=c.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(e,t){switch(this.state){case c.EntityStart:if(e.charCodeAt(t)===a.NUM)return this.state=c.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=c.NamedEntity,this.stateNamedEntity(e,t);case c.NumericStart:return this.stateNumericStart(e,t);case c.NumericDecimal:return this.stateNumericDecimal(e,t);case c.NumericHex:return this.stateNumericHex(e,t);case c.NamedEntity:return this.stateNamedEntity(e,t)}},e.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===a.LOWER_X?(this.state=c.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=c.NumericDecimal,this.stateNumericDecimal(e,t))},e.prototype.addToNumericResult=function(e,t,r,n){if(t!==r){var i=r-t;this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}},e.prototype.stateNumericHex=function(e,t){for(var r=t;t=a.UPPER_A)||!(n<=a.UPPER_F))&&(!(n>=a.LOWER_A)||!(n<=a.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,r,t,16),-1},e.prototype.stateNumericDecimal=function(e,t){for(var r=t;t>14;t=a.UPPER_A&&t<=a.UPPER_Z||t>=a.LOWER_A&&t<=a.LOWER_Z||v(t)}(s))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((n=r[this.treeIndex])&l.VALUE_LENGTH)>>14)){if(s===a.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==u.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1},e.prototype.emitNotTerminatedNamedEntity=function(){var e,t=this.result,r=(this.decodeTree[t]&l.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(e,t,r){var n=this.decodeTree;return this.emitCodePoint(1===t?n[e]&~l.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r},e.prototype.end=function(){var e;switch(this.state){case c.NamedEntity:return 0!==this.result&&(this.decodeMode!==u.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case c.NumericDecimal:return this.emitNumericEntity(0,2);case c.NumericHex:return this.emitNumericEntity(0,3);case c.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case c.EntityStart:return 0}},e}();function x(e){var t="",r=new w(e,function(e){return t+=(0,b.fromCodePoint)(e)});return function(e,n){for(var i=0,s=0;(s=e.indexOf("&",s))>=0;){t+=e.slice(i,s),r.startEntity(n);var o=r.write(e,s+1);if(o<0){i=s+r.end();break}i=s+o,s=0===o?i+1:i}var a=t+e.slice(i);return t="",a}}function S(e,t,r,n){var i=(t&l.BRANCH_LENGTH)>>7,s=t&l.JUMP_TABLE;if(0===i)return 0!==s&&n===s?r:-1;if(s){var o=n-s;return o<0||o>=i?-1:e[r+o]-1}for(var a=r,c=a+i-1;a<=c;){var u=a+c>>>1,h=e[u];if(hn))return e[u+i];c=u-1}}return -1}t.EntityDecoder=w,t.determineBranch=S;var E=x(m.default),T=x(g.default);t.decodeHTML=function(e,t){return void 0===t&&(t=u.Legacy),E(e,t)},t.decodeHTMLAttribute=function(e){return E(e,u.Attribute)},t.decodeHTMLStrict=function(e){return E(e,u.Strict)},t.decodeXML=function(e){return T(e,u.Strict)}},698:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r,n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=n.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(r=String.fromCodePoint)&&void 0!==r?r:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},t.replaceCodePoint=i,t.default=function(e){return(0,t.fromCodePoint)(i(e))}},3819:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeNonAsciiHTML=t.encodeHTML=void 0;var i=n(r(490)),s=r(9912),o=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function a(e,t){for(var r,n="",o=0;null!==(r=e.exec(t));){var a=r.index;n+=t.substring(o,a);var l=t.charCodeAt(a),c=i.default.get(l);if("object"==typeof c){if(a+1$\x80-\uFFFF]/g;var r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function n(e){for(var n,i="",s=0;null!==(n=t.xmlReplacer.exec(e));){var o=n.index,a=e.charCodeAt(o),l=r.get(a);void 0!==l?(i+=e.substring(s,o)+l,s=o+1):(i+="".concat(e.substring(s,o),"&#x").concat((0,t.getCodePoint)(e,o).toString(16),";"),s=t.xmlReplacer.lastIndex+=Number((64512&a)==55296))}return i+e.substr(s)}function i(e,t){return function(r){for(var n,i=0,s="";n=e.exec(r);)i!==n.index&&(s+=r.substring(i,n.index)),s+=t.get(n[0].charCodeAt(0)),i=n.index+1;return s+r.substring(i)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=n,t.escape=n,t.escapeUTF8=i(/[&<>'"]/g,r),t.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},9737:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}))},3803:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}))},490:function(e,t){"use strict";function r(e){for(var t=1;t{if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},7198:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var o=s(r(7706)),a=r(8655),l=new Set(["input","option","optgroup","select","button","datalist","textarea"]),c=new Set(["p"]),u=new Set(["thead","tbody"]),h=new Set(["dd","dt"]),d=new Set(["rt","rp"]),p=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",c],["h1",c],["h2",c],["h3",c],["h4",c],["h5",c],["h6",c],["select",l],["input",l],["output",l],["button",l],["datalist",l],["textarea",l],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",h],["dt",h],["address",c],["article",c],["aside",c],["blockquote",c],["details",c],["div",c],["dl",c],["fieldset",c],["figcaption",c],["figure",c],["footer",c],["form",c],["header",c],["hr",c],["main",c],["nav",c],["ol",c],["pre",c],["section",c],["table",c],["ul",c],["rt",d],["rp",d],["tbody",u],["tfoot",u]]),f=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),m=new Set(["math","svg"]),g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),b=/\s|\//,y=function(){function e(e,t){var r,n,i,s,a;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(r=t.lowerCaseTags)&&void 0!==r?r:!t.xmlMode,this.lowerCaseAttributeNames=null!==(n=t.lowerCaseAttributeNames)&&void 0!==n?n:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:o.default)(this.options,this),null===(a=(s=this.cbs).onparserinit)||void 0===a||a.call(s,this)}return e.prototype.ontext=function(e,t){var r,n,i=this.getSlice(e,t);this.endIndex=t-1,null===(n=(r=this.cbs).ontext)||void 0===n||n.call(r,i),this.startIndex=t},e.prototype.ontextentity=function(e){var t,r,n=this.tokenizer.getSectionStart();this.endIndex=n-1,null===(r=(t=this.cbs).ontext)||void 0===r||r.call(t,(0,a.fromCodePoint)(e)),this.startIndex=n},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&f.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)},e.prototype.emitOpenTag=function(e){this.openTagStart=this.startIndex,this.tagname=e;var t,r,n,i,s=!this.options.xmlMode&&p.get(e);if(s)for(;this.stack.length>0&&s.has(this.stack[this.stack.length-1]);){var o=this.stack.pop();null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,o,!0)}!this.isVoidElement(e)&&(this.stack.push(e),m.has(e)?this.foreignContext.push(!0):g.has(e)&&this.foreignContext.push(!1)),null===(i=(n=this.cbs).onopentagname)||void 0===i||i.call(n,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&(null===(r=(t=this.cbs).onopentag)||void 0===r||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){this.endIndex=t;var r,n,i,s,o,a,l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(m.has(l)||g.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))this.options.xmlMode||"br"!==l||(null===(n=(r=this.cbs).onopentagname)||void 0===n||n.call(r,"br"),null===(s=(i=this.cbs).onopentag)||void 0===s||s.call(i,"br",{},!0),null===(a=(o=this.cbs).onclosetag)||void 0===a||a.call(o,"br",!1));else{var c=this.stack.lastIndexOf(l);if(-1!==c){if(this.cbs.onclosetag)for(var u=this.stack.length-c;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=c}else this.options.xmlMode||"p"!==l||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,r,n=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===n&&(null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,n,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,a.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var r,n;this.endIndex=t,null===(n=(r=this.cbs).onattribute)||void 0===n||n.call(r,this.attribname,this.attribvalue,e===o.QuoteType.Double?'"':e===o.QuoteType.Single?"'":e===o.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(b),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var n=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(n),"!".concat(r))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var n=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(n),"?".concat(r))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,r){var n,i,s,o;this.endIndex=t,null===(i=(n=this.cbs).oncomment)||void 0===i||i.call(n,this.getSlice(e,t-r)),null===(o=(s=this.cbs).oncommentend)||void 0===o||o.call(s),this.startIndex=t+1},e.prototype.oncdata=function(e,t,r){this.endIndex=t;var n,i,s,o,a,l,c,u,h,d,p=this.getSlice(e,t-r);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(n=this.cbs).oncdatastart)||void 0===i||i.call(n),null===(o=(s=this.cbs).ontext)||void 0===o||o.call(s,p),null===(l=(a=this.cbs).oncdataend)||void 0===l||l.call(a)):(null===(u=(c=this.cbs).oncomment)||void 0===u||u.call(c,"[CDATA[".concat(p,"]]")),null===(d=(h=this.cbs).oncommentend)||void 0===d||d.call(h)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,r,n;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(n=(r=this.cbs).onparserinit)||void 0===n||n.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,r;if(this.ended){null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},e.prototype.end=function(e){var t,r;if(this.ended){null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex=o.Zero&&e<=o.Nine}(n=o||(o={}))[n.Tab=9]="Tab",n[n.NewLine=10]="NewLine",n[n.FormFeed=12]="FormFeed",n[n.CarriageReturn=13]="CarriageReturn",n[n.Space=32]="Space",n[n.ExclamationMark=33]="ExclamationMark",n[n.Number=35]="Number",n[n.Amp=38]="Amp",n[n.SingleQuote=39]="SingleQuote",n[n.DoubleQuote=34]="DoubleQuote",n[n.Dash=45]="Dash",n[n.Slash=47]="Slash",n[n.Zero=48]="Zero",n[n.Nine=57]="Nine",n[n.Semi=59]="Semi",n[n.Lt=60]="Lt",n[n.Eq=61]="Eq",n[n.Gt=62]="Gt",n[n.Questionmark=63]="Questionmark",n[n.UpperA=65]="UpperA",n[n.LowerA=97]="LowerA",n[n.UpperF=70]="UpperF",n[n.LowerF=102]="LowerF",n[n.UpperZ=90]="UpperZ",n[n.LowerZ=122]="LowerZ",n[n.LowerX=120]="LowerX",n[n.OpeningSquareBracket=91]="OpeningSquareBracket",(i=a||(a={}))[i.Text=1]="Text",i[i.BeforeTagName=2]="BeforeTagName",i[i.InTagName=3]="InTagName",i[i.InSelfClosingTag=4]="InSelfClosingTag",i[i.BeforeClosingTagName=5]="BeforeClosingTagName",i[i.InClosingTagName=6]="InClosingTagName",i[i.AfterClosingTagName=7]="AfterClosingTagName",i[i.BeforeAttributeName=8]="BeforeAttributeName",i[i.InAttributeName=9]="InAttributeName",i[i.AfterAttributeName=10]="AfterAttributeName",i[i.BeforeAttributeValue=11]="BeforeAttributeValue",i[i.InAttributeValueDq=12]="InAttributeValueDq",i[i.InAttributeValueSq=13]="InAttributeValueSq",i[i.InAttributeValueNq=14]="InAttributeValueNq",i[i.BeforeDeclaration=15]="BeforeDeclaration",i[i.InDeclaration=16]="InDeclaration",i[i.InProcessingInstruction=17]="InProcessingInstruction",i[i.BeforeComment=18]="BeforeComment",i[i.CDATASequence=19]="CDATASequence",i[i.InSpecialComment=20]="InSpecialComment",i[i.InCommentLike=21]="InCommentLike",i[i.BeforeSpecialS=22]="BeforeSpecialS",i[i.SpecialStartSequence=23]="SpecialStartSequence",i[i.InSpecialTag=24]="InSpecialTag",i[i.BeforeEntity=25]="BeforeEntity",i[i.BeforeNumericEntity=26]="BeforeNumericEntity",i[i.InNamedEntity=27]="InNamedEntity",i[i.InNumericEntity=28]="InNumericEntity",i[i.InHexEntity=29]="InHexEntity",(s=l=t.QuoteType||(t.QuoteType={}))[s.NoValue=0]="NoValue",s[s.Unquoted=1]="Unquoted",s[s.Single=2]="Single",s[s.Double=3]="Double";var p={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},f=function(){function e(e,t){var r=e.xmlMode,n=void 0!==r&&r,i=e.decodeEntities;this.cbs=t,this.state=a.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=a.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=n,this.decodeEntities=void 0===i||i,this.entityTrie=n?c.xmlDecodeTree:c.htmlDecodeTree}return e.prototype.reset=function(){this.state=a.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=a.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=a.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===o.Amp&&(this.state=a.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?h(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t){this.sequenceIndex++;return}}else this.isSpecial=!1;this.sequenceIndex=0,this.state=a.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===o.Gt||u(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart=o.LowerA&&e<=o.LowerZ||e>=o.UpperA&&e<=o.UpperZ},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=a.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===o.ExclamationMark)this.state=a.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===o.Questionmark)this.state=a.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var t=32|e;this.sectionStart=this.index,this.xmlMode||t!==p.TitleEnd[2]?this.state=this.xmlMode||t!==p.ScriptEnd[2]?a.InTagName:a.BeforeSpecialS:this.startSpecial(p.TitleEnd,3)}else e===o.Slash?this.state=a.BeforeClosingTagName:(this.state=a.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){h(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=a.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){u(e)||(e===o.Gt?this.state=a.Text:(this.state=this.isTagStartChar(e)?a.InClosingTagName:a.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===o.Gt||u(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=a.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===o.Gt||this.fastForwardTo(o.Gt))&&(this.state=a.Text,this.baseState=a.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===o.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=a.InSpecialTag,this.sequenceIndex=0):this.state=a.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===o.Slash?this.state=a.InSelfClosingTag:u(e)||(this.state=a.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===o.Gt?(this.cbs.onselfclosingtag(this.index),this.state=a.Text,this.baseState=a.Text,this.sectionStart=this.index+1,this.isSpecial=!1):u(e)||(this.state=a.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===o.Eq||h(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=a.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===o.Eq?this.state=a.BeforeAttributeValue:e===o.Slash||e===o.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=a.BeforeAttributeName,this.stateBeforeAttributeName(e)):u(e)||(this.cbs.onattribend(l.NoValue,this.index),this.state=a.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===o.DoubleQuote?(this.state=a.InAttributeValueDq,this.sectionStart=this.index+1):e===o.SingleQuote?(this.state=a.InAttributeValueSq,this.sectionStart=this.index+1):u(e)||(this.sectionStart=this.index,this.state=a.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===o.DoubleQuote?l.Double:l.Single,this.index),this.state=a.BeforeAttributeName):this.decodeEntities&&e===o.Amp&&(this.baseState=this.state,this.state=a.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,o.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,o.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){u(e)||e===o.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=a.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===o.Amp&&(this.baseState=this.state,this.state=a.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===o.OpeningSquareBracket?(this.state=a.CDATASequence,this.sequenceIndex=0):this.state=e===o.Dash?a.BeforeComment:a.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=a.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=a.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===o.Dash?(this.state=a.InCommentLike,this.currentSequence=p.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=a.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=a.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===p.ScriptEnd[3]?this.startSpecial(p.ScriptEnd,4):t===p.StyleEnd[3]?this.startSpecial(p.StyleEnd,4):(this.state=a.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===o.Number?this.state=a.BeforeNumericEntity:e===o.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=a.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,c.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&c.BinTrieFlags.VALUE_LENGTH;if(t){var r=(t>>14)-1;if(this.allowLegacyEntity()||e===o.Semi){var n=this.index-this.entityExcess+1;n>this.sectionStart&&this.emitPartial(this.sectionStart,n),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,0===r&&this.emitNamedEntity()}else this.trieIndex+=r}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&c.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~c.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===o.LowerX?(this.entityExcess++,this.state=a.InHexEntity):(this.state=a.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===a.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,c.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===o.Semi?this.emitNumericEntity(!0):d(e)?(this.entityResult=10*this.entityResult+(e-o.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===o.Semi?this.emitNumericEntity(!0):d(e)?(this.entityResult=16*this.entityResult+(e-o.Zero),this.entityExcess++):e>=o.UpperA&&e<=o.UpperF||e>=o.LowerA&&e<=o.LowerF?(this.entityResult=16*this.entityResult+((32|e)-o.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===a.Text||this.baseState===a.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===a.Text||this.state===a.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===a.InAttributeValueDq||this.state===a.InAttributeValueSq||this.state===a.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):u.pathname),"about:"===v.protocol&&"blank"===v.pathname&&(v.protocol="",v.pathname=""),w&&"/"!==e[0]&&(v.pathname=v.pathname.substr(1)),c&&!d.test(c)&&"/"!==e.slice(-1)&&"/"===v.pathname&&(v.pathname=""),v.path=v.pathname+v.search,v.auth=[u.username,u.password].map(decodeURIComponent).filter(Boolean).join(":"),v.port=u.port,y&&!v.host.endsWith(y)&&(v.host+=y,v.port=y.slice(1)),v.href=x?""+v.pathname+v.search+v.hash:n(v);var E=/^(file)/.test(v.href)?["host","hostname"]:[];return Object.keys(v).forEach(function(e){~E.indexOf(e)||(v[e]=v[e]||null)}),v}s.parse=b,s.format=n,s.resolve=u,s.resolveObject=function(e,t){return b(u(e,t))},s.Url=h}(),e.exports=s}()},6793:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var o=/\+/g;e=e.split(r);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var l=e.length;a>0&&l>a&&(l=a);for(var c=0;c=0?(u=f.substr(0,m),h=f.substr(m+1)):(u=f,h=""),d=decodeURIComponent(u),p=decodeURIComponent(h),Object.prototype.hasOwnProperty.call(s,d))?t(s[d])?s[d].push(p):s[d]=[s[d],p]:s[d]=p}return s};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,s,o,a){return(s=s||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var a=encodeURIComponent(t(i))+o;return r(e[i])?n(e[i],function(e){return a+encodeURIComponent(t(e))}).join(s):a+encodeURIComponent(t(e[i]))}).join(s):a?encodeURIComponent(t(a))+o+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n=l)return g;n=r(h),i=[],","===n.slice(-1)?(n=n.replace(d,""),b()):function(){for(r(c),s="",o="in descriptor";;){if(a=e.charAt(m),"in descriptor"===o){if(t(a))s&&(i.push(s),s="",o="after descriptor");else if(","===a){m+=1,s&&i.push(s),b();return}else if("("===a)s+=a,o="in parens";else if(""===a){s&&i.push(s),b();return}else s+=a}else if("in parens"===o){if(")"===a)s+=a,o="in descriptor";else if(""===a){i.push(s),b();return}else s+=a}else if("after descriptor"===o){if(t(a));else if(""===a){b();return}else o="in descriptor",m-=1}m+=1}}()}function b(){var t,r,s,o,a,l,c,u,h,d=!1,m={};for(o=0;oe[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>e.root().toProxy();if("nodes"===t)return e.nodes.map(e=>e.toProxy());if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();for(let t of(n=this.index(e),i))this.proxyOf.nodes.splice(n+1,0,t);for(let e in this.indexes)n<(r=this.indexes[e])&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),i=0===n&&"prepend",s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();for(let t of(n=this.index(e),s))this.proxyOf.nodes.splice(n,0,t);for(let e in this.indexes)n<=(r=this.indexes[e])&&(this.indexes[e]=r+s.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(i(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(let t of e=e.slice(0))t.parent&&t.parent.removeChild(t,"ignore");else if("root"===e.type&&"document"!==this.type)for(let t of e=e.nodes.slice(0))t.parent&&t.parent.removeChild(t,"ignore");else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector||e.selectors)e=[new o(e)];else if(e.name)e=[new n(e)];else if(e.text)e=[new a(e)];else throw Error("Unknown node type in node creation");return e.map(e=>(e[h]||d.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[u]&&function e(t){if(t[u]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(e),e.raws||(e.raws={}),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{(!t.props||t.props.includes(n.prop))&&(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}d.registerParse=e=>{i=e},d.registerRule=e=>{o=e},d.registerAtRule=e=>{n=e},d.registerRoot=e=>{s=e},e.exports=d,d.default=d,d.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,n.prototype):"rule"===e.type?Object.setPrototypeOf(e,o.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[h]=!0,e.nodes&&e.nodes.forEach(e=>{d.rebuild(e)})}},4968:function(e,t,r){"use strict";let n=r(4942),i=r(8181);class s extends Error{constructor(e,t,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=n.isColorSupported);let r=e=>e,s=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:a}=n.createColors(!0);s=t=>e(a(t)),r=e=>t(e),i&&(o=e=>i(e))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),u=String(c).length;return a.slice(l,c).map((e,t)=>{let n=l+1+t,i=" "+(" "+n).slice(-u)+" | ";if(n===this.line){if(e.length>160){let t=Math.max(0,this.column-20),n=Math.max(this.column+20,this.endColumn+20),a=e.slice(t,n),l=r(i.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g," ");return s(">")+r(i)+o(a)+"\n "+l+s("^")}let t=r(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+r(i)+o(e)+"\n "+t+s("^")}return" "+r(i)+o(e)}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=s,s.default=s},3368:function(e,t,r){"use strict";let n=r(3372);class i extends n{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},6414:function(e,t,r){"use strict";let n,i;let s=r(1708);class o extends s{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new n(new i,this,e).stringify()}}o.registerLazyResult=e=>{n=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o},4707:function(e,t,r){"use strict";let n=r(9271),i=r(2243),s=r(3368),o=r(1872),a=r(9828),l=r(610),c=r(2698);function u(e,t){if(Array.isArray(e))return e.map(e=>u(e));let{inputs:r,...h}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:o.prototype};r.map&&(r.map={...r.map,__proto__:a.prototype}),t.push(r)}if(h.nodes&&(h.nodes=e.nodes.map(e=>u(e,t))),h.source){let{inputId:e,...r}=h.source;h.source=r,null!=e&&(h.source.input=t[e])}if("root"===h.type)return new l(h);if("decl"===h.type)return new s(h);if("rule"===h.type)return new c(h);if("comment"===h.type)return new i(h);if("atrule"===h.type)return new n(h);throw Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},1872:function(e,t,r){"use strict";let{nanoid:n}=r(5185),{isAbsolute:i,resolve:s}=r(9674),{SourceMapConsumer:o,SourceMapGenerator:a}=r(462),{fileURLToPath:l,pathToFileURL:c}=r(4561),u=r(4968),h=r(9828),d=r(8181),p=Symbol("fromOffsetCache"),f=!!(o&&a),m=!!(s&&i);class g{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=s(t.from)),m&&f){let e=new h(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let i,s,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);s=e.line,i=e.col}else s=n.line,i=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,s,i);return(o=a?new u(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new u(e,void 0===s?t:{column:r,line:t},void 0===s?r:{column:i,line:s},this.css,this.file,n.plugin)).input={column:r,endColumn:i,endLine:s,line:t,source:this.css},this.file&&(c&&(o.input.url=c(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,r;if(this[p])r=this[p];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let n=0,i=e.length;n=t)n=r.length-1;else{let t,i=r.length-2;for(;n>1)])i=t-1;else if(e>=r[t+1])n=t+1;else{n=t;break}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:s(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){let s,o;if(!this.map)return!1;let a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof r&&(s=a.originalPositionFor({column:n,line:r})),o=i(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let h={column:u.column,endColumn:s&&s.column,endLine:s&&s.line,line:u.line,url:o.toString()};if("file:"===o.protocol){if(l)h.file=l(o);else throw Error("file: protocol is not available in this PostCSS build")}let d=a.sourceContentFor(u.source);return d&&(h.source=d),h}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=g,g.default=g,d&&d.registerInput&&d.registerInput(g)},9504:function(e,t,r){"use strict";let n=r(1708),i=r(6414),s=r(6940),o=r(9999),a=r(3230),l=r(610),c=r(3128),{isClean:u,my:h}=r(331);r(1861);let d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,r=d[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function b(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:g(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){return e[u]=!1,e.nodes&&e.nodes.forEach(e=>y(e)),e}let v={};class w{constructor(e,t,r){let i;if(this.stringified=!1,this.processed=!1,"object"==typeof t&&null!==t&&("root"===t.type||"document"===t.type))i=y(t);else if(t instanceof w||t instanceof a)i=y(t.root),t.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let e=o;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{i=e(t,r)}catch(e){this.processed=!0,this.error=e}i&&!i[h]&&n.rebuild(i)}this.result=new a(e,i,r),this.helpers={...v,postcss:v,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!p[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[r]){if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let e=this.visitTick(t);if(m(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(m(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new s(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(m(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];)e[u]=!0,this.walkSync(e);if(this.listeners.OnceExit){if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,n]of e){let e;this.result.lastPlugin=r;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent){e.pop();return}if(n.length>0&&t.visitorIndex{e[u]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}w.registerPostcss=e=>{v=e},e.exports=w,w.default=w,l.registerLazyResult(w),i.registerLazyResult(w)},6373:function(e){"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n"," "]),split(e,t,r){let n=[],i="",s=!1,o=0,a=!1,l="",c=!1;for(let r of e)c?c=!1:"\\"===r?c=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(s=!0),s?(""!==i&&n.push(i.trim()),i="",s=!1):i+=r;return(r||""!==i)&&n.push(i.trim()),n}};e.exports=t,t.default=t},6940:function(e,t,r){"use strict";var n=r(5243).Buffer;let{dirname:i,relative:s,resolve:o,sep:a}=r(9674),{SourceMapConsumer:l,SourceMapGenerator:c}=r(462),{pathToFileURL:u}=r(4561),h=r(1872),d=!!(l&&c),p=!!(i&&o&&s&&a);class f{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||i(e.file);!1===this.mapOpts.sourcesContent?(t=new l(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}}generate(){if(this.clearAnnotation(),p&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=c.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,t;this.css="",this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,n=1,i="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1):(s.source=i,s.original.line=1,s.original.column=0),this.map.addMapping(s)),(t=o.match(/\n/g))?(r+=t.length,e=o.lastIndexOf("\n"),n=o.length-e):n+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=n-2):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1),this.map.addMapping(s))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?i(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=i(o(r,this.mapOpts.annotation)));let n=s(r,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new h(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return n?n.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(u){let t=u(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===a&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}e.exports=f},8241:function(e,t,r){"use strict";let n=r(6940),i=r(9999),s=r(3230),o=r(3128);r(1861);class a{constructor(e,t,r){let i;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new s(this._processor,i,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new n(o,i,this._opts,t);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=i(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=a,a.default=a},3372:function(e,t,r){"use strict";let n=r(4968),i=r(7418),s=r(3128),{isClean:o,my:a}=r(331);function l(e,t){if(t&&void 0!==t.offset)return t.offset;let r=1,n=1,i=0;for(let s=0;se(t,n)):("object"===o&&null!==s&&(s=e(s)),n[i]=s)}return n}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new n(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markClean(){this[o]=!0}markDirty(){if(this[o]){this[o]=!1;let e=this;for(;e=e.parent;)e[o]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r=this.source.input.css.slice(l(this.source.input.css,this.source.start),l(this.source.input.css,this.source.end)).indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,n=l(this.source.input.css,this.source.start),i=n+e;for(let e=n;e"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof n&&n.toJSON)r[e]=n.toJSON(null,t);else if("source"===e){let s=t.get(n.input);null==s&&(s=i,t.set(n.input,i),i++),r[e]={end:n.end,inputId:s,start:n.start}}else r[e]=n}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=s){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}get proxyOf(){return this}}e.exports=c,c.default=c},9999:function(e,t,r){"use strict";let n=r(1708),i=r(1872),s=r(5958);function o(e,t){let r=new s(new i(e,t));try{r.parse()}catch(e){throw e}return r.root}e.exports=o,o.default=o,n.registerParse(o)},5958:function(e,t,r){"use strict";let n=r(9271),i=r(2243),s=r(3368),o=r(610),a=r(2698),l=r(7761),c={empty:!0,space:!0};class u{constructor(e){this.input=e,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,i,s=new n;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(i=l.length-1,r=l[i];r&&"space"===r[0];)r=l[--i];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(s.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(s,"params",l),o&&(e=l[l.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),a&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let n=0;for(let i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,n=0;for(let[i,s]of e.entries()){if("("===(r=s[0])&&(n+=1),")"===r&&(n-=1),0===n&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return i}this.doubleColon(s)}t=s}return!1}comment(e){let t=new i;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(e,t){let r,n,i=new s;this.init(i,e[0][2]);let o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let a=[];for(;e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){i.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(i.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),n="";for(let e=t;e>0;e--){let t=r[e][0];if(n.trim().startsWith("!")&&"space"!==t)break;n=r.pop()[1]+n}n.trim().startsWith("!")&&(i.important=!0,i.raws.important=n,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(i.raws.between+=a.map(e=>e[1]).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new a;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,i=null,s=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),s.push("("===r?")":"]");else if(o&&n&&"{"===r)i||(i=l),s.push("}");else if(0===s.length){if(";"===r){if(n){this.decl(a,o);return}break}if("{"===r){this.rule(a);return}if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(i),t&&n){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let i,s,o,a;let l=r.length,u="",h=!0;for(let e=0;ee+t[1],"");e.raws[t]={raw:n,value:u}}e[t]=u}rule(e){e.pop();let t=new a;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t;let r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let n=t;n(r||(r=s()),r)}),s.process=function(e,t,r){return S([s(r)]).process(e,t)},s},S.stringify=w,S.parse=m,S.fromJSON=u,S.list=p,S.comment=e=>new s(e),S.atRule=e=>new i(e),S.decl=e=>new l(e),S.rule=e=>new v(e),S.root=e=>new y(e),S.document=e=>new c(e),S.CssSyntaxError=a,S.Declaration=l,S.Container=o,S.Processor=g,S.Document=c,S.Comment=s,S.Warning=x,S.AtRule=i,S.Result=b,S.Input=h,S.Rule=v,S.Root=y,S.Node=f,d.registerPostcss(S),e.exports=S,S.default=S},9828:function(e,t,r){"use strict";var n=r(5243).Buffer;let{existsSync:i,readFileSync:s}=r(5252),{dirname:o,join:a}=r(9674),{SourceMapConsumer:l,SourceMapGenerator:c}=r(462);class u{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new l(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let r=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(r){var i;return i=e.substr(r[0].length),n?n.from(i,"base64").toString():window.atob(i)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=o(e),i(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof l)return c.fromSourceMap(t).toString();else if(t instanceof c)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=a(o(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=u,u.default=u},3500:function(e,t,r){"use strict";let n=r(6414),i=r(9504),s=r(8241),o=r(610);class a{constructor(e=[]){this.version="8.4.49",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new i(this,e,t):new s(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=a,a.default=a,o.registerProcessor(a),n.registerProcessor(a)},3230:function(e,t,r){"use strict";let n=r(470);class i{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}e.exports=i,i.default=i},610:function(e,t,r){"use strict";let n,i;let s=r(1708);class o extends s{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of n)e.raws.before=t.raws.before}return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new n(new i,this,e).stringify()}}o.registerLazyResult=e=>{n=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o,s.registerRoot(o)},2698:function(e,t,r){"use strict";let n=r(1708),i=r(6373);class s extends n{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=s,s.default=s,n.registerRule(s)},7418:function(e){"use strict";let t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class r{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n{if(void 0!==(i=e.raws[r]))return!1})}return void 0===i&&(i=t[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=r,r.default=r},3128:function(e,t,r){"use strict";let n=r(7418);function i(e,t){new n(t).stringify(e)}e.exports=i,i.default=i},331:function(e){"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},7761:function(e){"use strict";let t=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,n=/.[\r\n"'(/\\]/,i=/[\da-f]/i;e.exports=function(e,s={}){let o,a,l,c,u,h,d,p,f,m,g=e.css.valueOf(),b=s.ignoreErrors,y=g.length,v=0,w=[],x=[];function S(t){throw e.error("Unclosed "+t,v)}return{back:function(e){x.push(e)},endOfFile:function(){return 0===x.length&&v>=y},nextToken:function(e){if(x.length)return x.pop();if(v>=y)return;let s=!!e&&e.ignoreUnclosed;switch(o=g.charCodeAt(v)){case 10:case 32:case 9:case 13:case 12:c=v;do c+=1,o=g.charCodeAt(c);while(32===o||10===o||9===o||13===o||12===o);h=["space",g.slice(v,c)],v=c-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(o);h=[e,e,v];break}case 40:if(m=w.length?w.pop()[1]:"",f=g.charCodeAt(v+1),"url"===m&&39!==f&&34!==f&&32!==f&&10!==f&&9!==f&&12!==f&&13!==f){c=v;do{if(d=!1,-1===(c=g.indexOf(")",c+1))){if(b||s){c=v;break}S("bracket")}for(p=c;92===g.charCodeAt(p-1);)p-=1,d=!d}while(d);h=["brackets",g.slice(v,c+1),v,c],v=c}else c=g.indexOf(")",v+1),a=g.slice(v,c+1),-1===c||n.test(a)?h=["(","(",v]:(h=["brackets",a,v,c],v=c);break;case 39:case 34:u=39===o?"'":'"',c=v;do{if(d=!1,-1===(c=g.indexOf(u,c+1))){if(b||s){c=v+1;break}S("string")}for(p=c;92===g.charCodeAt(p-1);)p-=1,d=!d}while(d);h=["string",g.slice(v,c+1),v,c],v=c;break;case 64:t.lastIndex=v+1,t.test(g),c=0===t.lastIndex?g.length-1:t.lastIndex-2,h=["at-word",g.slice(v,c+1),v,c],v=c;break;case 92:for(c=v,l=!0;92===g.charCodeAt(c+1);)c+=1,l=!l;if(o=g.charCodeAt(c+1),l&&47!==o&&32!==o&&10!==o&&9!==o&&13!==o&&12!==o&&(c+=1,i.test(g.charAt(c)))){for(;i.test(g.charAt(c+1));)c+=1;32===g.charCodeAt(c+1)&&(c+=1)}h=["word",g.slice(v,c+1),v,c],v=c;break;default:47===o&&42===g.charCodeAt(v+1)?(0===(c=g.indexOf("*/",v+2)+1)&&(b||s?c=g.length:S("comment")),h=["comment",g.slice(v,c+1),v,c]):(r.lastIndex=v+1,r.test(g),c=0===r.lastIndex?g.length-1:r.lastIndex-2,h=["word",g.slice(v,c+1),v,c],w.push(h)),v=c}return v++,h},position:function(){return v}}}},1861:function(e){"use strict";let t={};e.exports=function(e){!t[e]&&(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},470:function(e){"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},2580:function(e,t,r){let n=r(439),i=r(3419),{isPlainObject:s}=r(3056),o=r(2454),a=r(9382),{parse:l}=r(7199),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function h(e,t){e&&Object.keys(e).forEach(function(r){t(e[r],r)})}function d(e,t){return({}).hasOwnProperty.call(e,t)}function p(e,t){let r=[];return h(e,function(e){t(e)&&r.push(e)}),r}e.exports=m;let f=/^[^\0\t\n\f\r /<=>]+$/;function m(e,t,r){let b,y,v,w,x,S,E,T,A;if(null==e)return"";"number"==typeof e&&(e=e.toString());let C="",O="";function k(e,t){let r=this;this.tag=e,this.attribs=t||{},this.tagPosition=C.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(x.length){let e=x[x.length-1];e.text+=r.text}},this.updateParentNodeMediaChildren=function(){x.length&&c.includes(this.tag)&&x[x.length-1].mediaChildren.push(this.tag)}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},g,t.parser);let I=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};u.forEach(function(e){I(e)&&!t.allowVulnerableTags&&console.warn(` ⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently vulnerable to XSS attacks. Please remove it from \`allowedTags\`. diff --git a/_next/static/chunks/606.9f4c0e4c37be459a.js b/_next/static/chunks/606.9f4c0e4c37be459a.js new file mode 100644 index 000000000..68251b2bf --- /dev/null +++ b/_next/static/chunks/606.9f4c0e4c37be459a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[606],{9800:function(e,t,n){n.d(t,{Ry:function(){return c}});var r=new WeakMap,o=new WeakMap,i={},a=0,u=function(e){return e&&(e.host||u(e.parentNode))},l=function(e,t,n,l){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=u(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var s=i[n],f=[],d=new Set,p=new Set(c),m=function(e){!e||d.has(e)||(d.add(e),m(e.parentNode))};c.forEach(m);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))h(e);else try{var t=e.getAttribute(l),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,u=(s.get(e)||0)+1;r.set(e,a),s.set(e,u),f.push(e),1===a&&i&&o.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),d.clear(),a++,function(){f.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(l),o.delete(e)),i||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),l(r,o,n,"aria-hidden")):function(){return null}}},7276:function(e,t,n){n.d(t,{Z:function(){return q}});var r,o,i,a,u,l,c,s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var d=n(5271),p="right-scroll-bar-position",m="width-before-scroll-bar";function h(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,g=new WeakMap,y=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),a=[],u=!1,l={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,u);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(u=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){u=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=s({async:!0,ssr:!1},o),l),w=function(){},b=d.forwardRef(function(e,t){var n,r,o,i,a=d.useRef(null),u=d.useState({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:w}),l=u[0],c=u[1],p=e.forwardProps,m=e.children,b=e.className,x=e.removeScrollBar,E=e.enabled,C=e.shards,R=e.sideCar,A=e.noIsolation,P=e.inert,S=e.allowPinchZoom,O=e.as,T=e.gapMode,N=f(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=(n=[a,t],r=function(e){return n.forEach(function(t){return h(t,e)})},(o=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,v(function(){var e=g.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||h(e,null)}),r.forEach(function(e){t.has(e)||h(e,o)})}g.set(i,n)},[n]),i),M=s(s({},N),l);return d.createElement(d.Fragment,null,E&&d.createElement(R,{sideCar:y,removeScrollBar:x,shards:C,noIsolation:A,inert:P,setCallbacks:c,allowPinchZoom:!!S,lockRef:a,gapMode:T}),p?d.cloneElement(d.Children.only(m),s(s({},M),{ref:L})):d.createElement(void 0===O?"div":O,s({},M,{className:b,ref:L}),m))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:m,zeroRight:p};var x=function(e){var t=e.sideCar,n=f(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,s({},n))};x.isSideCarExport=!0;var E=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},C=function(){var e=E();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},R=function(){var e=C();return function(t){return e(t.styles,t.dynamic),null}},A={left:0,top:0,right:0,gap:0},P=function(e){return parseInt(e||"",10)||0},S=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[P(n),P(r),P(o)]},O=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return A;var t=S(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},T=R(),N="data-scroll-locked",L=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(N,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(p," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(m," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(p," .").concat(p," {\n right: 0 ").concat(r,";\n }\n \n .").concat(m," .").concat(m," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(N,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},M=function(){var e=parseInt(document.body.getAttribute(N)||"0",10);return isFinite(e)?e:0},k=function(){d.useEffect(function(){return document.body.setAttribute(N,(M()+1).toString()),function(){var e=M()-1;e<=0?document.body.removeAttribute(N):document.body.setAttribute(N,e.toString())}},[])},D=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;k();var i=d.useMemo(function(){return O(o)},[o]);return d.createElement(T,{styles:L(i,!t,o,n?"":"!important")})},W=!1;if("undefined"!=typeof window)try{var j=Object.defineProperty({},"passive",{get:function(){return W=!0,!0}});window.addEventListener("test",j,j),window.removeEventListener("test",j,j)}catch(e){W=!1}var F=!!W&&{passive:!1},I=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},_=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),B(e,r)){var o=H(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},B=function(e,t){return"v"===e?I(t,"overflowY"):I(t,"overflowX")},H=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},$=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),u=a*r,l=n.target,c=t.contains(l),s=!1,f=u>0,d=0,p=0;do{var m=H(e,l),h=m[0],v=m[1]-m[2]-a*h;(h||v)&&B(e,l)&&(d+=v,p+=h),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return f&&(o&&1>Math.abs(d)||!o&&u>d)?s=!0:!f&&(o&&1>Math.abs(p)||!o&&-u>p)&&(s=!0),s},V=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},z=function(e){return[e.deltaX,e.deltaY]},U=function(e){return e&&"current"in e?e.current:e},Y=0,X=[],K=(c=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(Y++)[0],i=d.useState(R)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;oMath.abs(c)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=_(f,s);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=_(f,s)),!d)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return $(p,t,e,"h"===p?l:c,!0)},[]),l=d.useCallback(function(e){if(X.length&&X[X.length-1]===i){var n="deltaY"in e?z(e):V(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(U).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=d.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),s=d.useCallback(function(e){n.current=V(e),r.current=void 0},[]),f=d.useCallback(function(t){c(t.type,z(t),t.target,u(t,e.lockRef.current))},[]),p=d.useCallback(function(t){c(t.type,V(t),t.target,u(t,e.lockRef.current))},[]);d.useEffect(function(){return X.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,F),document.addEventListener("touchmove",l,F),document.addEventListener("touchstart",s,F),function(){X=X.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,F),document.removeEventListener("touchmove",l,F),document.removeEventListener("touchstart",s,F)}},[]);var m=e.removeScrollBar,h=e.inert;return d.createElement(d.Fragment,null,h?d.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?d.createElement(D,{gapMode:e.gapMode}):null)},y.useMedium(c),x),Z=d.forwardRef(function(e,t){return d.createElement(b,s({},e,{ref:t,sideCar:K}))});Z.classNames=b.classNames;var q=Z},5061:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},8766:function(e,t,n){n.d(t,{b:function(){return i}});var r=n(5271),o=n(2676);function i(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let a=r.createContext(i),u=n.length;function l(t){let{scope:n,children:i,...l}=t,c=n?.[e][u]||a,s=r.useMemo(()=>l,Object.values(l));return(0,o.jsx)(c.Provider,{value:s,children:i})}return n=[...n,i],l.displayName=t+"Provider",[l,function(n,o){let l=o?.[e][u]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},8689:function(e,t,n){n.d(t,{b:function(){return i}});var r=n(5271),o=n(2676);function i(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let a=r.createContext(i),u=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,c=n?.[e]?.[u]||a,s=r.useMemo(()=>l,Object.values(l));return(0,o.jsx)(c.Provider,{value:s,children:i})};return l.displayName=t+"Provider",[l,function(n,o){let l=o?.[e]?.[u]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},2319:function(e,t,n){n.d(t,{XB:function(){return d}});var r,o=n(5271),i=n(5061),a=n(1559),u=n(4657),l=n(3591),c=n(2676),s="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d=o.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...w}=e,b=o.useContext(f),[x,E]=o.useState(null),C=x?.ownerDocument??globalThis?.document,[,R]=o.useState({}),A=(0,u.e)(t,e=>E(e)),P=Array.from(b.layers),[S]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),O=P.indexOf(S),T=x?P.indexOf(x):-1,N=b.layersWithOutsidePointerEventsDisabled.size>0,L=T>=O,M=function(e,t=globalThis?.document){let n=(0,l.W)(e),r=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){m("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));!L||n||(h?.(e),g?.(e),e.defaultPrevented||y?.())},C),k=function(e,t=globalThis?.document){let n=(0,l.W)(e),r=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!r.current&&m("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...b.branches].some(e=>e.contains(t))||(v?.(e),g?.(e),e.defaultPrevented||y?.())},C);return!function(e,t=globalThis?.document){let n=(0,l.W)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{T!==b.layers.size-1||(d?.(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},C),o.useEffect(()=>{if(x)return n&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(x)),b.layers.add(x),p(),()=>{n&&1===b.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[x,C,n,b]),o.useEffect(()=>()=>{x&&(b.layers.delete(x),b.layersWithOutsidePointerEventsDisabled.delete(x),p())},[x,b]),o.useEffect(()=>{let e=()=>R({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,c.jsx)(a.WV.div,{...w,ref:A,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,k.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,M.onPointerDownCapture)})});function p(){let e=new CustomEvent(s);document.dispatchEvent(e)}function m(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,a.jH)(o,i):o.dispatchEvent(i)}d.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(f),r=o.useRef(null),i=(0,u.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(a.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},7011:function(e,t,n){n.d(t,{EW:function(){return i}});var r=n(5271),o=0;function i(){r.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??a()),document.body.insertAdjacentElement("beforeend",e[1]??a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},1482:function(e,t,n){let r;n.d(t,{M:function(){return d}});var o=n(5271),i=n(4657),a=n(1559),u=n(3591),l=n(2676),c="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",f={bubbles:!1,cancelable:!0},d=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:d,onUnmountAutoFocus:g,...y}=e,[w,b]=o.useState(null),x=(0,u.W)(d),E=(0,u.W)(g),C=o.useRef(null),R=(0,i.e)(t,e=>b(e)),A=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(A.paused||!w)return;let t=e.target;w.contains(t)?C.current=t:h(C.current,{select:!0})},t=function(e){if(A.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||h(C.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,w,A.paused]),o.useEffect(()=>{if(w){v.add(A);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(c,f);w.addEventListener(c,x),w.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(h(r,{select:t}),document.activeElement!==n)return}(p(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(w))}return()=>{w.removeEventListener(c,x),setTimeout(()=>{let t=new CustomEvent(s,f);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||h(e??document.body,{select:!0}),w.removeEventListener(s,E),v.remove(A)},0)}}},[w,x,E,A]);let P=o.useCallback(e=>{if(!n&&!r||A.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=p(e);return[m(t,e),m(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&h(i,{select:!0})):(e.preventDefault(),n&&h(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,A.paused]);return(0,l.jsx)(a.WV.div,{tabIndex:-1,...y,ref:R,onKeyDown:P})});function p(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function m(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function h(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var v=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=g(r,e)).unshift(e)},remove(e){r=g(r,e),r[0]?.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},9883:function(e,t,n){n.d(t,{M:function(){return l}});var r,o=n(5271),i=n(83),a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),u=0;function l(e){let[t,n]=o.useState(a());return(0,i.b)(()=>{e||n(e=>e??String(u++))},[e]),e||(t?`radix-${t}`:"")}},3818:function(e,t,n){n.d(t,{Eh:function(){return z},VY:function(){return $},fC:function(){return B},x8:function(){return V},xz:function(){return H}});var r=n(5271),o=n(5061),i=n(4657),a=n(8689),u=n(2319),l=n(7011),c=n(1482),s=n(9883),f=n(2518),d=(n(69),n(8061)),p=n(1559),m=n(7839),h=n(9895),v=n(9800),g=n(7276),y=n(2676),w="Popover",[b,x]=(0,a.b)(w,[f.D7]),E=(0,f.D7)(),[C,R]=b(w),A=e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:u=!1}=e,l=E(t),c=r.useRef(null),[d,p]=r.useState(!1),[m=!1,v]=(0,h.T)({prop:o,defaultProp:i,onChange:a});return(0,y.jsx)(f.fC,{...l,children:(0,y.jsx)(C,{scope:t,contentId:(0,s.M)(),triggerRef:c,open:m,onOpenChange:v,onOpenToggle:r.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>p(!0),[]),onCustomAnchorRemove:r.useCallback(()=>p(!1),[]),modal:u,children:n})})};A.displayName=w;var P="PopoverAnchor";r.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,i=R(P,n),a=E(n),{onCustomAnchorAdd:u,onCustomAnchorRemove:l}=i;return r.useEffect(()=>(u(),()=>l()),[u,l]),(0,y.jsx)(f.ee,{...a,...o,ref:t})}).displayName=P;var S="PopoverTrigger",O=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,a=R(S,n),u=E(n),l=(0,i.e)(t,a.triggerRef),c=(0,y.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":_(a.open),...r,ref:l,onClick:(0,o.M)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?c:(0,y.jsx)(f.ee,{asChild:!0,...u,children:c})});O.displayName=S;var[T,N]=b("PopoverPortal",{forceMount:void 0}),L="PopoverContent",M=r.forwardRef((e,t)=>{let n=N(L,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=R(L,e.__scopePopover);return(0,y.jsx)(d.z,{present:r||i.open,children:i.modal?(0,y.jsx)(k,{...o,ref:t}):(0,y.jsx)(D,{...o,ref:t})})});M.displayName=L;var k=r.forwardRef((e,t)=>{let n=R(L,e.__scopePopover),a=r.useRef(null),u=(0,i.e)(t,a),l=r.useRef(!1);return r.useEffect(()=>{let e=a.current;if(e)return(0,v.Ry)(e)},[]),(0,y.jsx)(g.Z,{as:m.g7,allowPinchZoom:!0,children:(0,y.jsx)(W,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),l.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;l.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),D=r.forwardRef((e,t)=>{let n=R(L,e.__scopePopover),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),W=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,...h}=e,v=R(L,n),g=E(n);return(0,l.EW)(),(0,y.jsx)(c.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,y.jsx)(u.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:m,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1),children:(0,y.jsx)(f.VY,{"data-state":_(v.open),role:"dialog",id:v.contentId,...g,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),j="PopoverClose",F=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=R(j,n);return(0,y.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})});F.displayName=j;var I=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=E(n);return(0,y.jsx)(f.Eh,{...o,...r,ref:t})});function _(e){return e?"open":"closed"}I.displayName="PopoverArrow";var B=A,H=O,$=M,V=F,z=I},2518:function(e,t,n){n.d(t,{ee:function(){return eZ},Eh:function(){return eG},VY:function(){return eq},fC:function(){return eK},D7:function(){return eM}});var r=n(5271);let o=["top","right","bottom","left"],i=Math.min,a=Math.max,u=Math.round,l=Math.floor,c=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>f[e])}function w(e){return e.replace(/left|right|bottom|top/g,e=>s[e])}function b(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function E(e,t,n){let r,{reference:o,floating:i}=e,a=g(t),u=h(g(t)),l=v(u),c=p(t),s="y"===a,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,y=o[l]/2-i[l]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(m(t)){case"start":r[u]-=y*(n&&s?-1:1);break;case"end":r[u]+=y*(n&&s?-1:1)}return r}let C=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,u=i.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=E(c,r,l),d=r,p={},m=0;for(let n=0;ne[t]>=0)}async function S(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=p(n),u=m(n),l="y"===g(n),c=["left","top"].includes(a)?-1:1,s=i&&l?-1:1,f=d(t,e),{mainAxis:h,crossAxis:v,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&"number"==typeof y&&(v="end"===u?-1*y:y),l?{x:v*s,y:h*c}:{x:h*c,y:v*s}}function O(){return"undefined"!=typeof window}function T(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function N(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function L(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return!!O()&&(e instanceof Node||e instanceof N(e).Node)}function k(e){return!!O()&&(e instanceof Element||e instanceof N(e).Element)}function D(e){return!!O()&&(e instanceof HTMLElement||e instanceof N(e).HTMLElement)}function W(e){return!!O()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof N(e).ShadowRoot)}function j(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=H(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function F(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function I(e){let t=_(),n=k(e)?H(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function _(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function B(e){return["html","body","#document"].includes(T(e))}function H(e){return N(e).getComputedStyle(e)}function $(e){return k(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function V(e){if("html"===T(e))return e;let t=e.assignedSlot||e.parentNode||W(e)&&e.host||L(e);return W(t)?t.host:t}function z(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=V(t);return B(n)?t.ownerDocument?t.ownerDocument.body:t.body:D(n)&&j(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=N(o);if(i){let e=U(a);return t.concat(a,a.visualViewport||[],j(o)?o:[],e&&n?z(e):[])}return t.concat(o,z(o,[],n))}function U(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Y(e){let t=H(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=D(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=u(n)!==i||u(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function X(e){return k(e)?e:e.contextElement}function K(e){let t=X(e);if(!D(t))return c(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Y(t),a=(i?u(n.width):n.width)/r,l=(i?u(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let Z=c(0);function q(e){let t=N(e);return _()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Z}function G(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=X(e),u=c(1);t&&(r?k(r)&&(u=K(r)):u=K(e));let l=(void 0===(o=n)&&(o=!1),r&&(!o||r===N(a))&&o)?q(a):c(0),s=(i.left+l.x)/u.x,f=(i.top+l.y)/u.y,d=i.width/u.x,p=i.height/u.y;if(a){let e=N(a),t=r&&k(r)?N(r):r,n=e,o=U(n);for(;o&&r&&t!==n;){let e=K(o),t=o.getBoundingClientRect(),r=H(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,f*=e.y,d*=e.x,p*=e.y,s+=i,f+=a,o=U(n=N(o))}}return x({width:d,height:p,x:s,y:f})}function J(e,t){let n=$(e).scrollLeft;return t?t.left+n:G(L(e)).left+n}function Q(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:J(e,r)),y:r.top+t.scrollTop}}function ee(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=N(e),r=L(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,u=0,l=0;if(o){i=o.width,a=o.height;let e=_();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:u,y:l}}(e,n);else if("document"===t)r=function(e){let t=L(e),n=$(e),r=e.ownerDocument.body,o=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),u=-n.scrollLeft+J(e),l=-n.scrollTop;return"rtl"===H(r).direction&&(u+=a(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:u,y:l}}(L(e));else if(k(t))r=function(e,t){let n=G(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=D(e)?K(e):c(1),a=e.clientWidth*i.x;return{width:a,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=q(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return x(r)}function et(e){return"static"===H(e).position}function en(e,t){if(!D(e)||"fixed"===H(e).position)return null;if(t)return t(e);let n=e.offsetParent;return L(e)===n&&(n=n.ownerDocument.body),n}function er(e,t){let n=N(e);if(F(e))return n;if(!D(e)){let t=V(e);for(;t&&!B(t);){if(k(t)&&!et(t))return t;t=V(t)}return n}let r=en(e,t);for(;r&&["table","td","th"].includes(T(r))&&et(r);)r=en(r,t);return r&&B(r)&&et(r)&&!I(r)?n:r||function(e){let t=V(e);for(;D(t)&&!B(t);){if(I(t))return t;if(F(t))break;t=V(t)}return null}(e)||n}let eo=async function(e){let t=this.getOffsetParent||er,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=D(t),o=L(t),i="fixed"===n,a=G(e,!0,i,t),u={scrollLeft:0,scrollTop:0},l=c(0);if(r||!r&&!i){if(("body"!==T(t)||j(o))&&(u=$(t)),r){let e=G(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=J(o))}let s=!o||r||i?c(0):Q(o,u);return{x:a.left+u.scrollLeft-l.x-s.x,y:a.top+u.scrollTop-l.y-s.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ei={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=L(r),u=!!t&&F(t.floating);if(r===a||u&&i)return n;let l={scrollLeft:0,scrollTop:0},s=c(1),f=c(0),d=D(r);if((d||!d&&!i)&&(("body"!==T(r)||j(a))&&(l=$(r)),D(r))){let e=G(r);s=K(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!a||d||i?c(0):Q(a,l,!0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-l.scrollLeft*s.x+f.x+p.x,y:n.y*s.y-l.scrollTop*s.y+f.y+p.y}},getDocumentElement:L,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,u=[..."clippingAncestors"===n?F(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=z(e,[],!1).filter(e=>k(e)&&"body"!==T(e)),o=null,i="fixed"===H(e).position,a=i?V(e):e;for(;k(a)&&!B(a);){let t=H(a),n=I(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||j(a)&&!n&&function e(t,n){let r=V(t);return!(r===n||!k(r)||B(r))&&("fixed"===H(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=V(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=u[0],c=u.reduce((e,n)=>{let r=ee(t,n,o);return e.top=a(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=a(r.left,e.left),e},ee(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:er,getElementRects:eo,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=Y(e);return{width:t,height:n}},getScale:K,isElement:k,isRTL:function(e){return"rtl"===H(e).direction}},ea=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:u,platform:l,elements:c,middlewareData:s}=t,{element:f,padding:p=0}=d(e,t)||{};if(null==f)return{};let y=b(p),w={x:n,y:r},x=h(g(o)),E=v(x),C=await l.getDimensions(f),R="y"===x,A=R?"clientHeight":"clientWidth",P=u.reference[E]+u.reference[x]-w[x]-u.floating[E],S=w[x]-u.reference[x],O=await (null==l.getOffsetParent?void 0:l.getOffsetParent(f)),T=O?O[A]:0;T&&await (null==l.isElement?void 0:l.isElement(O))||(T=c.floating[A]||u.floating[E]);let N=T/2-C[E]/2-1,L=i(y[R?"top":"left"],N),M=i(y[R?"bottom":"right"],N),k=T-C[E]-M,D=T/2-C[E]/2+(P/2-S/2),W=a(L,i(D,k)),j=!s.arrow&&null!=m(o)&&D!==W&&u.reference[E]/2-(D{let r=new Map,o={platform:ei,...n},i={...o.platform,_c:r};return C(e,t,{...o,platform:i})};var el=n(967),ec="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function es(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!es(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!es(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ef(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ed(e,t){let n=ef(e);return Math.round(t*n)/n}function ep(e){let t=r.useRef(e);return ec(()=>{t.current=e}),t}let em=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ea({element:n.current,padding:r}).fn(t):{}:n?ea({element:n,padding:r}).fn(t):{}}}),eh=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:a,middlewareData:u}=e,l=await S(e,n);return a===(null==(t=u.offset)?void 0:t.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}),options:[e,t]}},ev=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:u=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=d(n,e),f={x:t,y:r},m=await R(e,s),v=g(p(o)),y=h(v),w=f[y],b=f[v];if(u){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+m[e],r=w-m[t];w=a(n,i(w,r))}if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=b+m[e],r=b-m[t];b=a(n,i(b,r))}let x=c.fn({...e,[y]:w,[v]:b});return{...x,data:{x:x.x-t,y:x.y-r,enabled:{[y]:u,[v]:l}}}}}),options:[e,t]}},eg=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:u=0,mainAxis:l=!0,crossAxis:c=!0}=d(n,e),s={x:t,y:r},f=g(o),m=h(f),v=s[m],y=s[f],w=d(u,e),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(l){let e="y"===m?"height":"width",t=i.reference[m]-i.floating[e]+b.mainAxis,n=i.reference[m]+i.reference[e]-b.mainAxis;vn&&(v=n)}if(c){var x,E;let e="y"===m?"width":"height",t=["top","left"].includes(p(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(x=a.offset)?void 0:x[f])||0)+(t?0:b.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(E=a.offset)?void 0:E[f])||0)-(t?b.crossAxis:0);yr&&(y=r)}return{[m]:v,[f]:y}}}),options:[e,t]}},ey=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,a;let{placement:u,middlewareData:l,rects:c,initialPlacement:s,platform:f,elements:b}=e,{mainAxis:x=!0,crossAxis:E=!0,fallbackPlacements:C,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:S=!0,...O}=d(n,e);if(null!=(t=l.arrow)&&t.alignmentOffset)return{};let T=p(u),N=g(s),L=p(s)===s,M=await (null==f.isRTL?void 0:f.isRTL(b.floating)),k=C||(L||!S?[w(s)]:function(e){let t=w(e);return[y(e),t,y(t)]}(s)),D="none"!==P;!C&&D&&k.push(...function(e,t,n,r){let o=m(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(y)))),i}(s,S,P,M));let W=[s,...k],j=await R(e,O),F=[],I=(null==(r=l.flip)?void 0:r.overflows)||[];if(x&&F.push(j[T]),E){let e=function(e,t,n){void 0===n&&(n=!1);let r=m(e),o=h(g(e)),i=v(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=w(a)),[a,w(a)]}(u,c,M);F.push(j[e[0]],j[e[1]])}if(I=[...I,{placement:u,overflows:F}],!F.every(e=>e<=0)){let e=((null==(o=l.flip)?void 0:o.index)||0)+1,t=W[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(A){case"bestFit":{let e=null==(a=I.filter(e=>{if(D){let t=g(e.placement);return t===N||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=s}if(u!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},ew=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let o,u;let{placement:l,rects:c,platform:s,elements:f}=e,{apply:h=()=>{},...v}=d(n,e),y=await R(e,v),w=p(l),b=m(l),x="y"===g(l),{width:E,height:C}=c.floating;"top"===w||"bottom"===w?(o=w,u=b===(await (null==s.isRTL?void 0:s.isRTL(f.floating))?"start":"end")?"left":"right"):(u=w,o="end"===b?"top":"bottom");let A=C-y.top-y.bottom,P=E-y.left-y.right,S=i(C-y[o],A),O=i(E-y[u],P),T=!e.middlewareData.shift,N=S,L=O;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(L=P),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(N=A),T&&!b){let e=a(y.left,0),t=a(y.right,0),n=a(y.top,0),r=a(y.bottom,0);x?L=E-2*(0!==e||0!==t?e+t:a(y.left,y.right)):N=C-2*(0!==n||0!==r?n+r:a(y.top,y.bottom))}await h({...e,availableWidth:L,availableHeight:N});let M=await s.getDimensions(f.floating);return E!==M.width||C!==M.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eb=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=d(n,e);switch(r){case"referenceHidden":{let n=A(await R(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:P(n)}}}case"escaped":{let n=A(await R(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:P(n)}}}default:return{}}}}),options:[e,t]}},ex=(e,t)=>({...em(e),options:[e,t]});var eE=n(1559),eC=n(2676),eR=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eC.jsx)(eE.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eC.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eR.displayName="Arrow";var eA=n(4657),eP=n(8766),eS=n(3591),eO=n(83),eT=n(2979),eN="Popper",[eL,eM]=(0,eP.b)(eN),[ek,eD]=eL(eN),eW=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,eC.jsx)(ek,{scope:t,anchor:o,onAnchorChange:i,children:n})};eW.displayName=eN;var ej="PopperAnchor",eF=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=eD(ej,n),u=r.useRef(null),l=(0,eA.e)(t,u);return r.useEffect(()=>{a.onAnchorChange(o?.current||u.current)}),o?null:(0,eC.jsx)(eE.WV.div,{...i,ref:l})});eF.displayName=ej;var eI="PopperContent",[e_,eB]=eL(eI),eH=r.forwardRef((e,t)=>{let{__scopePopper:n,side:o="bottom",sideOffset:u=0,align:c="center",alignOffset:s=0,arrowPadding:f=0,avoidCollisions:d=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:y,...w}=e,b=eD(eI,n),[x,E]=r.useState(null),C=(0,eA.e)(t,e=>E(e)),[R,A]=r.useState(null),P=(0,eT.t)(R),S=P?.width??0,O=P?.height??0,T="number"==typeof m?m:{top:0,right:0,bottom:0,left:0,...m},N=Array.isArray(p)?p:[p],M=N.length>0,k={padding:T,boundary:N.filter(eU),altBoundary:M},{refs:D,floatingStyles:W,placement:j,isPositioned:F,middlewareData:I}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:u}={},transform:l=!0,whileElementsMounted:c,open:s}=e,[f,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=r.useState(o);es(p,o)||m(o);let[h,v]=r.useState(null),[g,y]=r.useState(null),w=r.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),b=r.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),x=a||h,E=u||g,C=r.useRef(null),R=r.useRef(null),A=r.useRef(f),P=null!=c,S=ep(c),O=ep(i),T=ep(s),N=r.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),eu(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};L.current&&!es(A.current,t)&&(A.current=t,el.flushSync(()=>{d(t)}))})},[p,t,n,O,T]);ec(()=>{!1===s&&A.current.isPositioned&&(A.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[s]);let L=r.useRef(!1);ec(()=>(L.current=!0,()=>{L.current=!1}),[]),ec(()=>{if(x&&(C.current=x),E&&(R.current=E),x&&E){if(S.current)return S.current(x,E,N);N()}},[x,E,N,S,P]);let M=r.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:b}),[w,b]),k=r.useMemo(()=>({reference:x,floating:E}),[x,E]),D=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!k.floating)return e;let t=ed(k.floating,f.x),r=ed(k.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...ef(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,k.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:N,refs:M,elements:k,floatingStyles:D}),[f,N,M,k,D])}({strategy:"fixed",placement:o+("center"!==c?"-"+c:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=X(e),m=u||c?[...p?z(p):[],...z(t)]:[];m.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});let h=p&&f?function(e,t){let n,r=null,o=L(e);function u(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function c(s,f){void 0===s&&(s=!1),void 0===f&&(f=1),u();let{left:d,top:p,width:m,height:h}=e.getBoundingClientRect();if(s||t(),!m||!h)return;let v=l(p),g=l(o.clientWidth-(d+m)),y={rootMargin:-v+"px "+-g+"px "+-l(o.clientHeight-(p+h))+"px "+-l(d)+"px",threshold:a(0,i(1,f))||1},w=!0;function b(e){let t=e[0].intersectionRatio;if(t!==f){if(!w)return c();t?c(!1,t):n=setTimeout(()=>{c(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(b,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,y)}r.observe(e)}(!0),u}(p,n):null,v=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!d&&g.observe(p),g.observe(t));let y=d?G(e):null;return d&&function t(){let r=G(e);y&&(r.x!==y.x||r.y!==y.y||r.width!==y.width||r.height!==y.height)&&n(),y=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===g}),elements:{reference:b.anchor},middleware:[eh({mainAxis:u+O,alignmentAxis:s}),d&&ev({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?eg():void 0,...k}),d&&ey({...k}),ew({...k,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),R&&ex({element:R,padding:f}),eY({arrowWidth:S,arrowHeight:O}),v&&eb({strategy:"referenceHidden",...k})]}),[_,B]=eX(j),H=(0,eS.W)(y);(0,eO.b)(()=>{F&&H?.()},[F,H]);let $=I.arrow?.x,V=I.arrow?.y,U=I.arrow?.centerOffset!==0,[Y,K]=r.useState();return(0,eO.b)(()=>{x&&K(window.getComputedStyle(x).zIndex)},[x]),(0,eC.jsx)("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:F?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eC.jsx)(e_,{scope:n,placedSide:_,onArrowChange:A,arrowX:$,arrowY:V,shouldHideArrow:U,children:(0,eC.jsx)(eE.WV.div,{"data-side":_,"data-align":B,...w,ref:C,style:{...w.style,animation:F?void 0:"none"}})})})});eH.displayName=eI;var e$="PopperArrow",eV={top:"bottom",right:"left",bottom:"top",left:"right"},ez=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eB(e$,n),i=eV[o.placedSide];return(0,eC.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eC.jsx)(eR,{...r,ref:t,style:{...r.style,display:"block"}})})});function eU(e){return null!==e}ez.displayName=e$;var eY=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[l,c]=eX(n),s={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+u/2,p="",m="";return"bottom"===l?(p=i?s:`${f}px`,m=`${-u}px`):"top"===l?(p=i?s:`${f}px`,m=`${r.floating.height+u}px`):"right"===l?(p=`${-u}px`,m=i?s:`${d}px`):"left"===l&&(p=`${r.floating.width+u}px`,m=i?s:`${d}px`),{data:{x:p,y:m}}}});function eX(e){let[t,n="center"]=e.split("-");return[t,n]}var eK=eW,eZ=eF,eq=eH,eG=ez},69:function(e,t,n){n.d(t,{h:function(){return l}});var r=n(5271),o=n(967),i=n(1559),a=n(83),u=n(2676),l=r.forwardRef((e,t)=>{let{container:n,...l}=e,[c,s]=r.useState(!1);(0,a.b)(()=>s(!0),[]);let f=n||c&&globalThis?.document?.body;return f?o.createPortal((0,u.jsx)(i.WV.div,{...l,ref:t}),f):null});l.displayName="Portal"},8061:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(5271),o=n(4657),i=n(83),a=e=>{let t,n;let{present:a,children:l}=e,c=function(e){var t,n;let[o,a]=r.useState(),l=r.useRef({}),c=r.useRef(e),s=r.useRef("none"),[f,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=u(l.current);s.current="mounted"===f?e:"none"},[f]),(0,i.b)(()=>{let t=l.current,n=c.current;if(n!==e){let r=s.current,o=u(t);e?d("MOUNT"):"none"===o||t?.display==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),c.current=e}},[e,d]),(0,i.b)(()=>{if(o){let e;let t=o.ownerDocument.defaultView??window,n=n=>{let r=u(l.current).includes(n.animationName);if(n.target===o&&r&&(d("ANIMATION_END"),!c.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},r=e=>{e.target===o&&(s.current=u(l.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:r.useCallback(e=>{e&&(l.current=getComputedStyle(e)),a(e)},[])}}(a),s="function"==typeof l?l({present:c.isPresent}):r.Children.only(l),f=(0,o.e)(c.ref,(t=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?s.ref:(t=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?s.props.ref:s.props.ref||s.ref);return"function"==typeof l||c.isPresent?r.cloneElement(s,{ref:f}):null};function u(e){return e?.animationName||"none"}a.displayName="Presence"},3591:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(5271);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},9895:function(e,t,n){n.d(t,{T:function(){return i}});var r=n(5271),o=n(3591);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,a]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,a=r.useRef(i),u=(0,o.W)(t);return r.useEffect(()=>{a.current!==i&&(u(i),a.current=i)},[i,a,u]),n}({defaultProp:t,onChange:n}),u=void 0!==e,l=u?e:i,c=(0,o.W)(n);return[l,r.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&c(n)}else a(t)},[u,e,a,c])]}},83:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(5271),o=globalThis?.document?r.useLayoutEffect:()=>{}},6673:function(e,t,n){n.d(t,{D:function(){return o}});var r=n(5271);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},2979:function(e,t,n){n.d(t,{t:function(){return i}});var r=n(5271),o=n(83);function i(e){let[t,n]=r.useState(void 0);return(0,o.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}}}]); \ No newline at end of file diff --git a/_next/static/chunks/634-6c35c8ba6b586437.js b/_next/static/chunks/634-6c35c8ba6b586437.js deleted file mode 100644 index b9e14ff60..000000000 --- a/_next/static/chunks/634-6c35c8ba6b586437.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[634],{8652:function(){},6248:function(){},1445:function(){},2615:function(e,t,i){"use strict";i.d(t,{_:function(){return s}});var s=i(3797).h},1675:function(e,t,i){"use strict";i.d(t,{f:function(){return l},o:function(){return n}});var s=i(5271),r=i(8141),a=i(2676),n=s.forwardRef((e,t)=>{let{ratio:i=1,style:s,...n}=e;return(0,a.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/i}%`},"data-radix-aspect-ratio-wrapper":"",children:(0,a.jsx)(r.WV.div,{...n,ref:t,style:{...s,position:"absolute",top:0,right:0,bottom:0,left:0}})})});n.displayName="AspectRatio";var l=n},5675:function(e,t,i){"use strict";i.d(t,{tq:function(){return w},o5:function(){return S}});var s=i(5271),r=i(6887);function a(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function n(e,t){let i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>i.indexOf(e)).forEach(i=>{void 0===e[i]?e[i]=t[i]:a(t[i])&&a(e[i])&&Object.keys(t[i]).length>0?t[i].__swiper__?e[i]=t[i]:n(e[i],t[i]):e[i]=t[i]})}function l(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function o(e={}){return e.pagination&&void 0===e.pagination.el}function d(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function c(e=""){let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),i=[];return t.forEach(e=>{0>i.indexOf(e)&&i.push(e)}),i.join(" ")}let p=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function u(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}let h=e=>{e&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function f(e,t){return"undefined"==typeof window?(0,s.useEffect)(e,t):(0,s.useLayoutEffect)(e,t)}let m=(0,s.createContext)(null),g=(0,s.createContext)(null);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;te.replace(/_/,""));return Object.keys(Object.assign({},e)).forEach(r=>{void 0!==e[r]&&(d.indexOf(r)>=0?a(e[r])?(i[r]={},l[r]={},n(i[r],e[r]),n(l[r],e[r])):(i[r]=e[r],l[r]=e[r]):0===r.search(/on[A-Z]/)&&"function"==typeof e[r]?t?s[`${r[2].toLowerCase()}${r.substr(3)}`]=e[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=e[r]:o[r]=e[r])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===i[e]&&(i[e]={}),!1===i[e]&&delete i[e]}),{params:i,passedParams:l,rest:o,events:s}}(E),{slides:R,slots:F}=function(e){let t=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return s.Children.toArray(e).forEach(e=>{if(u(e))t.push(e);else if(e.props&&e.props.slot&&i[e.props.slot])i[e.props.slot].push(e);else if(e.props&&e.props.children){let r=function e(t){let i=[];return s.Children.toArray(t).forEach(t=>{u(t)?i.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>i.push(e))}),i}(e.props.children);r.length>0?r.forEach(e=>t.push(e)):i["container-end"].push(e)}else i["container-end"].push(e)}),{slides:t,slots:i}}(b),H=()=>{k(!P)};Object.assign(j.on,{_containerClasses(e,t){x(t)}});let W=()=>{Object.assign(j.on,V),T=!0;let e={...j};if(delete e.wrapperClass,_.current=new r.ZP(e),_.current.virtual&&_.current.params.virtual.enabled){_.current.virtual.slides=R;let e={cache:!1,slides:R,renderExternal:M,renderExternalUpdate:!1};n(_.current.params.virtual,e),n(_.current.originalParams.virtual,e)}};O.current||W(),_.current&&_.current.on("_beforeBreakpoint",H);let q=()=>{!T&&V&&_.current&&Object.keys(V).forEach(e=>{_.current.on(e,V[e])})},X=()=>{V&&_.current&&Object.keys(V).forEach(e=>{_.current.off(e,V[e])})};return(0,s.useEffect)(()=>()=>{_.current&&_.current.off("_beforeBreakpoint",H)}),(0,s.useEffect)(()=>{!L.current&&_.current&&(_.current.emitSlidesClasses(),L.current=!0)}),f(()=>{if(t&&(t.current=O.current),O.current)return _.current.destroyed&&W(),function({el:e,nextEl:t,prevEl:i,paginationEl:s,scrollbarEl:r,swiper:a},n){l(n)&&t&&i&&(a.params.navigation.nextEl=t,a.originalParams.navigation.nextEl=t,a.params.navigation.prevEl=i,a.originalParams.navigation.prevEl=i),o(n)&&s&&(a.params.pagination.el=s,a.originalParams.pagination.el=s),d(n)&&r&&(a.params.scrollbar.el=r,a.originalParams.scrollbar.el=r),a.init(e)}({el:O.current,nextEl:I.current,prevEl:G.current,paginationEl:D.current,scrollbarEl:N.current,swiper:_.current},j),S&&S(_.current),()=>{_.current&&!_.current.destroyed&&_.current.destroy(!0,!1)}},[]),f(()=>{q();let e=function(e,t,i,s,r){let n=[];if(!t)return n;let l=e=>{0>n.indexOf(e)&&n.push(e)};if(i&&s){let e=s.map(r),t=i.map(r);e.join("")!==t.join("")&&l("children"),s.length!==i.length&&l("children")}return p.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(i=>{if(i in e&&i in t){if(a(e[i])&&a(t[i])){let s=Object.keys(e[i]),r=Object.keys(t[i]);s.length!==r.length?l(i):(s.forEach(s=>{e[i][s]!==t[i][s]&&l(i)}),r.forEach(s=>{e[i][s]!==t[i][s]&&l(i)}))}else e[i]!==t[i]&&l(i)}}),n}($,A.current,R,z.current,e=>e.key);return A.current=$,z.current=R,e.length&&_.current&&!_.current.destroyed&&function({swiper:e,slides:t,passedParams:i,changedParams:s,nextEl:r,prevEl:l,scrollbarEl:o,paginationEl:d}){let c,p,u,h,f,m,g,v;let w=s.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:b,pagination:S,navigation:E,scrollbar:T,virtual:y,thumbs:x}=e;s.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&b.thumbs&&!b.thumbs.swiper&&(c=!0),s.includes("controller")&&i.controller&&i.controller.control&&b.controller&&!b.controller.control&&(p=!0),s.includes("pagination")&&i.pagination&&(i.pagination.el||d)&&(b.pagination||!1===b.pagination)&&S&&!S.el&&(u=!0),s.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||o)&&(b.scrollbar||!1===b.scrollbar)&&T&&!T.el&&(h=!0),s.includes("navigation")&&i.navigation&&(i.navigation.prevEl||l)&&(i.navigation.nextEl||r)&&(b.navigation||!1===b.navigation)&&E&&!E.prevEl&&!E.nextEl&&(f=!0);let C=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),b[t].prevEl=void 0,b[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),b[t].el=void 0,e[t].el=void 0))};s.includes("loop")&&e.isElement&&(b.loop&&!i.loop?m=!0:!b.loop&&i.loop?g=!0:v=!0),w.forEach(e=>{if(a(b[e])&&a(i[e]))n(b[e],i[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in i[e]&&!i[e].enabled&&C(e);else{let t=i[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&C(e):b[e]=i[e]}}),w.includes("controller")&&!p&&e.controller&&e.controller.control&&b.controller&&b.controller.control&&(e.controller.control=b.controller.control),s.includes("children")&&t&&y&&b.virtual.enabled&&(y.slides=t,y.update(!0)),s.includes("children")&&t&&b.loop&&(v=!0),c&&x.init()&&x.update(!0),p&&(e.controller.control=b.controller.control),u&&(e.isElement&&(!d||"string"==typeof d)&&((d=document.createElement("div")).classList.add("swiper-pagination"),e.el.shadowEl.appendChild(d)),d&&(b.pagination.el=d),S.init(),S.render(),S.update()),h&&(e.isElement&&(!o||"string"==typeof o)&&((o=document.createElement("div")).classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(o)),o&&(b.scrollbar.el=o),T.init(),T.updateSize(),T.setTranslate()),f&&(e.isElement&&(r&&"string"!=typeof r||((r=document.createElement("div")).classList.add("swiper-button-next"),e.el.shadowEl.appendChild(r)),l&&"string"!=typeof l||((l=document.createElement("div")).classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(l))),r&&(b.navigation.nextEl=r),l&&(b.navigation.prevEl=l),E.init(),E.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=i.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=i.allowSlidePrev),s.includes("direction")&&e.changeDirection(i.direction,!1),(m||v)&&e.loopDestroy(),(g||v)&&e.loopCreate(),e.update()}({swiper:_.current,slides:R,passedParams:$,changedParams:e,nextEl:I.current,prevEl:G.current,scrollbarEl:N.current,paginationEl:D.current}),()=>{X()}}),f(()=>{h(_.current)},[C]),s.createElement(m,v({ref:O,className:c(`${y}${i?` ${i}`:""}`)},B),s.createElement(g.Provider,{value:_.current},F["container-start"],s.createElement(w,{className:function(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}(j.wrapperClass)},F["wrapper-start"],j.virtual?function(e,t,i){if(!i)return null;let r=e=>{let i=e;return e<0?i=t.length+e:i>=t.length&&(i-=t.length),i},a=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:n,to:l}=i,o=e.params.loop?-t.length:0,d=e.params.loop?2*t.length:t.length,c=[];for(let e=o;e=n&&e<=l&&c.push(t[r(e)]);return c.map((t,i)=>s.cloneElement(t,{swiper:e,style:a,key:`slide-${i}`}))}(_.current,R,C):R.map((e,t)=>s.cloneElement(e,{swiper:_.current,swiperSlideIndex:t})),F["wrapper-end"]),l(j)&&s.createElement(s.Fragment,null,s.createElement("div",{ref:G,className:"swiper-button-prev"}),s.createElement("div",{ref:I,className:"swiper-button-next"})),d(j)&&s.createElement("div",{ref:N,className:"swiper-scrollbar"}),o(j)&&s.createElement("div",{ref:D,className:"swiper-pagination"}),F["container-end"]))});function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(void 0!==p&&(h.current.swiperSlideIndex=p),t&&(t.current=h.current),h.current&&n){if(n.destroyed){"swiper-slide"!==g&&v("swiper-slide");return}return n.on("_slideClass",E),()=>{n&&n.off("_slideClass",E)}}}),f(()=>{n&&h.current&&!n.destroyed&&v(n.getSlideClasses(h.current))},[n]);let T={isActive:g.indexOf("swiper-slide-active")>=0,isVisible:g.indexOf("swiper-slide-visible")>=0,isPrev:g.indexOf("swiper-slide-prev")>=0,isNext:g.indexOf("swiper-slide-next")>=0},y=()=>"function"==typeof r?r(T):r;return s.createElement(i,b({ref:h,className:c(`${g}${a?` ${a}`:""}`),"data-swiper-slide-index":d,onLoad:()=>{S(!0)}},u),l&&s.createElement(m.Provider,{value:T},s.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof l?l:void 0},y(),o&&!w&&s.createElement("div",{className:"swiper-lazy-preloader"}))),!l&&s.createElement(m.Provider,{value:T},y(),o&&!w&&s.createElement("div",{className:"swiper-lazy-preloader"})))});S.displayName="SwiperSlide"},6887:function(e,t,i){"use strict";let s,r,a;function n(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function l(e={},t={}){Object.keys(t).forEach(i=>{void 0===e[i]?e[i]=t[i]:n(t[i])&&n(e[i])&&Object.keys(t[i]).length>0&&l(e[i],t[i])})}i.d(t,{s5:function(){return q},W_:function(){return H},ZP:function(){return F}});let o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function d(){let e="undefined"!=typeof document?document:{};return l(e,o),e}let c={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function p(){let e="undefined"!=typeof window?window:{};return l(e,c),e}function u(e,t=0){return setTimeout(e,t)}function h(){return Date.now()}function f(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function m(...e){let t=Object(e[0]),i=["__proto__","constructor","prototype"];for(let s=1;s0>i.indexOf(e));for(let i=0,s=e.length;ia?"next":"prev",d=(e,t)=>"next"===o&&e>=t||"prev"===o&&e<=t,c=()=>{s=new Date().getTime(),null===n&&(n=s);let o=a+(.5-Math.cos(Math.max(Math.min((s-n)/l,1),0)*Math.PI)/2)*(t-a);if(d(o,t)&&(o=t),e.wrapperEl.scrollTo({[i]:o}),d(o,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:o})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(c)};c()}function w(e,t=""){return[...e.children].filter(e=>e.matches(t))}function b(e,t=[]){let i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:[t]),i}function S(e,t){return p().getComputedStyle(e,null).getPropertyValue(t)}function E(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function T(e,t,i){let s=p();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function y(){return s||(s=function(){let e=p(),t=d();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),s}let x=(e,t)=>{if(!e||e.destroyed||!e.params)return;let i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);t&&t.remove()}},C=(e,t)=>{if(!e.slides[t])return;let i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},M=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);let s="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let i=[r-t];i.push(...Array.from({length:t}).map((e,t)=>r+s+t)),e.slides.forEach((t,s)=>{i.includes(t.column)&&C(e,s)});return}let a=r+s-1;if(e.params.rewind||e.params.loop)for(let s=r-t;s<=a+t;s+=1){let t=(s%i+i)%i;(ta)&&C(e,t)}else for(let s=Math.max(r-t,0);s<=Math.min(a+t,i-1);s+=1)s!==r&&(s>a||sa?"next":r0||s.isTouched&&s.isMoved)return;let c=!!r.noSwipingClass&&""!==r.noSwipingClass,u=e.composedPath?e.composedPath():e.path;c&&l.target&&l.target.shadowRoot&&u&&(o=u[0]);let f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!!(l.target&&l.target.shadowRoot);if(r.noSwiping&&(m?function(e,t=this){return function t(i){if(!i||i===d()||i===p())return null;i.assignedSlot&&(i=i.assignedSlot);let s=i.closest(e);return s||i.getRootNode?s||t(i.getRootNode().host):null}(t)}(f,o):o.closest(f))){this.allowClick=!0;return}if(r.swipeHandler&&!o.closest(r.swipeHandler))return;a.currentX=l.pageX,a.currentY=l.pageY;let g=a.currentX,v=a.currentY,w=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,b=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(w&&(g<=b||g>=i.innerWidth-b)){if("prevent"!==w)return;e.preventDefault()}Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=g,a.startY=v,s.touchStartTime=h(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1);let S=!0;o.matches(s.focusableElements)&&(S=!1,"SELECT"===o.nodeName&&(s.isTouched=!1)),t.activeElement&&t.activeElement.matches(s.focusableElements)&&t.activeElement!==o&&t.activeElement.blur();let E=S&&this.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||E)&&!o.isContentEditable&&l.preventDefault(),r.freeMode&&r.freeMode.enabled&&this.freeMode&&this.animating&&!r.cssMode&&this.freeMode.onTouchStart(),this.emit("touchStart",l)}function L(e){let t;let i=d(),s=this.touchEventsData,{params:r,touches:a,rtlTranslate:n,enabled:l}=this;if(!l||!r.simulateTouch&&"mouse"===e.pointerType)return;let o=e;if(o.originalEvent&&(o=o.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&this.emit("touchMoveOpposite",o);return}let c=s.evCache.findIndex(e=>e.pointerId===o.pointerId);c>=0&&(s.evCache[c]=o);let p=s.evCache.length>1?s.evCache[0]:o,u=p.pageX,f=p.pageY;if(o.preventedByNestedSwiper){a.startX=u,a.startY=f;return}if(!this.allowTouchMove){o.target.matches(s.focusableElements)||(this.allowClick=!1),s.isTouched&&(Object.assign(a,{startX:u,startY:f,prevX:this.touches.currentX,prevY:this.touches.currentY,currentX:u,currentY:f}),s.touchStartTime=h());return}if(r.touchReleaseOnEdges&&!r.loop){if(this.isVertical()){if(fa.startY&&this.translate>=this.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(ua.startX&&this.translate>=this.minTranslate())return}if(i.activeElement&&o.target===i.activeElement&&o.target.matches(s.focusableElements)){s.isMoved=!0,this.allowClick=!1;return}if(s.allowTouchCallbacks&&this.emit("touchMove",o),o.targetTouches&&o.targetTouches.length>1)return;a.currentX=u,a.currentY=f;let m=a.currentX-a.startX,g=a.currentY-a.startY;if(this.params.threshold&&Math.sqrt(m**2+g**2)=25&&(e=180*Math.atan2(Math.abs(g),Math.abs(m))/Math.PI,s.isScrolling=this.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(s.isScrolling&&this.emit("touchMoveOpposite",o),void 0===s.startMoving&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(s.startMoving=!0),s.isScrolling||this.zoom&&this.params.zoom&&this.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;this.allowClick=!1,!r.cssMode&&o.cancelable&&o.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&o.stopPropagation();let v=this.isHorizontal()?m:g,w=this.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;r.oneWayMovement&&(v=Math.abs(v)*(n?1:-1),w=Math.abs(w)*(n?1:-1)),a.diff=v,v*=r.touchRatio,n&&(v=-v,w=-w);let b=this.touchesDirection;this.swipeDirection=v>0?"prev":"next",this.touchesDirection=w>0?"prev":"next";let S=this.params.loop&&!r.cssMode;if(!s.isMoved){if(S&&this.loopFix({direction:this.swipeDirection}),s.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});this.wrapperEl.dispatchEvent(e)}s.allowMomentumBounce=!1,r.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",o)}s.isMoved&&b!==this.touchesDirection&&S&&Math.abs(v)>=1&&(this.loopFix({direction:this.swipeDirection,setTranslate:!0}),t=!0),this.emit("sliderMove",o),s.isMoved=!0,s.currentTranslate=v+s.startTranslate;let E=!0,T=r.resistanceRatio;if(r.touchReleaseOnEdges&&(T=0),v>0?(S&&!t&&s.currentTranslate>(r.centeredSlides?this.minTranslate()-this.size/2:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>this.minTranslate()&&(E=!1,r.resistance&&(s.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+s.startTranslate+v)**T))):v<0&&(S&&!t&&s.currentTranslate<(r.centeredSlides?this.maxTranslate()+this.size/2:this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===r.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),this.allowSlidePrev||this.allowSlideNext||(s.currentTranslate=s.startTranslate),r.threshold>0){if(Math.abs(v)>r.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,s.currentTranslate=s.startTranslate,a.diff=this.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{s.currentTranslate=s.startTranslate;return}}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&this.freeMode||r.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(s.currentTranslate),this.setTranslate(s.currentTranslate))}function O(e){let t;let i=this,s=i.touchEventsData,r=s.evCache.findIndex(t=>t.pointerId===e.pointerId);if(r>=0&&s.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!("pointercancel"===e.type&&(i.browser.isSafari||i.browser.isWebView)))return;let{params:a,touches:n,rtlTranslate:l,slidesGrid:o,enabled:d}=i;if(!d||!a.simulateTouch&&"mouse"===e.pointerType)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),s.allowTouchCallbacks&&i.emit("touchEnd",c),s.allowTouchCallbacks=!1,!s.isTouched){s.isMoved&&a.grabCursor&&i.setGrabCursor(!1),s.isMoved=!1,s.startMoving=!1;return}a.grabCursor&&s.isMoved&&s.isTouched&&(!0===i.allowSlideNext||!0===i.allowSlidePrev)&&i.setGrabCursor(!1);let p=h(),f=p-s.touchStartTime;if(i.allowClick){let e=c.path||c.composedPath&&c.composedPath();i.updateClickedSlide(e&&e[0]||c.target),i.emit("tap click",c),f<300&&p-s.lastClickTime<300&&i.emit("doubleTap doubleClick",c)}if(s.lastClickTime=h(),u(()=>{i.destroyed||(i.allowClick=!0)}),!s.isTouched||!s.isMoved||!i.swipeDirection||0===n.diff||s.currentTranslate===s.startTranslate){s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;return}if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,t=a.followFinger?l?i.translate:-i.translate:-s.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){i.freeMode.onTouchEnd({currentPos:t});return}let m=0,g=i.slidesSizesGrid[0];for(let e=0;e=o[e]&&t=o[e]&&(m=e,g=o[o.length-1]-o[o.length-2])}let v=null,w=null;a.rewind&&(i.isBeginning?w=a.virtual&&a.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1:i.isEnd&&(v=0));let b=(t-o[m])/g,S=ma.longSwipesMs){if(!a.longSwipes){i.slideTo(i.activeIndex);return}"next"===i.swipeDirection&&(b>=a.longSwipesRatio?i.slideTo(a.rewind&&i.isEnd?v:m+S):i.slideTo(m)),"prev"===i.swipeDirection&&(b>1-a.longSwipesRatio?i.slideTo(m+S):null!==w&&b<0&&Math.abs(b)>a.longSwipesRatio?i.slideTo(w):i.slideTo(m))}else{if(!a.shortSwipes){i.slideTo(i.activeIndex);return}i.navigation&&(c.target===i.navigation.nextEl||c.target===i.navigation.prevEl)?c.target===i.navigation.nextEl?i.slideTo(m+S):i.slideTo(m):("next"===i.swipeDirection&&i.slideTo(null!==v?v:m+S),"prev"===i.swipeDirection&&i.slideTo(null!==w?w:m))}}function _(){let e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:s,allowSlidePrev:r,snapGrid:a}=e,n=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let l=n&&t.loop;"auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||l?e.params.loop&&!n?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=s,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function A(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function z(){let{wrapperEl:e,rtlTranslate:t,enabled:i}=this;if(!i)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-e.scrollLeft:this.translate=-e.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let s=this.maxTranslate()-this.minTranslate();(0===s?0:(this.translate-this.minTranslate())/s)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}function I(e){x(this,e.target),!this.params.cssMode&&("auto"===this.params.slidesPerView||this.params.autoHeight)&&this.update()}let G=!1;function D(){}let N=(e,t)=>{let i=d(),{params:s,el:r,wrapperEl:a,device:n}=e,l=!!s.nested,o="on"===t?"addEventListener":"removeEventListener";r[o]("pointerdown",e.onTouchStart,{passive:!1}),i[o]("pointermove",e.onTouchMove,{passive:!1,capture:l}),i[o]("pointerup",e.onTouchEnd,{passive:!0}),i[o]("pointercancel",e.onTouchEnd,{passive:!0}),i[o]("pointerout",e.onTouchEnd,{passive:!0}),i[o]("pointerleave",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[o]("click",e.onClick,!0),s.cssMode&&a[o]("scroll",e.onScroll),s.updateOnWindowResize?e[t](n.ios||n.android?"resize orientationchange observerUpdate":"resize observerUpdate",_,!0):e[t]("observerUpdate",_,!0),r[o]("load",e.onLoad,{capture:!0})},j=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var $={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};let B={eventsEmitter:{on(e,t,i){let s=this;if(!s.eventsListeners||s.destroyed||"function"!=typeof t)return s;let r=i?"unshift":"push";return e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][r](t)}),s},once(e,t,i){let s=this;if(!s.eventsListeners||s.destroyed||"function"!=typeof t)return s;function r(...i){s.off(e,r),r.__emitterProxy&&delete r.__emitterProxy,t.apply(s,i)}return r.__emitterProxy=t,s.on(e,r,i)},onAny(e,t){return!this.eventsListeners||this.destroyed||"function"!=typeof e||0>this.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny(e){if(!this.eventsListeners||this.destroyed||!this.eventsAnyListeners)return this;let t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){let i=this;return i.eventsListeners&&!i.destroyed&&i.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((s,r)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(r,1)})}),i},emit(...e){let t,i,s;let r=this;return r.eventsListeners&&!r.destroyed&&r.eventsListeners&&("string"==typeof e[0]||Array.isArray(e[0])?(t=e[0],i=e.slice(1,e.length),s=r):(t=e[0].events,i=e[0].data,s=e[0].context||r),i.unshift(s),(Array.isArray(t)?t:t.split(" ")).forEach(e=>{r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach(t=>{t.apply(s,[e,...i])}),r.eventsListeners&&r.eventsListeners[e]&&r.eventsListeners[e].forEach(e=>{e.apply(s,i)})})),r}},update:{updateSize:function(){let e,t;let i=this.el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:i.clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:i.clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(S(i,"padding-left")||0,10)-parseInt(S(i,"padding-right")||0,10),t=t-parseInt(S(i,"padding-top")||0,10)-parseInt(S(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){let e;let t=this;function i(e){return t.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}function s(e,t){return parseFloat(e.getPropertyValue(i(t))||0)}let r=t.params,{wrapperEl:a,slidesEl:n,size:l,rtlTranslate:o,wrongRTL:d}=t,c=t.virtual&&r.virtual.enabled,p=c?t.virtual.slides.length:t.slides.length,u=w(n,`.${t.params.slideClass}, swiper-slide`),h=c?t.virtual.slides.length:u.length,f=[],m=[],v=[],b=r.slidesOffsetBefore;"function"==typeof b&&(b=r.slidesOffsetBefore.call(t));let E=r.slidesOffsetAfter;"function"==typeof E&&(E=r.slidesOffsetAfter.call(t));let y=t.snapGrid.length,x=t.slidesGrid.length,C=r.spaceBetween,M=-b,P=0,k=0;if(void 0===l)return;"string"==typeof C&&C.indexOf("%")>=0?C=parseFloat(C.replace("%",""))/100*l:"string"==typeof C&&(C=parseFloat(C)),t.virtualSize=-C,u.forEach(e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(g(a,"--swiper-centered-offset-before",""),g(a,"--swiper-centered-offset-after",""));let L=r.grid&&r.grid.rows>1&&t.grid;L&&t.grid.initSlides(h);let O="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter(e=>void 0!==r.breakpoints[e].slidesPerView).length>0;for(let a=0;aMath.abs(M)&&(M=0),r.roundLengths&&(M=Math.floor(M)),k%r.slidesPerGroup==0&&f.push(M),m.push(M)):(r.roundLengths&&(M=Math.floor(M)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup==0&&f.push(M),m.push(M),M=M+e+C),t.virtualSize+=e+C,P=e,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+E,o&&d&&("slide"===r.effect||"coverflow"===r.effect)&&(a.style.width=`${t.virtualSize+C}px`),r.setWrapperSize&&(a.style[i("width")]=`${t.virtualSize+C}px`),L&&t.grid.updateWrapperSize(e,f,i),!r.centeredSlides){let e=[];for(let i=0;i1&&f.push(t.virtualSize-l)}if(c&&r.loop){let e=v[0]+C;if(r.slidesPerGroup>1){let i=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup),s=e*r.slidesPerGroup;for(let e=0;e!r.cssMode||!!r.loop||t!==u.length-1).forEach(t=>{t.style[e]=`${C}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let e=0;v.forEach(t=>{e+=t+(C||0)});let t=(e-=C)-l;f=f.map(e=>e<=0?-b:e>t?t+E:e)}if(r.centerInsufficientSlides){let e=0;if(v.forEach(t=>{e+=t+(C||0)}),(e-=C){f[i]=e-t}),m.forEach((e,i)=>{m[i]=e+t})}}if(Object.assign(t,{slides:u,snapGrid:f,slidesGrid:m,slidesSizesGrid:v}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){g(a,"--swiper-centered-offset-before",`${-f[0]}px`),g(a,"--swiper-centered-offset-after",`${t.size/2-v[v.length-1]/2}px`);let e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+i)}if(h!==p&&t.emit("slidesLengthChange"),f.length!==y&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==x&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),!c&&!r.cssMode&&("slide"===r.effect||"fade"===r.effect)){let e=`${r.containerModifierClass}backface-hidden`,i=t.el.classList.contains(e);h<=r.maxBackfaceHiddenSlides?i||t.el.classList.add(e):i&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t;let i=this,s=[],r=i.virtual&&i.params.virtual.enabled,a=0;"number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed);let n=e=>r?i.slides[i.getSlideIndexByData(e)]:i.slides[e];if("auto"!==i.params.slidesPerView&&i.params.slidesPerView>1){if(i.params.centeredSlides)(i.visibleSlides||[]).forEach(e=>{s.push(e)});else for(t=0;ti.slides.length&&!r)break;s.push(n(e))}}else s.push(n(i.activeIndex));for(t=0;ta?e:a}(a||0===a)&&(i.wrapperEl.style.height=`${a}px`)},updateSlidesOffset:function(){let e=this.slides,t=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let i=0;i{e.classList.remove(t.slideVisibleClass)}),this.visibleSlidesIndexes=[],this.visibleSlides=[];let n=t.spaceBetween;"string"==typeof n&&n.indexOf("%")>=0?n=parseFloat(n.replace("%",""))/100*this.size:"string"==typeof n&&(n=parseFloat(n));for(let e=0;e=0&&p1&&u<=this.size||p<=0&&u>=this.size)&&(this.visibleSlides.push(l),this.visibleSlidesIndexes.push(e),i[e].classList.add(t.slideVisibleClass)),l.progress=s?-d:d,l.originalProgress=s?-c:c}},updateProgress:function(e){if(void 0===e){let t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}let t=this.params,i=this.maxTranslate()-this.minTranslate(),{progress:s,isBeginning:r,isEnd:a,progressLoop:n}=this,l=r,o=a;if(0===i)s=0,r=!0,a=!0;else{s=(e-this.minTranslate())/i;let t=1>Math.abs(e-this.minTranslate()),n=1>Math.abs(e-this.maxTranslate());r=t||s<=0,a=n||s>=1,t&&(s=0),n&&(s=1)}if(t.loop){let t=this.getSlideIndexByData(0),i=this.getSlideIndexByData(this.slides.length-1),s=this.slidesGrid[t],r=this.slidesGrid[i],a=this.slidesGrid[this.slidesGrid.length-1],l=Math.abs(e);(n=l>=s?(l-s)/a:(l+a-r)/a)>1&&(n-=1)}Object.assign(this,{progress:s,progressLoop:n,isBeginning:r,isEnd:a}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&this.updateSlidesProgress(e),r&&!l&&this.emit("reachBeginning toEdge"),a&&!o&&this.emit("reachEnd toEdge"),(l&&!r||o&&!a)&&this.emit("fromEdge"),this.emit("progress",s)},updateSlidesClasses:function(){let e;let{slides:t,params:i,slidesEl:s,activeIndex:r}=this,a=this.virtual&&i.virtual.enabled,n=e=>w(s,`.${i.slideClass}${e}, swiper-slide${e}`)[0];if(t.forEach(e=>{e.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)}),a){if(i.loop){let t=r-this.virtual.slidesBefore;t<0&&(t=this.virtual.slides.length+t),t>=this.virtual.slides.length&&(t-=this.virtual.slides.length),e=n(`[data-swiper-slide-index="${t}"]`)}else e=n(`[data-swiper-slide-index="${r}"]`)}else e=t[r];if(e){e.classList.add(i.slideActiveClass);let s=function(e,t){let i=[];for(;e.nextElementSibling;){let s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(e,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!s&&(s=t[0]),s&&s.classList.add(i.slideNextClass);let r=function(e,t){let i=[];for(;e.previousElementSibling;){let s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(e,`.${i.slideClass}, swiper-slide`)[0];i.loop,r&&r.classList.add(i.slidePrevClass)}this.emitSlidesClasses()},updateActiveIndex:function(e){let t,i;let s=this,r=s.rtlTranslate?s.translate:-s.translate,{snapGrid:a,params:n,activeIndex:l,realIndex:o,snapIndex:d}=s,c=e,p=e=>{let t=e-s.virtual.slidesBefore;return t<0&&(t=s.virtual.slides.length+t),t>=s.virtual.slides.length&&(t-=s.virtual.slides.length),t};if(void 0===c&&(c=function(e){let t;let{slidesGrid:i,params:s}=e,r=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e=i[e]&&r=i[e]&&r=i[e]&&(t=e);return s.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(s)),a.indexOf(r)>=0)t=a.indexOf(r);else{let e=Math.min(n.slidesPerGroupSkip,c);t=e+Math.floor((c-e)/n.slidesPerGroup)}if(t>=a.length&&(t=a.length-1),c===l){t!==d&&(s.snapIndex=t,s.emit("snapIndexChange")),s.params.loop&&s.virtual&&s.params.virtual.enabled&&(s.realIndex=p(c));return}i=s.virtual&&n.virtual.enabled&&n.loop?p(c):s.slides[c]?parseInt(s.slides[c].getAttribute("data-swiper-slide-index")||c,10):c,Object.assign(s,{previousSnapIndex:d,snapIndex:t,previousRealIndex:o,realIndex:i,previousIndex:l,activeIndex:c}),s.initialized&&M(s),s.emit("activeIndexChange"),s.emit("snapIndexChange"),o!==i&&s.emit("realIndexChange"),(s.initialized||s.params.runCallbacksOnInit)&&s.emit("slideChange")},updateClickedSlide:function(e){let t;let i=this.params,s=e.closest(`.${i.slideClass}, swiper-slide`),r=!1;if(s){for(let e=0;e6&&(s=s.split(", ").map(e=>e.replace(",",".")).join(", ")),r=new a.WebKitCSSMatrix("none"===s?"":s)):i=(r=n.MozTransform||n.OTransform||n.MsTransform||n.msTransform||n.transform||n.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(s=a.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=a.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0}(r,e);return a+=this.cssOverflowAdjustment(),i&&(a=-a),a||0},setTranslate:function(e,t){let{rtlTranslate:i,params:s,wrapperEl:r,progress:a}=this,n=0,l=0;this.isHorizontal()?n=i?-e:e:l=e,s.roundLengths&&(n=Math.floor(n),l=Math.floor(l)),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?n:l,s.cssMode?r[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-n:-l:s.virtualTranslate||(this.isHorizontal()?n-=this.cssOverflowAdjustment():l-=this.cssOverflowAdjustment(),r.style.transform=`translate3d(${n}px, ${l}px, 0px)`);let o=this.maxTranslate()-this.minTranslate();(0===o?0:(e-this.minTranslate())/o)!==a&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,i=!0,s=!0,r){let a;let n=this,{params:l,wrapperEl:o}=n;if(n.animating&&l.preventInteractionOnTransition)return!1;let d=n.minTranslate(),c=n.maxTranslate();if(a=s&&e>d?d:s&&e=d.length&&(w=d.length-1);let b=-d[w];if(o.normalizeSlideIndex)for(let e=0;e=i&&t=i&&t=i&&(l=e)}if(n.initialized&&l!==u&&(!n.allowSlideNext&&(h?b>n.translate&&b>n.minTranslate():bn.translate&&b>n.maxTranslate()&&(u||0)!==l))return!1;if(l!==(p||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(b),a=l>u?"next":l0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[e?"scrollLeft":"scrollTop"]=i})):f[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return v({swiper:n,targetPosition:i,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return n.setTransition(t),n.setTranslate(b),n.updateActiveIndex(l),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,s),n.transitionStart(i,a),0===t?n.transitionEnd(i,a):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,a))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,i=!0,s){"string"==typeof e&&(e=parseInt(e,10));let r=e;return this.params.loop&&(this.virtual&&this.params.virtual.enabled?r+=this.virtual.slidesBefore:r=this.getSlideIndexByData(r)),this.slideTo(r,t,i,s)},slideNext:function(e=this.params.speed,t=!0,i){let{enabled:s,params:r,animating:a}=this;if(!s)return this;let n=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(n=Math.max(this.slidesPerViewDynamic("current",!0),1));let l=this.activeIndexc(e)),h=r[u.indexOf(p)-1];if(void 0===h&&s.cssMode){let e;r.forEach((t,i)=>{p>=t&&(e=i)}),void 0!==e&&(h=r[e>0?e-1:e])}let f=0;if(void 0!==h&&((f=a.indexOf(h))<0&&(f=this.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(f=Math.max(f=f-this.slidesPerViewDynamic("previous",!0)+1,0))),s.rewind&&this.isBeginning){let s=this.params.virtual&&this.params.virtual.enabled&&this.virtual?this.virtual.slides.length-1:this.slides.length-1;return this.slideTo(s,e,t,i)}return this.slideTo(f,e,t,i)},slideReset:function(e=this.params.speed,t=!0,i){return this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e=this.params.speed,t=!0,i,s=.5){let r=this.activeIndex,a=Math.min(this.params.slidesPerGroupSkip,r),n=a+Math.floor((r-a)/this.params.slidesPerGroup),l=this.rtlTranslate?this.translate:-this.translate;if(l>=this.snapGrid[n]){let e=this.snapGrid[n];l-e>(this.snapGrid[n+1]-e)*s&&(r+=this.params.slidesPerGroup)}else{let e=this.snapGrid[n-1];l-e<=(this.snapGrid[n]-e)*s&&(r-=this.params.slidesPerGroup)}return r=Math.min(r=Math.max(r,0),this.slidesGrid.length-1),this.slideTo(r,e,t,i)},slideToClickedSlide:function(){let e;let t=this,{params:i,slidesEl:s}=t,r="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,a=t.clickedIndex,n=t.isElement?"swiper-slide":`.${i.slideClass}`;if(i.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),i.centeredSlides?at.slides.length-t.loopedSlides+r/2?(t.loopFix(),a=t.getSlideIndex(w(s,`${n}[data-swiper-slide-index="${e}"]`)[0]),u(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-r?(t.loopFix(),a=t.getSlideIndex(w(s,`${n}[data-swiper-slide-index="${e}"]`)[0]),u(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}},loop:{loopCreate:function(e){let{params:t,slidesEl:i}=this;!t.loop||this.virtual&&this.params.virtual.enabled||(w(i,`.${t.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}),this.loopFix({slideRealIndex:e,direction:t.centeredSlides?void 0:"next"}))},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:i,setTranslate:s,activeSlideIndex:r,byController:a,byMousewheel:n}={}){let l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");let{slides:o,allowSlidePrev:d,allowSlideNext:c,slidesEl:p,params:u}=l;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&u.virtual.enabled){t&&(u.centeredSlides||0!==l.snapIndex?u.centeredSlides&&l.snapIndexe.classList.contains(u.slideActiveClass))[0]):v=r;let w="next"===i||!i,b="prev"===i||!i,S=0,E=0;if(rl.slides.length-2*f){E=Math.max(r-(l.slides.length-2*f),u.slidesPerGroup);for(let e=0;e{l.slides[e].swiperLoopMoveDOM=!0,p.prepend(l.slides[e]),l.slides[e].swiperLoopMoveDOM=!1}),w&&g.forEach(e=>{l.slides[e].swiperLoopMoveDOM=!0,p.append(l.slides[e]),l.slides[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===u.slidesPerView&&l.updateSlides(),u.watchSlidesProgress&&l.updateSlidesOffset(),t){if(m.length>0&&b){if(void 0===e){let e=l.slidesGrid[v],t=l.slidesGrid[v+S]-e;n?l.setTranslate(l.translate-t):(l.slideTo(v+S,0,!1,!0),s&&(l.touches[l.isHorizontal()?"startX":"startY"]+=t))}else s&&l.slideToLoop(e,0,!1,!0)}else if(g.length>0&&w){if(void 0===e){let e=l.slidesGrid[v],t=l.slidesGrid[v-E]-e;n?l.setTranslate(l.translate-t):(l.slideTo(v-E,0,!1,!0),s&&(l.touches[l.isHorizontal()?"startX":"startY"]+=t))}else l.slideToLoop(e,0,!1,!0)}}if(l.allowSlidePrev=d,l.allowSlideNext=c,l.controller&&l.controller.control&&!a){let t={slideRealIndex:e,slideTo:!1,direction:i,setTranslate:s,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix(t)}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix(t)}l.emit("loopFix")},loopDestroy:function(){let{params:e,slidesEl:t}=this;if(!e.loop||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let i=[];this.slides.forEach(e=>{i[void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{t.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){let e=d(),{params:t}=this;this.onTouchStart=k.bind(this),this.onTouchMove=L.bind(this),this.onTouchEnd=O.bind(this),t.cssMode&&(this.onScroll=z.bind(this)),this.onClick=A.bind(this),this.onLoad=I.bind(this),G||(e.addEventListener("touchstart",D),G=!0),N(this,"on")},detachEvents:function(){N(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:i,params:s,el:r}=e,a=s.breakpoints;if(!a||a&&0===Object.keys(a).length)return;let n=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!n||e.currentBreakpoint===n)return;let l=(n in a?a[n]:void 0)||e.originalParams,o=j(e,s),d=j(e,l),c=s.enabled;o&&!d?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!o&&d&&(r.classList.add(`${s.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===s.grid.fill)&&r.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===l[t])return;let i=s[t]&&s[t].enabled,r=l[t]&&l[t].enabled;i&&!r&&e[t].disable(),!i&&r&&e[t].enable()});let p=l.direction&&l.direction!==s.direction,u=s.loop&&(l.slidesPerView!==s.slidesPerView||p);p&&i&&e.changeDirection(),m(e.params,l);let h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),c&&!h?e.disable():!c&&h&&e.enable(),e.currentBreakpoint=n,e.emit("_beforeBreakpoint",l),u&&i&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)},getBreakpoint:function(e,t="window",i){if(!e||"container"===t&&!i)return;let s=!1,r=p(),a="window"===t?r.innerHeight:i.clientHeight,n=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:a*parseFloat(e.substr(1)),point:e}:{value:e,point:e});n.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;et}else this.isLocked=1===this.snapGrid.length;!0===t.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===t.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),e&&e!==this.isLocked&&(this.isEnd=!1),e!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){let{classNames:e,params:t,rtl:i,el:s,device:r}=this,a=function(e,t){let i=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(s=>{e[s]&&i.push(t+s)}):"string"==typeof e&&i.push(t+e)}),i}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:i},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),s.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},V={};class R{constructor(...e){let t,i;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?i=e[0]:[t,i]=e,i||(i={}),i=m({},i),t&&!i.el&&(i.el=t);let s=d();if(i.el&&"string"==typeof i.el&&s.querySelectorAll(i.el).length>1){let e=[];return s.querySelectorAll(i.el).forEach(t=>{let s=m({},i,{el:t});e.push(new R(s))}),e}let n=this;n.__swiper__=!0,n.support=y(),n.device=function(e={}){return r||(r=function({userAgent:e}={}){let t=y(),i=p(),s=i.navigator.platform,r=e||i.navigator.userAgent,a={ios:!1,android:!1},n=i.screen.width,l=i.screen.height,o=r.match(/(Android);?[\s\/]+([\d.]+)?/),d=r.match(/(iPad).*OS\s([\d_]+)/),c=r.match(/(iPod)(.*OS\s([\d_]+))?/),u=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="MacIntel"===s;return!d&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${n}x${l}`)>=0&&((d=r.match(/(Version)\/([\d.]+)/))||(d=[0,1,"13_0_0"]),h=!1),o&&"Win32"!==s&&(a.os="android",a.android=!0),(d||u||c)&&(a.os="ios",a.ios=!0),a}(e)),r}({userAgent:i.userAgent}),n.browser=(a||(a=function(){let e=p(),t=!1;function i(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}if(i()){let i=String(e.navigator.userAgent);if(i.includes("Version/")){let[e,s]=i.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));t=e<16||16===e&&s<2}}return{isSafari:t||i(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),a),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],i.modules&&Array.isArray(i.modules)&&n.modules.push(...i.modules);let l={};n.modules.forEach(e=>{var t;e({params:i,swiper:n,extendParams:(t=i,function(e={}){let i=Object.keys(e)[0],s=e[i];if("object"!=typeof s||null===s||(["navigation","pagination","scrollbar"].indexOf(i)>=0&&!0===t[i]&&(t[i]={auto:!0}),!(i in t&&"enabled"in s))){m(l,e);return}!0===t[i]&&(t[i]={enabled:!0}),"object"!=typeof t[i]||"enabled"in t[i]||(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),m(l,e)}),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});let o=m({},$,l);return n.params=m({},o,V,i),n.originalParams=m({},n.params),n.passedParams=m({},i),n.params&&n.params.on&&Object.keys(n.params.on).forEach(e=>{n.on(e,n.params.on[e])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),Object.assign(n,{enabled:n.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===n.params.direction,isVertical:()=>"vertical"===n.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return 8388608*Math.trunc(this.translate/8388608)},allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}getSlideIndex(e){let{slidesEl:t,params:i}=this,s=E(w(t,`.${i.slideClass}, swiper-slide`)[0]);return E(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0])}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=w(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let i=this.minTranslate(),s=(this.maxTranslate()-i)*e+i;this.translateTo(s,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(i=>{let s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){let{params:i,slides:s,slidesGrid:r,slidesSizesGrid:a,size:n,activeIndex:l}=this,o=1;if(i.centeredSlides){let e,t=s[l]?s[l].swiperSlideSize:0;for(let i=l+1;in&&(e=!0));for(let i=l-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e=0;e-=1)r[l]-r[e]{e.complete&&x(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)r(),s.autoHeight&&t.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&t.isEnd&&!s.centeredSlides){let i=t.virtual&&s.virtual.enabled?t.virtual.slides:t.slides;e=t.slideTo(i.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||r()}s.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t=!0){let i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(this.el.classList.remove(`${this.params.containerModifierClass}${i}`),this.el.classList.add(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){(!this.rtl||"rtl"!==e)&&(this.rtl||"ltr"!==e)&&(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.el.classList.add(`${this.params.containerModifierClass}rtl`),this.el.dir="rtl"):(this.el.classList.remove(`${this.params.containerModifierClass}rtl`),this.el.dir="ltr"),this.update())}mount(e){let t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.shadowEl&&(t.isElement=!0);let s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,r=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):w(i,s())[0];return!r&&t.params.createElements&&(r=b("div",t.params.wrapperClass),i.append(r),w(i,`.${t.params.slideClass}`).forEach(e=>{r.append(e)})),Object.assign(t,{el:i,wrapperEl:r,slidesEl:t.isElement?i:r,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===S(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===S(i,"direction")),wrongRTL:"-webkit-box"===S(r,"display")}),!0}init(e){let t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete?x(t,e):e.addEventListener("load",e=>{x(t,e.target)})}),M(t),t.initialized=!0,M(t),t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){let i=this,{params:s,el:r,wrapperEl:a,slides:n}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttribute("style"),a.removeAttribute("style"),n&&n.length&&n.forEach(e=>{e.classList.remove(s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.el.swiper=null,function(e){Object.keys(e).forEach(t=>{try{e[t]=null}catch(e){}try{delete e[t]}catch(e){}})}(i)),i.destroyed=!0),null}static extendDefaults(e){m(V,e)}static get extendedDefaults(){return V}static get defaults(){return $}static installModule(e){R.prototype.__modules__||(R.prototype.__modules__=[]);let t=R.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>R.installModule(e)):R.installModule(e),R}}Object.keys(B).forEach(e=>{Object.keys(B[e]).forEach(t=>{R.prototype[t]=B[e][t]})}),R.use([function({swiper:e,on:t,emit:i}){let s=p(),r=null,a=null,n=()=>{e&&!e.destroyed&&e.initialized&&(i("beforeResize"),i("resize"))},l=()=>{e&&!e.destroyed&&e.initialized&&(r=new ResizeObserver(t=>{a=s.requestAnimationFrame(()=>{let{width:i,height:s}=e,r=i,a=s;t.forEach(({contentBoxSize:t,contentRect:i,target:s})=>{s&&s!==e.el||(r=i?i.width:(t[0]||t).inlineSize,a=i?i.height:(t[0]||t).blockSize)}),(r!==i||a!==s)&&n()})})).observe(e.el)},o=()=>{a&&s.cancelAnimationFrame(a),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},d=()=>{e&&!e.destroyed&&e.initialized&&i("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&void 0!==s.ResizeObserver){l();return}s.addEventListener("resize",n),s.addEventListener("orientationchange",d)}),t("destroy",()=>{o(),s.removeEventListener("resize",n),s.removeEventListener("orientationchange",d)})},function({swiper:e,extendParams:t,on:i,emit:s}){let r=[],a=p(),n=(t,i={})=>{let n=new(a.MutationObserver||a.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length){s("observerUpdate",t[0]);return}let i=function(){s("observerUpdate",t[0])};a.requestAnimationFrame?a.requestAnimationFrame(i):a.setTimeout(i,0)});n.observe(t,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),r.push(n)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(e.params.observer){if(e.params.observeParents){let t=function(e,t){let i=[],s=e.parentElement;for(;s;)i.push(s),s=s.parentElement;return i}(e.el);for(let e=0;e{r.forEach(e=>{e.disconnect()}),r.splice(0,r.length)})}]);var F=R;function H({swiper:e,extendParams:t,on:i,emit:s}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};let r=e=>(Array.isArray(e)||(e=[e].filter(e=>!!e)),e);function a(t){let i;return t&&"string"==typeof t&&e.isElement&&(i=e.el.shadowRoot.querySelector(t))?i:(t&&("string"==typeof t&&(i=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&i.length>1&&1===e.el.querySelectorAll(t).length&&(i=e.el.querySelector(t))),t&&!i)?t:i}function n(t,i){let s=e.params.navigation;(t=r(t)).forEach(t=>{t&&(t.classList[i?"add":"remove"](...s.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=i),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](s.lockClass))})}function l(){let{nextEl:t,prevEl:i}=e.navigation;if(e.params.loop){n(i,!1),n(t,!1);return}n(i,e.isBeginning&&!e.params.rewind),n(t,e.isEnd&&!e.params.rewind)}function o(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function d(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function c(){var t,i,s;let n=e.params.navigation;if(e.params.navigation=(t=e.originalParams.navigation,i=e.params.navigation,s={nextEl:"swiper-button-next",prevEl:"swiper-button-prev"},e.params.createElements&&Object.keys(s).forEach(r=>{if(!i[r]&&!0===i.auto){let a=w(e.el,`.${s[r]}`)[0];a||((a=b("div",s[r])).className=s[r],e.el.append(a)),i[r]=a,t[r]=a}}),i),!(n.nextEl||n.prevEl))return;let l=a(n.nextEl),c=a(n.prevEl);Object.assign(e.navigation,{nextEl:l,prevEl:c}),l=r(l),c=r(c);let p=(t,i)=>{t&&t.addEventListener("click","next"===i?d:o),!e.enabled&&t&&t.classList.add(...n.lockClass.split(" "))};l.forEach(e=>p(e,"next")),c.forEach(e=>p(e,"prev"))}function p(){let{nextEl:t,prevEl:i}=e.navigation;t=r(t),i=r(i);let s=(t,i)=>{t.removeEventListener("click","next"===i?d:o),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>s(e,"next")),i.forEach(e=>s(e,"prev"))}i("init",()=>{!1===e.params.navigation.enabled?u():(c(),l())}),i("toEdge fromEdge lock unlock",()=>{l()}),i("destroy",()=>{p()}),i("enable disable",()=>{let{nextEl:t,prevEl:i}=e.navigation;[...t=r(t),...i=r(i)].filter(e=>!!e).forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),i("click",(t,i)=>{let{nextEl:a,prevEl:n}=e.navigation;a=r(a),n=r(n);let l=i.target;if(e.params.navigation.hideOnClick&&!n.includes(l)&&!a.includes(l)){let t;if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===l||e.pagination.el.contains(l)))return;a.length?t=a[0].classList.contains(e.params.navigation.hiddenClass):n.length&&(t=n[0].classList.contains(e.params.navigation.hiddenClass)),!0===t?s("navigationShow"):s("navigationHide"),[...a,...n].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let u=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),l()},disable:u,update:l,init:c,destroy:p})}function W(e=""){return`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function q({swiper:e,extendParams:t,on:i}){t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let s=null;function r(e){let t=s;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}let a=e=>(Array.isArray(e)||(e=[e].filter(e=>!!e)),e);function n(e){(e=a(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function l(e){(e=a(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function o(e,t){(e=a(e)).forEach(e=>{e.setAttribute("role",t)})}function d(e,t){(e=a(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function c(e,t){(e=a(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function p(e){(e=a(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function u(e){(e=a(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function h(t){if(13!==t.keyCode&&32!==t.keyCode)return;let i=e.params.a11y,s=t.target;(!(e.pagination&&e.pagination.el&&(s===e.pagination.el||e.pagination.el.contains(t.target)))||t.target.matches(W(e.params.pagination.bulletClass)))&&(e.navigation&&e.navigation.nextEl&&s===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(i.lastSlideMessage):r(i.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&s===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(i.firstSlideMessage):r(i.prevSlideMessage)),e.pagination&&s.matches(W(e.params.pagination.bulletClass))&&s.click())}function f(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function m(){return f()&&e.params.pagination.clickable}let g=(e,t,i)=>{n(e),"BUTTON"!==e.tagName&&(o(e,"button"),e.addEventListener("keydown",h)),c(e,i),function(e,t){(e=a(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},v=()=>{e.a11y.clicked=!0},w=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},S=t=>{if(e.a11y.clicked)return;let i=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!i||!e.slides.includes(i))return;let s=e.slides.indexOf(i)===e.activeIndex,r=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(i);!s&&!r&&(t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(i),0)))},T=()=>{let t=e.params.a11y;t.itemRoleDescriptionMessage&&d(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&o(e.slides,t.slideRole);let i=e.slides.length;t.slideLabelMessage&&e.slides.forEach((s,r)=>{let a=e.params.loop?parseInt(s.getAttribute("data-swiper-slide-index"),10):r;c(s,t.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,i))})},y=()=>{let t=e.params.a11y;e.isElement?e.el.shadowEl.append(s):e.el.append(s);let i=e.el;t.containerRoleDescriptionMessage&&d(i,t.containerRoleDescriptionMessage),t.containerMessage&&c(i,t.containerMessage);let r=e.wrapperEl,n=t.id||r.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`,l=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";!function(e,t){(e=a(e)).forEach(e=>{e.setAttribute("id",t)})}(r,n),function(e,t){(e=a(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(r,l),T();let{nextEl:o,prevEl:p}=e.navigation?e.navigation:{};o=a(o),p=a(p),o&&o.forEach(e=>g(e,n,t.nextSlideMessage)),p&&p.forEach(e=>g(e,n,t.prevSlideMessage)),m()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(e=>{e.addEventListener("keydown",h)}),e.el.addEventListener("focus",S,!0),e.el.addEventListener("pointerdown",v,!0),e.el.addEventListener("pointerup",w,!0)};i("beforeInit",()=>{(s=b("span",e.params.a11y.notificationClass)).setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),i("afterInit",()=>{e.params.a11y.enabled&&y()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&T()}),i("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;let{nextEl:t,prevEl:i}=e.navigation;i&&(e.isBeginning?(p(i),l(i)):(u(i),n(i))),t&&(e.isEnd?(p(t),l(t)):(u(t),n(t)))}()}),i("paginationUpdate",()=>{e.params.a11y.enabled&&function(){let t=e.params.a11y;f()&&e.pagination.bullets.forEach(i=>{e.params.pagination.clickable&&(n(i),e.params.pagination.renderBullet||(o(i,"button"),c(i,t.paginationBulletMessage.replace(/\{\{index\}\}/,E(i)+1)))),i.matches(W(e.params.pagination.bulletActiveClass))?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current")})}()}),i("destroy",()=>{e.params.a11y.enabled&&function(){s&&s.remove();let{nextEl:t,prevEl:i}=e.navigation?e.navigation:{};t=a(t),i=a(i),t&&t.forEach(e=>e.removeEventListener("keydown",h)),i&&i.forEach(e=>e.removeEventListener("keydown",h)),m()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(e=>{e.removeEventListener("keydown",h)}),e.el.removeEventListener("focus",S,!0),e.el.removeEventListener("pointerdown",v,!0),e.el.removeEventListener("pointerup",w,!0)}()})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/641.953bdc1e75f33fd9.js b/_next/static/chunks/641.953bdc1e75f33fd9.js deleted file mode 100644 index c9d10bf16..000000000 --- a/_next/static/chunks/641.953bdc1e75f33fd9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[641],{7396:function(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},o=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,h=arguments[0],p=1,d=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,s]=t[i];switch(a){case 0:case -1:return n(s,i);case 1:{let e=n([],i);for(let t of s)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of s)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of s)e.add(r(t));return e}case 7:{let{name:e,message:t}=s;return n(new H[e](t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new H[a](s),i)};return r},G=e=>U(new Map,e)(0),{toString:Y}={},{keys:z}=Object,q=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=Y.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},W=([e,t])=>0===e&&("function"===t||"symbol"===t),V=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[s,o]=q(r);switch(s){case 0:{let t=r;switch(o){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+o);t=null;break;case"undefined":return i([-1],r)}return i([s,t],r)}case 1:{if(o)return i([o,[...r]],r);let e=[],t=i([s,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(o)switch(o){case"BigInt":return i([o,r.toString()],r);case"Boolean":case"Number":case"String":return i([o,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());let n=[],l=i([s,n],r);for(let t of z(r))(e||!W(q(r[t])))&&n.push([a(t),a(r[t])]);return l}case 3:return i([s,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([s,{source:e,flags:t}],r)}case 5:{let t=[],n=i([s,t],r);for(let[n,i]of r)(e||!(W(q(n))||W(q(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([s,t],r);for(let n of r)(e||!W(q(n)))&&t.push(a(n));return n}}let{message:l}=r;return i([s,{name:o,message:l}],r)};return a},Q=(e,{json:t,lossy:n}={})=>{let r=[];return V(!(t||n),!!t,new Map,r)(e),r};var j="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?G(Q(e,t)):structuredClone(e):(e,t)=>G(Q(e,t));class K{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function X(e,t){let n={},r={},i=-1;for(;++i"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ed=eh({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ef(e,t){return t in e?e[t]:t}function em(e,t){return ef(e,t.toLowerCase())}let eE=eh({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:em,properties:{xmlns:null,xmlnsXLink:null}}),eT=eh({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:et,ariaAutoComplete:null,ariaBusy:et,ariaChecked:et,ariaColCount:er,ariaColIndex:er,ariaColSpan:er,ariaControls:ei,ariaCurrent:null,ariaDescribedBy:ei,ariaDetails:null,ariaDisabled:et,ariaDropEffect:ei,ariaErrorMessage:null,ariaExpanded:et,ariaFlowTo:ei,ariaGrabbed:et,ariaHasPopup:null,ariaHidden:et,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ei,ariaLevel:er,ariaLive:null,ariaModal:et,ariaMultiLine:et,ariaMultiSelectable:et,ariaOrientation:null,ariaOwns:ei,ariaPlaceholder:null,ariaPosInSet:er,ariaPressed:et,ariaReadOnly:et,ariaRelevant:null,ariaRequired:et,ariaRoleDescription:ei,ariaRowCount:er,ariaRowIndex:er,ariaRowSpan:er,ariaSelected:et,ariaSetSize:er,ariaSort:null,ariaValueMax:er,ariaValueMin:er,ariaValueNow:er,ariaValueText:null,role:null}}),eg=eh({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:em,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ea,acceptCharset:ei,accessKey:ei,action:null,allow:null,allowFullScreen:ee,allowPaymentRequest:ee,allowUserMedia:ee,alt:null,as:null,async:ee,autoCapitalize:null,autoComplete:ei,autoFocus:ee,autoPlay:ee,blocking:ei,capture:null,charSet:null,checked:ee,cite:null,className:ei,cols:er,colSpan:null,content:null,contentEditable:et,controls:ee,controlsList:ei,coords:er|ea,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ee,defer:ee,dir:null,dirName:null,disabled:ee,download:en,draggable:et,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ee,formTarget:null,headers:ei,height:er,hidden:ee,high:er,href:null,hrefLang:null,htmlFor:ei,httpEquiv:ei,id:null,imageSizes:null,imageSrcSet:null,inert:ee,inputMode:null,integrity:null,is:null,isMap:ee,itemId:null,itemProp:ei,itemRef:ei,itemScope:ee,itemType:ei,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ee,low:er,manifest:null,max:null,maxLength:er,media:null,method:null,min:null,minLength:er,multiple:ee,muted:ee,name:null,nonce:null,noModule:ee,noValidate:ee,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ee,optimum:er,pattern:null,ping:ei,placeholder:null,playsInline:ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ee,referrerPolicy:null,rel:ei,required:ee,reversed:ee,rows:er,rowSpan:er,sandbox:ei,scope:null,scoped:ee,seamless:ee,selected:ee,shadowRootClonable:ee,shadowRootDelegatesFocus:ee,shadowRootMode:null,shape:null,size:er,sizes:null,slot:null,span:er,spellCheck:et,src:null,srcDoc:null,srcLang:null,srcSet:null,start:er,step:null,style:null,tabIndex:er,target:null,title:null,translate:null,type:null,typeMustMatch:ee,useMap:null,value:et,width:er,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ei,axis:null,background:null,bgColor:null,border:er,borderColor:null,bottomMargin:er,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ee,declare:ee,event:null,face:null,frame:null,frameBorder:null,hSpace:er,leftMargin:er,link:null,longDesc:null,lowSrc:null,marginHeight:er,marginWidth:er,noResize:ee,noHref:ee,noShade:ee,noWrap:ee,object:null,profile:null,prompt:null,rev:null,rightMargin:er,rules:null,scheme:null,scrolling:et,standby:null,summary:null,text:null,topMargin:er,valueType:null,version:null,vAlign:null,vLink:null,vSpace:er,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ee,disableRemotePlayback:ee,prefix:null,property:null,results:er,security:null,unselectable:null}}),eA=eh({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ef,properties:{about:es,accentHeight:er,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:er,amplitude:er,arabicForm:null,ascent:er,attributeName:null,attributeType:null,azimuth:er,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:er,by:null,calcMode:null,capHeight:er,className:ei,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:er,diffuseConstant:er,direction:null,display:null,dur:null,divisor:er,dominantBaseline:null,download:ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:er,enableBackground:null,end:null,event:null,exponent:er,externalResourcesRequired:null,fill:null,fillOpacity:er,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ea,g2:ea,glyphName:ea,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:er,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:er,horizOriginX:er,horizOriginY:er,id:null,ideographic:er,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:er,k:er,k1:er,k2:er,k3:er,k4:er,kernelMatrix:es,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:er,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:er,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:er,overlineThickness:er,paintOrder:null,panose1:null,path:null,pathLength:er,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ei,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:er,pointsAtY:er,pointsAtZ:er,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:es,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:es,rev:es,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:es,requiredFeatures:es,requiredFonts:es,requiredFormats:es,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:er,specularExponent:er,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:er,strikethroughThickness:er,string:null,stroke:null,strokeDashArray:es,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:er,strokeOpacity:er,strokeWidth:null,style:null,surfaceScale:er,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:es,tabIndex:er,tableValues:null,target:null,targetX:er,targetY:er,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:es,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:er,underlineThickness:er,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:er,values:null,vAlphabetic:er,vMathematical:er,vectorEffect:null,vHanging:er,vIdeographic:er,version:null,vertAdvY:er,vertOriginX:er,vertOriginY:er,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:er,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),e_=X([ed,ep,eE,eT,eg],"html"),eN=X([ed,ep,eE,eT,eA],"svg");function eI(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function eS(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}let eC=/[#.]/g,ek=/^data[-\w.:]+$/i,eD=/-[a-z]/g,eO=/[A-Z]/g;function eb(e,t){let n=J(t),r=t,i=Z;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ek.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(eD,ey);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!eD.test(e)){let n=e.replace(eO,eR);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=ec}return new i(r,t)}function eR(e){return"-"+e.toLowerCase()}function ey(e){return e.charAt(1).toUpperCase()}function eL(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function eP(e){return e.join(" ").trim()}let eM={}.hasOwnProperty;function ex(e,t,n){let r=n&&function(e){let t={},n=-1;for(;++n1?n[e.line-2]:0)+e.column-1;if(r-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(void 0===i){let e=ew(t,n[r-1]);i=-1===e?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),i=r.toPoint(0),a=r.toPoint(t.length);n.position={start:i,end:a}}return n}case"#documentType":return eq(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},eq(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===eH.svg?eN:e_;let r=-1,i={};for(;++r=55296&&e<=57343}function e2(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function e5(e){return e>=64976&&e<=65007||e1.has(e)}(a=_||(_={})).controlCharacterInInputStream="control-character-in-input-stream",a.noncharacterInInputStream="noncharacter-in-input-stream",a.surrogateInInputStream="surrogate-in-input-stream",a.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",a.endTagWithAttributes="end-tag-with-attributes",a.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",a.unexpectedSolidusInTag="unexpected-solidus-in-tag",a.unexpectedNullCharacter="unexpected-null-character",a.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",a.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",a.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",a.missingEndTagName="missing-end-tag-name",a.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",a.unknownNamedCharacterReference="unknown-named-character-reference",a.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",a.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",a.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",a.eofBeforeTagName="eof-before-tag-name",a.eofInTag="eof-in-tag",a.missingAttributeValue="missing-attribute-value",a.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",a.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",a.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",a.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",a.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",a.missingDoctypePublicIdentifier="missing-doctype-public-identifier",a.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",a.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",a.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",a.cdataInHtmlContent="cdata-in-html-content",a.incorrectlyOpenedComment="incorrectly-opened-comment",a.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",a.eofInDoctype="eof-in-doctype",a.nestedComment="nested-comment",a.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",a.eofInComment="eof-in-comment",a.incorrectlyClosedComment="incorrectly-closed-comment",a.eofInCdata="eof-in-cdata",a.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",a.nullCharacterReference="null-character-reference",a.surrogateCharacterReference="surrogate-character-reference",a.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",a.controlCharacterReference="control-character-reference",a.noncharacterCharacterReference="noncharacter-character-reference",a.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",a.missingDoctypeName="missing-doctype-name",a.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",a.duplicateAttribute="duplicate-attribute",a.nonConformingDoctype="non-conforming-doctype",a.missingDoctype="missing-doctype",a.misplacedDoctype="misplaced-doctype",a.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",a.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",a.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",a.openElementsLeftAfterEof="open-elements-left-after-eof",a.abandonedHeadElementChild="abandoned-head-element-child",a.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",a.nestedNoscriptInHead="nested-noscript-in-head",a.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class e4{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,s=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(_.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let n=this.html.charCodeAt(t);return n===A.CARRIAGE_RETURN?A.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let e=this.html.charCodeAt(this.pos);return e===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):e===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,e3(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===A.LINE_FEED||e===A.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){e2(e)?this._err(_.controlCharacterInInputStream):e5(e)&&this._err(_.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(s=N||(N={}))[s.CHARACTER=0]="CHARACTER",s[s.NULL_CHARACTER=1]="NULL_CHARACTER",s[s.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",s[s.START_TAG=3]="START_TAG",s[s.END_TAG=4]="END_TAG",s[s.COMMENT=5]="COMMENT",s[s.DOCTYPE=6]="DOCTYPE",s[s.EOF=7]="EOF",s[s.HIBERNATION=8]="HIBERNATION";var e8=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),e9=new Uint16Array("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));let e7=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),te=null!==(I=String.fromCodePoint)&&void 0!==I?I:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function tt(e){return e>=S.ZERO&&e<=S.NINE}(o=S||(S={}))[o.NUM=35]="NUM",o[o.SEMI=59]="SEMI",o[o.EQUALS=61]="EQUALS",o[o.ZERO=48]="ZERO",o[o.NINE=57]="NINE",o[o.LOWER_A=97]="LOWER_A",o[o.LOWER_F=102]="LOWER_F",o[o.LOWER_X=120]="LOWER_X",o[o.LOWER_Z=122]="LOWER_Z",o[o.UPPER_A=65]="UPPER_A",o[o.UPPER_F=70]="UPPER_F",o[o.UPPER_Z=90]="UPPER_Z",(l=C||(C={}))[l.VALUE_LENGTH=49152]="VALUE_LENGTH",l[l.BRANCH_LENGTH=16256]="BRANCH_LENGTH",l[l.JUMP_TABLE=127]="JUMP_TABLE",(c=k||(k={}))[c.EntityStart=0]="EntityStart",c[c.NumericStart=1]="NumericStart",c[c.NumericDecimal=2]="NumericDecimal",c[c.NumericHex=3]="NumericHex",c[c.NamedEntity=4]="NamedEntity",(u=D||(D={}))[u.Legacy=0]="Legacy",u[u.Strict=1]="Strict",u[u.Attribute=2]="Attribute";class tn{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=k.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=D.Strict}startEntity(e){this.decodeMode=e,this.state=k.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case k.EntityStart:if(e.charCodeAt(t)===S.NUM)return this.state=k.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=k.NamedEntity,this.stateNamedEntity(e,t);case k.NumericStart:return this.stateNumericStart(e,t);case k.NumericDecimal:return this.stateNumericDecimal(e,t);case k.NumericHex:return this.stateNumericHex(e,t);case k.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===S.LOWER_X?(this.state=k.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=k.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t=S.UPPER_A)||!(r<=S.UPPER_F))&&(!(r>=S.LOWER_A)||!(r<=S.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t=55296&&r<=57343||r>1114111?65533:null!==(i=e7.get(r))&&void 0!==i?i:r,this.consumed),this.errors&&(e!==S.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&C.VALUE_LENGTH)>>14;for(;t>7,a=t&C.JUMP_TABLE;if(0===i)return 0!==a&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let s=n,o=s+i-1;for(;s<=o;){let t=s+o>>>1,n=e[t];if(nr))return e[t+i];o=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===D.Attribute&&(0===i||function(e){var t;return e===S.EQUALS||(t=e)>=S.UPPER_A&&t<=S.UPPER_Z||t>=S.LOWER_A&&t<=S.LOWER_Z||tt(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((r=n[this.treeIndex])&C.VALUE_LENGTH)>>14)){if(a===S.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==D.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&C.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~C.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case k.NamedEntity:return 0!==this.result&&(this.decodeMode!==D.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case k.NumericDecimal:return this.emitNumericEntity(0,2);case k.NumericHex:return this.emitNumericEntity(0,3);case k.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case k.EntityStart:return 0}}}function tr(e){let t="",n=new tn(e,e=>t+=te(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf("&",a))>=0;){t+=e.slice(i,a),n.startEntity(r);let s=n.write(e,a+1);if(s<0){i=a+n.end();break}i=a+s,a=0===s?i+1:i}let s=t+e.slice(i);return t="",s}}tr(e8),tr(e9),(h=O||(O={})).HTML="http://www.w3.org/1999/xhtml",h.MATHML="http://www.w3.org/1998/Math/MathML",h.SVG="http://www.w3.org/2000/svg",h.XLINK="http://www.w3.org/1999/xlink",h.XML="http://www.w3.org/XML/1998/namespace",h.XMLNS="http://www.w3.org/2000/xmlns/",(p=b||(b={})).TYPE="type",p.ACTION="action",p.ENCODING="encoding",p.PROMPT="prompt",p.NAME="name",p.COLOR="color",p.FACE="face",p.SIZE="size",(d=R||(R={})).NO_QUIRKS="no-quirks",d.QUIRKS="quirks",d.LIMITED_QUIRKS="limited-quirks",(f=y||(y={})).A="a",f.ADDRESS="address",f.ANNOTATION_XML="annotation-xml",f.APPLET="applet",f.AREA="area",f.ARTICLE="article",f.ASIDE="aside",f.B="b",f.BASE="base",f.BASEFONT="basefont",f.BGSOUND="bgsound",f.BIG="big",f.BLOCKQUOTE="blockquote",f.BODY="body",f.BR="br",f.BUTTON="button",f.CAPTION="caption",f.CENTER="center",f.CODE="code",f.COL="col",f.COLGROUP="colgroup",f.DD="dd",f.DESC="desc",f.DETAILS="details",f.DIALOG="dialog",f.DIR="dir",f.DIV="div",f.DL="dl",f.DT="dt",f.EM="em",f.EMBED="embed",f.FIELDSET="fieldset",f.FIGCAPTION="figcaption",f.FIGURE="figure",f.FONT="font",f.FOOTER="footer",f.FOREIGN_OBJECT="foreignObject",f.FORM="form",f.FRAME="frame",f.FRAMESET="frameset",f.H1="h1",f.H2="h2",f.H3="h3",f.H4="h4",f.H5="h5",f.H6="h6",f.HEAD="head",f.HEADER="header",f.HGROUP="hgroup",f.HR="hr",f.HTML="html",f.I="i",f.IMG="img",f.IMAGE="image",f.INPUT="input",f.IFRAME="iframe",f.KEYGEN="keygen",f.LABEL="label",f.LI="li",f.LINK="link",f.LISTING="listing",f.MAIN="main",f.MALIGNMARK="malignmark",f.MARQUEE="marquee",f.MATH="math",f.MENU="menu",f.META="meta",f.MGLYPH="mglyph",f.MI="mi",f.MO="mo",f.MN="mn",f.MS="ms",f.MTEXT="mtext",f.NAV="nav",f.NOBR="nobr",f.NOFRAMES="noframes",f.NOEMBED="noembed",f.NOSCRIPT="noscript",f.OBJECT="object",f.OL="ol",f.OPTGROUP="optgroup",f.OPTION="option",f.P="p",f.PARAM="param",f.PLAINTEXT="plaintext",f.PRE="pre",f.RB="rb",f.RP="rp",f.RT="rt",f.RTC="rtc",f.RUBY="ruby",f.S="s",f.SCRIPT="script",f.SEARCH="search",f.SECTION="section",f.SELECT="select",f.SOURCE="source",f.SMALL="small",f.SPAN="span",f.STRIKE="strike",f.STRONG="strong",f.STYLE="style",f.SUB="sub",f.SUMMARY="summary",f.SUP="sup",f.TABLE="table",f.TBODY="tbody",f.TEMPLATE="template",f.TEXTAREA="textarea",f.TFOOT="tfoot",f.TD="td",f.TH="th",f.THEAD="thead",f.TITLE="title",f.TR="tr",f.TRACK="track",f.TT="tt",f.U="u",f.UL="ul",f.SVG="svg",f.VAR="var",f.WBR="wbr",f.XMP="xmp",(m=L||(L={}))[m.UNKNOWN=0]="UNKNOWN",m[m.A=1]="A",m[m.ADDRESS=2]="ADDRESS",m[m.ANNOTATION_XML=3]="ANNOTATION_XML",m[m.APPLET=4]="APPLET",m[m.AREA=5]="AREA",m[m.ARTICLE=6]="ARTICLE",m[m.ASIDE=7]="ASIDE",m[m.B=8]="B",m[m.BASE=9]="BASE",m[m.BASEFONT=10]="BASEFONT",m[m.BGSOUND=11]="BGSOUND",m[m.BIG=12]="BIG",m[m.BLOCKQUOTE=13]="BLOCKQUOTE",m[m.BODY=14]="BODY",m[m.BR=15]="BR",m[m.BUTTON=16]="BUTTON",m[m.CAPTION=17]="CAPTION",m[m.CENTER=18]="CENTER",m[m.CODE=19]="CODE",m[m.COL=20]="COL",m[m.COLGROUP=21]="COLGROUP",m[m.DD=22]="DD",m[m.DESC=23]="DESC",m[m.DETAILS=24]="DETAILS",m[m.DIALOG=25]="DIALOG",m[m.DIR=26]="DIR",m[m.DIV=27]="DIV",m[m.DL=28]="DL",m[m.DT=29]="DT",m[m.EM=30]="EM",m[m.EMBED=31]="EMBED",m[m.FIELDSET=32]="FIELDSET",m[m.FIGCAPTION=33]="FIGCAPTION",m[m.FIGURE=34]="FIGURE",m[m.FONT=35]="FONT",m[m.FOOTER=36]="FOOTER",m[m.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",m[m.FORM=38]="FORM",m[m.FRAME=39]="FRAME",m[m.FRAMESET=40]="FRAMESET",m[m.H1=41]="H1",m[m.H2=42]="H2",m[m.H3=43]="H3",m[m.H4=44]="H4",m[m.H5=45]="H5",m[m.H6=46]="H6",m[m.HEAD=47]="HEAD",m[m.HEADER=48]="HEADER",m[m.HGROUP=49]="HGROUP",m[m.HR=50]="HR",m[m.HTML=51]="HTML",m[m.I=52]="I",m[m.IMG=53]="IMG",m[m.IMAGE=54]="IMAGE",m[m.INPUT=55]="INPUT",m[m.IFRAME=56]="IFRAME",m[m.KEYGEN=57]="KEYGEN",m[m.LABEL=58]="LABEL",m[m.LI=59]="LI",m[m.LINK=60]="LINK",m[m.LISTING=61]="LISTING",m[m.MAIN=62]="MAIN",m[m.MALIGNMARK=63]="MALIGNMARK",m[m.MARQUEE=64]="MARQUEE",m[m.MATH=65]="MATH",m[m.MENU=66]="MENU",m[m.META=67]="META",m[m.MGLYPH=68]="MGLYPH",m[m.MI=69]="MI",m[m.MO=70]="MO",m[m.MN=71]="MN",m[m.MS=72]="MS",m[m.MTEXT=73]="MTEXT",m[m.NAV=74]="NAV",m[m.NOBR=75]="NOBR",m[m.NOFRAMES=76]="NOFRAMES",m[m.NOEMBED=77]="NOEMBED",m[m.NOSCRIPT=78]="NOSCRIPT",m[m.OBJECT=79]="OBJECT",m[m.OL=80]="OL",m[m.OPTGROUP=81]="OPTGROUP",m[m.OPTION=82]="OPTION",m[m.P=83]="P",m[m.PARAM=84]="PARAM",m[m.PLAINTEXT=85]="PLAINTEXT",m[m.PRE=86]="PRE",m[m.RB=87]="RB",m[m.RP=88]="RP",m[m.RT=89]="RT",m[m.RTC=90]="RTC",m[m.RUBY=91]="RUBY",m[m.S=92]="S",m[m.SCRIPT=93]="SCRIPT",m[m.SEARCH=94]="SEARCH",m[m.SECTION=95]="SECTION",m[m.SELECT=96]="SELECT",m[m.SOURCE=97]="SOURCE",m[m.SMALL=98]="SMALL",m[m.SPAN=99]="SPAN",m[m.STRIKE=100]="STRIKE",m[m.STRONG=101]="STRONG",m[m.STYLE=102]="STYLE",m[m.SUB=103]="SUB",m[m.SUMMARY=104]="SUMMARY",m[m.SUP=105]="SUP",m[m.TABLE=106]="TABLE",m[m.TBODY=107]="TBODY",m[m.TEMPLATE=108]="TEMPLATE",m[m.TEXTAREA=109]="TEXTAREA",m[m.TFOOT=110]="TFOOT",m[m.TD=111]="TD",m[m.TH=112]="TH",m[m.THEAD=113]="THEAD",m[m.TITLE=114]="TITLE",m[m.TR=115]="TR",m[m.TRACK=116]="TRACK",m[m.TT=117]="TT",m[m.U=118]="U",m[m.UL=119]="UL",m[m.SVG=120]="SVG",m[m.VAR=121]="VAR",m[m.WBR=122]="WBR",m[m.XMP=123]="XMP";let ti=new Map([[y.A,L.A],[y.ADDRESS,L.ADDRESS],[y.ANNOTATION_XML,L.ANNOTATION_XML],[y.APPLET,L.APPLET],[y.AREA,L.AREA],[y.ARTICLE,L.ARTICLE],[y.ASIDE,L.ASIDE],[y.B,L.B],[y.BASE,L.BASE],[y.BASEFONT,L.BASEFONT],[y.BGSOUND,L.BGSOUND],[y.BIG,L.BIG],[y.BLOCKQUOTE,L.BLOCKQUOTE],[y.BODY,L.BODY],[y.BR,L.BR],[y.BUTTON,L.BUTTON],[y.CAPTION,L.CAPTION],[y.CENTER,L.CENTER],[y.CODE,L.CODE],[y.COL,L.COL],[y.COLGROUP,L.COLGROUP],[y.DD,L.DD],[y.DESC,L.DESC],[y.DETAILS,L.DETAILS],[y.DIALOG,L.DIALOG],[y.DIR,L.DIR],[y.DIV,L.DIV],[y.DL,L.DL],[y.DT,L.DT],[y.EM,L.EM],[y.EMBED,L.EMBED],[y.FIELDSET,L.FIELDSET],[y.FIGCAPTION,L.FIGCAPTION],[y.FIGURE,L.FIGURE],[y.FONT,L.FONT],[y.FOOTER,L.FOOTER],[y.FOREIGN_OBJECT,L.FOREIGN_OBJECT],[y.FORM,L.FORM],[y.FRAME,L.FRAME],[y.FRAMESET,L.FRAMESET],[y.H1,L.H1],[y.H2,L.H2],[y.H3,L.H3],[y.H4,L.H4],[y.H5,L.H5],[y.H6,L.H6],[y.HEAD,L.HEAD],[y.HEADER,L.HEADER],[y.HGROUP,L.HGROUP],[y.HR,L.HR],[y.HTML,L.HTML],[y.I,L.I],[y.IMG,L.IMG],[y.IMAGE,L.IMAGE],[y.INPUT,L.INPUT],[y.IFRAME,L.IFRAME],[y.KEYGEN,L.KEYGEN],[y.LABEL,L.LABEL],[y.LI,L.LI],[y.LINK,L.LINK],[y.LISTING,L.LISTING],[y.MAIN,L.MAIN],[y.MALIGNMARK,L.MALIGNMARK],[y.MARQUEE,L.MARQUEE],[y.MATH,L.MATH],[y.MENU,L.MENU],[y.META,L.META],[y.MGLYPH,L.MGLYPH],[y.MI,L.MI],[y.MO,L.MO],[y.MN,L.MN],[y.MS,L.MS],[y.MTEXT,L.MTEXT],[y.NAV,L.NAV],[y.NOBR,L.NOBR],[y.NOFRAMES,L.NOFRAMES],[y.NOEMBED,L.NOEMBED],[y.NOSCRIPT,L.NOSCRIPT],[y.OBJECT,L.OBJECT],[y.OL,L.OL],[y.OPTGROUP,L.OPTGROUP],[y.OPTION,L.OPTION],[y.P,L.P],[y.PARAM,L.PARAM],[y.PLAINTEXT,L.PLAINTEXT],[y.PRE,L.PRE],[y.RB,L.RB],[y.RP,L.RP],[y.RT,L.RT],[y.RTC,L.RTC],[y.RUBY,L.RUBY],[y.S,L.S],[y.SCRIPT,L.SCRIPT],[y.SEARCH,L.SEARCH],[y.SECTION,L.SECTION],[y.SELECT,L.SELECT],[y.SOURCE,L.SOURCE],[y.SMALL,L.SMALL],[y.SPAN,L.SPAN],[y.STRIKE,L.STRIKE],[y.STRONG,L.STRONG],[y.STYLE,L.STYLE],[y.SUB,L.SUB],[y.SUMMARY,L.SUMMARY],[y.SUP,L.SUP],[y.TABLE,L.TABLE],[y.TBODY,L.TBODY],[y.TEMPLATE,L.TEMPLATE],[y.TEXTAREA,L.TEXTAREA],[y.TFOOT,L.TFOOT],[y.TD,L.TD],[y.TH,L.TH],[y.THEAD,L.THEAD],[y.TITLE,L.TITLE],[y.TR,L.TR],[y.TRACK,L.TRACK],[y.TT,L.TT],[y.U,L.U],[y.UL,L.UL],[y.SVG,L.SVG],[y.VAR,L.VAR],[y.WBR,L.WBR],[y.XMP,L.XMP]]);function ta(e){var t;return null!==(t=ti.get(e))&&void 0!==t?t:L.UNKNOWN}let ts=L,to={[O.HTML]:new Set([ts.ADDRESS,ts.APPLET,ts.AREA,ts.ARTICLE,ts.ASIDE,ts.BASE,ts.BASEFONT,ts.BGSOUND,ts.BLOCKQUOTE,ts.BODY,ts.BR,ts.BUTTON,ts.CAPTION,ts.CENTER,ts.COL,ts.COLGROUP,ts.DD,ts.DETAILS,ts.DIR,ts.DIV,ts.DL,ts.DT,ts.EMBED,ts.FIELDSET,ts.FIGCAPTION,ts.FIGURE,ts.FOOTER,ts.FORM,ts.FRAME,ts.FRAMESET,ts.H1,ts.H2,ts.H3,ts.H4,ts.H5,ts.H6,ts.HEAD,ts.HEADER,ts.HGROUP,ts.HR,ts.HTML,ts.IFRAME,ts.IMG,ts.INPUT,ts.LI,ts.LINK,ts.LISTING,ts.MAIN,ts.MARQUEE,ts.MENU,ts.META,ts.NAV,ts.NOEMBED,ts.NOFRAMES,ts.NOSCRIPT,ts.OBJECT,ts.OL,ts.P,ts.PARAM,ts.PLAINTEXT,ts.PRE,ts.SCRIPT,ts.SECTION,ts.SELECT,ts.SOURCE,ts.STYLE,ts.SUMMARY,ts.TABLE,ts.TBODY,ts.TD,ts.TEMPLATE,ts.TEXTAREA,ts.TFOOT,ts.TH,ts.THEAD,ts.TITLE,ts.TR,ts.TRACK,ts.UL,ts.WBR,ts.XMP]),[O.MATHML]:new Set([ts.MI,ts.MO,ts.MN,ts.MS,ts.MTEXT,ts.ANNOTATION_XML]),[O.SVG]:new Set([ts.TITLE,ts.FOREIGN_OBJECT,ts.DESC]),[O.XLINK]:new Set,[O.XML]:new Set,[O.XMLNS]:new Set},tl=new Set([ts.H1,ts.H2,ts.H3,ts.H4,ts.H5,ts.H6]);y.STYLE,y.SCRIPT,y.XMP,y.IFRAME,y.NOEMBED,y.NOFRAMES,y.PLAINTEXT,(E=P||(P={}))[E.DATA=0]="DATA",E[E.RCDATA=1]="RCDATA",E[E.RAWTEXT=2]="RAWTEXT",E[E.SCRIPT_DATA=3]="SCRIPT_DATA",E[E.PLAINTEXT=4]="PLAINTEXT",E[E.TAG_OPEN=5]="TAG_OPEN",E[E.END_TAG_OPEN=6]="END_TAG_OPEN",E[E.TAG_NAME=7]="TAG_NAME",E[E.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",E[E.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",E[E.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",E[E.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",E[E.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",E[E.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",E[E.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",E[E.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",E[E.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",E[E.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",E[E.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",E[E.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",E[E.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",E[E.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",E[E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",E[E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",E[E.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",E[E.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",E[E.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",E[E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",E[E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",E[E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",E[E.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",E[E.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",E[E.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",E[E.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",E[E.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",E[E.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",E[E.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",E[E.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",E[E.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",E[E.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",E[E.BOGUS_COMMENT=40]="BOGUS_COMMENT",E[E.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",E[E.COMMENT_START=42]="COMMENT_START",E[E.COMMENT_START_DASH=43]="COMMENT_START_DASH",E[E.COMMENT=44]="COMMENT",E[E.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",E[E.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",E[E.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",E[E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",E[E.COMMENT_END_DASH=49]="COMMENT_END_DASH",E[E.COMMENT_END=50]="COMMENT_END",E[E.COMMENT_END_BANG=51]="COMMENT_END_BANG",E[E.DOCTYPE=52]="DOCTYPE",E[E.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",E[E.DOCTYPE_NAME=54]="DOCTYPE_NAME",E[E.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",E[E.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",E[E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",E[E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",E[E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",E[E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",E[E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",E[E.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",E[E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",E[E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",E[E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",E[E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",E[E.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",E[E.CDATA_SECTION=68]="CDATA_SECTION",E[E.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",E[E.CDATA_SECTION_END=70]="CDATA_SECTION_END",E[E.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",E[E.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let tc={DATA:P.DATA,RCDATA:P.RCDATA,RAWTEXT:P.RAWTEXT,SCRIPT_DATA:P.SCRIPT_DATA,PLAINTEXT:P.PLAINTEXT,CDATA_SECTION:P.CDATA_SECTION};function tu(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function th(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z||tu(e)}function tp(e){return th(e)||e>=A.DIGIT_0&&e<=A.DIGIT_9}function td(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function tf(e){return td(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}class tm{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=P.DATA,this.returnState=P.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new e4(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new tn(e8,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(_.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(_.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{var t;let n=(t=e)===A.NULL?_.nullCharacterReference:t>1114111?_.characterReferenceOutsideUnicodeRange:e3(t)?_.surrogateCharacterReference:e5(t)?_.noncharacterCharacterReference:e2(t)||t===A.CARRIAGE_RETURN?_.controlCharacterReference:null;n&&this._err(n,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(_.endTagWithAttributes),e.selfClosing&&this._err(_.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case N.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case N.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case N.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:N.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=td(e)?N.WHITESPACE_CHARACTER:e===A.NULL?N.NULL_CHARACTER:N.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(N.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=P.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?D.Attribute:D.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===P.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===P.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===P.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case P.DATA:this._stateData(e);break;case P.RCDATA:this._stateRcdata(e);break;case P.RAWTEXT:this._stateRawtext(e);break;case P.SCRIPT_DATA:this._stateScriptData(e);break;case P.PLAINTEXT:this._statePlaintext(e);break;case P.TAG_OPEN:this._stateTagOpen(e);break;case P.END_TAG_OPEN:this._stateEndTagOpen(e);break;case P.TAG_NAME:this._stateTagName(e);break;case P.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case P.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case P.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case P.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case P.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case P.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case P.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case P.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case P.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case P.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case P.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case P.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case P.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case P.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case P.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case P.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case P.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case P.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case P.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case P.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case P.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case P.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case P.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case P.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case P.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case P.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case P.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case P.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case P.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case P.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case P.BOGUS_COMMENT:this._stateBogusComment(e);break;case P.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case P.COMMENT_START:this._stateCommentStart(e);break;case P.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case P.COMMENT:this._stateComment(e);break;case P.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case P.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case P.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case P.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case P.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case P.COMMENT_END:this._stateCommentEnd(e);break;case P.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case P.DOCTYPE:this._stateDoctype(e);break;case P.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case P.DOCTYPE_NAME:this._stateDoctypeName(e);break;case P.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case P.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case P.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case P.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case P.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case P.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case P.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case P.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case P.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case P.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case P.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case P.CDATA_SECTION:this._stateCdataSection(e);break;case P.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case P.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case P.CHARACTER_REFERENCE:this._stateCharacterReference();break;case P.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case A.LESS_THAN_SIGN:this.state=P.TAG_OPEN;break;case A.AMPERSAND:this._startCharacterReference();break;case A.NULL:this._err(_.unexpectedNullCharacter),this._emitCodePoint(e);break;case A.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case A.AMPERSAND:this._startCharacterReference();break;case A.LESS_THAN_SIGN:this.state=P.RCDATA_LESS_THAN_SIGN;break;case A.NULL:this._err(_.unexpectedNullCharacter),this._emitChars("�");break;case A.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case A.LESS_THAN_SIGN:this.state=P.RAWTEXT_LESS_THAN_SIGN;break;case A.NULL:this._err(_.unexpectedNullCharacter),this._emitChars("�");break;case A.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case A.LESS_THAN_SIGN:this.state=P.SCRIPT_DATA_LESS_THAN_SIGN;break;case A.NULL:this._err(_.unexpectedNullCharacter),this._emitChars("�");break;case A.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case A.NULL:this._err(_.unexpectedNullCharacter),this._emitChars("�");break;case A.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(th(e))this._createStartTagToken(),this.state=P.TAG_NAME,this._stateTagName(e);else switch(e){case A.EXCLAMATION_MARK:this.state=P.MARKUP_DECLARATION_OPEN;break;case A.SOLIDUS:this.state=P.END_TAG_OPEN;break;case A.QUESTION_MARK:this._err(_.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=P.BOGUS_COMMENT,this._stateBogusComment(e);break;case A.EOF:this._err(_.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(_.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=P.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(th(e))this._createEndTagToken(),this.state=P.TAG_NAME,this._stateTagName(e);else switch(e){case A.GREATER_THAN_SIGN:this._err(_.missingEndTagName),this.state=P.DATA;break;case A.EOF:this._err(_.eofBeforeTagName),this._emitChars("");break;case A.NULL:this._err(_.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case A.EOF:this._err(_.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=P.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===A.SOLIDUS?this.state=P.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:th(e)?(this._emitChars("<"),this.state=P.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=P.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){th(e)?(this.state=P.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case A.NULL:this._err(_.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case A.EOF:this._err(_.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===A.SOLIDUS?(this.state=P.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(e0.SCRIPT,!1)&&tf(this.preprocessor.peek(e0.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==O.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(tk,O.HTML)}clearBackToTableBodyContext(){this.clearBackTo(tC,O.HTML)}clearBackToTableRowContext(){this.clearBackTo(tS,O.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===L.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===L.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case O.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case O.SVG:if(tI.has(r))return!1;break;case O.MATHML:if(tN.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,tg)}hasInListItemScope(e){return this.hasInDynamicScope(e,tA)}hasInButtonScope(e){return this.hasInDynamicScope(e,t_)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case O.HTML:if(tl.has(t))return!0;if(tg.has(t))return!1;break;case O.SVG:if(tI.has(t))return!1;break;case O.MATHML:if(tN.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===O.HTML)switch(this.tagIDs[t]){case e:return!0;case L.TABLE:case L.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===O.HTML)switch(this.tagIDs[e]){case L.TBODY:case L.THEAD:case L.TFOOT:return!0;case L.TABLE:case L.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===O.HTML)switch(this.tagIDs[t]){case e:return!0;case L.OPTION:case L.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;tE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;tT.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&tT.has(this.currentTagId);)this.pop()}}(T=M||(M={}))[T.Marker=0]="Marker",T[T.Element=1]="Element";let tb={type:M.Marker};class tR{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e[e.name,e.value])),i=0;for(let e=0;er.get(e.name)===e.value)&&(i+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(tb)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:M.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:M.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(tb);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===M.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===M.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===M.Element&&t.element===e)}}let ty={createDocument:()=>({nodeName:"#document",mode:R.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>"#documentType"===e.nodeName);i?(i.name=t,i.publicId=n,i.systemId=r):ty.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(ty.isTextNode(n)){n.value+=t;return}}ty.appendChild(e,ty.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ty.isTextNode(r)?r.value+=t:ty.insertBefore(e,ty.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;re.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},tL="html",tP=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],tM=[...tP,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],tx=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),tv=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],tF=[...tv,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function tB(e,t){return t.some(t=>e.startsWith(t))}let tw={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},tH=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),tU=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:O.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:O.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:O.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:O.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:O.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:O.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:O.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:O.XML}],["xml:space",{prefix:"xml",name:"space",namespace:O.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:O.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:O.XMLNS}]]),tG=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),tY=new Set([L.B,L.BIG,L.BLOCKQUOTE,L.BODY,L.BR,L.CENTER,L.CODE,L.DD,L.DIV,L.DL,L.DT,L.EM,L.EMBED,L.H1,L.H2,L.H3,L.H4,L.H5,L.H6,L.HEAD,L.HR,L.I,L.IMG,L.LI,L.LISTING,L.MENU,L.META,L.NOBR,L.OL,L.P,L.PRE,L.RUBY,L.S,L.SMALL,L.SPAN,L.STRONG,L.STRIKE,L.SUB,L.SUP,L.TABLE,L.TT,L.U,L.UL,L.VAR]);function tz(e){for(let t=0;t0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||this.treeAdapter.getNamespaceURI(e)===O.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,O.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=x.TEXT}switchToPlaintextParsing(){this.insertionMode=x.TEXT,this.originalInsertionMode=x.IN_BODY,this.tokenizer.state=tc.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===y.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===O.HTML)switch(this.fragmentContextID){case L.TITLE:case L.TEXTAREA:this.tokenizer.state=tc.RCDATA;break;case L.STYLE:case L.XMP:case L.IFRAME:case L.NOEMBED:case L.NOFRAMES:case L.NOSCRIPT:this.tokenizer.state=tc.RAWTEXT;break;case L.SCRIPT:this.tokenizer.state=tc.SCRIPT_DATA;break;case L.PLAINTEXT:this.tokenizer.state=tc.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,O.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,O.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(y.HTML,O.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,L.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,a=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===N.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==L.SVG||this.treeAdapter.getTagName(t)!==y.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==O.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===L.MGLYPH||e.tagID===L.MALIGNMARK)&&!this._isIntegrationPoint(n,t,O.HTML)))}_processToken(e){switch(e.type){case N.CHARACTER:this.onCharacter(e);break;case N.NULL_CHARACTER:this.onNullCharacter(e);break;case N.COMMENT:this.onComment(e);break;case N.DOCTYPE:this.onDoctype(e);break;case N.START_TAG:this._processStartTag(e);break;case N.END_TAG:this.onEndTag(e);break;case N.EOF:this.onEof(e);break;case N.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return(!n||n===O.HTML)&&function(e,t,n){if(t===O.MATHML&&e===L.ANNOTATION_XML){for(let e=0;ee.type===M.Marker||this.openElements.contains(e.element)),n=t<0?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=x.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(L.P),this.openElements.popUntilTagNamePopped(L.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case L.TR:this.insertionMode=x.IN_ROW;return;case L.TBODY:case L.THEAD:case L.TFOOT:this.insertionMode=x.IN_TABLE_BODY;return;case L.CAPTION:this.insertionMode=x.IN_CAPTION;return;case L.COLGROUP:this.insertionMode=x.IN_COLUMN_GROUP;return;case L.TABLE:this.insertionMode=x.IN_TABLE;return;case L.BODY:this.insertionMode=x.IN_BODY;return;case L.FRAMESET:this.insertionMode=x.IN_FRAMESET;return;case L.SELECT:this._resetInsertionModeForSelect(e);return;case L.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case L.HTML:this.insertionMode=this.headElement?x.AFTER_HEAD:x.BEFORE_HEAD;return;case L.TD:case L.TH:if(e>0){this.insertionMode=x.IN_CELL;return}break;case L.HEAD:if(e>0){this.insertionMode=x.IN_HEAD;return}}this.insertionMode=x.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===L.TEMPLATE)break;if(e===L.TABLE){this.insertionMode=x.IN_SELECT_IN_TABLE;return}}this.insertionMode=x.IN_SELECT}_isElementCausesFosterParenting(e){return tQ.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case L.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===O.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case L.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return to[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){this._insertCharacters(e),this.framesetOk=!1;return}switch(this.insertionMode){case x.INITIAL:t$(this,e);break;case x.BEFORE_HTML:t1(this,e);break;case x.BEFORE_HEAD:t0(this,e);break;case x.IN_HEAD:t5(this,e);break;case x.IN_HEAD_NO_SCRIPT:t4(this,e);break;case x.AFTER_HEAD:t6(this,e);break;case x.IN_BODY:case x.IN_CAPTION:case x.IN_CELL:case x.IN_TEMPLATE:t7(this,e);break;case x.TEXT:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:nl(this,e);break;case x.IN_TABLE_TEXT:nd(this,e);break;case x.IN_COLUMN_GROUP:nT(this,e);break;case x.AFTER_BODY:nD(this,e);break;case x.AFTER_AFTER_BODY:nO(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){e.chars="�",this._insertCharacters(e);return}switch(this.insertionMode){case x.INITIAL:t$(this,e);break;case x.BEFORE_HTML:t1(this,e);break;case x.BEFORE_HEAD:t0(this,e);break;case x.IN_HEAD:t5(this,e);break;case x.IN_HEAD_NO_SCRIPT:t4(this,e);break;case x.AFTER_HEAD:t6(this,e);break;case x.TEXT:this._insertCharacters(e);break;case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:nl(this,e);break;case x.IN_COLUMN_GROUP:nT(this,e);break;case x.AFTER_BODY:nD(this,e);break;case x.AFTER_AFTER_BODY:nO(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){tJ(this,e);return}switch(this.insertionMode){case x.INITIAL:case x.BEFORE_HTML:case x.BEFORE_HEAD:case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:case x.IN_BODY:case x.IN_TABLE:case x.IN_CAPTION:case x.IN_COLUMN_GROUP:case x.IN_TABLE_BODY:case x.IN_ROW:case x.IN_CELL:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:case x.IN_TEMPLATE:case x.IN_FRAMESET:case x.AFTER_FRAMESET:tJ(this,e);break;case x.IN_TABLE_TEXT:nf(this,e);break;case x.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case x.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?R.QUIRKS:function(e){if(e.name!==tL)return R.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return R.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),tx.has(n))return R.QUIRKS;let e=null===t?tM:tP;if(tB(n,e))return R.QUIRKS;if(tB(n,e=null===t?tv:tF))return R.LIMITED_QUIRKS}return R.NO_QUIRKS}(t);t.name===tL&&null===t.publicId&&(null===t.systemId||"about:legacy-compat"===t.systemId)||e._err(t,_.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=x.BEFORE_HTML}(this,e);break;case x.BEFORE_HEAD:case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:this._err(e,_.misplacedDoctype);break;case x.IN_TABLE_TEXT:nf(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,_.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){let t=e.tagID;return t===L.FONT&&e.attrs.some(({name:e})=>e===b.COLOR||e===b.SIZE||e===b.FACE)||tY.has(t)}(t))nb(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===O.MATHML?tz(t):r===O.SVG&&(function(e){let t=tG.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=ta(e.tagName))}(t),tq(t)),tW(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case x.INITIAL:t$(this,e);break;case x.BEFORE_HTML:e.tagID===L.HTML?(this._insertElement(e,O.HTML),this.insertionMode=x.BEFORE_HEAD):t1(this,e);break;case x.BEFORE_HEAD:!function(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.HEAD:e._insertElement(t,O.HTML),e.headElement=e.openElements.current,e.insertionMode=x.IN_HEAD;break;default:t0(e,t)}}(this,e);break;case x.IN_HEAD:t3(this,e);break;case x.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.BASEFONT:case L.BGSOUND:case L.HEAD:case L.LINK:case L.META:case L.NOFRAMES:case L.STYLE:t3(e,t);break;case L.NOSCRIPT:e._err(t,_.nestedNoscriptInHead);break;default:t4(e,t)}}(this,e);break;case x.AFTER_HEAD:!function(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.BODY:e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=x.IN_BODY;break;case L.FRAMESET:e._insertElement(t,O.HTML),e.insertionMode=x.IN_FRAMESET;break;case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:case L.NOFRAMES:case L.SCRIPT:case L.STYLE:case L.TEMPLATE:case L.TITLE:e._err(t,_.abandonedHeadElementChild),e.openElements.push(e.headElement,L.HEAD),t3(e,t),e.openElements.remove(e.headElement);break;case L.HEAD:e._err(t,_.misplacedStartTagForHeadElement);break;default:t6(e,t)}}(this,e);break;case x.IN_BODY:ni(this,e);break;case x.IN_TABLE:nc(this,e);break;case x.IN_TABLE_TEXT:nf(this,e);break;case x.IN_CAPTION:!function(e,t){let n=t.tagID;nm.has(n)?e.openElements.hasInTableScope(L.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(L.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_TABLE,nc(e,t)):ni(e,t)}(this,e);break;case x.IN_COLUMN_GROUP:nE(this,e);break;case x.IN_TABLE_BODY:ng(this,e);break;case x.IN_ROW:n_(this,e);break;case x.IN_CELL:!function(e,t){let n=t.tagID;nm.has(n)?(e.openElements.hasInTableScope(L.TD)||e.openElements.hasInTableScope(L.TH))&&(e._closeTableCell(),n_(e,t)):ni(e,t)}(this,e);break;case x.IN_SELECT:nI(this,e);break;case x.IN_SELECT_IN_TABLE:!function(e,t){let n=t.tagID;n===L.CAPTION||n===L.TABLE||n===L.TBODY||n===L.TFOOT||n===L.THEAD||n===L.TR||n===L.TD||n===L.TH?(e.openElements.popUntilTagNamePopped(L.SELECT),e._resetInsertionMode(),e._processStartTag(t)):nI(e,t)}(this,e);break;case x.IN_TEMPLATE:!function(e,t){switch(t.tagID){case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:case L.NOFRAMES:case L.SCRIPT:case L.STYLE:case L.TEMPLATE:case L.TITLE:t3(e,t);break;case L.CAPTION:case L.COLGROUP:case L.TBODY:case L.TFOOT:case L.THEAD:e.tmplInsertionModeStack[0]=x.IN_TABLE,e.insertionMode=x.IN_TABLE,nc(e,t);break;case L.COL:e.tmplInsertionModeStack[0]=x.IN_COLUMN_GROUP,e.insertionMode=x.IN_COLUMN_GROUP,nE(e,t);break;case L.TR:e.tmplInsertionModeStack[0]=x.IN_TABLE_BODY,e.insertionMode=x.IN_TABLE_BODY,ng(e,t);break;case L.TD:case L.TH:e.tmplInsertionModeStack[0]=x.IN_ROW,e.insertionMode=x.IN_ROW,n_(e,t);break;default:e.tmplInsertionModeStack[0]=x.IN_BODY,e.insertionMode=x.IN_BODY,ni(e,t)}}(this,e);break;case x.AFTER_BODY:e.tagID===L.HTML?ni(this,e):nD(this,e);break;case x.IN_FRAMESET:!function(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.FRAMESET:e._insertElement(t,O.HTML);break;case L.FRAME:e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case L.NOFRAMES:t3(e,t)}}(this,e);break;case x.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.NOFRAMES:t3(e,t)}}(this,e);break;case x.AFTER_AFTER_BODY:e.tagID===L.HTML?ni(this,e):nO(this,e);break;case x.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.NOFRAMES:t3(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===L.P||t.tagID===L.BR){nb(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===O.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){var t;switch(this.insertionMode){case x.INITIAL:t$(this,e);break;case x.BEFORE_HTML:!function(e,t){let n=t.tagID;(n===L.HTML||n===L.HEAD||n===L.BODY||n===L.BR)&&t1(e,t)}(this,e);break;case x.BEFORE_HEAD:!function(e,t){let n=t.tagID;n===L.HEAD||n===L.BODY||n===L.HTML||n===L.BR?t0(e,t):e._err(t,_.endTagWithoutMatchingOpenElement)}(this,e);break;case x.IN_HEAD:!function(e,t){switch(t.tagID){case L.HEAD:e.openElements.pop(),e.insertionMode=x.AFTER_HEAD;break;case L.BODY:case L.BR:case L.HTML:t5(e,t);break;case L.TEMPLATE:t2(e,t);break;default:e._err(t,_.endTagWithoutMatchingOpenElement)}}(this,e);break;case x.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case L.NOSCRIPT:e.openElements.pop(),e.insertionMode=x.IN_HEAD;break;case L.BR:t4(e,t);break;default:e._err(t,_.endTagWithoutMatchingOpenElement)}}(this,e);break;case x.AFTER_HEAD:!function(e,t){switch(t.tagID){case L.BODY:case L.HTML:case L.BR:t6(e,t);break;case L.TEMPLATE:t2(e,t);break;default:e._err(t,_.endTagWithoutMatchingOpenElement)}}(this,e);break;case x.IN_BODY:ns(this,e);break;case x.TEXT:e.tagID===L.SCRIPT&&(null===(t=this.scriptHandler)||void 0===t||t.call(this,this.openElements.current)),this.openElements.pop(),this.insertionMode=this.originalInsertionMode;break;case x.IN_TABLE:nu(this,e);break;case x.IN_TABLE_TEXT:nf(this,e);break;case x.IN_CAPTION:!function(e,t){let n=t.tagID;switch(n){case L.CAPTION:case L.TABLE:e.openElements.hasInTableScope(L.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(L.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_TABLE,n===L.TABLE&&nu(e,t));break;case L.BODY:case L.COL:case L.COLGROUP:case L.HTML:case L.TBODY:case L.TD:case L.TFOOT:case L.TH:case L.THEAD:case L.TR:break;default:ns(e,t)}}(this,e);break;case x.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case L.COLGROUP:e.openElements.currentTagId===L.COLGROUP&&(e.openElements.pop(),e.insertionMode=x.IN_TABLE);break;case L.TEMPLATE:t2(e,t);break;case L.COL:break;default:nT(e,t)}}(this,e);break;case x.IN_TABLE_BODY:nA(this,e);break;case x.IN_ROW:nN(this,e);break;case x.IN_CELL:!function(e,t){let n=t.tagID;switch(n){case L.TD:case L.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_ROW);break;case L.TABLE:case L.TBODY:case L.TFOOT:case L.THEAD:case L.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),nN(e,t));break;case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:break;default:ns(e,t)}}(this,e);break;case x.IN_SELECT:nS(this,e);break;case x.IN_SELECT_IN_TABLE:!function(e,t){let n=t.tagID;n===L.CAPTION||n===L.TABLE||n===L.TBODY||n===L.TFOOT||n===L.THEAD||n===L.TR||n===L.TD||n===L.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(L.SELECT),e._resetInsertionMode(),e.onEndTag(t)):nS(e,t)}(this,e);break;case x.IN_TEMPLATE:e.tagID===L.TEMPLATE&&t2(this,e);break;case x.AFTER_BODY:nk(this,e);break;case x.IN_FRAMESET:e.tagID!==L.FRAMESET||this.openElements.isRootHtmlElementCurrent()||(this.openElements.pop(),this.fragmentContext||this.openElements.currentTagId===L.FRAMESET||(this.insertionMode=x.AFTER_FRAMESET));break;case x.AFTER_FRAMESET:e.tagID===L.HTML&&(this.insertionMode=x.AFTER_AFTER_FRAMESET);break;case x.AFTER_AFTER_BODY:nO(this,e)}}onEof(e){switch(this.insertionMode){case x.INITIAL:t$(this,e);break;case x.BEFORE_HTML:t1(this,e);break;case x.BEFORE_HEAD:t0(this,e);break;case x.IN_HEAD:t5(this,e);break;case x.IN_HEAD_NO_SCRIPT:t4(this,e);break;case x.AFTER_HEAD:t6(this,e);break;case x.IN_BODY:case x.IN_TABLE:case x.IN_CAPTION:case x.IN_COLUMN_GROUP:case x.IN_TABLE_BODY:case x.IN_ROW:case x.IN_CELL:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:no(this,e);break;case x.TEXT:this._err(e,_.eofInElementThatCanContainOnlyText),this.openElements.pop(),this.insertionMode=this.originalInsertionMode,this.onEof(e);break;case x.IN_TABLE_TEXT:nf(this,e);break;case x.IN_TEMPLATE:nC(this,e);break;case x.AFTER_BODY:case x.IN_FRAMESET:case x.AFTER_FRAMESET:case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:tZ(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===A.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:case x.TEXT:case x.IN_COLUMN_GROUP:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:case x.IN_FRAMESET:case x.AFTER_FRAMESET:this._insertCharacters(e);break;case x.IN_BODY:case x.IN_CAPTION:case x.IN_CELL:case x.IN_TEMPLATE:case x.AFTER_BODY:case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:t9(this,e);break;case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:nl(this,e);break;case x.IN_TABLE_TEXT:np(this,e)}}}function tX(e,t){for(let n=0;n<8;n++){let n=function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):na(e,t),n}(e,t);if(!n)break;let r=function(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=function(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);let n=e.activeFormattingElements.getElementEntry(s),o=n&&a>=3;!n||o?(o&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&function(e,t,n){let r=ta(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===L.TEMPLATE&&i===O.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,a,i),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}(e,r,n)}}function tJ(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function tZ(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function t$(e,t){e._err(t,_.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,R.QUIRKS),e.insertionMode=x.BEFORE_HTML,e._processToken(t)}function t1(e,t){e._insertFakeRootElement(),e.insertionMode=x.BEFORE_HEAD,e._processToken(t)}function t0(e,t){e._insertFakeElement(y.HEAD,L.HEAD),e.headElement=e.openElements.current,e.insertionMode=x.IN_HEAD,e._processToken(t)}function t3(e,t){switch(t.tagID){case L.HTML:ni(e,t);break;case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case L.TITLE:e._switchToTextParsing(t,tc.RCDATA);break;case L.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,tc.RAWTEXT):(e._insertElement(t,O.HTML),e.insertionMode=x.IN_HEAD_NO_SCRIPT);break;case L.NOFRAMES:case L.STYLE:e._switchToTextParsing(t,tc.RAWTEXT);break;case L.SCRIPT:e._switchToTextParsing(t,tc.SCRIPT_DATA);break;case L.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=x.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(x.IN_TEMPLATE);break;case L.HEAD:e._err(t,_.misplacedStartTagForHeadElement);break;default:t5(e,t)}}function t2(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==L.TEMPLATE&&e._err(t,_.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(L.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,_.endTagWithoutMatchingOpenElement)}function t5(e,t){e.openElements.pop(),e.insertionMode=x.AFTER_HEAD,e._processToken(t)}function t4(e,t){let n=t.type===N.EOF?_.openElementsLeftAfterEof:_.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=x.IN_HEAD,e._processToken(t)}function t6(e,t){e._insertFakeElement(y.BODY,L.BODY),e.insertionMode=x.IN_BODY,t8(e,t)}function t8(e,t){switch(t.type){case N.CHARACTER:t7(e,t);break;case N.WHITESPACE_CHARACTER:t9(e,t);break;case N.COMMENT:tJ(e,t);break;case N.START_TAG:ni(e,t);break;case N.END_TAG:ns(e,t);break;case N.EOF:no(e,t)}}function t9(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function t7(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ne(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function nt(e){let t=e6(e,b.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function nn(e,t){e._switchToTextParsing(t,tc.RAWTEXT)}function nr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function ni(e,t){switch(t.tagID){case L.I:case L.S:case L.B:case L.U:case L.EM:case L.TT:case L.BIG:case L.CODE:case L.FONT:case L.SMALL:case L.STRIKE:case L.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case L.A:!function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(y.A);n&&(tX(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case L.H1:case L.H2:case L.H3:case L.H4:case L.H5:case L.H6:e.openElements.hasInButtonScope(L.P)&&e._closePElement(),tl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,O.HTML);break;case L.P:case L.DL:case L.OL:case L.UL:case L.DIV:case L.DIR:case L.NAV:case L.MAIN:case L.MENU:case L.ASIDE:case L.CENTER:case L.FIGURE:case L.FOOTER:case L.HEADER:case L.HGROUP:case L.DIALOG:case L.DETAILS:case L.ADDRESS:case L.ARTICLE:case L.SEARCH:case L.SECTION:case L.SUMMARY:case L.FIELDSET:case L.BLOCKQUOTE:case L.FIGCAPTION:e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,O.HTML);break;case L.LI:case L.DD:case L.DT:!function(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===L.LI&&r===L.LI||(n===L.DD||n===L.DT)&&(r===L.DD||r===L.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==L.ADDRESS&&r!==L.DIV&&r!==L.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,O.HTML)}(e,t);break;case L.BR:case L.IMG:case L.WBR:case L.AREA:case L.EMBED:case L.KEYGEN:ne(e,t);break;case L.HR:e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case L.RB:case L.RTC:e.openElements.hasInScope(L.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,O.HTML);break;case L.RT:case L.RP:e.openElements.hasInScope(L.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(L.RTC),e._insertElement(t,O.HTML);break;case L.PRE:case L.LISTING:e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case L.XMP:e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,tc.RAWTEXT);break;case L.SVG:e._reconstructActiveFormattingElements(),tq(t),tW(t),t.selfClosing?e._appendElement(t,O.SVG):e._insertElement(t,O.SVG),t.ackSelfClosing=!0;break;case L.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case L.BASE:case L.LINK:case L.META:case L.STYLE:case L.TITLE:case L.SCRIPT:case L.BGSOUND:case L.BASEFONT:case L.TEMPLATE:t3(e,t);break;case L.BODY:!function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case L.FORM:!function(e,t){let n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,O.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case L.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(L.NOBR)&&(tX(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case L.MATH:e._reconstructActiveFormattingElements(),tz(t),tW(t),t.selfClosing?e._appendElement(t,O.MATHML):e._insertElement(t,O.MATHML),t.ackSelfClosing=!0;break;case L.TABLE:e.treeAdapter.getDocumentMode(e.document)!==R.QUIRKS&&e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=x.IN_TABLE;break;case L.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),nt(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case L.PARAM:case L.TRACK:case L.SOURCE:e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case L.IMAGE:t.tagName=y.IMG,t.tagID=L.IMG,ne(e,t);break;case L.BUTTON:e.openElements.hasInScope(L.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(L.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1;break;case L.APPLET:case L.OBJECT:case L.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case L.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,tc.RAWTEXT);break;case L.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===x.IN_TABLE||e.insertionMode===x.IN_CAPTION||e.insertionMode===x.IN_TABLE_BODY||e.insertionMode===x.IN_ROW||e.insertionMode===x.IN_CELL?x.IN_SELECT_IN_TABLE:x.IN_SELECT;break;case L.OPTION:case L.OPTGROUP:e.openElements.currentTagId===L.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML);break;case L.NOEMBED:case L.NOFRAMES:nn(e,t);break;case L.FRAMESET:!function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,O.HTML),e.insertionMode=x.IN_FRAMESET)}(e,t);break;case L.TEXTAREA:e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.tokenizer.state=tc.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=x.TEXT;break;case L.NOSCRIPT:e.options.scriptingEnabled?nn(e,t):nr(e,t);break;case L.PLAINTEXT:e.openElements.hasInButtonScope(L.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.tokenizer.state=tc.PLAINTEXT;break;case L.COL:case L.TH:case L.TD:case L.TR:case L.HEAD:case L.FRAME:case L.TBODY:case L.TFOOT:case L.THEAD:case L.CAPTION:case L.COLGROUP:break;default:nr(e,t)}}function na(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==L.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function ns(e,t){switch(t.tagID){case L.A:case L.B:case L.I:case L.S:case L.U:case L.EM:case L.TT:case L.BIG:case L.CODE:case L.FONT:case L.NOBR:case L.SMALL:case L.STRIKE:case L.STRONG:tX(e,t);break;case L.P:e.openElements.hasInButtonScope(L.P)||e._insertFakeElement(y.P,L.P),e._closePElement();break;case L.DL:case L.UL:case L.OL:case L.DIR:case L.DIV:case L.NAV:case L.PRE:case L.MAIN:case L.MENU:case L.ASIDE:case L.BUTTON:case L.CENTER:case L.FIGURE:case L.FOOTER:case L.HEADER:case L.HGROUP:case L.DIALOG:case L.ADDRESS:case L.ARTICLE:case L.DETAILS:case L.SEARCH:case L.SECTION:case L.SUMMARY:case L.LISTING:case L.FIELDSET:case L.BLOCKQUOTE:case L.FIGCAPTION:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case L.LI:e.openElements.hasInListItemScope(L.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(L.LI),e.openElements.popUntilTagNamePopped(L.LI));break;case L.DD:case L.DT:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case L.H1:case L.H2:case L.H3:case L.H4:case L.H5:case L.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case L.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(y.BR,L.BR),e.openElements.pop(),e.framesetOk=!1;break;case L.BODY:!function(e,t){if(e.openElements.hasInScope(L.BODY)&&(e.insertionMode=x.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case L.HTML:e.openElements.hasInScope(L.BODY)&&(e.insertionMode=x.AFTER_BODY,nk(e,t));break;case L.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(L.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(L.FORM):n&&e.openElements.remove(n))}(e);break;case L.APPLET:case L.OBJECT:case L.MARQUEE:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case L.TEMPLATE:t2(e,t);break;default:na(e,t)}}function no(e,t){e.tmplInsertionModeStack.length>0?nC(e,t):tZ(e,t)}function nl(e,t){if(tQ.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=x.IN_TABLE_TEXT,t.type){case N.CHARACTER:nd(e,t);break;case N.WHITESPACE_CHARACTER:np(e,t)}else nh(e,t)}function nc(e,t){switch(t.tagID){case L.TD:case L.TH:case L.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(y.TBODY,L.TBODY),e.insertionMode=x.IN_TABLE_BODY,ng(e,t);break;case L.STYLE:case L.SCRIPT:case L.TEMPLATE:t3(e,t);break;case L.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(y.COLGROUP,L.COLGROUP),e.insertionMode=x.IN_COLUMN_GROUP,nE(e,t);break;case L.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,O.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case L.TABLE:e.openElements.hasInTableScope(L.TABLE)&&(e.openElements.popUntilTagNamePopped(L.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case L.TBODY:case L.TFOOT:case L.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=x.IN_TABLE_BODY;break;case L.INPUT:nt(t)?e._appendElement(t,O.HTML):nh(e,t),t.ackSelfClosing=!0;break;case L.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,O.HTML),e.insertionMode=x.IN_CAPTION;break;case L.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=x.IN_COLUMN_GROUP;break;default:nh(e,t)}}function nu(e,t){switch(t.tagID){case L.TABLE:e.openElements.hasInTableScope(L.TABLE)&&(e.openElements.popUntilTagNamePopped(L.TABLE),e._resetInsertionMode());break;case L.TEMPLATE:t2(e,t);break;case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:case L.TBODY:case L.TD:case L.TFOOT:case L.TH:case L.THEAD:case L.TR:break;default:nh(e,t)}}function nh(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,t8(e,t),e.fosterParentingEnabled=n}function np(e,t){e.pendingCharacterTokens.push(t)}function nd(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function nf(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===L.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===L.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===L.OPTGROUP&&e.openElements.pop();break;case L.OPTION:e.openElements.currentTagId===L.OPTION&&e.openElements.pop();break;case L.SELECT:e.openElements.hasInSelectScope(L.SELECT)&&(e.openElements.popUntilTagNamePopped(L.SELECT),e._resetInsertionMode());break;case L.TEMPLATE:t2(e,t)}}function nC(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(L.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):tZ(e,t)}function nk(e,t){var n;if(t.tagID===L.HTML){if(e.fragmentContext||(e.insertionMode=x.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===L.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];!r||(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)||e._setEndLocation(r,t)}}else nD(e,t)}function nD(e,t){e.insertionMode=x.IN_BODY,t8(e,t)}function nO(e,t){e.insertionMode=x.IN_BODY,t8(e,t)}function nb(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==O.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}let nR=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function ny(e,t){return function(n){let r;let i=0,a="";for(;r=e.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=t.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}null!=String.prototype.codePointAt||((e,t)=>(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)),ny(/[&<>'"]/g,nR),ny(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),ny(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),y.AREA,y.BASE,y.BASEFONT,y.BGSOUND,y.BR,y.COL,y.EMBED,y.FRAME,y.HR,y.IMG,y.INPUT,y.KEYGEN,y.LINK,y.META,y.PARAM,y.SOURCE,y.TRACK,y.WBR;let nL=nM("end"),nP=nM("start");function nM(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}let nx=function(e){if(null==e)return nF;if("function"==typeof e)return nv(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n":"")+")"})}return u;function u(){var c;let u,h,p,d=nB;if((!t||a(i,o,l[l.length-1]||void 0))&&!1===(d=Array.isArray(c=n(i,l))?c:"number"==typeof c?[!0,c]:null==c?nB:[c])[0])return d;if("children"in i&&i.children&&i.children&&"skip"!==d[0])for(h=(r?i.children.length:-1)+s,p=l.concat(i);h>-1&&h])/gi,nG=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),nY={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function nz(e,t){let n=function(e){let t="root"===e.type?e.children[0]:e;return!!(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=ej("type",{handlers:{root:nW,element:nV,text:nQ,comment:nK,doctype:nj,raw:nX},unknown:nJ}),i={parser:n?new tK(nY):tK.getFragmentParser(void 0,nY),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),nZ(i,nP());let a=function(e,t){let n=t||{};return eY({file:n.file||void 0,location:!1,schema:"svg"===n.space?eN:e_,verbose:n.verbose||!1},e)}(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return(i.stitches&&nH(a,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t}),"root"===a.type&&1===a.children.length&&a.children[0].type===e.type)?a.children[0]:a}function nq(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);let n={type:N.CHARACTER,chars:e.value,location:n1(e)};nZ(t,nP(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function nj(e,t){let n={type:N.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:n1(e)};nZ(t,nP(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function nK(e,t){let n=e.value,r={type:N.COMMENT,data:n,location:n1(e)};nZ(t,nP(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function nX(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,n$(t,nP(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(nU,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function nJ(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type))!function(e,t){t.stitches=!0;let n="children"in e?j({...e,children:[]}):j(e);if("children"in e&&"children"in n){let r=nz({type:"root",children:e.children},t.options);n.children=r.children}nK({type:"comment",value:{stitch:n}},t)}(e,t);else{let t="";throw nG.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function nZ(e,t){n$(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=tc.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function n$(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function n1(e){let t=nP(e)||{line:void 0,column:void 0,offset:void 0},n=nL(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function n0(e){return function(t,n){return nz(t,{...e,file:n})}}let n3=/["&'<>`]/g,n2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n5=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n4=/[|\\{}()[\]^$+*?.]/g,n6=new WeakMap,n8=/[\dA-Fa-f]/,n9=/\d/,n7=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],re={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},rt=["cent","copy","divide","gt","lt","not","para","times"],rn={}.hasOwnProperty,rr={};for(r in re)rn.call(re,r)&&(rr[re[r]]=r);let ri=/[^\dA-Za-z]/;function ra(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!n8.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let i=String.fromCharCode(e);if(rn.call(rr,i)){let e=rr[i],a="&"+e;return n&&n7.includes(e)&&!rt.includes(e)&&(!r||t&&61!==t&&ri.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!n9.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length|^->||--!>|"],rc=["<",">"];function ru(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let rh=/[ \t\n\f\r]/g;function rp(e){return"object"==typeof e?"text"===e.type&&rd(e.value):rd(e)}function rd(e){return""===e.replace(rh,"")}let rf=rT(1),rm=rT(-1),rE=[];function rT(e){return function(t,n,r){let i=t?t.children:rE,a=(n||0)+e,s=i[a];if(!r)for(;s&&rp(s);)a+=e,s=i[a];return s}}let rg={}.hasOwnProperty;function rA(e){return function(t,n,r){return rg.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let r_=rA({body:function(e,t,n){let r=rf(n,t);return!r||"comment"!==r.type},caption:rN,colgroup:rN,dd:function(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=rf(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:rN,html:function(e,t,n){let r=rf(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=rf(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:rI,rt:rI,tbody:function(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:rS,tfoot:function(e,t,n){return!rf(n,t)},th:rS,thead:function(e,t,n){let r=rf(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function rN(e,t,n){let r=rf(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&rp(r.value.charAt(0)))}function rI(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function rS(e,t,n){let r=rf(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let rC=rA({body:function(e){let t=rf(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&rp(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){let r=rm(n,t),i=rf(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&r_(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=rf(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=rm(n,t),i=rf(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&r_(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),rk={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},rD=["<","&"];function rO(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:rs(e.value,Object.assign({},r.settings.characterReferences,{subset:rD}))}let rb=ej("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"":""},doctype:function(e,t,n,r){return""},element:function(e,t,n,r){let i;let a=r.schema,s="svg"!==a.space&&r.settings.omitOptionalTags,o="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=eN);let c=function(e,t){let n;let r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r;let i=eb(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=e.settings.allowDangerousCharacters?0:1,o=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean&&"string"!=typeof n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=rs(i.attribute,Object.assign({},e.settings.characterReferences,{subset:rk.name[a][s]}));return!0===n?l:(n=Array.isArray(n)?(i.commaSeparated?eS:eP)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=rs(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:rk.unquoted[a][s]}))),r!==n&&(e.settings.quoteSmart&&ru(n,o)>ru(n,e.alternative)&&(o=e.alternative),r=o+rs(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?rk.single:rk.double)[a][s],attribute:!0}))+o),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i")),l.push(u),o||s&&r_(e,t,n)||l.push(""),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:rO(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:rO}}),rR={},ry={},rL=[];function rP(e,t,n){return rb(e,t,n,this)}function rM(e){let t=[],n=e&&e.children||rL,r=-1;for(;++r-1&&e.test(String.fromCharCode(t))}}var rj=n(2352);let rK="phrasing",rX=["autolink","link","image","label"];function rJ(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function rZ(e){this.config.enter.autolinkProtocol.call(this,e)}function r$(e){this.config.exit.autolinkProtocol.call(this,e)}function r1(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function r0(e){this.config.exit.autolinkEmail.call(this,e)}function r3(e){this.exit(e)}function r2(e){!function(e,t,n){let r=nx((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(o!==n&&u.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),o=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}return c?(o?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=ru(e,"("),a=ru(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!s[0])return!1;let o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function r4(e,t,n,r){return!(!r6(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function r6(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||rV(n)||rW(n))&&(!t||47!==n)}function r8(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function r9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function r7(){this.buffer()}function ie(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=r8(this.sliceSerialize(e)).toLowerCase()}function it(e){this.exit(e)}function ir(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ii(){this.buffer()}function ia(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=r8(this.sliceSerialize(e)).toLowerCase()}function is(e){this.exit(e)}function io(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),s(),a+=i.move("]")}function il(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),s=n.enter("footnoteDefinition"),o=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),ic)),s(),a}function ic(e,t,n){return 0===t?e:(n?"":" ")+e}io.peek=function(){return"["};let iu=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function ih(e){this.enter({type:"delete",children:[]},e)}function ip(e){this.exit(e)}function id(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"})+i.move("~~"),a(),s}function im(e){return e.length}function iE(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}id.peek=function(){return"~"};function iT(e){return null===e||rz(e)||rV(e)?1:rW(e)?2:void 0}let ig={};function iA(e,t){let n=t||ig;return i_(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function i_(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return iN(e.children,t,n)}return Array.isArray(e)?iN(e,t,n):""}function iN(e,t,n){let r=[],i=-1;for(;++i-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let s=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?a:a+" ".repeat(s-a.length))+e});return l(),c};function iC(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function ik(e){this.exit(e),this.data.inTable=void 0}function iD(e){this.enter({type:"tableRow",children:[]},e)}function iO(e){this.exit(e)}function ib(e){this.enter({type:"tableCell",children:[]},e)}function iR(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,iy));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function iy(e,t){return"|"===t?t:e}function iL(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function iP(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,a=-1;for(;++aa?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s0?(ix(e,e.length,0,t),e):t}let iF={}.hasOwnProperty;function iB(e){let t={},n=-1;for(;++n0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function i$(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,a=0;return function(r){return rq(r)?(e.enter(n),function r(s){return rq(s)&&a++999||93===o&&!r||null===o||91===o||rz(o))return n(o);if(93===o){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return a.includes(r8(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return rz(o)||(r=!0),s++,e.consume(o),92===o?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function i4(e,t,n){let r,i;let a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(o>999||93===t&&!i||null===t||91===t||rz(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=r8(a.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return rz(t)||(i=!0),o++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),i$(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function i6(e,t,n){return e.check(i1,t,e.attempt(i0,t,n))}function i8(e){e.exit("gfmFootnoteDefinition")}function i9(e,t,n){let r=[],i=-1;for(;++i0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function ae(e,t,n){let r;let i=this,a=0,s=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?g:o;return a===g&&i.parser.lazy[i.now().line]?n(e):a(e)};function o(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,s+=1),l(t)}function l(t){return null===t?n(t):rY(t)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):rq(t)?i$(e,l,"whitespace")(t):(s+=1,r&&(r=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),c(t))}function c(t){return null===t||124===t||rz(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,rq(t))?i$(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):n(t)}function d(t){return rq(t)?i$(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||rY(t)?T(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(n))}(t)):n(t)}function E(t){return rq(t)?i$(e,T,"whitespace")(t):T(t)}function T(i){return 124===i?p(i):null===i||rY(i)?r&&a===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i):n(i)}function g(t){return e.enter("tableRow"),A(t)}function A(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),A):null===n||rY(n)?(e.exit("tableRow"),t(n)):rq(n)?i$(e,A,"whitespace")(n):(e.enter("data"),_(n))}function _(t){return null===t||124===t||rz(t)?(e.exit("data"),A(t)):(e.consume(t),92===t?N:_)}function N(t){return 92===t||124===t?(e.consume(t),_):_(t)}}function at(e,t){let n,r,i,a=-1,s=!0,o=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0,p=new i7;for(;++an[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(a.end=Object.assign({},ai(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function ar(e,t,n,r,i){let a=[],s=ai(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function ai(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let aa={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return rz(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return rY(r)?t(r):rq(r)?e.check({tokenize:as},t,n)(r):n(r)}}};function as(e,t,n){return i$(e,function(e){return null===e?n(e):t(e)},"whitespace")}let ao={};function al(e){let t=e||ao,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(iB([{text:iV},{document:{91:{name:"gfmFootnoteDefinition",tokenize:i4,continuation:{tokenize:i6},exit:i8}},text:{91:{name:"gfmFootnoteCall",tokenize:i5},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:i3,resolveTo:i2}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,s=0;return function(o){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function a(o){let l=iT(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);let c=e.exit("strikethroughSequenceTemporary"),u=iT(o);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++nc&&(c=e[u].length);++al[a])&&(l[a]=e)}t.push(s)}s[u]=t,o[u]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++pl[p]&&(l[p]=i),f[p]=i),d[p]=s}s.splice(1,0,d),o.splice(1,0,f),u=-1;let m=[];for(;++u=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&au(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),au(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),au(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(er))return;let o=i.events.length,l=o;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(E(s),a=o;at;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function T(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},af={tokenize:function(e,t,n){return i$(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},am={resolve:function(e){return ah(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):rY(t)?e.check(aE,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},aE={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i$(e,i,"linePrefix")};function i(i){if(null===i||rY(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},aT={tokenize:function(e){let t=this,n=e.attempt(i1,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,i$(e,e.attempt(this.parser.constructs.flow,r,e.attempt(am,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},ag={resolveAll:aI()},aA=aN("string"),a_=aN("text");function aN(e){return{resolveAll:aI("text"===e?aS:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,s);return a;function a(e){return l(e)?i(e):s(e)}function s(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),o}function o(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i=3&&(null===s||rY(s))?(e.exit("thematicBreak"),t(s)):n(s)}(a)}}},ak={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(i1,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,i$(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!rq(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(aO,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,i$(e,e.attempt(ak,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:rH(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(aC,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return rH(i)&&++s<10?(e.consume(i),t):(!r.interrupt||s<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),o(i)):n(i)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(i1,r.interrupt?n:l,e.attempt(aD,u,c))}function l(e){return r.containerState.initialBlankLine=!0,a++,u(e)}function c(t){return rq(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},aD={partial:!0,tokenize:function(e,t,n){let r=this;return i$(e,function(e){let i=r.events[r.events.length-1];return!rq(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},aO={partial:!0,tokenize:function(e,t,n){let r=this;return i$(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},ab={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return rq(t)?i$(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(ab,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return rq(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function aR(e,t,n,r,i,a,s,o,l){let c=l||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),h):null===t||32===t||41===t||rw(t)?n(t):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),f(t))};function h(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(o),h(t)):null===t||60===t||rY(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(i){return!u&&(null===i||41===i||rz(i))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(i)):u999||null===h||91===h||93===h&&!s||94===h&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):93===h?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):rY(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||rY(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!rq(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function aL(e,t,n,r,i,a){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,o):n(t)};function o(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===s?(e.exit(a),o(s)):null===t?n(t):rY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i$(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||rY(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function aP(e,t){let n;return function r(i){return rY(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):rq(i)?i$(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}let aM={partial:!0,tokenize:function(e,t,n){return function(t){return rz(t)?aP(e,r)(t):n(t)};function r(t){return aL(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return rq(t)?i$(e,a,"whitespace")(t):a(t)}function a(e){return null===e||rY(e)?t(e):n(e)}}},ax={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),i$(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):rY(n)?e.attempt(av,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||rY(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},av={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):rY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):i$(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):rY(e)?i(e):n(e)}}},aF={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){let r;let i=this;return function(t){let s,o=i.events.length;for(;o--;)if("lineEnding"!==i.events[o][1].type&&"linePrefix"!==i.events[o][1].type&&"content"!==i.events[o][1].type){s="paragraph"===i.events[o][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),rq(n)?i$(e,a,"lineSuffix")(n):a(n))}(t)):n(t)};function a(r){return null===r||rY(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},aB=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],aw=["pre","script","style","textarea"],aH={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(i1,t,n)}}},aU={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return rY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},aG={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},aY={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};function s(t){return e.enter("codeFencedFence"),rq(t)?i$(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=o?(e.exit("codeFencedFenceSequence"),rq(i)?i$(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||rY(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},s=0,o=0;return function(t){return function(t){let a=i.events[i.events.length-1];return s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o<3?n(i):(e.exit("codeFencedFenceSequence"),rq(i)?i$(e,l,"whitespace")(i):l(i))}(t)}(t)};function l(a){return null===a||rY(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(aG,u,f)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||rY(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):rq(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),i$(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function c(t){return null===t||rY(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||rY(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(a,f,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return s>0&&rq(t)?i$(e,d,"linePrefix",s+1)(t):d(t)}function d(t){return null===t||rY(t)?e.check(aG,u,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||rY(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},az=document.createElement("i");function aq(e){let t="&"+e+";";az.innerHTML=t;let n=az.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let aW={name:"characterReference",tokenize:function(e,t,n){let r,i;let a=this,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=rF,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=rU,c):(e.enter("characterReferenceValue"),r=7,i=rH,c(t))}function c(o){if(59===o&&s){let r=e.exit("characterReferenceValue");return i!==rF||aq(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return i(o)&&s++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let h={...e[n][1].end},p={...e[u][1].start};a1(h,-o),a1(p,o),a={type:o>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:o>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[n][1].end={...a.start},e[u][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=iv(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=iv(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=iv(l,i9(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=iv(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=iv(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,ix(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++ua&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},ix(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||rz(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||rY(r)?(e.exit("atxHeading"),t(r)):rq(r)?i$(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||rz(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(i)}}},42:aC,45:[aF,aC],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,a,s,o;let l=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,d):63===s?(e.consume(s),r=3,l.interrupt?t:P):rv(s)?(e.consume(s),a=String.fromCharCode(s),f):n(s)}function u(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,s=0,p):rv(i)?(e.consume(i),r=4,l.interrupt?t:P):n(i)}function h(r){return 45===r?(e.consume(r),l.interrupt?t:P):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(s++)?(e.consume(r),s===i.length)?l.interrupt?t:C:p:n(r)}function d(t){return rv(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||rz(s)){let o=47===s,c=a.toLowerCase();return!o&&!i&&aw.includes(c)?(r=1,l.interrupt?t(s):C(s)):aB.includes(a.toLowerCase())?(r=6,o)?(e.consume(s),m):l.interrupt?t(s):C(s):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(s):i?function t(n){return rq(n)?(e.consume(n),t):I(n)}(s):E(s))}return 45===s||rF(s)?(e.consume(s),a+=String.fromCharCode(s),f):n(s)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:C):n(r)}function E(t){return 47===t?(e.consume(t),I):58===t||95===t||rv(t)?(e.consume(t),T):rq(t)?(e.consume(t),E):I(t)}function T(t){return 45===t||46===t||58===t||95===t||rF(t)?(e.consume(t),T):g(t)}function g(t){return 61===t?(e.consume(t),A):rq(t)?(e.consume(t),g):E(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,_):rq(t)?(e.consume(t),A):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||rz(n)?g(n):(e.consume(n),t)}(t)}function _(t){return t===o?(e.consume(t),o=null,N):null===t||rY(t)?n(t):(e.consume(t),_)}function N(e){return 47===e||62===e||rq(e)?E(e):n(e)}function I(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||rY(t)?C(t):rq(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),b):60===t&&1===r?(e.consume(t),R):62===t&&4===r?(e.consume(t),M):63===t&&3===r?(e.consume(t),P):93===t&&5===r?(e.consume(t),L):rY(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(aH,x,k)(t)):null===t||rY(t)?(e.exit("htmlFlowData"),k(t)):(e.consume(t),C)}function k(t){return e.check(aU,D,x)(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||rY(t)?k(t):(e.enter("htmlFlowData"),C(t))}function b(t){return 45===t?(e.consume(t),P):C(t)}function R(t){return 47===t?(e.consume(t),a="",y):C(t)}function y(t){if(62===t){let n=a.toLowerCase();return aw.includes(n)?(e.consume(t),M):C(t)}return rv(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),y):C(t)}function L(t){return 93===t?(e.consume(t),P):C(t)}function P(t){return 62===t?(e.consume(t),M):45===t&&2===r?(e.consume(t),P):C(t)}function M(t){return null===t||rY(t)?(e.exit("htmlFlowData"),x(t)):(e.consume(t),M)}function x(n){return e.exit("htmlFlow"),t(n)}}},61:aF,95:aC,96:aY,126:aY},a6={38:aW,92:aV},a8={[-5]:aQ,[-4]:aQ,[-3]:aQ,33:aZ,38:aW,42:a$,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return rv(t)?(e.consume(t),a):64===t?n(t):o(t)}function a(t){return 43===t||45===t||46===t||rF(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,s):(43===n||45===n||46===n||rF(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||rw(r)?n(r):(e.consume(r),s)}function o(t){return 64===t?(e.consume(t),l):rB(t)?(e.consume(t),o):n(t)}function l(i){return rF(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||rF(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a;let s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),_):63===t?(e.consume(t),g):rv(t)?(e.consume(t),I):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,d):rv(t)?(e.consume(t),T):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):rY(t)?(a=u,y(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?R(e):45===e?h(e):u(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?f:d):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):rY(t)?(a=f,y(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),E):f(t)}function E(t){return 62===t?R(t):93===t?(e.consume(t),E):f(t)}function T(t){return null===t||62===t?R(t):rY(t)?(a=T,y(t)):(e.consume(t),T)}function g(t){return null===t?n(t):63===t?(e.consume(t),A):rY(t)?(a=g,y(t)):(e.consume(t),g)}function A(e){return 62===e?R(e):g(e)}function _(t){return rv(t)?(e.consume(t),N):n(t)}function N(t){return 45===t||rF(t)?(e.consume(t),N):function t(n){return rY(n)?(a=t,y(n)):rq(n)?(e.consume(n),t):R(n)}(t)}function I(t){return 45===t||rF(t)?(e.consume(t),I):47===t||62===t||rz(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),R):58===t||95===t||rv(t)?(e.consume(t),C):rY(t)?(a=S,y(t)):rq(t)?(e.consume(t),S):R(t)}function C(t){return 45===t||46===t||58===t||95===t||rF(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),k):rY(n)?(a=t,y(n)):rq(n)?(e.consume(n),t):S(n)}(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,D):rY(t)?(a=k,y(t)):rq(t)?(e.consume(t),k):(e.consume(t),O)}function D(t){return t===r?(e.consume(t),r=void 0,b):null===t?n(t):rY(t)?(a=D,y(t)):(e.consume(t),D)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||rz(t)?S(t):(e.consume(t),O)}function b(e){return 47===e||62===e||rz(e)?S(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function y(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return rq(t)?i$(e,P,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),a(t)}}}],91:a0,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return rY(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},aV],93:aj,95:a$,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let sr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function si(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return sn(n.slice(t?2:1),t?16:10)}return aq(n)||e}function sa(e){return e&&"object"==typeof e?"position"in e||"type"in e?so(e.position):"start"in e||"end"in e?so(e):"line"in e||"column"in e?ss(e):"":""}function ss(e){return sl(e&&e.line)+":"+sl(e&&e.column)}function so(e){return ss(e&&e.start)+"-"+ss(e&&e.end)}function sl(e){return e&&"number"==typeof e?e:1}let sc={}.hasOwnProperty;function su(e){return{line:e.line,column:e.column,offset:e.offset}}function sh(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+sa({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+sa({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+sa({start:t.start,end:t.end})+") is still open")}function sp(e){let t=this;t.parser=function(n){var r,i;let a,s,o,l;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(T),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(f),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(E,i),htmlFlowData:c,htmlText:r(E,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(T),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(g,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(g),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(f),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=sn(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=aq(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=su(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=r8(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(h),hardBreakTrailing:s(h),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(sr,si),n.identifier=r8(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=su(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=r8(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};(function e(t,n){let r=-1;for(;++r0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||sh).call(s,void 0,e[0])}for(r.position={start:su(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:su(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}s>0&&n.push(e[a].slice(0,s))}return n}(s,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function d(e,t){t.restore()}function f(e,t){return function(n,i,a){let s,u,h,d;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function f(e){return(s=e,u=0,0===e.length)?a:m(e[u])}function m(e){return function(n){return(d=function(){let e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,a=Array.from(o);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,o=a,E()}}}(),h=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?g(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,T,g)(n)}}function T(t){return e(h,d),i}function g(e){return(d.restore(),++u55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(s=String.fromCharCode(a,t),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function sf(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function sm(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function sE(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function sT(e){let t=e.spread;return null==t?e.children.length>1:t}function sg(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let sA={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=sd(i.toLowerCase()),s=e.footnoteOrder.indexOf(i),o=e.footnoteCounts.get(i);void 0===o?(o=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=s+1,o+=1,e.footnoteCounts.set(i,o);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sE(e,t);let i={src:sd(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:sd(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sE(e,t);let i={href:sd(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:sd(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=nP(t.children[1]),s=nL(t.children[t.children.length-1]);a&&s&&(r.position={start:a,end:s}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,s=a?a.length:t.children.length,o=-1,l=[];for(;++o0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(sg(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:s_,yaml:s_,definition:s_,footnoteDefinition:s_};function s_(){}let sN={}.hasOwnProperty,sI={};function sS(e,t){e.position&&(t.position=function(e){let t=nP(e),n=nL(e);if(t&&n)return{start:t,end:n}}(e))}function sC(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,j(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function sk(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text",value:"\n"}),n}function sD(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function sO(e,t){let n=function(e,t){let n=t||sI,r=new Map,i=new Map,a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r0&&h.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let d=a[a.length-1];if(d&&"element"===d.type&&"p"===d.tagName){let e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...h)}else a.push(...h);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,f),o.push(f)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...j(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:"\n"},i),a}function sb(e,t){return e&&"run"in e?async function(n,r){let i=sO(n,{file:r,...t});await e.run(i,r)}:function(n,r){return sO(n,{file:r,...e||t})}}function sR(e){if(e)throw e}var sy=n(7396);function sL(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}class sP extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=s?s.line:void 0,this.name=sa(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}sP.prototype.file="",sP.prototype.name="",sP.prototype.reason="",sP.prototype.message="",sP.prototype.stack="",sP.prototype.column=void 0,sP.prototype.line=void 0,sP.prototype.ancestors=void 0,sP.prototype.cause=void 0,sP.prototype.fatal=void 0,sP.prototype.place=void 0,sP.prototype.ruleId=void 0,sP.prototype.source=void 0;let sM={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');sx(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(i=a):(o=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(sx(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;sx(e);let n=e.length,r=-1,i=0,a=-1,s=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?a<0?a=n:1!==s&&(s=1):a>-1&&(s=-1)}return a<0||r<0||0===s||1===s&&a===r-1&&a===i+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),s=l,o=0;continue}}else if(i.length>0){i="",a=0,s=l,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),a=l-s-1;s=l,o=0}else 46===n&&o>-1?o++:o=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function sx(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let sv={cwd:function(){return"/"}};function sF(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let sB=["history","path","basename","stem","extname","dirname"];class sw{constructor(e){let t,n;t=e?sF(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="cwd"in t?"":sv.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++rt.length;s&&t.push(r);try{a=e.apply(this,t)}catch(e){if(s&&n)throw e;return r(e)}s||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(o,i)(...s):r(null,...s)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new sq,t=-1;for(;++t0){let[r,...a]=t,s=n[i][1];sL(s)&&sL(r)&&(r=sy(!0,s,r)),n[i]=[e,r,...a]}}}}let sW=new sq().freeze();function sV(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function sQ(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function sj(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sK(e){if(!sL(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function sX(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function sJ(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new sw(e)}var sZ={exports:{}},s$={};sZ.exports=function(){if(v)return s$;v=1;var e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,r=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(t,a,s){var o,l={},c=null,u=null;for(o in void 0!==s&&(c=""+s),void 0!==a.key&&(c=""+a.key),void 0!==a.ref&&(u=a.ref),a)n.call(a,o)&&!i.hasOwnProperty(o)&&(l[o]=a[o]);if(t&&t.defaultProps)for(o in a=t.defaultProps)void 0===l[o]&&(l[o]=a[o]);return{$$typeof:e,type:t,key:c,ref:u,props:l,_owner:r.current}}return s$.Fragment=t,s$.jsx=a,s$.jsxs=a,s$}();var s1=sZ.exports;async function s0(e){return String(await sW().use(sp).use(al).use(sb,{allowDangerousHtml:!0}).use(n0).use(rx).processSync(e))}function s3(e){let[t,n]=w.useState("");return w.useEffect(()=>{(async()=>{n(await s0(e))})()},[e]),{html:t,jsx:s1.jsx("div",{dangerouslySetInnerHTML:{__html:t}})}}},1675:function(e,t,n){n.d(t,{f:function(){return o},o:function(){return s}});var r=n(5271),i=n(8141),a=n(2676),s=r.forwardRef((e,t)=>{let{ratio:n=1,style:r,...s}=e;return(0,a.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:(0,a.jsx)(i.WV.div,{...s,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});s.displayName="AspectRatio";var o=s},757:function(e,t,n){n.d(t,{fC:function(){return C},z$:function(){return k}});var r=n(5271),i=n(1224),a=n(9407),s=n(5061),o=n(9945),l=n(5477),c=n(7017),u=n(2432),h=n(8141),p=n(2676),d="Checkbox",[f,m]=(0,a.b)(d),[E,T]=f(d),g=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:a,checked:l,defaultChecked:c,required:u,disabled:d,value:f="on",onCheckedChange:m,form:T,...g}=e,[A,_]=r.useState(null),C=(0,i.e)(t,e=>_(e)),k=r.useRef(!1),D=!A||T||!!A.closest("form"),[O=!1,b]=(0,o.T)({prop:l,defaultProp:c,onChange:m}),R=r.useRef(O);return r.useEffect(()=>{let e=A?.form;if(e){let t=()=>b(R.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[A,b]),(0,p.jsxs)(E,{scope:n,state:O,disabled:d,children:[(0,p.jsx)(h.WV.button,{type:"button",role:"checkbox","aria-checked":I(O)?"mixed":O,"aria-required":u,"data-state":S(O),"data-disabled":d?"":void 0,disabled:d,value:f,...g,ref:C,onKeyDown:(0,s.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,s.M)(e.onClick,e=>{b(e=>!!I(e)||!e),D&&(k.current=e.isPropagationStopped(),k.current||e.stopPropagation())})}),D&&(0,p.jsx)(N,{control:A,bubbles:!k.current,name:a,value:f,checked:O,required:u,disabled:d,form:T,style:{transform:"translateX(-100%)"},defaultChecked:!I(c)&&c})]})});g.displayName=d;var A="CheckboxIndicator",_=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=T(A,n);return(0,p.jsx)(u.z,{present:r||I(a.state)||!0===a.state,children:(0,p.jsx)(h.WV.span,{"data-state":S(a.state),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});_.displayName=A;var N=e=>{let{control:t,checked:n,bubbles:i=!0,defaultChecked:a,...s}=e,o=r.useRef(null),u=(0,l.D)(n),h=(0,c.t)(t);r.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==n&&t){let r=new Event("click",{bubbles:i});e.indeterminate=I(n),t.call(e,!I(n)&&n),e.dispatchEvent(r)}},[u,n,i]);let d=r.useRef(!I(n)&&n);return(0,p.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??d.current,...s,tabIndex:-1,ref:o,style:{...e.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function I(e){return"indeterminate"===e}function S(e){return I(e)?"indeterminate":e?"checked":"unchecked"}var C=g,k=_},1224:function(e,t,n){n.d(t,{F:function(){return i},e:function(){return a}});var r=n(5271);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function a(...e){return r.useCallback(i(...e),e)}},8141:function(e,t,n){n.d(t,{WV:function(){return o},jH:function(){return l}});var r=n(5271),i=n(967),a=n(1557),s=n(2676),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...i}=e,o=r?a.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},1557:function(e,t,n){n.d(t,{g7:function(){return s}});var r=n(5271),i=n(1224),a=n(2676),s=r.forwardRef((e,t)=>{let{children:n,...i}=e,s=r.Children.toArray(n),l=s.find(c);if(l){let e=l.props.children,n=s.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.jsx)(o,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,a.jsx)(o,{...i,ref:t,children:n})});s.displayName="Slot";var o=r.forwardRef((e,t)=>{let{children:n,...a}=e;if(r.isValidElement(n)){let e,s;let o=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(a,n.props),ref:t?(0,i.F)(t,o):o})}return r.Children.count(n)>1?r.Children.only(null):null});o.displayName="SlotClone";var l=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function c(e){return r.isValidElement(e)&&e.type===l}}}]); \ No newline at end of file diff --git a/_next/static/chunks/683.f8beb7314ee3ee86.js b/_next/static/chunks/683.f8beb7314ee3ee86.js deleted file mode 100644 index 386014cb2..000000000 --- a/_next/static/chunks/683.f8beb7314ee3ee86.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[683],{9800:function(e,t,n){n.d(t,{Ry:function(){return c}});var r=new WeakMap,o=new WeakMap,i={},a=0,u=function(e){return e&&(e.host||u(e.parentNode))},l=function(e,t,n,l){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=u(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var s=i[n],f=[],d=new Set,p=new Set(c),m=function(e){!e||d.has(e)||(d.add(e),m(e.parentNode))};c.forEach(m);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))h(e);else try{var t=e.getAttribute(l),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,u=(s.get(e)||0)+1;r.set(e,a),s.set(e,u),f.push(e),1===a&&i&&o.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),d.clear(),a++,function(){f.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(l),o.delete(e)),i||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),l(r,o,n,"aria-hidden")):function(){return null}}},6393:function(e,t,n){n.d(t,{Z:function(){return q}});var r,o,i,a,u,l,c,s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var d=n(5271),p="right-scroll-bar-position",m="width-before-scroll-bar";function h(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,g=new WeakMap,y=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),a=[],u=!1,l={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,u);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(u=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){u=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=s({async:!0,ssr:!1},o),l),w=function(){},b=d.forwardRef(function(e,t){var n,r,o,i,a=d.useRef(null),u=d.useState({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:w}),l=u[0],c=u[1],p=e.forwardProps,m=e.children,b=e.className,x=e.removeScrollBar,E=e.enabled,C=e.shards,R=e.sideCar,A=e.noIsolation,P=e.inert,S=e.allowPinchZoom,O=e.as,T=e.gapMode,N=f(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=(n=[a,t],r=function(e){return n.forEach(function(t){return h(t,e)})},(o=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,v(function(){var e=g.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||h(e,null)}),r.forEach(function(e){t.has(e)||h(e,o)})}g.set(i,n)},[n]),i),M=s(s({},N),l);return d.createElement(d.Fragment,null,E&&d.createElement(R,{sideCar:y,removeScrollBar:x,shards:C,noIsolation:A,inert:P,setCallbacks:c,allowPinchZoom:!!S,lockRef:a,gapMode:T}),p?d.cloneElement(d.Children.only(m),s(s({},M),{ref:L})):d.createElement(void 0===O?"div":O,s({},M,{className:b,ref:L}),m))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:m,zeroRight:p};var x=function(e){var t=e.sideCar,n=f(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,s({},n))};x.isSideCarExport=!0;var E=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},C=function(){var e=E();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},R=function(){var e=C();return function(t){return e(t.styles,t.dynamic),null}},A={left:0,top:0,right:0,gap:0},P=function(e){return parseInt(e||"",10)||0},S=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[P(n),P(r),P(o)]},O=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return A;var t=S(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},T=R(),N="data-scroll-locked",L=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(N,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(p," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(m," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(p," .").concat(p," {\n right: 0 ").concat(r,";\n }\n \n .").concat(m," .").concat(m," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(N,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},M=function(){var e=parseInt(document.body.getAttribute(N)||"0",10);return isFinite(e)?e:0},k=function(){d.useEffect(function(){return document.body.setAttribute(N,(M()+1).toString()),function(){var e=M()-1;e<=0?document.body.removeAttribute(N):document.body.setAttribute(N,e.toString())}},[])},D=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;k();var i=d.useMemo(function(){return O(o)},[o]);return d.createElement(T,{styles:L(i,!t,o,n?"":"!important")})},W=!1;if("undefined"!=typeof window)try{var j=Object.defineProperty({},"passive",{get:function(){return W=!0,!0}});window.addEventListener("test",j,j),window.removeEventListener("test",j,j)}catch(e){W=!1}var F=!!W&&{passive:!1},I=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},_=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),B(e,r)){var o=H(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},B=function(e,t){return"v"===e?I(t,"overflowY"):I(t,"overflowX")},H=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},$=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),u=a*r,l=n.target,c=t.contains(l),s=!1,f=u>0,d=0,p=0;do{var m=H(e,l),h=m[0],v=m[1]-m[2]-a*h;(h||v)&&B(e,l)&&(d+=v,p+=h),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return f&&(o&&1>Math.abs(d)||!o&&u>d)?s=!0:!f&&(o&&1>Math.abs(p)||!o&&-u>p)&&(s=!0),s},V=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},z=function(e){return[e.deltaX,e.deltaY]},U=function(e){return e&&"current"in e?e.current:e},Y=0,X=[],K=(c=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(Y++)[0],i=d.useState(R)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;oMath.abs(c)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=_(f,s);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=_(f,s)),!d)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return $(p,t,e,"h"===p?l:c,!0)},[]),l=d.useCallback(function(e){if(X.length&&X[X.length-1]===i){var n="deltaY"in e?z(e):V(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(U).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=d.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),s=d.useCallback(function(e){n.current=V(e),r.current=void 0},[]),f=d.useCallback(function(t){c(t.type,z(t),t.target,u(t,e.lockRef.current))},[]),p=d.useCallback(function(t){c(t.type,V(t),t.target,u(t,e.lockRef.current))},[]);d.useEffect(function(){return X.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,F),document.addEventListener("touchmove",l,F),document.addEventListener("touchstart",s,F),function(){X=X.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,F),document.removeEventListener("touchmove",l,F),document.removeEventListener("touchstart",s,F)}},[]);var m=e.removeScrollBar,h=e.inert;return d.createElement(d.Fragment,null,h?d.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?d.createElement(D,{gapMode:e.gapMode}):null)},y.useMedium(c),x),Z=d.forwardRef(function(e,t){return d.createElement(b,s({},e,{ref:t,sideCar:K}))});Z.classNames=b.classNames;var q=Z},5061:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},8468:function(e,t,n){n.d(t,{b:function(){return i}});var r=n(5271),o=n(2676);function i(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let a=r.createContext(i),u=n.length;function l(t){let{scope:n,children:i,...l}=t,c=n?.[e][u]||a,s=r.useMemo(()=>l,Object.values(l));return(0,o.jsx)(c.Provider,{value:s,children:i})}return n=[...n,i],l.displayName=t+"Provider",[l,function(n,o){let l=o?.[e][u]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},9407:function(e,t,n){n.d(t,{b:function(){return i}});var r=n(5271),o=n(2676);function i(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let a=r.createContext(i),u=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,c=n?.[e]?.[u]||a,s=r.useMemo(()=>l,Object.values(l));return(0,o.jsx)(c.Provider,{value:s,children:i})};return l.displayName=t+"Provider",[l,function(n,o){let l=o?.[e]?.[u]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},7196:function(e,t,n){n.d(t,{XB:function(){return d}});var r,o=n(5271),i=n(5061),a=n(8141),u=n(1224),l=n(116),c=n(2676),s="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d=o.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...w}=e,b=o.useContext(f),[x,E]=o.useState(null),C=x?.ownerDocument??globalThis?.document,[,R]=o.useState({}),A=(0,u.e)(t,e=>E(e)),P=Array.from(b.layers),[S]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),O=P.indexOf(S),T=x?P.indexOf(x):-1,N=b.layersWithOutsidePointerEventsDisabled.size>0,L=T>=O,M=function(e,t=globalThis?.document){let n=(0,l.W)(e),r=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){m("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));!L||n||(h?.(e),g?.(e),e.defaultPrevented||y?.())},C),k=function(e,t=globalThis?.document){let n=(0,l.W)(e),r=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!r.current&&m("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...b.branches].some(e=>e.contains(t))||(v?.(e),g?.(e),e.defaultPrevented||y?.())},C);return!function(e,t=globalThis?.document){let n=(0,l.W)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{T!==b.layers.size-1||(d?.(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},C),o.useEffect(()=>{if(x)return n&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(x)),b.layers.add(x),p(),()=>{n&&1===b.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[x,C,n,b]),o.useEffect(()=>()=>{x&&(b.layers.delete(x),b.layersWithOutsidePointerEventsDisabled.delete(x),p())},[x,b]),o.useEffect(()=>{let e=()=>R({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,c.jsx)(a.WV.div,{...w,ref:A,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,k.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,M.onPointerDownCapture)})});function p(){let e=new CustomEvent(s);document.dispatchEvent(e)}function m(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,a.jH)(o,i):o.dispatchEvent(i)}d.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(f),r=o.useRef(null),i=(0,u.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(a.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},1077:function(e,t,n){n.d(t,{EW:function(){return i}});var r=n(5271),o=0;function i(){r.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??a()),document.body.insertAdjacentElement("beforeend",e[1]??a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},4154:function(e,t,n){let r;n.d(t,{M:function(){return d}});var o=n(5271),i=n(1224),a=n(8141),u=n(116),l=n(2676),c="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",f={bubbles:!1,cancelable:!0},d=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:d,onUnmountAutoFocus:g,...y}=e,[w,b]=o.useState(null),x=(0,u.W)(d),E=(0,u.W)(g),C=o.useRef(null),R=(0,i.e)(t,e=>b(e)),A=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(A.paused||!w)return;let t=e.target;w.contains(t)?C.current=t:h(C.current,{select:!0})},t=function(e){if(A.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||h(C.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,w,A.paused]),o.useEffect(()=>{if(w){v.add(A);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(c,f);w.addEventListener(c,x),w.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(h(r,{select:t}),document.activeElement!==n)return}(p(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(w))}return()=>{w.removeEventListener(c,x),setTimeout(()=>{let t=new CustomEvent(s,f);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||h(e??document.body,{select:!0}),w.removeEventListener(s,E),v.remove(A)},0)}}},[w,x,E,A]);let P=o.useCallback(e=>{if(!n&&!r||A.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=p(e);return[m(t,e),m(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&h(i,{select:!0})):(e.preventDefault(),n&&h(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,A.paused]);return(0,l.jsx)(a.WV.div,{tabIndex:-1,...y,ref:R,onKeyDown:P})});function p(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function m(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function h(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var v=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=g(r,e)).unshift(e)},remove(e){r=g(r,e),r[0]?.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},5065:function(e,t,n){n.d(t,{M:function(){return l}});var r,o=n(5271),i=n(8722),a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),u=0;function l(e){let[t,n]=o.useState(a());return(0,i.b)(()=>{e||n(e=>e??String(u++))},[e]),e||(t?`radix-${t}`:"")}},9454:function(e,t,n){n.d(t,{Eh:function(){return z},VY:function(){return $},fC:function(){return B},x8:function(){return V},xz:function(){return H}});var r=n(5271),o=n(5061),i=n(1224),a=n(9407),u=n(7196),l=n(1077),c=n(4154),s=n(5065),f=n(1085),d=(n(3249),n(2432)),p=n(8141),m=n(1557),h=n(9945),v=n(9800),g=n(6393),y=n(2676),w="Popover",[b,x]=(0,a.b)(w,[f.D7]),E=(0,f.D7)(),[C,R]=b(w),A=e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:u=!1}=e,l=E(t),c=r.useRef(null),[d,p]=r.useState(!1),[m=!1,v]=(0,h.T)({prop:o,defaultProp:i,onChange:a});return(0,y.jsx)(f.fC,{...l,children:(0,y.jsx)(C,{scope:t,contentId:(0,s.M)(),triggerRef:c,open:m,onOpenChange:v,onOpenToggle:r.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>p(!0),[]),onCustomAnchorRemove:r.useCallback(()=>p(!1),[]),modal:u,children:n})})};A.displayName=w;var P="PopoverAnchor";r.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,i=R(P,n),a=E(n),{onCustomAnchorAdd:u,onCustomAnchorRemove:l}=i;return r.useEffect(()=>(u(),()=>l()),[u,l]),(0,y.jsx)(f.ee,{...a,...o,ref:t})}).displayName=P;var S="PopoverTrigger",O=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,a=R(S,n),u=E(n),l=(0,i.e)(t,a.triggerRef),c=(0,y.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":_(a.open),...r,ref:l,onClick:(0,o.M)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?c:(0,y.jsx)(f.ee,{asChild:!0,...u,children:c})});O.displayName=S;var[T,N]=b("PopoverPortal",{forceMount:void 0}),L="PopoverContent",M=r.forwardRef((e,t)=>{let n=N(L,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=R(L,e.__scopePopover);return(0,y.jsx)(d.z,{present:r||i.open,children:i.modal?(0,y.jsx)(k,{...o,ref:t}):(0,y.jsx)(D,{...o,ref:t})})});M.displayName=L;var k=r.forwardRef((e,t)=>{let n=R(L,e.__scopePopover),a=r.useRef(null),u=(0,i.e)(t,a),l=r.useRef(!1);return r.useEffect(()=>{let e=a.current;if(e)return(0,v.Ry)(e)},[]),(0,y.jsx)(g.Z,{as:m.g7,allowPinchZoom:!0,children:(0,y.jsx)(W,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),l.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;l.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),D=r.forwardRef((e,t)=>{let n=R(L,e.__scopePopover),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),W=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,...h}=e,v=R(L,n),g=E(n);return(0,l.EW)(),(0,y.jsx)(c.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,y.jsx)(u.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:m,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1),children:(0,y.jsx)(f.VY,{"data-state":_(v.open),role:"dialog",id:v.contentId,...g,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),j="PopoverClose",F=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=R(j,n);return(0,y.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})});F.displayName=j;var I=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=E(n);return(0,y.jsx)(f.Eh,{...o,...r,ref:t})});function _(e){return e?"open":"closed"}I.displayName="PopoverArrow";var B=A,H=O,$=M,V=F,z=I},1085:function(e,t,n){n.d(t,{ee:function(){return eZ},Eh:function(){return eG},VY:function(){return eq},fC:function(){return eK},D7:function(){return eM}});var r=n(5271);let o=["top","right","bottom","left"],i=Math.min,a=Math.max,u=Math.round,l=Math.floor,c=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>f[e])}function w(e){return e.replace(/left|right|bottom|top/g,e=>s[e])}function b(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function E(e,t,n){let r,{reference:o,floating:i}=e,a=g(t),u=h(g(t)),l=v(u),c=p(t),s="y"===a,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,y=o[l]/2-i[l]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(m(t)){case"start":r[u]-=y*(n&&s?-1:1);break;case"end":r[u]+=y*(n&&s?-1:1)}return r}let C=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,u=i.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=E(c,r,l),d=r,p={},m=0;for(let n=0;ne[t]>=0)}async function S(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=p(n),u=m(n),l="y"===g(n),c=["left","top"].includes(a)?-1:1,s=i&&l?-1:1,f=d(t,e),{mainAxis:h,crossAxis:v,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&"number"==typeof y&&(v="end"===u?-1*y:y),l?{x:v*s,y:h*c}:{x:h*c,y:v*s}}function O(){return"undefined"!=typeof window}function T(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function N(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function L(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return!!O()&&(e instanceof Node||e instanceof N(e).Node)}function k(e){return!!O()&&(e instanceof Element||e instanceof N(e).Element)}function D(e){return!!O()&&(e instanceof HTMLElement||e instanceof N(e).HTMLElement)}function W(e){return!!O()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof N(e).ShadowRoot)}function j(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=H(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function F(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function I(e){let t=_(),n=k(e)?H(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function _(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function B(e){return["html","body","#document"].includes(T(e))}function H(e){return N(e).getComputedStyle(e)}function $(e){return k(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function V(e){if("html"===T(e))return e;let t=e.assignedSlot||e.parentNode||W(e)&&e.host||L(e);return W(t)?t.host:t}function z(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=V(t);return B(n)?t.ownerDocument?t.ownerDocument.body:t.body:D(n)&&j(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=N(o);if(i){let e=U(a);return t.concat(a,a.visualViewport||[],j(o)?o:[],e&&n?z(e):[])}return t.concat(o,z(o,[],n))}function U(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Y(e){let t=H(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=D(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=u(n)!==i||u(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function X(e){return k(e)?e:e.contextElement}function K(e){let t=X(e);if(!D(t))return c(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Y(t),a=(i?u(n.width):n.width)/r,l=(i?u(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let Z=c(0);function q(e){let t=N(e);return _()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Z}function G(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=X(e),u=c(1);t&&(r?k(r)&&(u=K(r)):u=K(e));let l=(void 0===(o=n)&&(o=!1),r&&(!o||r===N(a))&&o)?q(a):c(0),s=(i.left+l.x)/u.x,f=(i.top+l.y)/u.y,d=i.width/u.x,p=i.height/u.y;if(a){let e=N(a),t=r&&k(r)?N(r):r,n=e,o=U(n);for(;o&&r&&t!==n;){let e=K(o),t=o.getBoundingClientRect(),r=H(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,f*=e.y,d*=e.x,p*=e.y,s+=i,f+=a,o=U(n=N(o))}}return x({width:d,height:p,x:s,y:f})}function J(e,t){let n=$(e).scrollLeft;return t?t.left+n:G(L(e)).left+n}function Q(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:J(e,r)),y:r.top+t.scrollTop}}function ee(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=N(e),r=L(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,u=0,l=0;if(o){i=o.width,a=o.height;let e=_();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:u,y:l}}(e,n);else if("document"===t)r=function(e){let t=L(e),n=$(e),r=e.ownerDocument.body,o=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),u=-n.scrollLeft+J(e),l=-n.scrollTop;return"rtl"===H(r).direction&&(u+=a(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:u,y:l}}(L(e));else if(k(t))r=function(e,t){let n=G(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=D(e)?K(e):c(1),a=e.clientWidth*i.x;return{width:a,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=q(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return x(r)}function et(e){return"static"===H(e).position}function en(e,t){if(!D(e)||"fixed"===H(e).position)return null;if(t)return t(e);let n=e.offsetParent;return L(e)===n&&(n=n.ownerDocument.body),n}function er(e,t){let n=N(e);if(F(e))return n;if(!D(e)){let t=V(e);for(;t&&!B(t);){if(k(t)&&!et(t))return t;t=V(t)}return n}let r=en(e,t);for(;r&&["table","td","th"].includes(T(r))&&et(r);)r=en(r,t);return r&&B(r)&&et(r)&&!I(r)?n:r||function(e){let t=V(e);for(;D(t)&&!B(t);){if(I(t))return t;if(F(t))break;t=V(t)}return null}(e)||n}let eo=async function(e){let t=this.getOffsetParent||er,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=D(t),o=L(t),i="fixed"===n,a=G(e,!0,i,t),u={scrollLeft:0,scrollTop:0},l=c(0);if(r||!r&&!i){if(("body"!==T(t)||j(o))&&(u=$(t)),r){let e=G(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=J(o))}let s=!o||r||i?c(0):Q(o,u);return{x:a.left+u.scrollLeft-l.x-s.x,y:a.top+u.scrollTop-l.y-s.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ei={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=L(r),u=!!t&&F(t.floating);if(r===a||u&&i)return n;let l={scrollLeft:0,scrollTop:0},s=c(1),f=c(0),d=D(r);if((d||!d&&!i)&&(("body"!==T(r)||j(a))&&(l=$(r)),D(r))){let e=G(r);s=K(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!a||d||i?c(0):Q(a,l,!0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-l.scrollLeft*s.x+f.x+p.x,y:n.y*s.y-l.scrollTop*s.y+f.y+p.y}},getDocumentElement:L,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,u=[..."clippingAncestors"===n?F(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=z(e,[],!1).filter(e=>k(e)&&"body"!==T(e)),o=null,i="fixed"===H(e).position,a=i?V(e):e;for(;k(a)&&!B(a);){let t=H(a),n=I(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||j(a)&&!n&&function e(t,n){let r=V(t);return!(r===n||!k(r)||B(r))&&("fixed"===H(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=V(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=u[0],c=u.reduce((e,n)=>{let r=ee(t,n,o);return e.top=a(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=a(r.left,e.left),e},ee(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:er,getElementRects:eo,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=Y(e);return{width:t,height:n}},getScale:K,isElement:k,isRTL:function(e){return"rtl"===H(e).direction}},ea=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:u,platform:l,elements:c,middlewareData:s}=t,{element:f,padding:p=0}=d(e,t)||{};if(null==f)return{};let y=b(p),w={x:n,y:r},x=h(g(o)),E=v(x),C=await l.getDimensions(f),R="y"===x,A=R?"clientHeight":"clientWidth",P=u.reference[E]+u.reference[x]-w[x]-u.floating[E],S=w[x]-u.reference[x],O=await (null==l.getOffsetParent?void 0:l.getOffsetParent(f)),T=O?O[A]:0;T&&await (null==l.isElement?void 0:l.isElement(O))||(T=c.floating[A]||u.floating[E]);let N=T/2-C[E]/2-1,L=i(y[R?"top":"left"],N),M=i(y[R?"bottom":"right"],N),k=T-C[E]-M,D=T/2-C[E]/2+(P/2-S/2),W=a(L,i(D,k)),j=!s.arrow&&null!=m(o)&&D!==W&&u.reference[E]/2-(D{let r=new Map,o={platform:ei,...n},i={...o.platform,_c:r};return C(e,t,{...o,platform:i})};var el=n(967),ec="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function es(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!es(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!es(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ef(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ed(e,t){let n=ef(e);return Math.round(t*n)/n}function ep(e){let t=r.useRef(e);return ec(()=>{t.current=e}),t}let em=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ea({element:n.current,padding:r}).fn(t):{}:n?ea({element:n,padding:r}).fn(t):{}}}),eh=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:a,middlewareData:u}=e,l=await S(e,n);return a===(null==(t=u.offset)?void 0:t.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}),options:[e,t]}},ev=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:u=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=d(n,e),f={x:t,y:r},m=await R(e,s),v=g(p(o)),y=h(v),w=f[y],b=f[v];if(u){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+m[e],r=w-m[t];w=a(n,i(w,r))}if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=b+m[e],r=b-m[t];b=a(n,i(b,r))}let x=c.fn({...e,[y]:w,[v]:b});return{...x,data:{x:x.x-t,y:x.y-r,enabled:{[y]:u,[v]:l}}}}}),options:[e,t]}},eg=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:u=0,mainAxis:l=!0,crossAxis:c=!0}=d(n,e),s={x:t,y:r},f=g(o),m=h(f),v=s[m],y=s[f],w=d(u,e),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(l){let e="y"===m?"height":"width",t=i.reference[m]-i.floating[e]+b.mainAxis,n=i.reference[m]+i.reference[e]-b.mainAxis;vn&&(v=n)}if(c){var x,E;let e="y"===m?"width":"height",t=["top","left"].includes(p(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(x=a.offset)?void 0:x[f])||0)+(t?0:b.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(E=a.offset)?void 0:E[f])||0)-(t?b.crossAxis:0);yr&&(y=r)}return{[m]:v,[f]:y}}}),options:[e,t]}},ey=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,a;let{placement:u,middlewareData:l,rects:c,initialPlacement:s,platform:f,elements:b}=e,{mainAxis:x=!0,crossAxis:E=!0,fallbackPlacements:C,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:S=!0,...O}=d(n,e);if(null!=(t=l.arrow)&&t.alignmentOffset)return{};let T=p(u),N=g(s),L=p(s)===s,M=await (null==f.isRTL?void 0:f.isRTL(b.floating)),k=C||(L||!S?[w(s)]:function(e){let t=w(e);return[y(e),t,y(t)]}(s)),D="none"!==P;!C&&D&&k.push(...function(e,t,n,r){let o=m(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(y)))),i}(s,S,P,M));let W=[s,...k],j=await R(e,O),F=[],I=(null==(r=l.flip)?void 0:r.overflows)||[];if(x&&F.push(j[T]),E){let e=function(e,t,n){void 0===n&&(n=!1);let r=m(e),o=h(g(e)),i=v(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=w(a)),[a,w(a)]}(u,c,M);F.push(j[e[0]],j[e[1]])}if(I=[...I,{placement:u,overflows:F}],!F.every(e=>e<=0)){let e=((null==(o=l.flip)?void 0:o.index)||0)+1,t=W[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(A){case"bestFit":{let e=null==(a=I.filter(e=>{if(D){let t=g(e.placement);return t===N||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=s}if(u!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},ew=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let o,u;let{placement:l,rects:c,platform:s,elements:f}=e,{apply:h=()=>{},...v}=d(n,e),y=await R(e,v),w=p(l),b=m(l),x="y"===g(l),{width:E,height:C}=c.floating;"top"===w||"bottom"===w?(o=w,u=b===(await (null==s.isRTL?void 0:s.isRTL(f.floating))?"start":"end")?"left":"right"):(u=w,o="end"===b?"top":"bottom");let A=C-y.top-y.bottom,P=E-y.left-y.right,S=i(C-y[o],A),O=i(E-y[u],P),T=!e.middlewareData.shift,N=S,L=O;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(L=P),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(N=A),T&&!b){let e=a(y.left,0),t=a(y.right,0),n=a(y.top,0),r=a(y.bottom,0);x?L=E-2*(0!==e||0!==t?e+t:a(y.left,y.right)):N=C-2*(0!==n||0!==r?n+r:a(y.top,y.bottom))}await h({...e,availableWidth:L,availableHeight:N});let M=await s.getDimensions(f.floating);return E!==M.width||C!==M.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eb=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=d(n,e);switch(r){case"referenceHidden":{let n=A(await R(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:P(n)}}}case"escaped":{let n=A(await R(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:P(n)}}}default:return{}}}}),options:[e,t]}},ex=(e,t)=>({...em(e),options:[e,t]});var eE=n(8141),eC=n(2676),eR=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eC.jsx)(eE.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eC.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eR.displayName="Arrow";var eA=n(1224),eP=n(8468),eS=n(116),eO=n(8722),eT=n(7017),eN="Popper",[eL,eM]=(0,eP.b)(eN),[ek,eD]=eL(eN),eW=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,eC.jsx)(ek,{scope:t,anchor:o,onAnchorChange:i,children:n})};eW.displayName=eN;var ej="PopperAnchor",eF=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=eD(ej,n),u=r.useRef(null),l=(0,eA.e)(t,u);return r.useEffect(()=>{a.onAnchorChange(o?.current||u.current)}),o?null:(0,eC.jsx)(eE.WV.div,{...i,ref:l})});eF.displayName=ej;var eI="PopperContent",[e_,eB]=eL(eI),eH=r.forwardRef((e,t)=>{let{__scopePopper:n,side:o="bottom",sideOffset:u=0,align:c="center",alignOffset:s=0,arrowPadding:f=0,avoidCollisions:d=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:y,...w}=e,b=eD(eI,n),[x,E]=r.useState(null),C=(0,eA.e)(t,e=>E(e)),[R,A]=r.useState(null),P=(0,eT.t)(R),S=P?.width??0,O=P?.height??0,T="number"==typeof m?m:{top:0,right:0,bottom:0,left:0,...m},N=Array.isArray(p)?p:[p],M=N.length>0,k={padding:T,boundary:N.filter(eU),altBoundary:M},{refs:D,floatingStyles:W,placement:j,isPositioned:F,middlewareData:I}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:u}={},transform:l=!0,whileElementsMounted:c,open:s}=e,[f,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=r.useState(o);es(p,o)||m(o);let[h,v]=r.useState(null),[g,y]=r.useState(null),w=r.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),b=r.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),x=a||h,E=u||g,C=r.useRef(null),R=r.useRef(null),A=r.useRef(f),P=null!=c,S=ep(c),O=ep(i),T=ep(s),N=r.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),eu(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};L.current&&!es(A.current,t)&&(A.current=t,el.flushSync(()=>{d(t)}))})},[p,t,n,O,T]);ec(()=>{!1===s&&A.current.isPositioned&&(A.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[s]);let L=r.useRef(!1);ec(()=>(L.current=!0,()=>{L.current=!1}),[]),ec(()=>{if(x&&(C.current=x),E&&(R.current=E),x&&E){if(S.current)return S.current(x,E,N);N()}},[x,E,N,S,P]);let M=r.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:b}),[w,b]),k=r.useMemo(()=>({reference:x,floating:E}),[x,E]),D=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!k.floating)return e;let t=ed(k.floating,f.x),r=ed(k.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...ef(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,k.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:N,refs:M,elements:k,floatingStyles:D}),[f,N,M,k,D])}({strategy:"fixed",placement:o+("center"!==c?"-"+c:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=X(e),m=u||c?[...p?z(p):[],...z(t)]:[];m.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});let h=p&&f?function(e,t){let n,r=null,o=L(e);function u(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function c(s,f){void 0===s&&(s=!1),void 0===f&&(f=1),u();let{left:d,top:p,width:m,height:h}=e.getBoundingClientRect();if(s||t(),!m||!h)return;let v=l(p),g=l(o.clientWidth-(d+m)),y={rootMargin:-v+"px "+-g+"px "+-l(o.clientHeight-(p+h))+"px "+-l(d)+"px",threshold:a(0,i(1,f))||1},w=!0;function b(e){let t=e[0].intersectionRatio;if(t!==f){if(!w)return c();t?c(!1,t):n=setTimeout(()=>{c(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(b,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,y)}r.observe(e)}(!0),u}(p,n):null,v=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!d&&g.observe(p),g.observe(t));let y=d?G(e):null;return d&&function t(){let r=G(e);y&&(r.x!==y.x||r.y!==y.y||r.width!==y.width||r.height!==y.height)&&n(),y=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===g}),elements:{reference:b.anchor},middleware:[eh({mainAxis:u+O,alignmentAxis:s}),d&&ev({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?eg():void 0,...k}),d&&ey({...k}),ew({...k,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),R&&ex({element:R,padding:f}),eY({arrowWidth:S,arrowHeight:O}),v&&eb({strategy:"referenceHidden",...k})]}),[_,B]=eX(j),H=(0,eS.W)(y);(0,eO.b)(()=>{F&&H?.()},[F,H]);let $=I.arrow?.x,V=I.arrow?.y,U=I.arrow?.centerOffset!==0,[Y,K]=r.useState();return(0,eO.b)(()=>{x&&K(window.getComputedStyle(x).zIndex)},[x]),(0,eC.jsx)("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:F?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eC.jsx)(e_,{scope:n,placedSide:_,onArrowChange:A,arrowX:$,arrowY:V,shouldHideArrow:U,children:(0,eC.jsx)(eE.WV.div,{"data-side":_,"data-align":B,...w,ref:C,style:{...w.style,animation:F?void 0:"none"}})})})});eH.displayName=eI;var e$="PopperArrow",eV={top:"bottom",right:"left",bottom:"top",left:"right"},ez=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eB(e$,n),i=eV[o.placedSide];return(0,eC.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eC.jsx)(eR,{...r,ref:t,style:{...r.style,display:"block"}})})});function eU(e){return null!==e}ez.displayName=e$;var eY=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[l,c]=eX(n),s={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+u/2,p="",m="";return"bottom"===l?(p=i?s:`${f}px`,m=`${-u}px`):"top"===l?(p=i?s:`${f}px`,m=`${r.floating.height+u}px`):"right"===l?(p=`${-u}px`,m=i?s:`${d}px`):"left"===l&&(p=`${r.floating.width+u}px`,m=i?s:`${d}px`),{data:{x:p,y:m}}}});function eX(e){let[t,n="center"]=e.split("-");return[t,n]}var eK=eW,eZ=eF,eq=eH,eG=ez},3249:function(e,t,n){n.d(t,{h:function(){return l}});var r=n(5271),o=n(967),i=n(8141),a=n(8722),u=n(2676),l=r.forwardRef((e,t)=>{let{container:n,...l}=e,[c,s]=r.useState(!1);(0,a.b)(()=>s(!0),[]);let f=n||c&&globalThis?.document?.body;return f?o.createPortal((0,u.jsx)(i.WV.div,{...l,ref:t}),f):null});l.displayName="Portal"},2432:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(5271),o=n(1224),i=n(8722),a=e=>{let t,n;let{present:a,children:l}=e,c=function(e){var t,n;let[o,a]=r.useState(),l=r.useRef({}),c=r.useRef(e),s=r.useRef("none"),[f,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=u(l.current);s.current="mounted"===f?e:"none"},[f]),(0,i.b)(()=>{let t=l.current,n=c.current;if(n!==e){let r=s.current,o=u(t);e?d("MOUNT"):"none"===o||t?.display==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),c.current=e}},[e,d]),(0,i.b)(()=>{if(o){let e;let t=o.ownerDocument.defaultView??window,n=n=>{let r=u(l.current).includes(n.animationName);if(n.target===o&&r&&(d("ANIMATION_END"),!c.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},r=e=>{e.target===o&&(s.current=u(l.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:r.useCallback(e=>{e&&(l.current=getComputedStyle(e)),a(e)},[])}}(a),s="function"==typeof l?l({present:c.isPresent}):r.Children.only(l),f=(0,o.e)(c.ref,(t=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?s.ref:(t=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?s.props.ref:s.props.ref||s.ref);return"function"==typeof l||c.isPresent?r.cloneElement(s,{ref:f}):null};function u(e){return e?.animationName||"none"}a.displayName="Presence"},116:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(5271);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},9945:function(e,t,n){n.d(t,{T:function(){return i}});var r=n(5271),o=n(116);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,a]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,a=r.useRef(i),u=(0,o.W)(t);return r.useEffect(()=>{a.current!==i&&(u(i),a.current=i)},[i,a,u]),n}({defaultProp:t,onChange:n}),u=void 0!==e,l=u?e:i,c=(0,o.W)(n);return[l,r.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&c(n)}else a(t)},[u,e,a,c])]}},8722:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(5271),o=globalThis?.document?r.useLayoutEffect:()=>{}},5477:function(e,t,n){n.d(t,{D:function(){return o}});var r=n(5271);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},7017:function(e,t,n){n.d(t,{t:function(){return i}});var r=n(5271),o=n(8722);function i(e){let[t,n]=r.useState(void 0);return(0,o.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}}}]); \ No newline at end of file diff --git a/_next/static/chunks/697-6d809d03a751ba71.js b/_next/static/chunks/697-6d809d03a751ba71.js new file mode 100644 index 000000000..8bb79b32c --- /dev/null +++ b/_next/static/chunks/697-6d809d03a751ba71.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[697],{9586:function(){},209:function(){},8303:function(){},2615:function(e,t,i){"use strict";i.d(t,{_:function(){return s}});var s=i(3797).h},2508:function(e,t,i){"use strict";i.d(t,{f:function(){return l},o:function(){return n}});var s=i(5271),r=i(1559),a=i(2676),n=s.forwardRef((e,t)=>{let{ratio:i=1,style:s,...n}=e;return(0,a.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/i}%`},"data-radix-aspect-ratio-wrapper":"",children:(0,a.jsx)(r.WV.div,{...n,ref:t,style:{...s,position:"absolute",top:0,right:0,bottom:0,left:0}})})});n.displayName="AspectRatio";var l=n},5675:function(e,t,i){"use strict";i.d(t,{tq:function(){return w},o5:function(){return S}});var s=i(5271),r=i(6887);function a(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function n(e,t){let i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>i.indexOf(e)).forEach(i=>{void 0===e[i]?e[i]=t[i]:a(t[i])&&a(e[i])&&Object.keys(t[i]).length>0?t[i].__swiper__?e[i]=t[i]:n(e[i],t[i]):e[i]=t[i]})}function l(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function o(e={}){return e.pagination&&void 0===e.pagination.el}function d(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function c(e=""){let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),i=[];return t.forEach(e=>{0>i.indexOf(e)&&i.push(e)}),i.join(" ")}let p=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function u(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}let h=e=>{e&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function f(e,t){return"undefined"==typeof window?(0,s.useEffect)(e,t):(0,s.useLayoutEffect)(e,t)}let m=(0,s.createContext)(null),g=(0,s.createContext)(null);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;te.replace(/_/,""));return Object.keys(Object.assign({},e)).forEach(r=>{void 0!==e[r]&&(d.indexOf(r)>=0?a(e[r])?(i[r]={},l[r]={},n(i[r],e[r]),n(l[r],e[r])):(i[r]=e[r],l[r]=e[r]):0===r.search(/on[A-Z]/)&&"function"==typeof e[r]?t?s[`${r[2].toLowerCase()}${r.substr(3)}`]=e[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=e[r]:o[r]=e[r])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===i[e]&&(i[e]={}),!1===i[e]&&delete i[e]}),{params:i,passedParams:l,rest:o,events:s}}(E),{slides:R,slots:F}=function(e){let t=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return s.Children.toArray(e).forEach(e=>{if(u(e))t.push(e);else if(e.props&&e.props.slot&&i[e.props.slot])i[e.props.slot].push(e);else if(e.props&&e.props.children){let r=function e(t){let i=[];return s.Children.toArray(t).forEach(t=>{u(t)?i.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>i.push(e))}),i}(e.props.children);r.length>0?r.forEach(e=>t.push(e)):i["container-end"].push(e)}else i["container-end"].push(e)}),{slides:t,slots:i}}(b),H=()=>{k(!P)};Object.assign(j.on,{_containerClasses(e,t){x(t)}});let W=()=>{Object.assign(j.on,V),T=!0;let e={...j};if(delete e.wrapperClass,_.current=new r.ZP(e),_.current.virtual&&_.current.params.virtual.enabled){_.current.virtual.slides=R;let e={cache:!1,slides:R,renderExternal:M,renderExternalUpdate:!1};n(_.current.params.virtual,e),n(_.current.originalParams.virtual,e)}};O.current||W(),_.current&&_.current.on("_beforeBreakpoint",H);let q=()=>{!T&&V&&_.current&&Object.keys(V).forEach(e=>{_.current.on(e,V[e])})},X=()=>{V&&_.current&&Object.keys(V).forEach(e=>{_.current.off(e,V[e])})};return(0,s.useEffect)(()=>()=>{_.current&&_.current.off("_beforeBreakpoint",H)}),(0,s.useEffect)(()=>{!L.current&&_.current&&(_.current.emitSlidesClasses(),L.current=!0)}),f(()=>{if(t&&(t.current=O.current),O.current)return _.current.destroyed&&W(),function({el:e,nextEl:t,prevEl:i,paginationEl:s,scrollbarEl:r,swiper:a},n){l(n)&&t&&i&&(a.params.navigation.nextEl=t,a.originalParams.navigation.nextEl=t,a.params.navigation.prevEl=i,a.originalParams.navigation.prevEl=i),o(n)&&s&&(a.params.pagination.el=s,a.originalParams.pagination.el=s),d(n)&&r&&(a.params.scrollbar.el=r,a.originalParams.scrollbar.el=r),a.init(e)}({el:O.current,nextEl:I.current,prevEl:G.current,paginationEl:D.current,scrollbarEl:N.current,swiper:_.current},j),S&&S(_.current),()=>{_.current&&!_.current.destroyed&&_.current.destroy(!0,!1)}},[]),f(()=>{q();let e=function(e,t,i,s,r){let n=[];if(!t)return n;let l=e=>{0>n.indexOf(e)&&n.push(e)};if(i&&s){let e=s.map(r),t=i.map(r);e.join("")!==t.join("")&&l("children"),s.length!==i.length&&l("children")}return p.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(i=>{if(i in e&&i in t){if(a(e[i])&&a(t[i])){let s=Object.keys(e[i]),r=Object.keys(t[i]);s.length!==r.length?l(i):(s.forEach(s=>{e[i][s]!==t[i][s]&&l(i)}),r.forEach(s=>{e[i][s]!==t[i][s]&&l(i)}))}else e[i]!==t[i]&&l(i)}}),n}($,A.current,R,z.current,e=>e.key);return A.current=$,z.current=R,e.length&&_.current&&!_.current.destroyed&&function({swiper:e,slides:t,passedParams:i,changedParams:s,nextEl:r,prevEl:l,scrollbarEl:o,paginationEl:d}){let c,p,u,h,f,m,g,v;let w=s.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:b,pagination:S,navigation:E,scrollbar:T,virtual:y,thumbs:x}=e;s.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&b.thumbs&&!b.thumbs.swiper&&(c=!0),s.includes("controller")&&i.controller&&i.controller.control&&b.controller&&!b.controller.control&&(p=!0),s.includes("pagination")&&i.pagination&&(i.pagination.el||d)&&(b.pagination||!1===b.pagination)&&S&&!S.el&&(u=!0),s.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||o)&&(b.scrollbar||!1===b.scrollbar)&&T&&!T.el&&(h=!0),s.includes("navigation")&&i.navigation&&(i.navigation.prevEl||l)&&(i.navigation.nextEl||r)&&(b.navigation||!1===b.navigation)&&E&&!E.prevEl&&!E.nextEl&&(f=!0);let C=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),b[t].prevEl=void 0,b[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),b[t].el=void 0,e[t].el=void 0))};s.includes("loop")&&e.isElement&&(b.loop&&!i.loop?m=!0:!b.loop&&i.loop?g=!0:v=!0),w.forEach(e=>{if(a(b[e])&&a(i[e]))n(b[e],i[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in i[e]&&!i[e].enabled&&C(e);else{let t=i[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&C(e):b[e]=i[e]}}),w.includes("controller")&&!p&&e.controller&&e.controller.control&&b.controller&&b.controller.control&&(e.controller.control=b.controller.control),s.includes("children")&&t&&y&&b.virtual.enabled&&(y.slides=t,y.update(!0)),s.includes("children")&&t&&b.loop&&(v=!0),c&&x.init()&&x.update(!0),p&&(e.controller.control=b.controller.control),u&&(e.isElement&&(!d||"string"==typeof d)&&((d=document.createElement("div")).classList.add("swiper-pagination"),e.el.shadowEl.appendChild(d)),d&&(b.pagination.el=d),S.init(),S.render(),S.update()),h&&(e.isElement&&(!o||"string"==typeof o)&&((o=document.createElement("div")).classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(o)),o&&(b.scrollbar.el=o),T.init(),T.updateSize(),T.setTranslate()),f&&(e.isElement&&(r&&"string"!=typeof r||((r=document.createElement("div")).classList.add("swiper-button-next"),e.el.shadowEl.appendChild(r)),l&&"string"!=typeof l||((l=document.createElement("div")).classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(l))),r&&(b.navigation.nextEl=r),l&&(b.navigation.prevEl=l),E.init(),E.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=i.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=i.allowSlidePrev),s.includes("direction")&&e.changeDirection(i.direction,!1),(m||v)&&e.loopDestroy(),(g||v)&&e.loopCreate(),e.update()}({swiper:_.current,slides:R,passedParams:$,changedParams:e,nextEl:I.current,prevEl:G.current,scrollbarEl:N.current,paginationEl:D.current}),()=>{X()}}),f(()=>{h(_.current)},[C]),s.createElement(m,v({ref:O,className:c(`${y}${i?` ${i}`:""}`)},B),s.createElement(g.Provider,{value:_.current},F["container-start"],s.createElement(w,{className:function(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}(j.wrapperClass)},F["wrapper-start"],j.virtual?function(e,t,i){if(!i)return null;let r=e=>{let i=e;return e<0?i=t.length+e:i>=t.length&&(i-=t.length),i},a=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:n,to:l}=i,o=e.params.loop?-t.length:0,d=e.params.loop?2*t.length:t.length,c=[];for(let e=o;e=n&&e<=l&&c.push(t[r(e)]);return c.map((t,i)=>s.cloneElement(t,{swiper:e,style:a,key:`slide-${i}`}))}(_.current,R,C):R.map((e,t)=>s.cloneElement(e,{swiper:_.current,swiperSlideIndex:t})),F["wrapper-end"]),l(j)&&s.createElement(s.Fragment,null,s.createElement("div",{ref:G,className:"swiper-button-prev"}),s.createElement("div",{ref:I,className:"swiper-button-next"})),d(j)&&s.createElement("div",{ref:N,className:"swiper-scrollbar"}),o(j)&&s.createElement("div",{ref:D,className:"swiper-pagination"}),F["container-end"]))});function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(void 0!==p&&(h.current.swiperSlideIndex=p),t&&(t.current=h.current),h.current&&n){if(n.destroyed){"swiper-slide"!==g&&v("swiper-slide");return}return n.on("_slideClass",E),()=>{n&&n.off("_slideClass",E)}}}),f(()=>{n&&h.current&&!n.destroyed&&v(n.getSlideClasses(h.current))},[n]);let T={isActive:g.indexOf("swiper-slide-active")>=0,isVisible:g.indexOf("swiper-slide-visible")>=0,isPrev:g.indexOf("swiper-slide-prev")>=0,isNext:g.indexOf("swiper-slide-next")>=0},y=()=>"function"==typeof r?r(T):r;return s.createElement(i,b({ref:h,className:c(`${g}${a?` ${a}`:""}`),"data-swiper-slide-index":d,onLoad:()=>{S(!0)}},u),l&&s.createElement(m.Provider,{value:T},s.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof l?l:void 0},y(),o&&!w&&s.createElement("div",{className:"swiper-lazy-preloader"}))),!l&&s.createElement(m.Provider,{value:T},y(),o&&!w&&s.createElement("div",{className:"swiper-lazy-preloader"})))});S.displayName="SwiperSlide"},6887:function(e,t,i){"use strict";let s,r,a;function n(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function l(e={},t={}){Object.keys(t).forEach(i=>{void 0===e[i]?e[i]=t[i]:n(t[i])&&n(e[i])&&Object.keys(t[i]).length>0&&l(e[i],t[i])})}i.d(t,{s5:function(){return q},W_:function(){return H},ZP:function(){return F}});let o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function d(){let e="undefined"!=typeof document?document:{};return l(e,o),e}let c={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function p(){let e="undefined"!=typeof window?window:{};return l(e,c),e}function u(e,t=0){return setTimeout(e,t)}function h(){return Date.now()}function f(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function m(...e){let t=Object(e[0]),i=["__proto__","constructor","prototype"];for(let s=1;s0>i.indexOf(e));for(let i=0,s=e.length;ia?"next":"prev",d=(e,t)=>"next"===o&&e>=t||"prev"===o&&e<=t,c=()=>{s=new Date().getTime(),null===n&&(n=s);let o=a+(.5-Math.cos(Math.max(Math.min((s-n)/l,1),0)*Math.PI)/2)*(t-a);if(d(o,t)&&(o=t),e.wrapperEl.scrollTo({[i]:o}),d(o,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:o})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(c)};c()}function w(e,t=""){return[...e.children].filter(e=>e.matches(t))}function b(e,t=[]){let i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:[t]),i}function S(e,t){return p().getComputedStyle(e,null).getPropertyValue(t)}function E(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function T(e,t,i){let s=p();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function y(){return s||(s=function(){let e=p(),t=d();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),s}let x=(e,t)=>{if(!e||e.destroyed||!e.params)return;let i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);t&&t.remove()}},C=(e,t)=>{if(!e.slides[t])return;let i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},M=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);let s="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let i=[r-t];i.push(...Array.from({length:t}).map((e,t)=>r+s+t)),e.slides.forEach((t,s)=>{i.includes(t.column)&&C(e,s)});return}let a=r+s-1;if(e.params.rewind||e.params.loop)for(let s=r-t;s<=a+t;s+=1){let t=(s%i+i)%i;(ta)&&C(e,t)}else for(let s=Math.max(r-t,0);s<=Math.min(a+t,i-1);s+=1)s!==r&&(s>a||sa?"next":r0||s.isTouched&&s.isMoved)return;let c=!!r.noSwipingClass&&""!==r.noSwipingClass,u=e.composedPath?e.composedPath():e.path;c&&l.target&&l.target.shadowRoot&&u&&(o=u[0]);let f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!!(l.target&&l.target.shadowRoot);if(r.noSwiping&&(m?function(e,t=this){return function t(i){if(!i||i===d()||i===p())return null;i.assignedSlot&&(i=i.assignedSlot);let s=i.closest(e);return s||i.getRootNode?s||t(i.getRootNode().host):null}(t)}(f,o):o.closest(f))){this.allowClick=!0;return}if(r.swipeHandler&&!o.closest(r.swipeHandler))return;a.currentX=l.pageX,a.currentY=l.pageY;let g=a.currentX,v=a.currentY,w=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,b=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(w&&(g<=b||g>=i.innerWidth-b)){if("prevent"!==w)return;e.preventDefault()}Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=g,a.startY=v,s.touchStartTime=h(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1);let S=!0;o.matches(s.focusableElements)&&(S=!1,"SELECT"===o.nodeName&&(s.isTouched=!1)),t.activeElement&&t.activeElement.matches(s.focusableElements)&&t.activeElement!==o&&t.activeElement.blur();let E=S&&this.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||E)&&!o.isContentEditable&&l.preventDefault(),r.freeMode&&r.freeMode.enabled&&this.freeMode&&this.animating&&!r.cssMode&&this.freeMode.onTouchStart(),this.emit("touchStart",l)}function L(e){let t;let i=d(),s=this.touchEventsData,{params:r,touches:a,rtlTranslate:n,enabled:l}=this;if(!l||!r.simulateTouch&&"mouse"===e.pointerType)return;let o=e;if(o.originalEvent&&(o=o.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&this.emit("touchMoveOpposite",o);return}let c=s.evCache.findIndex(e=>e.pointerId===o.pointerId);c>=0&&(s.evCache[c]=o);let p=s.evCache.length>1?s.evCache[0]:o,u=p.pageX,f=p.pageY;if(o.preventedByNestedSwiper){a.startX=u,a.startY=f;return}if(!this.allowTouchMove){o.target.matches(s.focusableElements)||(this.allowClick=!1),s.isTouched&&(Object.assign(a,{startX:u,startY:f,prevX:this.touches.currentX,prevY:this.touches.currentY,currentX:u,currentY:f}),s.touchStartTime=h());return}if(r.touchReleaseOnEdges&&!r.loop){if(this.isVertical()){if(fa.startY&&this.translate>=this.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(ua.startX&&this.translate>=this.minTranslate())return}if(i.activeElement&&o.target===i.activeElement&&o.target.matches(s.focusableElements)){s.isMoved=!0,this.allowClick=!1;return}if(s.allowTouchCallbacks&&this.emit("touchMove",o),o.targetTouches&&o.targetTouches.length>1)return;a.currentX=u,a.currentY=f;let m=a.currentX-a.startX,g=a.currentY-a.startY;if(this.params.threshold&&Math.sqrt(m**2+g**2)=25&&(e=180*Math.atan2(Math.abs(g),Math.abs(m))/Math.PI,s.isScrolling=this.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(s.isScrolling&&this.emit("touchMoveOpposite",o),void 0===s.startMoving&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(s.startMoving=!0),s.isScrolling||this.zoom&&this.params.zoom&&this.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;this.allowClick=!1,!r.cssMode&&o.cancelable&&o.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&o.stopPropagation();let v=this.isHorizontal()?m:g,w=this.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;r.oneWayMovement&&(v=Math.abs(v)*(n?1:-1),w=Math.abs(w)*(n?1:-1)),a.diff=v,v*=r.touchRatio,n&&(v=-v,w=-w);let b=this.touchesDirection;this.swipeDirection=v>0?"prev":"next",this.touchesDirection=w>0?"prev":"next";let S=this.params.loop&&!r.cssMode;if(!s.isMoved){if(S&&this.loopFix({direction:this.swipeDirection}),s.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});this.wrapperEl.dispatchEvent(e)}s.allowMomentumBounce=!1,r.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",o)}s.isMoved&&b!==this.touchesDirection&&S&&Math.abs(v)>=1&&(this.loopFix({direction:this.swipeDirection,setTranslate:!0}),t=!0),this.emit("sliderMove",o),s.isMoved=!0,s.currentTranslate=v+s.startTranslate;let E=!0,T=r.resistanceRatio;if(r.touchReleaseOnEdges&&(T=0),v>0?(S&&!t&&s.currentTranslate>(r.centeredSlides?this.minTranslate()-this.size/2:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>this.minTranslate()&&(E=!1,r.resistance&&(s.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+s.startTranslate+v)**T))):v<0&&(S&&!t&&s.currentTranslate<(r.centeredSlides?this.maxTranslate()+this.size/2:this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===r.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),this.allowSlidePrev||this.allowSlideNext||(s.currentTranslate=s.startTranslate),r.threshold>0){if(Math.abs(v)>r.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,s.currentTranslate=s.startTranslate,a.diff=this.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{s.currentTranslate=s.startTranslate;return}}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&this.freeMode||r.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(s.currentTranslate),this.setTranslate(s.currentTranslate))}function O(e){let t;let i=this,s=i.touchEventsData,r=s.evCache.findIndex(t=>t.pointerId===e.pointerId);if(r>=0&&s.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!("pointercancel"===e.type&&(i.browser.isSafari||i.browser.isWebView)))return;let{params:a,touches:n,rtlTranslate:l,slidesGrid:o,enabled:d}=i;if(!d||!a.simulateTouch&&"mouse"===e.pointerType)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),s.allowTouchCallbacks&&i.emit("touchEnd",c),s.allowTouchCallbacks=!1,!s.isTouched){s.isMoved&&a.grabCursor&&i.setGrabCursor(!1),s.isMoved=!1,s.startMoving=!1;return}a.grabCursor&&s.isMoved&&s.isTouched&&(!0===i.allowSlideNext||!0===i.allowSlidePrev)&&i.setGrabCursor(!1);let p=h(),f=p-s.touchStartTime;if(i.allowClick){let e=c.path||c.composedPath&&c.composedPath();i.updateClickedSlide(e&&e[0]||c.target),i.emit("tap click",c),f<300&&p-s.lastClickTime<300&&i.emit("doubleTap doubleClick",c)}if(s.lastClickTime=h(),u(()=>{i.destroyed||(i.allowClick=!0)}),!s.isTouched||!s.isMoved||!i.swipeDirection||0===n.diff||s.currentTranslate===s.startTranslate){s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;return}if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,t=a.followFinger?l?i.translate:-i.translate:-s.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){i.freeMode.onTouchEnd({currentPos:t});return}let m=0,g=i.slidesSizesGrid[0];for(let e=0;e=o[e]&&t=o[e]&&(m=e,g=o[o.length-1]-o[o.length-2])}let v=null,w=null;a.rewind&&(i.isBeginning?w=a.virtual&&a.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1:i.isEnd&&(v=0));let b=(t-o[m])/g,S=ma.longSwipesMs){if(!a.longSwipes){i.slideTo(i.activeIndex);return}"next"===i.swipeDirection&&(b>=a.longSwipesRatio?i.slideTo(a.rewind&&i.isEnd?v:m+S):i.slideTo(m)),"prev"===i.swipeDirection&&(b>1-a.longSwipesRatio?i.slideTo(m+S):null!==w&&b<0&&Math.abs(b)>a.longSwipesRatio?i.slideTo(w):i.slideTo(m))}else{if(!a.shortSwipes){i.slideTo(i.activeIndex);return}i.navigation&&(c.target===i.navigation.nextEl||c.target===i.navigation.prevEl)?c.target===i.navigation.nextEl?i.slideTo(m+S):i.slideTo(m):("next"===i.swipeDirection&&i.slideTo(null!==v?v:m+S),"prev"===i.swipeDirection&&i.slideTo(null!==w?w:m))}}function _(){let e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:s,allowSlidePrev:r,snapGrid:a}=e,n=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let l=n&&t.loop;"auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||l?e.params.loop&&!n?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=s,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function A(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function z(){let{wrapperEl:e,rtlTranslate:t,enabled:i}=this;if(!i)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-e.scrollLeft:this.translate=-e.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let s=this.maxTranslate()-this.minTranslate();(0===s?0:(this.translate-this.minTranslate())/s)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}function I(e){x(this,e.target),!this.params.cssMode&&("auto"===this.params.slidesPerView||this.params.autoHeight)&&this.update()}let G=!1;function D(){}let N=(e,t)=>{let i=d(),{params:s,el:r,wrapperEl:a,device:n}=e,l=!!s.nested,o="on"===t?"addEventListener":"removeEventListener";r[o]("pointerdown",e.onTouchStart,{passive:!1}),i[o]("pointermove",e.onTouchMove,{passive:!1,capture:l}),i[o]("pointerup",e.onTouchEnd,{passive:!0}),i[o]("pointercancel",e.onTouchEnd,{passive:!0}),i[o]("pointerout",e.onTouchEnd,{passive:!0}),i[o]("pointerleave",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[o]("click",e.onClick,!0),s.cssMode&&a[o]("scroll",e.onScroll),s.updateOnWindowResize?e[t](n.ios||n.android?"resize orientationchange observerUpdate":"resize observerUpdate",_,!0):e[t]("observerUpdate",_,!0),r[o]("load",e.onLoad,{capture:!0})},j=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var $={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};let B={eventsEmitter:{on(e,t,i){let s=this;if(!s.eventsListeners||s.destroyed||"function"!=typeof t)return s;let r=i?"unshift":"push";return e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][r](t)}),s},once(e,t,i){let s=this;if(!s.eventsListeners||s.destroyed||"function"!=typeof t)return s;function r(...i){s.off(e,r),r.__emitterProxy&&delete r.__emitterProxy,t.apply(s,i)}return r.__emitterProxy=t,s.on(e,r,i)},onAny(e,t){return!this.eventsListeners||this.destroyed||"function"!=typeof e||0>this.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny(e){if(!this.eventsListeners||this.destroyed||!this.eventsAnyListeners)return this;let t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){let i=this;return i.eventsListeners&&!i.destroyed&&i.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((s,r)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(r,1)})}),i},emit(...e){let t,i,s;let r=this;return r.eventsListeners&&!r.destroyed&&r.eventsListeners&&("string"==typeof e[0]||Array.isArray(e[0])?(t=e[0],i=e.slice(1,e.length),s=r):(t=e[0].events,i=e[0].data,s=e[0].context||r),i.unshift(s),(Array.isArray(t)?t:t.split(" ")).forEach(e=>{r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach(t=>{t.apply(s,[e,...i])}),r.eventsListeners&&r.eventsListeners[e]&&r.eventsListeners[e].forEach(e=>{e.apply(s,i)})})),r}},update:{updateSize:function(){let e,t;let i=this.el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:i.clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:i.clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(S(i,"padding-left")||0,10)-parseInt(S(i,"padding-right")||0,10),t=t-parseInt(S(i,"padding-top")||0,10)-parseInt(S(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){let e;let t=this;function i(e){return t.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}function s(e,t){return parseFloat(e.getPropertyValue(i(t))||0)}let r=t.params,{wrapperEl:a,slidesEl:n,size:l,rtlTranslate:o,wrongRTL:d}=t,c=t.virtual&&r.virtual.enabled,p=c?t.virtual.slides.length:t.slides.length,u=w(n,`.${t.params.slideClass}, swiper-slide`),h=c?t.virtual.slides.length:u.length,f=[],m=[],v=[],b=r.slidesOffsetBefore;"function"==typeof b&&(b=r.slidesOffsetBefore.call(t));let E=r.slidesOffsetAfter;"function"==typeof E&&(E=r.slidesOffsetAfter.call(t));let y=t.snapGrid.length,x=t.slidesGrid.length,C=r.spaceBetween,M=-b,P=0,k=0;if(void 0===l)return;"string"==typeof C&&C.indexOf("%")>=0?C=parseFloat(C.replace("%",""))/100*l:"string"==typeof C&&(C=parseFloat(C)),t.virtualSize=-C,u.forEach(e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(g(a,"--swiper-centered-offset-before",""),g(a,"--swiper-centered-offset-after",""));let L=r.grid&&r.grid.rows>1&&t.grid;L&&t.grid.initSlides(h);let O="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter(e=>void 0!==r.breakpoints[e].slidesPerView).length>0;for(let a=0;aMath.abs(M)&&(M=0),r.roundLengths&&(M=Math.floor(M)),k%r.slidesPerGroup==0&&f.push(M),m.push(M)):(r.roundLengths&&(M=Math.floor(M)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup==0&&f.push(M),m.push(M),M=M+e+C),t.virtualSize+=e+C,P=e,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+E,o&&d&&("slide"===r.effect||"coverflow"===r.effect)&&(a.style.width=`${t.virtualSize+C}px`),r.setWrapperSize&&(a.style[i("width")]=`${t.virtualSize+C}px`),L&&t.grid.updateWrapperSize(e,f,i),!r.centeredSlides){let e=[];for(let i=0;i1&&f.push(t.virtualSize-l)}if(c&&r.loop){let e=v[0]+C;if(r.slidesPerGroup>1){let i=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup),s=e*r.slidesPerGroup;for(let e=0;e!r.cssMode||!!r.loop||t!==u.length-1).forEach(t=>{t.style[e]=`${C}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let e=0;v.forEach(t=>{e+=t+(C||0)});let t=(e-=C)-l;f=f.map(e=>e<=0?-b:e>t?t+E:e)}if(r.centerInsufficientSlides){let e=0;if(v.forEach(t=>{e+=t+(C||0)}),(e-=C){f[i]=e-t}),m.forEach((e,i)=>{m[i]=e+t})}}if(Object.assign(t,{slides:u,snapGrid:f,slidesGrid:m,slidesSizesGrid:v}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){g(a,"--swiper-centered-offset-before",`${-f[0]}px`),g(a,"--swiper-centered-offset-after",`${t.size/2-v[v.length-1]/2}px`);let e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+i)}if(h!==p&&t.emit("slidesLengthChange"),f.length!==y&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==x&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),!c&&!r.cssMode&&("slide"===r.effect||"fade"===r.effect)){let e=`${r.containerModifierClass}backface-hidden`,i=t.el.classList.contains(e);h<=r.maxBackfaceHiddenSlides?i||t.el.classList.add(e):i&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t;let i=this,s=[],r=i.virtual&&i.params.virtual.enabled,a=0;"number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed);let n=e=>r?i.slides[i.getSlideIndexByData(e)]:i.slides[e];if("auto"!==i.params.slidesPerView&&i.params.slidesPerView>1){if(i.params.centeredSlides)(i.visibleSlides||[]).forEach(e=>{s.push(e)});else for(t=0;ti.slides.length&&!r)break;s.push(n(e))}}else s.push(n(i.activeIndex));for(t=0;ta?e:a}(a||0===a)&&(i.wrapperEl.style.height=`${a}px`)},updateSlidesOffset:function(){let e=this.slides,t=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let i=0;i{e.classList.remove(t.slideVisibleClass)}),this.visibleSlidesIndexes=[],this.visibleSlides=[];let n=t.spaceBetween;"string"==typeof n&&n.indexOf("%")>=0?n=parseFloat(n.replace("%",""))/100*this.size:"string"==typeof n&&(n=parseFloat(n));for(let e=0;e=0&&p1&&u<=this.size||p<=0&&u>=this.size)&&(this.visibleSlides.push(l),this.visibleSlidesIndexes.push(e),i[e].classList.add(t.slideVisibleClass)),l.progress=s?-d:d,l.originalProgress=s?-c:c}},updateProgress:function(e){if(void 0===e){let t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}let t=this.params,i=this.maxTranslate()-this.minTranslate(),{progress:s,isBeginning:r,isEnd:a,progressLoop:n}=this,l=r,o=a;if(0===i)s=0,r=!0,a=!0;else{s=(e-this.minTranslate())/i;let t=1>Math.abs(e-this.minTranslate()),n=1>Math.abs(e-this.maxTranslate());r=t||s<=0,a=n||s>=1,t&&(s=0),n&&(s=1)}if(t.loop){let t=this.getSlideIndexByData(0),i=this.getSlideIndexByData(this.slides.length-1),s=this.slidesGrid[t],r=this.slidesGrid[i],a=this.slidesGrid[this.slidesGrid.length-1],l=Math.abs(e);(n=l>=s?(l-s)/a:(l+a-r)/a)>1&&(n-=1)}Object.assign(this,{progress:s,progressLoop:n,isBeginning:r,isEnd:a}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&this.updateSlidesProgress(e),r&&!l&&this.emit("reachBeginning toEdge"),a&&!o&&this.emit("reachEnd toEdge"),(l&&!r||o&&!a)&&this.emit("fromEdge"),this.emit("progress",s)},updateSlidesClasses:function(){let e;let{slides:t,params:i,slidesEl:s,activeIndex:r}=this,a=this.virtual&&i.virtual.enabled,n=e=>w(s,`.${i.slideClass}${e}, swiper-slide${e}`)[0];if(t.forEach(e=>{e.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)}),a){if(i.loop){let t=r-this.virtual.slidesBefore;t<0&&(t=this.virtual.slides.length+t),t>=this.virtual.slides.length&&(t-=this.virtual.slides.length),e=n(`[data-swiper-slide-index="${t}"]`)}else e=n(`[data-swiper-slide-index="${r}"]`)}else e=t[r];if(e){e.classList.add(i.slideActiveClass);let s=function(e,t){let i=[];for(;e.nextElementSibling;){let s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(e,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!s&&(s=t[0]),s&&s.classList.add(i.slideNextClass);let r=function(e,t){let i=[];for(;e.previousElementSibling;){let s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(e,`.${i.slideClass}, swiper-slide`)[0];i.loop,r&&r.classList.add(i.slidePrevClass)}this.emitSlidesClasses()},updateActiveIndex:function(e){let t,i;let s=this,r=s.rtlTranslate?s.translate:-s.translate,{snapGrid:a,params:n,activeIndex:l,realIndex:o,snapIndex:d}=s,c=e,p=e=>{let t=e-s.virtual.slidesBefore;return t<0&&(t=s.virtual.slides.length+t),t>=s.virtual.slides.length&&(t-=s.virtual.slides.length),t};if(void 0===c&&(c=function(e){let t;let{slidesGrid:i,params:s}=e,r=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e=i[e]&&r=i[e]&&r=i[e]&&(t=e);return s.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(s)),a.indexOf(r)>=0)t=a.indexOf(r);else{let e=Math.min(n.slidesPerGroupSkip,c);t=e+Math.floor((c-e)/n.slidesPerGroup)}if(t>=a.length&&(t=a.length-1),c===l){t!==d&&(s.snapIndex=t,s.emit("snapIndexChange")),s.params.loop&&s.virtual&&s.params.virtual.enabled&&(s.realIndex=p(c));return}i=s.virtual&&n.virtual.enabled&&n.loop?p(c):s.slides[c]?parseInt(s.slides[c].getAttribute("data-swiper-slide-index")||c,10):c,Object.assign(s,{previousSnapIndex:d,snapIndex:t,previousRealIndex:o,realIndex:i,previousIndex:l,activeIndex:c}),s.initialized&&M(s),s.emit("activeIndexChange"),s.emit("snapIndexChange"),o!==i&&s.emit("realIndexChange"),(s.initialized||s.params.runCallbacksOnInit)&&s.emit("slideChange")},updateClickedSlide:function(e){let t;let i=this.params,s=e.closest(`.${i.slideClass}, swiper-slide`),r=!1;if(s){for(let e=0;e6&&(s=s.split(", ").map(e=>e.replace(",",".")).join(", ")),r=new a.WebKitCSSMatrix("none"===s?"":s)):i=(r=n.MozTransform||n.OTransform||n.MsTransform||n.msTransform||n.transform||n.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(s=a.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=a.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0}(r,e);return a+=this.cssOverflowAdjustment(),i&&(a=-a),a||0},setTranslate:function(e,t){let{rtlTranslate:i,params:s,wrapperEl:r,progress:a}=this,n=0,l=0;this.isHorizontal()?n=i?-e:e:l=e,s.roundLengths&&(n=Math.floor(n),l=Math.floor(l)),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?n:l,s.cssMode?r[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-n:-l:s.virtualTranslate||(this.isHorizontal()?n-=this.cssOverflowAdjustment():l-=this.cssOverflowAdjustment(),r.style.transform=`translate3d(${n}px, ${l}px, 0px)`);let o=this.maxTranslate()-this.minTranslate();(0===o?0:(e-this.minTranslate())/o)!==a&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,i=!0,s=!0,r){let a;let n=this,{params:l,wrapperEl:o}=n;if(n.animating&&l.preventInteractionOnTransition)return!1;let d=n.minTranslate(),c=n.maxTranslate();if(a=s&&e>d?d:s&&e=d.length&&(w=d.length-1);let b=-d[w];if(o.normalizeSlideIndex)for(let e=0;e=i&&t=i&&t=i&&(l=e)}if(n.initialized&&l!==u&&(!n.allowSlideNext&&(h?b>n.translate&&b>n.minTranslate():bn.translate&&b>n.maxTranslate()&&(u||0)!==l))return!1;if(l!==(p||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(b),a=l>u?"next":l0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[e?"scrollLeft":"scrollTop"]=i})):f[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return v({swiper:n,targetPosition:i,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return n.setTransition(t),n.setTranslate(b),n.updateActiveIndex(l),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,s),n.transitionStart(i,a),0===t?n.transitionEnd(i,a):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,a))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,i=!0,s){"string"==typeof e&&(e=parseInt(e,10));let r=e;return this.params.loop&&(this.virtual&&this.params.virtual.enabled?r+=this.virtual.slidesBefore:r=this.getSlideIndexByData(r)),this.slideTo(r,t,i,s)},slideNext:function(e=this.params.speed,t=!0,i){let{enabled:s,params:r,animating:a}=this;if(!s)return this;let n=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(n=Math.max(this.slidesPerViewDynamic("current",!0),1));let l=this.activeIndexc(e)),h=r[u.indexOf(p)-1];if(void 0===h&&s.cssMode){let e;r.forEach((t,i)=>{p>=t&&(e=i)}),void 0!==e&&(h=r[e>0?e-1:e])}let f=0;if(void 0!==h&&((f=a.indexOf(h))<0&&(f=this.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(f=Math.max(f=f-this.slidesPerViewDynamic("previous",!0)+1,0))),s.rewind&&this.isBeginning){let s=this.params.virtual&&this.params.virtual.enabled&&this.virtual?this.virtual.slides.length-1:this.slides.length-1;return this.slideTo(s,e,t,i)}return this.slideTo(f,e,t,i)},slideReset:function(e=this.params.speed,t=!0,i){return this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e=this.params.speed,t=!0,i,s=.5){let r=this.activeIndex,a=Math.min(this.params.slidesPerGroupSkip,r),n=a+Math.floor((r-a)/this.params.slidesPerGroup),l=this.rtlTranslate?this.translate:-this.translate;if(l>=this.snapGrid[n]){let e=this.snapGrid[n];l-e>(this.snapGrid[n+1]-e)*s&&(r+=this.params.slidesPerGroup)}else{let e=this.snapGrid[n-1];l-e<=(this.snapGrid[n]-e)*s&&(r-=this.params.slidesPerGroup)}return r=Math.min(r=Math.max(r,0),this.slidesGrid.length-1),this.slideTo(r,e,t,i)},slideToClickedSlide:function(){let e;let t=this,{params:i,slidesEl:s}=t,r="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,a=t.clickedIndex,n=t.isElement?"swiper-slide":`.${i.slideClass}`;if(i.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),i.centeredSlides?at.slides.length-t.loopedSlides+r/2?(t.loopFix(),a=t.getSlideIndex(w(s,`${n}[data-swiper-slide-index="${e}"]`)[0]),u(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-r?(t.loopFix(),a=t.getSlideIndex(w(s,`${n}[data-swiper-slide-index="${e}"]`)[0]),u(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}},loop:{loopCreate:function(e){let{params:t,slidesEl:i}=this;!t.loop||this.virtual&&this.params.virtual.enabled||(w(i,`.${t.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}),this.loopFix({slideRealIndex:e,direction:t.centeredSlides?void 0:"next"}))},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:i,setTranslate:s,activeSlideIndex:r,byController:a,byMousewheel:n}={}){let l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");let{slides:o,allowSlidePrev:d,allowSlideNext:c,slidesEl:p,params:u}=l;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&u.virtual.enabled){t&&(u.centeredSlides||0!==l.snapIndex?u.centeredSlides&&l.snapIndexe.classList.contains(u.slideActiveClass))[0]):v=r;let w="next"===i||!i,b="prev"===i||!i,S=0,E=0;if(rl.slides.length-2*f){E=Math.max(r-(l.slides.length-2*f),u.slidesPerGroup);for(let e=0;e{l.slides[e].swiperLoopMoveDOM=!0,p.prepend(l.slides[e]),l.slides[e].swiperLoopMoveDOM=!1}),w&&g.forEach(e=>{l.slides[e].swiperLoopMoveDOM=!0,p.append(l.slides[e]),l.slides[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===u.slidesPerView&&l.updateSlides(),u.watchSlidesProgress&&l.updateSlidesOffset(),t){if(m.length>0&&b){if(void 0===e){let e=l.slidesGrid[v],t=l.slidesGrid[v+S]-e;n?l.setTranslate(l.translate-t):(l.slideTo(v+S,0,!1,!0),s&&(l.touches[l.isHorizontal()?"startX":"startY"]+=t))}else s&&l.slideToLoop(e,0,!1,!0)}else if(g.length>0&&w){if(void 0===e){let e=l.slidesGrid[v],t=l.slidesGrid[v-E]-e;n?l.setTranslate(l.translate-t):(l.slideTo(v-E,0,!1,!0),s&&(l.touches[l.isHorizontal()?"startX":"startY"]+=t))}else l.slideToLoop(e,0,!1,!0)}}if(l.allowSlidePrev=d,l.allowSlideNext=c,l.controller&&l.controller.control&&!a){let t={slideRealIndex:e,slideTo:!1,direction:i,setTranslate:s,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix(t)}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix(t)}l.emit("loopFix")},loopDestroy:function(){let{params:e,slidesEl:t}=this;if(!e.loop||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let i=[];this.slides.forEach(e=>{i[void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{t.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){let e=d(),{params:t}=this;this.onTouchStart=k.bind(this),this.onTouchMove=L.bind(this),this.onTouchEnd=O.bind(this),t.cssMode&&(this.onScroll=z.bind(this)),this.onClick=A.bind(this),this.onLoad=I.bind(this),G||(e.addEventListener("touchstart",D),G=!0),N(this,"on")},detachEvents:function(){N(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:i,params:s,el:r}=e,a=s.breakpoints;if(!a||a&&0===Object.keys(a).length)return;let n=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!n||e.currentBreakpoint===n)return;let l=(n in a?a[n]:void 0)||e.originalParams,o=j(e,s),d=j(e,l),c=s.enabled;o&&!d?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!o&&d&&(r.classList.add(`${s.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===s.grid.fill)&&r.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===l[t])return;let i=s[t]&&s[t].enabled,r=l[t]&&l[t].enabled;i&&!r&&e[t].disable(),!i&&r&&e[t].enable()});let p=l.direction&&l.direction!==s.direction,u=s.loop&&(l.slidesPerView!==s.slidesPerView||p);p&&i&&e.changeDirection(),m(e.params,l);let h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),c&&!h?e.disable():!c&&h&&e.enable(),e.currentBreakpoint=n,e.emit("_beforeBreakpoint",l),u&&i&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)},getBreakpoint:function(e,t="window",i){if(!e||"container"===t&&!i)return;let s=!1,r=p(),a="window"===t?r.innerHeight:i.clientHeight,n=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:a*parseFloat(e.substr(1)),point:e}:{value:e,point:e});n.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;et}else this.isLocked=1===this.snapGrid.length;!0===t.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===t.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),e&&e!==this.isLocked&&(this.isEnd=!1),e!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){let{classNames:e,params:t,rtl:i,el:s,device:r}=this,a=function(e,t){let i=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(s=>{e[s]&&i.push(t+s)}):"string"==typeof e&&i.push(t+e)}),i}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:i},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),s.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},V={};class R{constructor(...e){let t,i;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?i=e[0]:[t,i]=e,i||(i={}),i=m({},i),t&&!i.el&&(i.el=t);let s=d();if(i.el&&"string"==typeof i.el&&s.querySelectorAll(i.el).length>1){let e=[];return s.querySelectorAll(i.el).forEach(t=>{let s=m({},i,{el:t});e.push(new R(s))}),e}let n=this;n.__swiper__=!0,n.support=y(),n.device=function(e={}){return r||(r=function({userAgent:e}={}){let t=y(),i=p(),s=i.navigator.platform,r=e||i.navigator.userAgent,a={ios:!1,android:!1},n=i.screen.width,l=i.screen.height,o=r.match(/(Android);?[\s\/]+([\d.]+)?/),d=r.match(/(iPad).*OS\s([\d_]+)/),c=r.match(/(iPod)(.*OS\s([\d_]+))?/),u=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="MacIntel"===s;return!d&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${n}x${l}`)>=0&&((d=r.match(/(Version)\/([\d.]+)/))||(d=[0,1,"13_0_0"]),h=!1),o&&"Win32"!==s&&(a.os="android",a.android=!0),(d||u||c)&&(a.os="ios",a.ios=!0),a}(e)),r}({userAgent:i.userAgent}),n.browser=(a||(a=function(){let e=p(),t=!1;function i(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}if(i()){let i=String(e.navigator.userAgent);if(i.includes("Version/")){let[e,s]=i.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));t=e<16||16===e&&s<2}}return{isSafari:t||i(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),a),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],i.modules&&Array.isArray(i.modules)&&n.modules.push(...i.modules);let l={};n.modules.forEach(e=>{var t;e({params:i,swiper:n,extendParams:(t=i,function(e={}){let i=Object.keys(e)[0],s=e[i];if("object"!=typeof s||null===s||(["navigation","pagination","scrollbar"].indexOf(i)>=0&&!0===t[i]&&(t[i]={auto:!0}),!(i in t&&"enabled"in s))){m(l,e);return}!0===t[i]&&(t[i]={enabled:!0}),"object"!=typeof t[i]||"enabled"in t[i]||(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),m(l,e)}),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});let o=m({},$,l);return n.params=m({},o,V,i),n.originalParams=m({},n.params),n.passedParams=m({},i),n.params&&n.params.on&&Object.keys(n.params.on).forEach(e=>{n.on(e,n.params.on[e])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),Object.assign(n,{enabled:n.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===n.params.direction,isVertical:()=>"vertical"===n.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return 8388608*Math.trunc(this.translate/8388608)},allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}getSlideIndex(e){let{slidesEl:t,params:i}=this,s=E(w(t,`.${i.slideClass}, swiper-slide`)[0]);return E(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0])}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=w(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let i=this.minTranslate(),s=(this.maxTranslate()-i)*e+i;this.translateTo(s,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(i=>{let s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){let{params:i,slides:s,slidesGrid:r,slidesSizesGrid:a,size:n,activeIndex:l}=this,o=1;if(i.centeredSlides){let e,t=s[l]?s[l].swiperSlideSize:0;for(let i=l+1;in&&(e=!0));for(let i=l-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e=0;e-=1)r[l]-r[e]{e.complete&&x(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)r(),s.autoHeight&&t.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&t.isEnd&&!s.centeredSlides){let i=t.virtual&&s.virtual.enabled?t.virtual.slides:t.slides;e=t.slideTo(i.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||r()}s.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t=!0){let i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(this.el.classList.remove(`${this.params.containerModifierClass}${i}`),this.el.classList.add(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){(!this.rtl||"rtl"!==e)&&(this.rtl||"ltr"!==e)&&(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.el.classList.add(`${this.params.containerModifierClass}rtl`),this.el.dir="rtl"):(this.el.classList.remove(`${this.params.containerModifierClass}rtl`),this.el.dir="ltr"),this.update())}mount(e){let t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.shadowEl&&(t.isElement=!0);let s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,r=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):w(i,s())[0];return!r&&t.params.createElements&&(r=b("div",t.params.wrapperClass),i.append(r),w(i,`.${t.params.slideClass}`).forEach(e=>{r.append(e)})),Object.assign(t,{el:i,wrapperEl:r,slidesEl:t.isElement?i:r,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===S(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===S(i,"direction")),wrongRTL:"-webkit-box"===S(r,"display")}),!0}init(e){let t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete?x(t,e):e.addEventListener("load",e=>{x(t,e.target)})}),M(t),t.initialized=!0,M(t),t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){let i=this,{params:s,el:r,wrapperEl:a,slides:n}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttribute("style"),a.removeAttribute("style"),n&&n.length&&n.forEach(e=>{e.classList.remove(s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.el.swiper=null,function(e){Object.keys(e).forEach(t=>{try{e[t]=null}catch(e){}try{delete e[t]}catch(e){}})}(i)),i.destroyed=!0),null}static extendDefaults(e){m(V,e)}static get extendedDefaults(){return V}static get defaults(){return $}static installModule(e){R.prototype.__modules__||(R.prototype.__modules__=[]);let t=R.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>R.installModule(e)):R.installModule(e),R}}Object.keys(B).forEach(e=>{Object.keys(B[e]).forEach(t=>{R.prototype[t]=B[e][t]})}),R.use([function({swiper:e,on:t,emit:i}){let s=p(),r=null,a=null,n=()=>{e&&!e.destroyed&&e.initialized&&(i("beforeResize"),i("resize"))},l=()=>{e&&!e.destroyed&&e.initialized&&(r=new ResizeObserver(t=>{a=s.requestAnimationFrame(()=>{let{width:i,height:s}=e,r=i,a=s;t.forEach(({contentBoxSize:t,contentRect:i,target:s})=>{s&&s!==e.el||(r=i?i.width:(t[0]||t).inlineSize,a=i?i.height:(t[0]||t).blockSize)}),(r!==i||a!==s)&&n()})})).observe(e.el)},o=()=>{a&&s.cancelAnimationFrame(a),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},d=()=>{e&&!e.destroyed&&e.initialized&&i("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&void 0!==s.ResizeObserver){l();return}s.addEventListener("resize",n),s.addEventListener("orientationchange",d)}),t("destroy",()=>{o(),s.removeEventListener("resize",n),s.removeEventListener("orientationchange",d)})},function({swiper:e,extendParams:t,on:i,emit:s}){let r=[],a=p(),n=(t,i={})=>{let n=new(a.MutationObserver||a.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length){s("observerUpdate",t[0]);return}let i=function(){s("observerUpdate",t[0])};a.requestAnimationFrame?a.requestAnimationFrame(i):a.setTimeout(i,0)});n.observe(t,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),r.push(n)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(e.params.observer){if(e.params.observeParents){let t=function(e,t){let i=[],s=e.parentElement;for(;s;)i.push(s),s=s.parentElement;return i}(e.el);for(let e=0;e{r.forEach(e=>{e.disconnect()}),r.splice(0,r.length)})}]);var F=R;function H({swiper:e,extendParams:t,on:i,emit:s}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};let r=e=>(Array.isArray(e)||(e=[e].filter(e=>!!e)),e);function a(t){let i;return t&&"string"==typeof t&&e.isElement&&(i=e.el.shadowRoot.querySelector(t))?i:(t&&("string"==typeof t&&(i=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&i.length>1&&1===e.el.querySelectorAll(t).length&&(i=e.el.querySelector(t))),t&&!i)?t:i}function n(t,i){let s=e.params.navigation;(t=r(t)).forEach(t=>{t&&(t.classList[i?"add":"remove"](...s.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=i),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](s.lockClass))})}function l(){let{nextEl:t,prevEl:i}=e.navigation;if(e.params.loop){n(i,!1),n(t,!1);return}n(i,e.isBeginning&&!e.params.rewind),n(t,e.isEnd&&!e.params.rewind)}function o(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function d(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function c(){var t,i,s;let n=e.params.navigation;if(e.params.navigation=(t=e.originalParams.navigation,i=e.params.navigation,s={nextEl:"swiper-button-next",prevEl:"swiper-button-prev"},e.params.createElements&&Object.keys(s).forEach(r=>{if(!i[r]&&!0===i.auto){let a=w(e.el,`.${s[r]}`)[0];a||((a=b("div",s[r])).className=s[r],e.el.append(a)),i[r]=a,t[r]=a}}),i),!(n.nextEl||n.prevEl))return;let l=a(n.nextEl),c=a(n.prevEl);Object.assign(e.navigation,{nextEl:l,prevEl:c}),l=r(l),c=r(c);let p=(t,i)=>{t&&t.addEventListener("click","next"===i?d:o),!e.enabled&&t&&t.classList.add(...n.lockClass.split(" "))};l.forEach(e=>p(e,"next")),c.forEach(e=>p(e,"prev"))}function p(){let{nextEl:t,prevEl:i}=e.navigation;t=r(t),i=r(i);let s=(t,i)=>{t.removeEventListener("click","next"===i?d:o),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>s(e,"next")),i.forEach(e=>s(e,"prev"))}i("init",()=>{!1===e.params.navigation.enabled?u():(c(),l())}),i("toEdge fromEdge lock unlock",()=>{l()}),i("destroy",()=>{p()}),i("enable disable",()=>{let{nextEl:t,prevEl:i}=e.navigation;[...t=r(t),...i=r(i)].filter(e=>!!e).forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),i("click",(t,i)=>{let{nextEl:a,prevEl:n}=e.navigation;a=r(a),n=r(n);let l=i.target;if(e.params.navigation.hideOnClick&&!n.includes(l)&&!a.includes(l)){let t;if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===l||e.pagination.el.contains(l)))return;a.length?t=a[0].classList.contains(e.params.navigation.hiddenClass):n.length&&(t=n[0].classList.contains(e.params.navigation.hiddenClass)),!0===t?s("navigationShow"):s("navigationHide"),[...a,...n].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let u=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),l()},disable:u,update:l,init:c,destroy:p})}function W(e=""){return`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function q({swiper:e,extendParams:t,on:i}){t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let s=null;function r(e){let t=s;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}let a=e=>(Array.isArray(e)||(e=[e].filter(e=>!!e)),e);function n(e){(e=a(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function l(e){(e=a(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function o(e,t){(e=a(e)).forEach(e=>{e.setAttribute("role",t)})}function d(e,t){(e=a(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function c(e,t){(e=a(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function p(e){(e=a(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function u(e){(e=a(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function h(t){if(13!==t.keyCode&&32!==t.keyCode)return;let i=e.params.a11y,s=t.target;(!(e.pagination&&e.pagination.el&&(s===e.pagination.el||e.pagination.el.contains(t.target)))||t.target.matches(W(e.params.pagination.bulletClass)))&&(e.navigation&&e.navigation.nextEl&&s===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(i.lastSlideMessage):r(i.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&s===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(i.firstSlideMessage):r(i.prevSlideMessage)),e.pagination&&s.matches(W(e.params.pagination.bulletClass))&&s.click())}function f(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function m(){return f()&&e.params.pagination.clickable}let g=(e,t,i)=>{n(e),"BUTTON"!==e.tagName&&(o(e,"button"),e.addEventListener("keydown",h)),c(e,i),function(e,t){(e=a(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},v=()=>{e.a11y.clicked=!0},w=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},S=t=>{if(e.a11y.clicked)return;let i=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!i||!e.slides.includes(i))return;let s=e.slides.indexOf(i)===e.activeIndex,r=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(i);!s&&!r&&(t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(i),0)))},T=()=>{let t=e.params.a11y;t.itemRoleDescriptionMessage&&d(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&o(e.slides,t.slideRole);let i=e.slides.length;t.slideLabelMessage&&e.slides.forEach((s,r)=>{let a=e.params.loop?parseInt(s.getAttribute("data-swiper-slide-index"),10):r;c(s,t.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,i))})},y=()=>{let t=e.params.a11y;e.isElement?e.el.shadowEl.append(s):e.el.append(s);let i=e.el;t.containerRoleDescriptionMessage&&d(i,t.containerRoleDescriptionMessage),t.containerMessage&&c(i,t.containerMessage);let r=e.wrapperEl,n=t.id||r.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`,l=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";!function(e,t){(e=a(e)).forEach(e=>{e.setAttribute("id",t)})}(r,n),function(e,t){(e=a(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(r,l),T();let{nextEl:o,prevEl:p}=e.navigation?e.navigation:{};o=a(o),p=a(p),o&&o.forEach(e=>g(e,n,t.nextSlideMessage)),p&&p.forEach(e=>g(e,n,t.prevSlideMessage)),m()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(e=>{e.addEventListener("keydown",h)}),e.el.addEventListener("focus",S,!0),e.el.addEventListener("pointerdown",v,!0),e.el.addEventListener("pointerup",w,!0)};i("beforeInit",()=>{(s=b("span",e.params.a11y.notificationClass)).setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),i("afterInit",()=>{e.params.a11y.enabled&&y()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&T()}),i("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;let{nextEl:t,prevEl:i}=e.navigation;i&&(e.isBeginning?(p(i),l(i)):(u(i),n(i))),t&&(e.isEnd?(p(t),l(t)):(u(t),n(t)))}()}),i("paginationUpdate",()=>{e.params.a11y.enabled&&function(){let t=e.params.a11y;f()&&e.pagination.bullets.forEach(i=>{e.params.pagination.clickable&&(n(i),e.params.pagination.renderBullet||(o(i,"button"),c(i,t.paginationBulletMessage.replace(/\{\{index\}\}/,E(i)+1)))),i.matches(W(e.params.pagination.bulletActiveClass))?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current")})}()}),i("destroy",()=>{e.params.a11y.enabled&&function(){s&&s.remove();let{nextEl:t,prevEl:i}=e.navigation?e.navigation:{};t=a(t),i=a(i),t&&t.forEach(e=>e.removeEventListener("keydown",h)),i&&i.forEach(e=>e.removeEventListener("keydown",h)),m()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(e=>{e.removeEventListener("keydown",h)}),e.el.removeEventListener("focus",S,!0),e.el.removeEventListener("pointerdown",v,!0),e.el.removeEventListener("pointerup",w,!0)}()})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/707.6bf2c330c38b6f44.js b/_next/static/chunks/707.6bf2c330c38b6f44.js new file mode 100644 index 000000000..ff847a6e4 --- /dev/null +++ b/_next/static/chunks/707.6bf2c330c38b6f44.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[707],{9707:function(e,t,n){n.r(t),n.d(t,{default:function(){return eg}});var i=n(2676),a=n(5271);let r={activeLanguages:void 0,annotations:[],manifest:void 0,options:{offset:0,figure:{display:"image-viewer",aspectRatio:100/61.8,width:"38.2%"},language:{defaultLanguages:void 0,enabled:!1,options:[]}},searchActiveMatch:void 0,searchMatches:void 0,searchString:void 0,vault:new(n(4340)).j};function o(e,t){switch(t.type){case"updateAnnotations":return{...e,annotations:t.payload};case"updateActiveLanguages":return{...e,activeLanguages:t.payload};case"updateSearchActiveMatch":return{...e,searchActiveMatch:t.payload};case"updateSearchMatches":return{...e,searchMatches:t.payload};case"updateSearchString":return{...e,searchString:t.payload};default:return e}}let l=(0,a.createContext)({dispatch:()=>null,state:r}),s=e=>{var t;let{children:n,manifest:s}=e,d={...r.options,...e.options},c=(null===(t=d.language)||void 0===t?void 0:t.defaultLanguages)||[],[u,p]=(0,a.useReducer)(o,{...r,activeLanguages:c,options:d});return(0,i.jsx)(l.Provider,{value:{state:{...u,manifest:s,options:d},dispatch:p},children:n})};var d=n(4234),c=n(4601);let u=(0,c.zo)("div",{display:"flex",flexDirection:"row",alignItems:"center",background:"$primary",filter:"drop-shadow(2px 2px 5px #0002)",borderRadius:"2rem"}),p=(0,c.zo)("div",{position:"absolute",zIndex:10,overflow:"hidden",height:"2rem",justifyContent:"space-between"}),h=(0,c.zo)("header",{fontSize:"1",paddingBottom:"1.618rem",position:"relative",display:"flex",justifyContent:"space-between",zIndex:2,".clover-scroll-header-label":{fontWeight:"400",fontSize:"1.25rem"}}),g=(0,c.zo)("section",{margin:"0",gap:"1rem",position:"relative",zIndex:0});var x=n(6424),m=n(2848);let f=(0,c.zo)("div",{width:"2rem",height:"2rem",["".concat(m.tr)]:{background:"$primary",width:"inherit",height:"inherit",display:"flex",justifyContent:"center",borderRadius:"2rem",padding:"0",justifyItems:"center",flexDirection:"column",alignItems:"center","&:hover":{background:"$accent"},svg:{fill:"$secondary"}},["".concat(m.Hz)]:{"> label":{fontSize:"0.8333rem",display:"flex",marginBottom:"0.5rem"}}}),v=(0,c.zo)("div",{width:"1rem",height:"1rem",borderRadius:"3px",backgroundColor:"$secondaryMuted",border:"1px solid $secondaryAlt",display:"inline-flex",fontSize:"0.7222rem",alignContent:"center",justifyContent:"center",textAlign:"center",flexDirection:"column"}),b=(0,c.zo)(x.z$,{marginTop:"-1px"}),y=(0,c.zo)(x.fC,{display:"flex",alignContent:"center",alignItems:"center",gap:"0.5rem",backgroundColor:"transparent",border:"none",fontFamily:"inherit",fontSize:"1rem",marginTop:"0.25rem","&[data-state='checked']":{["".concat(v)]:{backgroundColor:"$accent",borderColor:"$accent",color:"$secondary"}}});var j=e=>{var t;let{lang:n,isChecked:r}=e,{state:o,dispatch:s}=(0,a.useContext)(l),{activeLanguages:d,options:c}=o,{language:u}=c,p=((null==u?void 0:null===(t=u.options)||void 0===t?void 0:t.find(e=>Object.keys(e)[0]===n))||n)[n]||n;return(0,i.jsxs)(y,{checked:r,onCheckedChange:e=>{s({type:"updateActiveLanguages",payload:e&&void 0!==d?[...d,n]:null==d?void 0:d.filter(e=>e!==n)})},children:[(0,i.jsx)(v,{children:(0,i.jsx)(b,{children:"✓"})}),p]})},w=n(5945),z=n(3217);let C=e=>{let{title:t,style:n={}}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:n,children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{d:"m455.77,49.65c-.53-.94-1.53-1.52-2.61-1.52h-1.46c-.9,0-1.76.41-2.33,1.11-7.48,9.2-14.92,20.42-22.14,33.34-.49.87-.51,1.93-.05,2.82,14.51,28.46,28.67,57.32,28.8,70.41-.1.12-.38.35-.96.57-.05.02-.1.04-.15.06-11.86,5.21-25.25,8.74-37.93,11.77-35.75,8.37-68.11,12.45-98.93,12.45-37.86,0-69.49-6.59-91.47-19.05-24.29-13.77-36.6-34.28-36.6-60.96,0-12.24,2.79-26.82,8.29-43.33.49-1.48-.23-3.1-1.67-3.71l-11.65-4.95c-1.43-.61-3.09-.02-3.82,1.35-11.8,22.23-17.54,45.74-17.54,71.9,0,35.09,14.3,62.03,42.49,80.08,24.82,15.89,60.52,24.29,103.24,24.29,57.18,0,132.5-18.87,159.14-35.1.42-.25.77-.61,1.02-1.03,8.99-15.08,15.86-28.36,15.86-50.18,0-35.58-22.59-78.13-29.52-90.32Z"}),(0,i.jsx)("path",{d:"m321.24,273.28c-1.26-.92-3.01-.72-4.03.45-8.38,9.62-16.7,20.51-23.73,29.88-.95,1.27-.75,3.06.46,4.09,2.19,1.86,4.38,3.71,6.55,5.54,9.53,8.05,18.54,15.66,27.7,24.35.58.55,1.32.82,2.06.82.69,0,1.38-.24,1.95-.72,9.71-8.28,17.81-17.85,24.79-29.26.71-1.16.55-2.65-.39-3.63-11.73-12.33-23.62-22.94-35.36-31.52Z"}),(0,i.jsx)("path",{d:"m256.38,433.6l-90-218c-4.64-11.23-17.5-16.58-28.73-11.94-5.41,2.23-9.71,6.53-11.94,11.94l-90,218c-4.69,11.21.59,24.1,11.8,28.79,11.21,4.69,24.1-.59,28.79-11.8.03-.07.06-.14.08-.2l18.33-44.39h102.67l18.33,44.39c3.4,8.24,11.43,13.61,20.34,13.61,12.15,0,21.99-9.86,21.99-22.01,0-2.88-.57-5.73-1.67-8.39h0Zm-143.5-71.6l33.17-80.35,33.17,80.35h-66.34Z"})]})};var k=()=>{let{state:e}=(0,a.useContext)(l),{activeLanguages:t,annotations:n}=e,r=n?(0,z.ki)(n):[];return(0,i.jsx)(f,{children:(0,i.jsxs)(w.J2,{children:[(0,i.jsx)(w.J2.Trigger,{children:(0,i.jsx)(C,{title:"language",style:{width:"18px",height:"18px"}})}),(0,i.jsxs)(w.J2.Content,{children:[(0,i.jsx)("label",{children:"Language"}),r.map(e=>(0,i.jsx)(j,{isChecked:null==t?void 0:t.includes(e),lang:e},e))]})]})})},S=n(1390);let L="255, 197, 32";(0,c.zo)("span",{fontWeight:"700"}),(0,c.zo)("div",{display:"flex",gap:"0.25rem"});let E=(0,c.zo)("div",{fontSize:"0.9rem !important",color:"$secondaryAlt",margin:"0 0.5em"});(0,c.zo)("div",{display:"flex",flexDirection:"column",button:{backgroundColor:"#6660",opacity:"0.7",transition:"$all",padding:"0.5rem 0.618rem",fontSize:"0.9rem",lineHeight:"1.1rem",textAlign:"left",borderRadius:"2rem",border:"1px solid #6662",display:"flex",flexDirection:"column",gap:"0.25rem","&:hover":{opacity:"1",boxShadow:"5px 5px 13px #6662"},"&[data-result=true]":{backgroundColor:"rgba(".concat(L,", 0.2)"),borderColor:"rgba(".concat(L,", 0.2)"),opacity:"1","&:hover":{backgroundColor:"rgba(".concat(L,", 0.2)")}}}});let I=(0,c.zo)("input",{margin:"0",background:"none",zIndex:"2",justifyContent:"center",display:"flex",alignItems:"center",fontSize:"1rem",fontFamily:"inherit",outline:"none !important",border:"none !important",color:"$secondary",cursor:"pointer",boxSizing:"content-box !important",flexGrow:"0",width:"2rem"}),M=(0,c.zo)("button",{position:"absolute",zIndex:"3",border:"none",background:"transparent",color:"$secondary !important",fill:"$secondary !important",stroke:"$secondary !important",transition:"$all",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:"column",borderRadius:"2rem",height:"2rem",width:"2rem",svg:{color:"inherit",fill:"inherit",stroke:"inherit"}}),$=(0,c.zo)("button",{opacity:"1",alignSelf:"center",margin:"0 0.25rem",fill:"$secondary",flexShrink:"0",border:"none",background:"transparent",display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:"column",borderRadius:"2rem",height:"2rem",width:"2rem",svg:{color:"inherit",fill:"inherit"},'&[aria-disabled="true"]':{opacity:"0",display:"none"}}),R=(0,c.zo)("form",{display:"flex",justifyContent:"space-between",transition:"$all",flexGrow:"1",height:"2rem",variants:{isPanelExpanded:{true:{["".concat(M)]:{marginLeft:"0",cursor:"text"},["".concat(I)]:{width:"100%",padding:"0 1rem 0 2rem",cursor:"text"}},false:{"&:hover":{backgroundColor:"$accent !important",borderRadius:"2rem"},["".concat(M)]:{cursor:"pointer"},["".concat(I)]:{cursor:"pointer","&::placeholder":{color:"transparent !important"}}}}}}),A=(0,c.zo)("div",{display:"flex",alignItems:"center",gap:"0.25rem","&[data-active=true]":{paddingRight:"0.5rem"},button:{fontSize:"0.9em",fill:"$secondary",color:"$secondary",stroke:"$secondary",backgroundColor:"transparent",border:"none",svg:{fill:"inherit",color:"inherit",stroke:"inherit",width:"1.25em"}}});var D=e=>{let{activeIndex:t,searchString:n,total:a}=e,r=0===a?(0,i.jsxs)(i.Fragment,{children:["No results for ",(0,i.jsx)("strong",{children:n})]}):(0,i.jsxs)(i.Fragment,{children:[t+1," of ",a," results for ",(0,i.jsx)("strong",{children:n})]});return(0,i.jsx)(E,{children:r})};let P=e=>{let{title:t,style:n={}}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:n,children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M244 400L100 256l144-144M120 256h292"})]})},B={charset:"latin:extra, arabic:extra, cyrillic:extra, cjk:extra",optimize:!0,tokenize:"full",resolution:9,document:{id:"id",index:"content"}};var F=()=>{let[e,t]=(0,a.useState)(0),{dispatch:n,state:r}=(0,a.useContext)(l),{activeLanguages:o,annotations:s,searchString:d=""}=r,c=new S.Z.Document(B),u=[];null==s||s.forEach(e=>{var t;null==e||null===(t=e.body)||void 0===t||t.forEach(e=>{var t;if(!(null==o?void 0:o.includes(String(e.language))))return;let n=null==e?void 0:null===(t=e.value)||void 0===t?void 0:t.replace(/\n/g,"");u.push(null==e?void 0:e.id),c.add({id:null==e?void 0:e.id,content:n})})});let p=function(e,t){let n=RegExp(t,"gi"),i={total:0,matches:[]};return e.forEach(e=>{let t;let a=e.body.id,r=e.body.value,o=[],l=0;for(console.log(t);null!==(t=n.exec(r));)l++,o.push("".concat(a,"/").concat(l));l>0&&(i.total+=l,i.matches.push({[a]:o}))}),i}((null==c?void 0:c.search(d).reduce((e,t)=>[...new Set([...e,...t.result])],[])).map(e=>null==s?void 0:s.filter(t=>t.body.find(t=>t.id===e)).map(t=>{let n=t.body.findIndex(t=>t.id===e);return{...t,body:t.body[n]}}).shift()),d),h=p.matches.flatMap(e=>Object.values(e).flat());return(0,a.useEffect)(()=>{t(0),n({type:"updateSearchMatches",payload:p}),n({type:"updateSearchActiveMatch",payload:void 0})},[d]),(0,a.useEffect)(()=>{n({type:"updateSearchActiveMatch",payload:h[e]})},[e,d]),(0,i.jsxs)(A,{"data-active":!!d,children:[d&&(0,i.jsx)(D,{activeIndex:e,searchString:d,total:p.total}),(null==p?void 0:p.total)!==0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{onClick:()=>t(e=>e>0?e-1:h.length-1),children:(0,i.jsx)(P,{title:"previous",style:{transform:"rotate(90deg)"}})}),(0,i.jsx)("button",{onClick:()=>t(e=>e(0,i.jsxs)("svg",{style:{width:"16px",height:"16px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:"search"}),(0,i.jsx)("path",{d:"M456.69 421.39L362.6 327.3a173.81 173.81 0 0034.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 00327.3 362.6l94.09 94.09a25 25 0 0035.3-35.3zM97.92 222.72a124.8 124.8 0 11124.8 124.8 124.95 124.95 0 01-124.8-124.8z"})]}),T=()=>(0,i.jsxs)("svg",{style:{width:"16px",height:"16px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:"close"}),(0,i.jsx)("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})]});var W=e=>{let{togglePanel:t,isPanelExpanded:n}=e,{dispatch:r,state:o}=(0,a.useContext)(l),{searchString:s}=o,d=(0,a.useRef)(null),c=()=>d.current===document.activeElement&&t(!0),u=()=>{var e;null===(e=d.current)||void 0===e||e.blur(),p(),t(!1),r({payload:"",type:"updateSearchString"}),r({payload:void 0,type:"updateSearchActiveMatch"})},p=()=>{d.current&&(d.current.value="")},h=e=>{"Escape"===e.key&&(e.preventDefault(),u())};return(0,a.useEffect)(()=>{var e;return null===(e=document)||void 0===e||e.addEventListener("keydown",h),()=>{var e;null===(e=document)||void 0===e||e.removeEventListener("keydown",h)}},[]),(0,a.useEffect)(()=>{if(null==d?void 0:d.current)return d.current.addEventListener("focus",c),d.current.addEventListener("blur",c),()=>{d.current&&(d.current.removeEventListener("focus",c),d.current.removeEventListener("blur",c))}},[]),(0,i.jsxs)(R,{id:"scroll-search",autoComplete:"off",isPanelExpanded:n,"data-testid":"scroll-panel-search-form",children:[(0,i.jsx)(M,{onClick:e=>{var t;e.preventDefault(),null==d||null===(t=d.current)||void 0===t||t.focus()},children:(0,i.jsx)(H,{})}),(0,i.jsx)(I,{ref:d,name:"clover-search",type:"text",placeholder:"Search...",defaultValue:s,onChange:e=>{var t;r({payload:null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.value,type:"updateSearchString"})}}),(0,i.jsx)($,{"aria-disabled":!n,"aria-label":"Close search panel",onClick:e=>{e.preventDefault(),u()},disabled:!n,children:(0,i.jsx)(T,{})})]})};let V=(0,c.zo)("div",{display:"flex",position:"relative",zIndex:"1",maxWidth:"100%",transition:"$all",variants:{isPanelExpanded:{true:{zIndex:1,opacity:1,transform:"translateX(0)"},false:{zIndex:-1,opacity:0,transform:"translateX(-2.618rem)",transitionDelay:"0",transition:"none"}}}});var _=e=>{let{width:t,isFixed:n}=e,r=(0,a.useRef)(null),[o,s]=a.useState(!1),{state:d}=(0,a.useContext)(l),{options:c}=d,{offset:h,language:g}=c,x=null==g?void 0:g.enabled,m=x?4.5:2;return(0,i.jsxs)(p,{ref:r,"data-testid":"scroll-panel",style:{display:o?"unset":"inline-flex",left:o?"unset":n?"unset":"calc(".concat(t,"px - ").concat(m,"rem)"),marginLeft:o?"-".concat(t,"px"):n?"-".concat(m,"rem"):"unset",width:o?t:"".concat(m,"rem"),...n?{position:"fixed",top:n?h:0}:{}},children:[!o&&x&&(0,i.jsx)(k,{}),(0,i.jsxs)(u,{children:[(0,i.jsx)(W,{togglePanel:function(e){s(e)},isPanelExpanded:o}),(0,i.jsx)(V,{"data-testid":"scroll-panel-results","data-panel-expanded":o,isPanelExpanded:o,children:o&&(0,i.jsx)(F,{})})]})]})},J=e=>{let{label:t}=e,{state:n}=(0,a.useContext)(l),{options:r}=n,{offset:o}=r,s=(0,a.useRef)(null),[c,u]=(0,a.useState)(0),[p,g]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=s.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e)t.contentRect&&u(t.contentRect.width)});return t.observe(e),()=>{t.disconnect()}},[]),(0,a.useEffect)(()=>{let e=()=>{let e=s.current;e&&(e.getBoundingClientRect().top<=o?g(!0):g(!1))};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,i.jsxs)(h,{ref:s,children:[(0,i.jsx)(d.__,{label:t,className:"clover-scroll-header-label"}),(0,i.jsx)("div",{children:(0,i.jsx)(_,{width:c,isFixed:p})})]})};let N=(0,c.zo)("article",{transition:"all 0.382s ease-in-out",display:"flex",flexDirection:"row",flexWrap:"nowrap",gap:"2.618rem"}),O=(0,c.zo)("div",{transition:"$all",flexShrink:0}),G=(0,c.zo)("div",{display:"flex",flexGrow:1,flexDirection:"column",justifyContent:"flex-start","> div":{display:"flex",flexDirection:"row",gap:"2.618rem","> div":{width:"calc(100% / var(--num-items))",boxSizing:"border-box"}}}),Z=(0,c.zo)("hr",{margin:"0",borderColor:"transparent",height:"1.618rem",position:"relative",width:"61.8%",zIndex:0,marginLeft:"38.2%",display:"flex",justifyContent:"flex-end","&::before":{content:"attr(aria-label)",position:"absolute",right:"1.618rem",bottom:"0",zIndex:1,display:"flex",fontSize:"0.7222rem",fontWeight:"400",lineHeight:"1rem",background:"inherit",opacity:.7},"&::after":{content:"",width:"calc(100% - 2.618em)",position:"absolute",zIndex:0,height:"1px",background:"#6662"}}),Y=(0,c.zo)("div",{display:"flex",flexDirection:"column",gap:"2.618rem","&[data-figures-visible='true']":{["& ".concat(O)]:{opacity:1,zIndex:0,transform:"translateX(0)"}}});var X=n(2508);let q=(0,c.zo)(X.o,{}),K=(0,c.zo)("figure",{figcaption:{display:"flex",flexDirection:"column",margin:"1.618rem 0 0",opacity:.9,gap:"0.382rem",em:{fontSize:"0.9em",fontStyle:"normal",opacity:.7}}});var Q=e=>{let{canvas:t,canvasInfo:{current:n,total:a}}=e;return(0,i.jsxs)("figcaption",{children:[(0,i.jsxs)("em",{children:[n," / ",a]}),(null==t?void 0:t.label)&&(0,i.jsx)(d.__,{label:null==t?void 0:t.label}),(null==t?void 0:t.summary)&&(0,i.jsx)(d.ER,{summary:null==t?void 0:t.summary,as:"p"})]})},U=n(4565);let ee=(0,c.zo)("div",{width:"100%",height:"100%",background:"#6662",backgroundSize:"contain",color:"white",position:"relative",zIndex:"1",overflow:"hidden"});var et=a.memo(e=>{let{body:t,label:n}=e;return(0,i.jsx)(ee,{"data-testid":"scroll-figure-image",children:(0,i.jsx)(U.default,{body:t,openSeadragonConfig:{showNavigator:!1,showHomeControl:!1},...n&&{label:n}})})}),en=a.memo(e=>{let{body:t,label:n}=e;return(0,i.jsx)(ee,{"data-testid":"scroll-figure-thumbnail",children:(0,i.jsx)(d.pl,{thumbnail:[t],style:{width:"100%",height:"100%",objectFit:"contain",objectPosition:"center"},altAsLabel:n})})}),ei=n(9452),ea=e=>{let{canvas:t,canvasInfo:n}=e,{state:o}=(0,a.useContext)(l),{vault:s,options:d}=o,{figure:c}=d,u=c.display?c.display:r.options.figure.display,p=c.aspectRatio?c.aspectRatio:r.options.figure.aspectRatio,h=(0,ei.G)(s,t.id);return h?(0,i.jsxs)(K,{children:[null==h?void 0:h.map(e=>(0,i.jsxs)(q,{ratio:p,children:["thumbnail"===u&&(0,i.jsx)(en,{body:e,label:null==t?void 0:t.label}),"image-viewer"===u&&(0,i.jsx)(et,{label:null==t?void 0:t.label,body:e})]},null==e?void 0:e.id)),(0,i.jsx)(Q,{canvas:t,canvasInfo:n})]}):null};let er="255, 197, 32",eo=(0,c.zo)("div",{opacity:"1","&[dir=rtl]":{textAlign:"right"},"&[data-active-language=false]":{opacity:"0",width:"0",height:"0"},ul:{padding:"1rem"},li:{listStyleType:"disc",li:{listStyleType:"circle"}},"span.clover-scroll-highlight":{position:"relative",fontWeight:"bold","&.active":{"&::before":{top:"0",position:"absolute",display:"inline",content:"",width:"calc(100% + 4px)",height:"calc(100% + 2px) ",marginLeft:"-2px",borderRadius:"3px",border:"1px solid rgba(".concat(er,", 0.2)"),borderBottom:"1px solid rgba(".concat(er,", 0.618)"),boxShadow:"1px 1px 1px #6661"},"&::after":{left:"0",top:"0",position:"absolute",display:"inline",content:"",width:"calc(100% + 4px)",height:"calc(100% + 2px) ",marginLeft:"-2px",marginTop:"-1px",borderRadius:"3px",backgroundColor:"rgba(".concat(er,", 0.2)"),zIndex:-1}},"&::before":{top:"0",position:"absolute",display:"inline",content:"",width:"calc(100% + 4px)",height:"calc(100% + 2px) ",marginLeft:"-2px",borderRadius:"3px",border:"1px solid #6663",borderBottom:"1px solid #6664",boxShadow:"1px 1px 1px #6661"},"&::after":{left:"0",top:"0",position:"absolute",display:"inline",content:"",width:"calc(100% + 4px)",height:"calc(100% + 2px) ",marginLeft:"-2px",marginTop:"-1px",borderRadius:"3px",backgroundColor:"#6661",zIndex:-1}}}),el=e=>{let{searchString:t="",content:n,stringLength:i=150}=e,a=n.toLowerCase().indexOf(t.toLowerCase());if(-1!==a){let e=Math.max(0,a-i/2),r=Math.min(n.length,a+t.length+i/2);if(e>0){let t=n.lastIndexOf(" ",e+1);e=t>0?t+1:e}if(r-1?e:r}n=(e>0?"... ":"")+n.substring(e,r)+(r{let t,{body:n,numItems:r=1,stringLength:o,type:s="content"}=e,{state:d}=(0,a.useContext)(l),{activeLanguages:c,searchActiveMatch:u,searchString:p}=d,h=String(n.value);"snippet"==s&&(h=el({searchString:p,content:h,stringLength:o}));let g=(0,es.Z)(h);if("text/plain"===n.format&&(t=null==h?void 0:h.replace(/\n/g,"
")),"text/markdown"===n.format&&(t=null==g?void 0:g.html),"text/html"===n.format&&(t=h),String(p)&&t){let e=1,i=RegExp("(".concat(p,")"),"gi");t=null==t?void 0:t.replace(i,t=>{let i="".concat(n.id,"/").concat(e),a=u===i;return e+=1,'').concat(t,"")})}let x=[n.id,s].join("-"),m="RTL"===(0,z.j9)(String(n.language)),f=String(n.language);return((0,a.useEffect)(()=>{if(u){let e=document.querySelector('[data-index="'.concat(u,'"]'));e&&e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}},[u]),t)?(0,i.jsx)(eo,{dangerouslySetInnerHTML:{__html:t},"data-active-language":null==c?void 0:c.includes(f),"data-body-id":x,"data-testid":"scroll-item-body",style:{"--num-items":r},id:x,dir:m?"rtl":"ltr",css:{fontSize:m?"1.3em":"1em"},lang:f}):null},ec=a.memo(e=>{var t;let{hasItemBreak:n,isLastItem:o,item:s,itemCount:d,itemNumber:c}=e,{state:u}=a.useContext(l),{activeLanguages:p,annotations:h,vault:g,options:x}=u,{figure:m}=x,f=null==g?void 0:g.get(s),v=null==p?void 0:p.length,b=null==h?void 0:null===(t=h.filter(e=>{var t,n;return(null===(n=e.target)||void 0===n?void 0:null===(t=n.source)||void 0===t?void 0:t.id)===s.id}))||void 0===t?void 0:t.map(e=>null==e?void 0:e.body.map((e,t)=>(0,i.jsx)(ed,{body:e,numItems:v},t)));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(N,{"data-page-break":n,"data-page-number":c,"data-last-item":o,children:[(0,i.jsx)(O,{css:{width:m.width?m.width:r.options.figure.width},"data-width":m.width,children:f&&(0,i.jsx)(ea,{canvas:f,canvasInfo:{current:c,total:d}})}),(0,i.jsx)(G,{children:(0,i.jsx)("div",{children:(null==b?void 0:b.length)?b:(0,i.jsx)("p",{children:"[Blank]"})})})]}),n&&(0,i.jsx)(Z,{"aria-label":"Page Break"})]})}),eu=e=>{let{items:t}=e;return(0,i.jsx)(Y,{children:t.map((e,n)=>{let a=n+1,r=a===t.length;return(0,i.jsx)(ec,{item:e,hasItemBreak:a{let[n,i]=(0,a.useState)([]);return(0,a.useEffect)(()=>{if(!t)return;let n=[];null==e||e.forEach(e=>{var i;let a=t.get(e);null==a||null===(i=a.annotations)||void 0===i||i.forEach(e=>{var i;let a=t.get(e);null==a||null===(i=a.items)||void 0===i||i.forEach(e=>{let i=t.get(e);if(i){var a;n.push({...i,body:null==i?void 0:null===(a=i.body)||void 0===a?void 0:a.map(e=>t.get(e))})}})})}),i(n.reduce((e,t)=>(e.some(e=>e.id===t.id)||e.push(t),e),[]))},[e,t]),n};let eh=e=>{let{iiifContent:t}=e,[n,r]=(0,a.useState)(),{state:o,dispatch:s}=(0,a.useContext)(l),{options:d,vault:c}=o,u=ep(null==n?void 0:n.items,c);return((0,a.useEffect)(()=>{c&&c.load(t).then(e=>e&&r(e)).catch(e=>console.error("Manifest ".concat(t," failed to load: ").concat(e)))},[t]),(0,a.useEffect)(()=>{var e;let t=(null==d?void 0:null===(e=d.language)||void 0===e?void 0:e.defaultLanguages)||(0,z.ki)(u);console.log(u),s({type:"updateAnnotations",payload:u}),s({type:"updateActiveLanguages",payload:t})},[u]),n)?(0,i.jsx)(g,{children:n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(J,{label:null==n?void 0:n.label}),(0,i.jsx)(eu,{items:n.items})]})}):null};var eg=e=>{let{iiifContent:t,options:n}=e;return(0,i.jsx)(s,{options:n,children:(0,i.jsx)(eh,{iiifContent:t})})}},6051:function(e,t,n){n.d(t,{x:function(){return i}});let i=(0,n(4601).zo)("svg",{display:"inline-flex",variants:{isLarge:{true:{height:"4rem",width:"4rem"}},isMedium:{true:{height:"2rem",width:"2rem"}},isSmall:{true:{height:"1rem",width:"1rem"}}}})},5112:function(e,t,n){n.d(t,{J:function(){return r}});var i=n(2676);n(5271);var a=n(6051);let r=e=>(0,i.jsx)(a.x,{...e,"data-testid":"icon-svg",role:"img",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:e.children});r.Title=e=>{let{children:t}=e;return(0,i.jsx)("title",{children:t})},r.Add=()=>(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288M400 256H112"}),r.Audio=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M232 416a23.88 23.88 0 01-14.2-4.68 8.27 8.27 0 01-.66-.51L125.76 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.75l91.37-74.81a8.27 8.27 0 01.66-.51A24 24 0 01256 120v272a24 24 0 01-24 24zm-106.18-80zm-.27-159.86zM320 336a16 16 0 01-14.29-23.19c9.49-18.87 14.3-38 14.3-56.81 0-19.38-4.66-37.94-14.25-56.73a16 16 0 0128.5-14.54C346.19 208.12 352 231.44 352 256c0 23.86-6 47.81-17.7 71.19A16 16 0 01320 336z"}),(0,i.jsx)("path",{d:"M368 384a16 16 0 01-13.86-24C373.05 327.09 384 299.51 384 256c0-44.17-10.93-71.56-29.82-103.94a16 16 0 0127.64-16.12C402.92 172.11 416 204.81 416 256c0 50.43-13.06 83.29-34.13 120a16 16 0 01-13.87 8z"}),(0,i.jsx)("path",{d:"M416 432a16 16 0 01-13.39-24.74C429.85 365.47 448 323.76 448 256c0-66.5-18.18-108.62-45.49-151.39a16 16 0 1127-17.22C459.81 134.89 480 181.74 480 256c0 64.75-14.66 113.63-50.6 168.74A16 16 0 01416 432z"})]}),r.Close=()=>(0,i.jsx)("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}),r.Download=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M336 176h40a40 40 0 0140 40v208a40 40 0 01-40 40H136a40 40 0 01-40-40V216a40 40 0 0140-40h40",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M176 272l80 80 80-80M256 48v288"})]}),r.Image=()=>(0,i.jsx)("path",{d:"M416 64H96a64.07 64.07 0 00-64 64v256a64.07 64.07 0 0064 64h320a64.07 64.07 0 0064-64V128a64.07 64.07 0 00-64-64zm-80 64a48 48 0 11-48 48 48.05 48.05 0 0148-48zM96 416a32 32 0 01-32-32v-67.63l94.84-84.3a48.06 48.06 0 0165.8 1.9l64.95 64.81L172.37 416zm352-32a32 32 0 01-32 32H217.63l121.42-121.42a47.72 47.72 0 0161.64-.16L448 333.84z"}),r.Video=()=>(0,i.jsx)("path",{d:"M464 384.39a32 32 0 01-13-2.77 15.77 15.77 0 01-2.71-1.54l-82.71-58.22A32 32 0 01352 295.7v-79.4a32 32 0 0113.58-26.16l82.71-58.22a15.77 15.77 0 012.71-1.54 32 32 0 0145 29.24v192.76a32 32 0 01-32 32zM268 400H84a68.07 68.07 0 01-68-68V180a68.07 68.07 0 0168-68h184.48A67.6 67.6 0 01336 179.52V332a68.07 68.07 0 01-68 68z"})},2848:function(e,t,n){n.d(t,{Hz:function(){return d},bC:function(){return l},tr:function(){return c},uv:function(){return u},yP:function(){return s}});var i=n(3818),a=n(4601);let r=(0,a.F4)({"0%":{opacity:0,transform:"translateY(1rem)"},"100%":{opacity:1,transform:"translateY(0)"}}),o=(0,a.F4)({"0%":{opacity:0,transform:"translateY(1rem)"},"100%":{opacity:1,transform:"translateY(0)"}}),l=(0,a.zo)(i.Eh,{fill:"$secondaryAlt"}),s=(0,a.zo)(i.x8,{position:"absolute",right:"0",top:"0",padding:"0.5rem",margin:"0",cursor:"pointer",border:"none",background:"none",fill:"inherit","&:hover":{opacity:"0.75"}}),d=(0,a.zo)(i.VY,{border:"none",backgroundColor:"white",fill:"inhrerit",padding:"1rem 2rem 1rem 1rem",width:"auto",minWidth:"200px",maxWidth:"350px",borderRadius:"3px",boxShadow:"5px 5px 13px #0002",animationDuration:"0.3s",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",'&[data-side="top"]':{animationName:o},'&[data-side="bottom"]':{animationName:r},'&[data-align="end"]':{["& ".concat(l)]:{margin:"0 0.7rem"}}}),c=(0,a.zo)(i.xz,{display:"inline-flex",padding:"0.5rem 0",margin:"0 0.5rem 0 0",cursor:"pointer",border:"none",background:"none","> button, > span":{margin:"0"}}),u=(0,a.zo)(i.fC,{boxSizing:"content-box"})},5945:function(e,t,n){n.d(t,{JO:function(){return i.J},J2:function(){return o},Vp:function(){return s}});var i=n(5112),a=n(2676),r=n(2848);n(5271);let o=e=>{let{children:t}=e;return(0,a.jsx)(r.uv,{children:t})};o.Trigger=e=>(0,a.jsx)(r.tr,{...e,children:e.children}),o.Content=e=>(0,a.jsxs)(r.Hz,{...e,sideOffset:5,collisionPadding:21,children:[(0,a.jsx)(r.bC,{}),(0,a.jsx)(r.yP,{children:(0,a.jsx)(i.J,{isSmall:!0,children:(0,a.jsx)(i.J.Close,{})})}),e.children]});var l=n(6051);let s=(0,n(4601).zo)("div",{boxSizing:"border-box",display:"inline-flex",alignItems:"center",borderRadius:"5px",padding:"$1",marginBottom:"$2",marginRight:"$2",backgroundColor:"$lightGrey",color:"$richBlack50",textTransform:"uppercase",fontSize:"$2",objectFit:"contain",lineHeight:"1em !important","&:last-child":{marginRight:"0"},["".concat(l.x)]:{position:"absolute",left:"$1",height:"$3",width:"$3"},variants:{isIcon:{true:{position:"relative",paddingLeft:"$5"}}}})},5162:function(e,t,n){n.d(t,{g:function(){return i}});let i=(e,t,n,i)=>{let a={canvas:void 0,accompanyingCanvas:void 0,annotationPage:void 0,annotations:[]};if(a.canvas=e.get(t),a.canvas){var r,o;a.annotationPage=e.get(a.canvas.items[0]),a.accompanyingCanvas=(null===(r=a.canvas)||void 0===r?void 0:r.accompanyingCanvas)?e.get(null===(o=a.canvas)||void 0===o?void 0:o.accompanyingCanvas):void 0}if(a.annotationPage){let r=e.get(a.annotationPage.items).map(t=>({body:e.get(t.body[0].id),motivation:t.motivation,type:"Annotation"})),o=[];r.forEach(t=>{"Choice"===t.body.type?t.body.items.forEach(n=>o.push({...t,id:n.id,body:e.get(n.id)})):o.push(t)}),a.annotations=o.filter(a=>{if(a){if(!a.body||!a.motivation){console.error("Invalid annotation after Hyperion parsing: missing either 'body' or 'motivation'",a);return}let r=a.body;Array.isArray(r)&&(r=r[0]);let o=e.get(r.id);if(o)switch(n){case"painting":return a.target===t.id&&a.motivation&&"painting"===a.motivation[0]&&i.includes(o.type)&&(a.body=o),!!a;case"supplementing":return;default:throw Error("Invalid annotation motivation.")}}})}return a}},9452:function(e,t,n){n.d(t,{G:function(){return a}});var i=n(5162);let a=(e,t)=>{let n=(0,i.g)(e,{id:t,type:"Canvas"},"painting",["Image","Sound","Video"]);if(0!==n.annotations.length&&n.annotations&&n.annotations)return n.annotations.map(e=>null==e?void 0:e.body)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/765-bbd127092fa04803.js b/_next/static/chunks/765-bbd127092fa04803.js new file mode 100644 index 000000000..1307085ee --- /dev/null +++ b/_next/static/chunks/765-bbd127092fa04803.js @@ -0,0 +1,15 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[765],{1390:function(e,t,n){"use strict";var r;function i(e){return void 0===e||e}function a(e){let t=Array(e);for(let n=0;n=r))));t++);if(n)return a?A(l,r,0):void(t[t.length]=l)}return!n&&l}function A(e,t,n){return e=1===e.length?e[0]:[].concat.apply([],e),n||e.length>t?e.slice(n,n+t):e}function I(e,t,n,r){return e=n?(e=e[(r=r&&t>n)?t:n])&&e[r?n:t]:e[t]}function L(e,t,n,r,i){let a=0;if(e.constructor===Array){if(i)-1!==(t=e.indexOf(t))?1=this.B&&(f||!d[m])){var a=S(h,r,p),s="";switch(this.G){case"full":if(2a;l--)if(l-a>=this.B){var u=S(h,r,p,i,a);N(this,d,s=m.substring(a,l),u,e,n)}break}case"reverse":if(1=this.B&&N(this,d,s,S(h,r,p,i,l),e,n);s=""}case"forward":if(1=this.B&&N(this,d,s,a,e,n);break}default:if(this.C&&(a=Math.min(a/this.C(t,m,p)|0,h-1)),N(this,d,m,a,e,n),f&&1=this.B&&!i[m]){i[m]=1;let t=this.l&&m>a;N(this,c,t?a:m,S(s+(r/2>s?0:1),r,p,l-1,u-1),e,n,t?m:a)}}}}}this.m||(this.register[e]=1)}}return this},r.search=function(e,t,n){let r,i,a;n||(!t&&u(e)?e=(n=e).query:u(t)&&(n=t));let l=[],c,d,f=0;if(n){e=n.query||e,t=n.limit,f=n.offset||0;var h=n.context;d=n.suggest}if(e&&1<(c=(e=this.encode(""+e)).length)){n=o();var p=[];for(let t=0,r=0,i;t=this.B&&!n[i]){if(!this.s&&!d&&!this.map[i])return l;p[r++]=i,n[i]=1}c=(e=p).length}if(!c)return l;for(t||(t=100),h=this.depth&&1{a=e})),i||(i=0)){case 0:if(s="reg",this.m)for(let e in l=o(),this.register)l[e]=1;else l=this.register;break;case 1:s="cfg",l={doc:0,opt:this.s?1:0};break;case 2:s="map",l=this.map;break;case 3:s="ctx",l=this.h;break;default:void 0===n&&a&&a();return}return T(e,t||this,n,s,r,i,l,a),u},r.import=function(e,t){if(t)switch(l(t)&&(t=JSON.parse(t)),e){case"cfg":this.s=!!t.opt;break;case"reg":this.m=!1,this.register=t;break;case"map":this.map=t;break;case"ctx":this.h=t}},w(C.prototype);let M=0;function Z(e){var t;if(!(this instanceof Z))return new Z(e);e?c(t=e.encode)&&(e.encode=t.toString()):e={},(t=(self||window)._factory)&&(t=t.toString());let r="undefined"==typeof window&&self.exports,i=this;this.o=function(e,t,r){let i;try{i=t?new(n(5184)).Worker("//node/node.js"):e?new Worker(URL.createObjectURL(new Blob(["onmessage="+P.toString()],{type:"text/javascript"}))):new Worker(l(r)?r:"worker/worker.js",{type:"module"})}catch(e){}return i}(t,r,e.worker),this.h=o(),this.o&&(r?this.o.on("message",function(e){i.h[e.id](e.msg),delete i.h[e.id]}):this.o.onmessage=function(e){e=e.data,i.h[e.id](e.msg),delete i.h[e.id]},this.o.postMessage({task:"init",factory:t,options:e}))}function F(e){Z.prototype[e]=Z.prototype[e+"Async"]=function(){let t;let n=this,r=[].slice.call(arguments);var i=r[r.length-1];return c(i)&&(t=i,r.splice(r.length-1,1)),i=new Promise(function(t){setTimeout(function(){n.h[++M]=t,n.o.postMessage({task:e,id:M,args:r})})}),t?(i.then(t),this):i}}function D(e){if(!(this instanceof D))return new D(e);var t,n=e.document||e.doc||e;this.K=[],this.h=[],this.A=[],this.register=o(),this.key=(t=n.key||n.id)&&z(t,this.A)||"id",this.m=i(e.fastupdate),this.C=(t=n.store)&&!0!==t&&[],this.store=t&&o(),this.I=(t=n.tag)&&z(t,this.A),this.l=t&&o(),this.cache=(t=e.cache)&&new j(t),e.cache=!1,this.o=e.worker,this.async=!1,t=o();let r=n.index||n.field||n;l(r)&&(r=[r]);for(let n=0,i,a;nt||n)&&(i=i.slice(n,n+t)),r&&(i=W.call(this,i)),{tag:e,result:i}}function W(e){let t=Array(e.length);for(let n=0,r;n{a=e})),i||(i=0),r||(r=0),r2?n.slice(1-n.length).join("."):t.source=t.resource,t.git_suffix=/\.git$/.test(t.pathname),t.name=decodeURIComponent((t.pathname||t.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),t.owner=decodeURIComponent(t.user),t.source){case"git.cloudforge.com":t.owner=t.user,t.organization=n[0],t.source="cloudforge.com";break;case"visualstudio.com":if("vs-ssh.visualstudio.com"===t.resource){4===(a=t.name.split("/")).length&&(t.organization=a[1],t.owner=a[2],t.name=a[3],t.full_name=a[2]+"/"+a[3]);break}2===(a=t.name.split("/")).length?(t.owner=a[1],t.name=a[1],t.full_name="_git/"+t.name):3===a.length?(t.name=a[2],"DefaultCollection"===a[0]?(t.owner=a[2],t.organization=a[0],t.full_name=t.organization+"/_git/"+t.name):(t.owner=a[0],t.full_name=t.owner+"/_git/"+t.name)):4===a.length&&(t.organization=a[0],t.owner=a[1],t.name=a[3],t.full_name=t.organization+"/"+t.owner+"/_git/"+t.name);break;case"dev.azure.com":case"azure.com":if("ssh.dev.azure.com"===t.resource){4===(a=t.name.split("/")).length&&(t.organization=a[1],t.owner=a[2],t.name=a[3]);break}5===(a=t.name.split("/")).length?(t.organization=a[0],t.owner=a[1],t.name=a[4],t.full_name="_git/"+t.name):3===a.length?(t.name=a[2],"DefaultCollection"===a[0]?(t.owner=a[2],t.organization=a[0],t.full_name=t.organization+"/_git/"+t.name):(t.owner=a[0],t.full_name=t.owner+"/_git/"+t.name)):4===a.length&&(t.organization=a[0],t.owner=a[1],t.name=a[3],t.full_name=t.organization+"/"+t.owner+"/_git/"+t.name),t.query&&t.query.path&&(t.filepath=t.query.path.replace(/^\/+/g,"")),t.query&&t.query.version&&(t.ref=t.query.version.replace(/^GB/,""));break;default:var o=(a=t.name.split("/")).length-1;if(a.length>=2){var s=a.indexOf("-",2),l=a.indexOf("blob",2),u=a.indexOf("tree",2),c=a.indexOf("commit",2),d=a.indexOf("src",2),f=a.indexOf("raw",2),h=a.indexOf("edit",2);o=s>0?s-1:l>0?l-1:u>0?u-1:c>0?c-1:d>0?d-1:f>0?f-1:h>0?h-1:o,t.owner=a.slice(0,o).join("/"),t.name=a[o],c&&(t.commit=a[o+2])}t.ref="",t.filepathtype="",t.filepath="";var p=a.length>o&&"-"===a[o+1]?o+1:o;a.length>p+2&&["raw","src","blob","tree","edit"].indexOf(a[p+1])>=0&&(t.filepathtype=a[p+1],t.ref=a[p+2],a.length>p+3&&(t.filepath=a.slice(p+3).join("/"))),t.organization=t.owner}!t.full_name&&(t.full_name=t.owner,t.name&&(t.full_name&&(t.full_name+="/"),t.full_name+=t.name)),t.owner.startsWith("scm/")&&(t.source="bitbucket-server",t.owner=t.owner.replace("scm/",""),t.organization=t.owner,t.full_name=t.owner+"/"+t.name);var m=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/.exec(t.pathname);return null!=m&&(t.source="bitbucket-server","users"===m[1]?t.owner="~"+m[2]:t.owner=m[2],t.organization=t.owner,t.name=m[3],(a=m[4].split("/")).length>1&&(["raw","browse"].indexOf(a[1])>=0?(t.filepathtype=a[1],a.length>2&&(t.filepath=a.slice(2).join("/"))):"commits"===a[1]&&a.length>2&&(t.commit=a[2])),t.full_name=t.owner+"/"+t.name,t.query.at?t.ref=t.query.at:t.ref=""),t}i.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var n=e.port?":"+e.port:"",r=e.user||"git",i=e.git_suffix?".git":"";switch(t){case"ssh":if(n)return"ssh://"+r+"@"+e.resource+n+"/"+e.full_name+i;return r+"@"+e.resource+":"+e.full_name+i;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+r+"@"+e.resource+n+"/"+e.full_name+i;case"http":case"https":return t+"://"+(e.token?"bitbucket.org"===e.source?"x-token-auth:"+e.token+"@":e.token+"@":e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"")+e.resource+n+"/"+("bitbucket-server"===e.source?"scm/"+e.full_name:""+e.full_name)+i;default:return e.href}},e.exports=i},5983:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var e=function(e){for(var t=e,n=i(t);n;)n=i(t=n.ownerDocument);return t}(window.document),t=[],n=null,r=null;o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?f(e,n):c(),t.forEach(function(e){e._checkForIntersections()})}),n},o._resetCrossOriginUpdater=function(){n=null,r=null},o.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!(e&&1==e.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},o.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},o.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},o.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,a=null,o=null;if(this.POLL_INTERVAL?a=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(o=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),l(e,"resize",r,!0)),l(t,"scroll",r,!0),o&&o.disconnect()}),t!=(this.root&&(this.root.ownerDocument||this.root)||e)){var u=i(t);u&&this._monitorIntersections(u.ownerDocument)}}},o.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some(function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var a=i(n);if((n=a&&a.ownerDocument)==t)return!0}return!1})){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=r){var o=i(t);o&&this._unmonitorIntersections(o.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t=0&&s>=0&&{top:n,bottom:r,left:i,right:a,width:o,height:s}||null}(c,o)),!o)break;s=s&&p(s)}return o}},o.prototype._getRootRect=function(){var t;if(this.root&&!m(this.root))t=u(this.root);else{var n=m(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;it.indexOf(this)&&t.push(this)},o.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=o,window.IntersectionObserverEntry=a}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function a(e){this.time=e.time,this.target=e.target,this.rootBounds=d(e.rootBounds),this.boundingClientRect=d(e.boundingClientRect),this.intersectionRect=d(e.intersectionRect||c()),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;n?this.intersectionRatio=Number((i/n).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(e,t){var n,r,i,a=t||{};if("function"!=typeof e)throw Error("callback must be a function");if(a.root&&1!=a.root.nodeType&&9!=a.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){n(),i=null},r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(a.rootMargin),this.thresholds=this._initThresholds(a.threshold),this.root=a.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function u(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):c()}function c(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function f(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function h(e,t){for(var n=t;n;){if(n==e)return!0;n=p(n)}return!1}function p(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host)?n.host:n}function m(e){return e&&9===e.nodeType}}()},2895:function(e,t,n){"use strict";var r=n(6097);e.exports=function e(t){if(Array.isArray(t))return -1!==t.indexOf("ssh")||-1!==t.indexOf("rsync");if("string"!=typeof t)return!1;var n=r(t);if(t=t.substring(t.indexOf("://")+3),e(n))return!0;var i=RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!t.match(i)&&t.indexOf("@")-1},R.prototype.set=function(e,t){var n=this.__data__,r=I(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},A.prototype.clear=function(){this.__data__={hash:new N,map:new(O||R),string:new N}},A.prototype.delete=function(e){return L(this,e).delete(e)},A.prototype.get=function(e){return L(this,e).get(e)},A.prototype.has=function(e){return L(this,e).has(e)},A.prototype.set=function(e,t){return L(this,e).set(e,t),this};var M=Z(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(z(e))return S?S.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}(t);var t,n=[];return l.test(e)&&n.push(""),e.replace(u,function(e,t,r,i){n.push(r?i.replace(c,"$1"):t||e)}),n});function Z(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(Z.Cache||A),n}Z.Cache=A;var F=Array.isArray;function D(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function z(e){return"symbol"==typeof e||!!e&&"object"==typeof e&&"[object Symbol]"==_.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:function(e,t){var n;t=!function(e,t){if(F(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||z(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}(t,e)?F(n=t)?n:M(n):[t];for(var r=0,i=t.length;null!=e&&r{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:v,nonce:y})=>{let[b,w]=(0,r.useState)(()=>p(l,c)),[_,k]=(0,r.useState)(()=>p(l)),j=g?Object.values(g):u,E=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=x());let a=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...j),a&&l.classList.add(a)):a?l.setAttribute(f,a):l.removeAttribute(f),o){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),O=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),T=(0,r.useCallback)(t=>{k(x(t)),"system"===b&&n&&!e&&E("system")},[b,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(a);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&O(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[O]),(0,r.useEffect)(()=>{E(null!=e?e:b)},[e,b]);let C=(0,r.useMemo)(()=>({theme:b,setTheme:O,forcedTheme:e,resolvedTheme:"system"===b?_:b,themes:n?[...u,"system"]:u,systemTheme:n?_:void 0}),[b,O,e,_,n,u]);return r.createElement(s.Provider,{value:C},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:o,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:v,attrs:j,nonce:y}),v)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let a=u?u[e]:e,o=t?e+"|| ''":`'${a}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||a?`c.add(${o})`:"null":a&&(l+=`d[s](n,${o})`),l},x=e?`!function(){${h}${m(e)}}()`:o?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${a}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:x}})},()=>!0),p=(e,t)=>{let n;if(!o){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},x=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},9927:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(3185)},8929:function(e,t){"use strict";var n,r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return o},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return h}});let o="refresh",s="navigate",l="restore",u="server-patch",c="prefetch",d="fast-refresh",f="server-action";function h(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(a=r||(r={})).fresh="fresh",a.reusable="reusable",a.expired="expired",a.stale="stale",("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)},2477:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(5802),("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)},3179:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(2430),i=n(1778),a=n(2676),o=i._(n(5271)),s=r._(n(967)),l=r._(n(8197)),u=n(2843),c=n(1825),d=n(1493);n(6867);let f=n(171),h=r._(n(72)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/clover-iiif/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function m(e,t,n,r,i,a,o){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function x(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let g=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:p,unoptimized:g,fill:v,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:_,sizesInput:k,onLoad:j,onError:E,...O}=e;return(0,a.jsx)("img",{...O,...x(f),loading:p,width:l,height:s,decoding:u,"data-nimg":v?"fill":"1",className:c,style:d,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(E&&(e.src=e.src),e.complete&&m(e,h,y,b,w,g,k))},[n,h,y,b,w,E,g,k,t]),onLoad:e=>{m(e.currentTarget,h,y,b,w,g,k)},onError:e=>{_(!0),"empty"!==h&&w(!0),E&&E(e)}})});function v(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...x(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,r),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(f.RouterContext),r=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=p||r||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:s,onLoadingComplete:l}=e,m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let x=(0,o.useRef)(l);(0,o.useEffect)(()=>{x.current=l},[l]);let[y,b]=(0,o.useState)(!1),[w,_]=(0,o.useState)(!1),{props:k,meta:j}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:y,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,{...k,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:m,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:_,sizesInput:e.sizes,ref:t}),j.priority?(0,a.jsx)(v,{isAppRouter:!n,imgAttributes:k}):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)},7480:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(2430),i=n(2676),a=r._(n(5271)),o=n(2590),s=n(9713),l=n(8455),u=n(3665),c=n(6388),d=n(171),f=n(7733),h=n(5921),p=n(2477),m=n(7200),x=n(8929),g=new Set;function v(e,t,n,r,i,a){if(a||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}(async()=>a?e.prefetch(t,i):e.prefetch(t,n,r))().catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=a.default.forwardRef(function(e,t){let n,r;let{href:l,as:g,children:b,prefetch:w=null,passHref:_,replace:k,shallow:j,scroll:E,locale:O,onClick:T,onMouseEnter:C,onTouchStart:S,legacyBehavior:N=!1,...R}=e;n=b,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let A=a.default.useContext(d.RouterContext),I=a.default.useContext(f.AppRouterContext),L=null!=A?A:I,P=!A,M=!1!==w,Z=null===w?x.PrefetchKind.AUTO:x.PrefetchKind.FULL,{href:F,as:D}=a.default.useMemo(()=>{if(!A){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,o.resolveHref)(A,l,!0);return{href:e,as:g?(0,o.resolveHref)(A,g):t||e}},[A,l,g]),z=a.default.useRef(F),$=a.default.useRef(D);N&&(r=a.default.Children.only(n));let U=N?r&&"object"==typeof r&&r.ref:t,[W,H,G]=(0,h.useIntersection)({rootMargin:"200px"}),V=a.default.useCallback(e=>{($.current!==D||z.current!==F)&&(G(),$.current=D,z.current=F),W(e),U&&("function"==typeof U?U(e):"object"==typeof U&&(U.current=e))},[D,U,F,G,W]);a.default.useEffect(()=>{L&&H&&M&&v(L,F,D,{locale:O},{kind:Z},P)},[D,F,H,O,M,null==A?void 0:A.locale,L,P,Z]);let B={ref:V,onClick(e){N||"function"!=typeof T||T(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),L&&!e.defaultPrevented&&function(e,t,n,r,i,o,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.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)||!c&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:o,locale:u,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?a.default.startTransition(f):f()}(e,L,F,D,k,j,E,O,P)},onMouseEnter(e){N||"function"!=typeof C||C(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),L&&(M||!P)&&v(L,F,D,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:Z},P)},onTouchStart:function(e){N||"function"!=typeof S||S(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),L&&(M||!P)&&v(L,F,D,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:Z},P)}};if((0,u.isAbsoluteUrl)(D))B.href=D;else if(!N||_||"a"===r.type&&!("href"in r.props)){let e=void 0!==O?O:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,p.getDomainLocale)(D,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);B.href=t||(0,m.addBasePath)((0,c.addLocale)(D,e,null==A?void 0:A.defaultLocale))}return N?a.default.cloneElement(r,B):(0,i.jsx)("a",{...R,...B,children:n})});("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)},5921:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(5271),i=n(3547),a="function"==typeof IntersectionObserver,o=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!a,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=o.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),o.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),o.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("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)},2843:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(6867);let r=n(8128),i=n(1825);function a(e){return void 0!==e.default}function o(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 s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:x,width:g,height:v,fill:y=!1,style:b,overrideSrc:w,onLoad:_,onLoadingComplete:k,placeholder:j="empty",blurDataURL:E,fetchPriority:O,decoding:T="async",layout:C,objectFit:S,objectPosition:N,lazyBoundary:R,lazyRoot:A,...I}=e,{imgConf:L,showAltText:P,blurComplete:M,defaultLoader:Z}=t,F=L||i.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);s={...F,allSizes:e,deviceSizes:t}}if(void 0===Z)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let D=I.loader||Z;delete I.loader,delete I.srcSet;let z="__next_img_default"in D;if(z){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=D;D=t=>{let{config:n,...r}=t;return e(r)}}if(C){"fill"===C&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[C];t&&!d&&(d=t)}let $="",U=o(g),W=o(v);if("object"==typeof(n=c)&&(a(n)||void 0!==n.src)){let e=a(c)?c.default:c;if(!e.src)throw 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));if(!e.height||!e.width)throw 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));if(l=e.blurWidth,u=e.blurHeight,E=E||e.blurDataURL,$=e.src,!y){if(U||W){if(U&&!W){let t=U/e.width;W=Math.round(e.height*t)}else if(!U&&W){let t=W/e.height;U=Math.round(e.width*t)}}else U=e.width,W=e.height}}let H=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:$)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,H=!1),s.unoptimized&&(f=!0),z&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(O="high");let G=o(x),V=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:S,objectPosition:N}:{},P?{}:{color:"transparent"},b),B=M||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:U,heightInt:W,blurWidth:l,blurHeight:u,blurDataURL:E||"",objectFit:V.objectFit})+'")':'url("'+j+'")',q=B?{backgroundSize:V.objectFit||"cover",backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:B}:{},K=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:a,sizes:o,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,o),c=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:a,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:a,width:l[c]})}}({config:s,src:c,unoptimized:f,width:U,quality:G,sizes:d,loader:D});return{props:{...I,loading:H?"lazy":p,fetchPriority:O,width:U,height:W,decoding:T,className:m,style:{...V,...q},sizes:K.sizes,srcSet:K.srcSet,src:w||K.src},meta:{unoptimized:f,priority:h,placeholder:j,fill:y}}}},8128:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:o}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%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='"+(u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},5351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return s}});let r=n(2430),i=n(2843),a=n(3179),o=r._(n(72));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/clover-iiif/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=a.Image},72:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},1259:function(e,t,n){"use strict";var r=n(9927);n(725);var i=n(5271),a=i&&"object"==typeof i&&"default"in i?i:{default:i},o=void 0!==r&&r.env&&!0,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,a=void 0===i?o:i;u(s(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",u("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t>>0},d={};function f(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return d[r]||(d[r]="jsx-"+c(e+"-"+n)),d[r]}function h(e,t){var n=e+t;return d[n]||(d[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[n]}var p=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,a=void 0!==i&&i;this._sheet=r||new l({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),r&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var a=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=a,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var i=f(r,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return h(i,e)}):[h(i,t)]}}return{styleId:f(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var x=a.default.useInsertionEffect||a.default.useLayoutEffect,g=new p;function v(e){var t=g||i.useContext(m);return t&&x(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}v.dynamic=function(e){return e.map(function(e){return f(e[0],e[1])}).join(" ")},t.style=v},9763:function(e,t,n){"use strict";e.exports=n(1259).style},725:function(){},5736:function(){},3770:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),a=s,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,a=s,o=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r,i="",a=!1,o=arguments.length-1;o>=-1&&!a;o--)o>=0?r=arguments[o]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,a=47===r.charCodeAt(0));return(i=n(i,!a),a)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else o>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=a;++d)(d===a||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,a=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,a=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!o){i=r+1;break}}else -1===l&&(o=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(a=r):(s=-1,a=l))}return i===a?a=l:-1===a&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else -1===a&&(o=!1,a=r+1);return -1===a?"":e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!a){r=s+1;break}continue}-1===i&&(a=!1,i=s+1),46===l?-1===n?n=s:1!==o&&(o=1):-1!==n&&(o=-1)}return -1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),a=47===i;a?(r.root="/",n=1):n=0;for(var o=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===o?o=c:1!==d&&(d=1):-1!==o&&(d=-1)}return -1===o||-1===l||0===d||1===d&&o===l-1&&o===s+1?-1!==l&&(0===s&&a?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&a?(r.name=e.slice(1,o),r.base=e.slice(1,l)):(r.name=e.slice(s,o),r.base=e.slice(s,l)),r.ext=e.slice(o,l)),s>0?r.dir=e.slice(0,s-1):a&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},o=!0;try{t[e](a,a.exports,r),o=!1}finally{o&&delete n[e]}return a.exports}r.ab="//";var i=r(114);e.exports=i}()},3185:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n{t(!0)},[]),e}var I=n(1779),L=()=>{let{locale:e=I.ZW,asPath:t,route:n}=(0,S.useRouter)();return(0,N.useMemo)(()=>{let{pathname:r}=new URL(I.hV.has(n)?n:t,"https://nextra.vercel.app");return(e?r.replace(RegExp(`\\.${e}(\\/|$)`),"$1"):r).replace(/\.html$/,"").replace(/\/index(\/|$)/,"$1").replace(/\/$/,"")||"/"},[t,e,n])},P=n(7212),M=n(5418);(p=_||(_={})).assertEqual=e=>e,p.assertIs=function(e){},p.assertNever=function(e){throw Error()},p.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},p.getValidEnumValues=e=>{let t=p.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return p.objectValues(n)},p.objectValues=e=>p.objectKeys(e).map(function(t){return e[t]}),p.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},p.find=(e,t)=>{for(let n of e)if(t(n))return n},p.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,p.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},p.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(k||(k={})).mergeShapes=(e,t)=>({...e,...t});let Z=_.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),F=e=>{switch(typeof e){case"undefined":return Z.undefined;case"string":return Z.string;case"number":return isNaN(e)?Z.nan:Z.number;case"boolean":return Z.boolean;case"function":return Z.function;case"bigint":return Z.bigint;case"symbol":return Z.symbol;case"object":if(Array.isArray(e))return Z.array;if(null===e)return Z.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return Z.promise;if("undefined"!=typeof Map&&e instanceof Map)return Z.map;if("undefined"!=typeof Set&&e instanceof Set)return Z.set;if("undefined"!=typeof Date&&e instanceof Date)return Z.date;return Z.object;default:return Z.unknown}},D=_.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class z extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}z.create=e=>new z(e);let $=(e,t)=>{let n;switch(e.code){case D.invalid_type:n=e.received===Z.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case D.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,_.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:n=`Unrecognized key(s) in object: ${_.joinValues(e.keys,", ")}`;break;case D.invalid_union:n="Invalid input";break;case D.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${_.joinValues(e.options)}`;break;case D.invalid_enum_value:n=`Invalid enum value. Expected ${_.joinValues(e.options)}, received '${e.received}'`;break;case D.invalid_arguments:n="Invalid function arguments";break;case D.invalid_return_type:n="Invalid function return type";break;case D.invalid_date:n="Invalid date";break;case D.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:_.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case D.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case D.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case D.custom:n="Invalid input";break;case D.invalid_intersection_types:n="Intersection results could not be merged";break;case D.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case D.not_finite:n="Number must be finite";break;default:n=t.defaultError,_.assertNever(e)}return{message:n}},U=$;function W(){return U}let H=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function G(e,t){let n=W(),r=H({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===$?void 0:$].filter(e=>!!e)});e.common.issues.push(r)}class V{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return B;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return V.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return B;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let B=Object.freeze({status:"aborted"}),q=e=>({status:"dirty",value:e}),K=e=>({status:"valid",value:e}),Y=e=>"aborted"===e.status,Q=e=>"dirty"===e.status,J=e=>"valid"===e.status,X=e=>"undefined"!=typeof Promise&&e instanceof Promise;function ee(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function et(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}"function"==typeof SuppressedError&&SuppressedError,(m=j||(j={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},m.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class en{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let er=(e,t)=>{if(J(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new z(e.common.issues);return this._error=t,this._error}}};function ei(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var a,o;let{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!==(a=null!=s?s:r)&&void 0!==a?a:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(o=null!=s?s:n)&&void 0!==o?o:i.defaultError}},description:i}}class ea{get description(){return this._def.description}_getType(e){return F(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:F(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new V,ctx:{common:e.parent.common,data:e.data,parsedType:F(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(X(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:F(e)},i=this._parseSync({data:e,path:r.path,parent:r});return er(r,i)}"~validate"(e){var t,n;let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:F(e)};if(!this["~standard"].async)try{let t=this._parseSync({data:e,path:[],parent:r});return J(t)?{value:t.value}:{issues:r.common.issues}}catch(e){(null===(n=null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(e=>J(e)?{value:e.value}:{issues:r.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:F(e)},r=this._parse({data:e,path:n.path,parent:n});return er(n,await (X(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:D.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new eX({schema:this,typeName:T.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return e0.create(this,this._def)}nullable(){return e1.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return eM.create(this)}promise(){return eJ.create(this,this._def)}or(e){return eF.create([this,e],this._def)}and(e){return e$.create(this,e,this._def)}transform(e){return new eX({...ei(this._def),schema:this,typeName:T.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new e2({...ei(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:T.ZodDefault})}brand(){return new e3({typeName:T.ZodBranded,type:this,...ei(this._def)})}catch(e){return new e4({...ei(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:T.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return e6.create(this,e)}readonly(){return e9.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let eo=/^c[^\s-]{8,}$/i,es=/^[0-9a-z]+$/,el=/^[0-9A-HJKMNP-TV-Z]{26}$/i,eu=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ec=/^[a-z0-9_-]{21}$/i,ed=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ef=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,eh=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ep=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,em=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,eg=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ev=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ey=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,eb="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ew=RegExp(`^${eb}$`);function e_(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function ek(e){let t=`${eb}T${e_(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)}class ej extends ea{_parse(e){var t,n,i,a;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Z.string){let t=this._getOrReturnCtx(e);return G(t,{code:D.invalid_type,expected:Z.string,received:t.parsedType}),B}let s=new V;for(let l of this._def.checks)if("min"===l.kind)e.data.lengthl.value&&(G(o=this._getOrReturnCtx(e,o),{code:D.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if("length"===l.kind){let t=e.data.length>l.value,n=e.data.lengthe.test(t),{validation:t,code:D.invalid_string,...j.errToObj(n)})}_addCheck(e){return new ej({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...j.errToObj(e)})}url(e){return this._addCheck({kind:"url",...j.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...j.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...j.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...j.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...j.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...j.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...j.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...j.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...j.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...j.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...j.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...j.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...j.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...j.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...j.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...j.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...j.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...j.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...j.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...j.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...j.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...j.errToObj(t)})}nonempty(e){return this.min(1,j.errToObj(e))}trim(){return new ej({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ej({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ej({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new ej({checks:[],typeName:T.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...ei(e)})};class eE extends ea{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Z.number){let t=this._getOrReturnCtx(e);return G(t,{code:D.invalid_type,expected:Z.number,received:t.parsedType}),B}let n=new V;for(let r of this._def.checks)"int"===r.kind?_.isInteger(e.data)||(G(t=this._getOrReturnCtx(e,t),{code:D.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(G(t=this._getOrReturnCtx(e,t),{code:D.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(e.data,r.value)&&(G(t=this._getOrReturnCtx(e,t),{code:D.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(G(t=this._getOrReturnCtx(e,t),{code:D.not_finite,message:r.message}),n.dirty()):_.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,j.toString(t))}gt(e,t){return this.setLimit("min",e,!1,j.toString(t))}lte(e,t){return this.setLimit("max",e,!0,j.toString(t))}lt(e,t){return this.setLimit("max",e,!1,j.toString(t))}setLimit(e,t,n,r){return new eE({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:j.toString(r)}]})}_addCheck(e){return new eE({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:j.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:j.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:j.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:j.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:j.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:j.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:j.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:j.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:j.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&_.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.valuenew eE({checks:[],typeName:T.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...ei(e)});class eO extends ea{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch(t){return this._getInvalidInput(e)}if(this._getType(e)!==Z.bigint)return this._getInvalidInput(e);let n=new V;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(G(t=this._getOrReturnCtx(e,t),{code:D.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(G(t=this._getOrReturnCtx(e,t),{code:D.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):_.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return G(t,{code:D.invalid_type,expected:Z.bigint,received:t.parsedType}),B}gte(e,t){return this.setLimit("min",e,!0,j.toString(t))}gt(e,t){return this.setLimit("min",e,!1,j.toString(t))}lte(e,t){return this.setLimit("max",e,!0,j.toString(t))}lt(e,t){return this.setLimit("max",e,!1,j.toString(t))}setLimit(e,t,n,r){return new eO({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:j.toString(r)}]})}_addCheck(e){return new eO({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:j.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:j.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:j.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:j.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:j.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new eO({checks:[],typeName:T.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...ei(e)})};class eT extends ea{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Z.boolean){let t=this._getOrReturnCtx(e);return G(t,{code:D.invalid_type,expected:Z.boolean,received:t.parsedType}),B}return K(e.data)}}eT.create=e=>new eT({typeName:T.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...ei(e)});class eC extends ea{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Z.date){let t=this._getOrReturnCtx(e);return G(t,{code:D.invalid_type,expected:Z.date,received:t.parsedType}),B}if(isNaN(e.data.getTime()))return G(this._getOrReturnCtx(e),{code:D.invalid_date}),B;let n=new V;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(G(t=this._getOrReturnCtx(e,t),{code:D.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):_.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new eC({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:j.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:j.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew eC({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:T.ZodDate,...ei(e)});class eS extends ea{_parse(e){if(this._getType(e)!==Z.symbol){let t=this._getOrReturnCtx(e);return G(t,{code:D.invalid_type,expected:Z.symbol,received:t.parsedType}),B}return K(e.data)}}eS.create=e=>new eS({typeName:T.ZodSymbol,...ei(e)});class eN extends ea{_parse(e){if(this._getType(e)!==Z.undefined){let t=this._getOrReturnCtx(e);return G(t,{code:D.invalid_type,expected:Z.undefined,received:t.parsedType}),B}return K(e.data)}}eN.create=e=>new eN({typeName:T.ZodUndefined,...ei(e)});class eR extends ea{_parse(e){if(this._getType(e)!==Z.null){let t=this._getOrReturnCtx(e);return G(t,{code:D.invalid_type,expected:Z.null,received:t.parsedType}),B}return K(e.data)}}eR.create=e=>new eR({typeName:T.ZodNull,...ei(e)});class eA extends ea{constructor(){super(...arguments),this._any=!0}_parse(e){return K(e.data)}}eA.create=e=>new eA({typeName:T.ZodAny,...ei(e)});class eI extends ea{constructor(){super(...arguments),this._unknown=!0}_parse(e){return K(e.data)}}eI.create=e=>new eI({typeName:T.ZodUnknown,...ei(e)});class eL extends ea{_parse(e){let t=this._getOrReturnCtx(e);return G(t,{code:D.invalid_type,expected:Z.never,received:t.parsedType}),B}}eL.create=e=>new eL({typeName:T.ZodNever,...ei(e)});class eP extends ea{_parse(e){if(this._getType(e)!==Z.undefined){let t=this._getOrReturnCtx(e);return G(t,{code:D.invalid_type,expected:Z.void,received:t.parsedType}),B}return K(e.data)}}eP.create=e=>new eP({typeName:T.ZodVoid,...ei(e)});class eM extends ea{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==Z.array)return G(t,{code:D.invalid_type,expected:Z.array,received:t.parsedType}),B;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(G(t,{code:D.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new en(t,e,t.path,n)))).then(e=>V.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new en(t,e,t.path,n)));return V.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new eM({...this._def,minLength:{value:e,message:j.toString(t)}})}max(e,t){return new eM({...this._def,maxLength:{value:e,message:j.toString(t)}})}length(e,t){return new eM({...this._def,exactLength:{value:e,message:j.toString(t)}})}nonempty(e){return this.min(1,e)}}eM.create=(e,t)=>new eM({type:e,minLength:null,maxLength:null,exactLength:null,typeName:T.ZodArray,...ei(t)});class eZ extends ea{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=_.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Z.object){let t=this._getOrReturnCtx(e);return G(t,{code:D.invalid_type,expected:Z.object,received:t.parsedType}),B}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof eL&&"strip"===this._def.unknownKeys))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new en(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof eL){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&(G(n,{code:D.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new en(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>V.mergeObjectSync(t,e)):V.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return j.errToObj,new eZ({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,o;let s=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=j.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new eZ({...this._def,unknownKeys:"strip"})}passthrough(){return new eZ({...this._def,unknownKeys:"passthrough"})}extend(e){return new eZ({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new eZ({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:T.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new eZ({...this._def,catchall:e})}pick(e){let t={};return _.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new eZ({...this._def,shape:()=>t})}omit(e){let t={};return _.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new eZ({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof eZ){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=e0.create(e(i))}return new eZ({...t._def,shape:()=>n})}return t instanceof eM?new eM({...t._def,type:e(t.element)}):t instanceof e0?e0.create(e(t.unwrap())):t instanceof e1?e1.create(e(t.unwrap())):t instanceof eU?eU.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return _.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new eZ({...this._def,shape:()=>t})}required(e){let t={};return _.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof e0;)e=e._def.innerType;t[n]=e}}),new eZ({...this._def,shape:()=>t})}keyof(){return eK(_.objectKeys(this.shape))}}eZ.create=(e,t)=>new eZ({shape:()=>e,unknownKeys:"strip",catchall:eL.create(),typeName:T.ZodObject,...ei(t)}),eZ.strictCreate=(e,t)=>new eZ({shape:()=>e,unknownKeys:"strict",catchall:eL.create(),typeName:T.ZodObject,...ei(t)}),eZ.lazycreate=(e,t)=>new eZ({shape:e,unknownKeys:"strip",catchall:eL.create(),typeName:T.ZodObject,...ei(t)});class eF extends ea{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new z(e.ctx.common.issues));return G(t,{code:D.invalid_union,unionErrors:n}),B});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new z(e));return G(t,{code:D.invalid_union,unionErrors:i}),B}}get options(){return this._def.options}}eF.create=(e,t)=>new eF({options:e,typeName:T.ZodUnion,...ei(t)});let eD=e=>{if(e instanceof eB)return eD(e.schema);if(e instanceof eX)return eD(e.innerType());if(e instanceof eq)return[e.value];if(e instanceof eY)return e.options;if(e instanceof eQ)return _.objectValues(e.enum);if(e instanceof e2)return eD(e._def.innerType);if(e instanceof eN)return[void 0];else if(e instanceof eR)return[null];else if(e instanceof e0)return[void 0,...eD(e.unwrap())];else if(e instanceof e1)return[null,...eD(e.unwrap())];else if(e instanceof e3)return eD(e.unwrap());else if(e instanceof e9)return eD(e.unwrap());else if(e instanceof e4)return eD(e._def.innerType);else return[]};class ez extends ea{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Z.object)return G(t,{code:D.invalid_type,expected:Z.object,received:t.parsedType}),B;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(G(t,{code:D.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),B)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=eD(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new ez({typeName:T.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...ei(n)})}}class e$ extends ea{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(Y(e)||Y(r))return B;let i=function e(t,n){let r=F(t),i=F(n);if(t===n)return{valid:!0,data:t};if(r===Z.object&&i===Z.object){let r=_.objectKeys(n),i=_.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===Z.array&&i===Z.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;ir(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}e$.create=(e,t,n)=>new e$({left:e,right:t,typeName:T.ZodIntersection,...ei(n)});class eU extends ea{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Z.array)return G(n,{code:D.invalid_type,expected:Z.array,received:n.parsedType}),B;if(n.data.lengththis._def.items.length&&(G(n,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new en(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>V.mergeArray(t,e)):V.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new eU({...this._def,rest:e})}}eU.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eU({items:e,typeName:T.ZodTuple,rest:null,...ei(t)})};class eW extends ea{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Z.object)return G(n,{code:D.invalid_type,expected:Z.object,received:n.parsedType}),B;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new en(n,e,n.path,e)),value:a._parse(new en(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?V.mergeObjectAsync(t,r):V.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new eW(t instanceof ea?{keyType:e,valueType:t,typeName:T.ZodRecord,...ei(n)}:{keyType:ej.create(),valueType:e,typeName:T.ZodRecord,...ei(t)})}}class eH extends ea{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Z.map)return G(n,{code:D.invalid_type,expected:Z.map,received:n.parsedType}),B;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new en(n,e,n.path,[a,"key"])),value:i._parse(new en(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return B;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return B;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}eH.create=(e,t,n)=>new eH({valueType:t,keyType:e,typeName:T.ZodMap,...ei(n)});class eG extends ea{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Z.set)return G(n,{code:D.invalid_type,expected:Z.set,received:n.parsedType}),B;let r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(G(n,{code:D.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return B;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new en(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new eG({...this._def,minSize:{value:e,message:j.toString(t)}})}max(e,t){return new eG({...this._def,maxSize:{value:e,message:j.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eG.create=(e,t)=>new eG({valueType:e,minSize:null,maxSize:null,typeName:T.ZodSet,...ei(t)});class eV extends ea{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Z.function)return G(t,{code:D.invalid_type,expected:Z.function,received:t.parsedType}),B;function n(e,n){return H({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,W(),$].filter(e=>!!e),issueData:{code:D.invalid_arguments,argumentsError:n}})}function r(e,n){return H({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,W(),$].filter(e=>!!e),issueData:{code:D.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof eJ){let e=this;return K(async function(...t){let o=new z([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),l=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw o.addIssue(r(l,e)),o})})}{let e=this;return K(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new z([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new z([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eV({...this._def,args:eU.create(e).rest(eI.create())})}returns(e){return new eV({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new eV({args:e||eU.create([]).rest(eI.create()),returns:t||eI.create(),typeName:T.ZodFunction,...ei(n)})}}class eB extends ea{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eB.create=(e,t)=>new eB({getter:e,typeName:T.ZodLazy,...ei(t)});class eq extends ea{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return G(t,{received:t.data,code:D.invalid_literal,expected:this._def.value}),B}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eK(e,t){return new eY({values:e,typeName:T.ZodEnum,...ei(t)})}eq.create=(e,t)=>new eq({value:e,typeName:T.ZodLiteral,...ei(t)});class eY extends ea{constructor(){super(...arguments),E.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return G(t,{expected:_.joinValues(n),received:t.parsedType,code:D.invalid_type}),B}if(ee(this,E,"f")||et(this,E,new Set(this._def.values),"f"),!ee(this,E,"f").has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return G(t,{received:t.data,code:D.invalid_enum_value,options:n}),B}return K(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eY.create(e,{...this._def,...t})}exclude(e,t=this._def){return eY.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}E=new WeakMap,eY.create=eK;class eQ extends ea{constructor(){super(...arguments),O.set(this,void 0)}_parse(e){let t=_.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Z.string&&n.parsedType!==Z.number){let e=_.objectValues(t);return G(n,{expected:_.joinValues(e),received:n.parsedType,code:D.invalid_type}),B}if(ee(this,O,"f")||et(this,O,new Set(_.getValidEnumValues(this._def.values)),"f"),!ee(this,O,"f").has(e.data)){let e=_.objectValues(t);return G(n,{received:n.data,code:D.invalid_enum_value,options:e}),B}return K(e.data)}get enum(){return this._def.values}}O=new WeakMap,eQ.create=(e,t)=>new eQ({values:e,typeName:T.ZodNativeEnum,...ei(t)});class eJ extends ea{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==Z.promise&&!1===t.common.async?(G(t,{code:D.invalid_type,expected:Z.promise,received:t.parsedType}),B):K((t.parsedType===Z.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eJ.create=(e,t)=>new eJ({type:e,typeName:T.ZodPromise,...ei(t)});class eX extends ea{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===T.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{G(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return B;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?B:"dirty"===r.status||"dirty"===t.value?q(r.value):r});{if("aborted"===t.value)return B;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?B:"dirty"===r.status||"dirty"===t.value?q(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?B:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?B:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>J(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!J(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}_.assertNever(r)}}eX.create=(e,t,n)=>new eX({schema:e,typeName:T.ZodEffects,effect:t,...ei(n)}),eX.createWithPreprocess=(e,t,n)=>new eX({schema:t,effect:{type:"preprocess",transform:e},typeName:T.ZodEffects,...ei(n)});class e0 extends ea{_parse(e){return this._getType(e)===Z.undefined?K(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e0.create=(e,t)=>new e0({innerType:e,typeName:T.ZodOptional,...ei(t)});class e1 extends ea{_parse(e){return this._getType(e)===Z.null?K(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e1.create=(e,t)=>new e1({innerType:e,typeName:T.ZodNullable,...ei(t)});class e2 extends ea{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===Z.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}e2.create=(e,t)=>new e2({innerType:e,typeName:T.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...ei(t)});class e4 extends ea{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return X(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new z(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new z(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}e4.create=(e,t)=>new e4({innerType:e,typeName:T.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...ei(t)});class e5 extends ea{_parse(e){if(this._getType(e)!==Z.nan){let t=this._getOrReturnCtx(e);return G(t,{code:D.invalid_type,expected:Z.nan,received:t.parsedType}),B}return{status:"valid",value:e.data}}}e5.create=e=>new e5({typeName:T.ZodNaN,...ei(e)});let e7=Symbol("zod_brand");class e3 extends ea{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class e6 extends ea{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?B:"dirty"===e.status?(t.dirty(),q(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?B:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new e6({in:e,out:t,typeName:T.ZodPipeline})}}class e9 extends ea{_parse(e){let t=this._def.innerType._parse(e),n=e=>(J(e)&&(e.value=Object.freeze(e.value)),e);return X(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}function e8(e,t={},n){return e?eA.create().superRefine((r,i)=>{var a,o;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(o=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===o||o;i.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:s})}}):eA.create()}e9.create=(e,t)=>new e9({innerType:e,typeName:T.ZodReadonly,...ei(t)});let te={object:eZ.lazycreate};(x=T||(T={})).ZodString="ZodString",x.ZodNumber="ZodNumber",x.ZodNaN="ZodNaN",x.ZodBigInt="ZodBigInt",x.ZodBoolean="ZodBoolean",x.ZodDate="ZodDate",x.ZodSymbol="ZodSymbol",x.ZodUndefined="ZodUndefined",x.ZodNull="ZodNull",x.ZodAny="ZodAny",x.ZodUnknown="ZodUnknown",x.ZodNever="ZodNever",x.ZodVoid="ZodVoid",x.ZodArray="ZodArray",x.ZodObject="ZodObject",x.ZodUnion="ZodUnion",x.ZodDiscriminatedUnion="ZodDiscriminatedUnion",x.ZodIntersection="ZodIntersection",x.ZodTuple="ZodTuple",x.ZodRecord="ZodRecord",x.ZodMap="ZodMap",x.ZodSet="ZodSet",x.ZodFunction="ZodFunction",x.ZodLazy="ZodLazy",x.ZodLiteral="ZodLiteral",x.ZodEnum="ZodEnum",x.ZodEffects="ZodEffects",x.ZodNativeEnum="ZodNativeEnum",x.ZodOptional="ZodOptional",x.ZodNullable="ZodNullable",x.ZodDefault="ZodDefault",x.ZodCatch="ZodCatch",x.ZodPromise="ZodPromise",x.ZodBranded="ZodBranded",x.ZodPipeline="ZodPipeline",x.ZodReadonly="ZodReadonly";let tt=ej.create,tn=eE.create,tr=e5.create,ti=eO.create,ta=eT.create,to=eC.create,ts=eS.create,tl=eN.create,tu=eR.create,tc=eA.create,td=eI.create,tf=eL.create,th=eP.create,tp=eM.create,tm=eZ.create,tx=eZ.strictCreate,tg=eF.create,tv=ez.create,ty=e$.create,tb=eU.create,tw=eW.create,t_=eH.create,tk=eG.create,tj=eV.create,tE=eB.create,tO=eq.create,tT=eY.create,tC=eQ.create,tS=eJ.create,tN=eX.create,tR=e0.create,tA=e1.create,tI=eX.createWithPreprocess,tL=e6.create;var tP=Object.freeze({__proto__:null,defaultErrorMap:$,setErrorMap:function(e){U=e},getErrorMap:W,makeIssue:H,EMPTY_PATH:[],addIssueToContext:G,ParseStatus:V,INVALID:B,DIRTY:q,OK:K,isAborted:Y,isDirty:Q,isValid:J,isAsync:X,get util(){return _},get objectUtil(){return k},ZodParsedType:Z,getParsedType:F,ZodType:ea,datetimeRegex:ek,ZodString:ej,ZodNumber:eE,ZodBigInt:eO,ZodBoolean:eT,ZodDate:eC,ZodSymbol:eS,ZodUndefined:eN,ZodNull:eR,ZodAny:eA,ZodUnknown:eI,ZodNever:eL,ZodVoid:eP,ZodArray:eM,ZodObject:eZ,ZodUnion:eF,ZodDiscriminatedUnion:ez,ZodIntersection:e$,ZodTuple:eU,ZodRecord:eW,ZodMap:eH,ZodSet:eG,ZodFunction:eV,ZodLazy:eB,ZodLiteral:eq,ZodEnum:eY,ZodNativeEnum:eQ,ZodPromise:eJ,ZodEffects:eX,ZodTransformer:eX,ZodOptional:e0,ZodNullable:e1,ZodDefault:e2,ZodCatch:e4,ZodNaN:e5,BRAND:e7,ZodBranded:e3,ZodPipeline:e6,ZodReadonly:e9,custom:e8,Schema:ea,ZodSchema:ea,late:te,get ZodFirstPartyTypeKind(){return T},coerce:{string:e=>ej.create({...e,coerce:!0}),number:e=>eE.create({...e,coerce:!0}),boolean:e=>eT.create({...e,coerce:!0}),bigint:e=>eO.create({...e,coerce:!0}),date:e=>eC.create({...e,coerce:!0})},any:tc,array:tp,bigint:ti,boolean:ta,date:to,discriminatedUnion:tv,effect:tN,enum:tT,function:tj,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>e8(t=>t instanceof e,t),intersection:ty,lazy:tE,literal:tO,map:t_,nan:tr,nativeEnum:tC,never:tf,null:tu,nullable:tA,number:tn,object:tm,oboolean:()=>ta().optional(),onumber:()=>tn().optional(),optional:tR,ostring:()=>tt().optional(),pipeline:tL,preprocess:tI,promise:tS,record:tw,set:tk,strictObject:tx,string:tt,symbol:ts,transformer:tN,tuple:tb,undefined:tl,union:tg,unknown:td,void:th,NEVER:B,ZodIssueCode:D,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:z}),tM=n(2618),tZ=n.n(tM);n(5983);var tF=n(2676),tD=n(835),tz={breadcrumb:!0,collapsed:!1,footer:!0,layout:"default",navbar:!0,pagination:!0,sidebar:!0,timestamp:!0,toc:!0,typesetting:"default"},t$=tP.strictObject({breadcrumb:tP.boolean(),collapsed:tP.boolean(),footer:tP.boolean(),layout:tP.enum(["default","full","raw"]),navbar:tP.boolean(),pagination:tP.boolean(),sidebar:tP.boolean(),timestamp:tP.boolean(),toc:tP.boolean(),typesetting:tP.enum(["default","article"])}),tU=tP.enum(["normal","hidden","children"]),tW=tP.string(),tH=tP.strictObject({href:tP.string(),newWindow:tP.boolean(),title:tW}),tG=tP.strictObject({display:tU.optional(),items:tP.record(tH.partial({href:!0,newWindow:!0})),title:tW,type:tP.literal("menu")}),tV=tP.strictObject({title:tW.optional(),type:tP.literal("separator")}),tB=tH.extend({display:tU,theme:t$,title:tW,type:tP.enum(["page","doc"])}).deepPartial();tP.string().or(tG).or(tV).or(tB);var tq=n(227),tK=n.n(tq);function tY(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tQ(e){var t=tY(e).Element;return e instanceof t||e instanceof Element}function tJ(e){var t=tY(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tX(e){if("undefined"==typeof ShadowRoot)return!1;var t=tY(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var t0=Math.max,t1=Math.min,t2=Math.round;function t4(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function t5(){return!/^((?!chrome|android).)*safari/i.test(t4())}function t7(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&tJ(e)&&(i=e.offsetWidth>0&&t2(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&t2(r.height)/e.offsetHeight||1);var o=(tQ(e)?tY(e):window).visualViewport,s=!t5()&&n,l=(r.left+(s&&o?o.offsetLeft:0))/i,u=(r.top+(s&&o?o.offsetTop:0))/a,c=r.width/i,d=r.height/a;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function t3(e){var t=tY(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function t6(e){return e?(e.nodeName||"").toLowerCase():null}function t9(e){return((tQ(e)?e.ownerDocument:e.document)||window.document).documentElement}function t8(e){return t7(t9(e)).left+t3(e).scrollLeft}function ne(e){return tY(e).getComputedStyle(e)}function nt(e){var t=ne(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function nn(e){var t=t7(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function nr(e){return"html"===t6(e)?e:e.assignedSlot||e.parentNode||(tX(e)?e.host:null)||t9(e)}function ni(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(t6(t))>=0?t.ownerDocument.body:tJ(t)&&nt(t)?t:e(nr(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=tY(r),o=i?[a].concat(a.visualViewport||[],nt(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(ni(nr(o)))}function na(e){return tJ(e)&&"fixed"!==ne(e).position?e.offsetParent:null}function no(e){for(var t=tY(e),n=na(e);n&&["table","td","th"].indexOf(t6(n))>=0&&"static"===ne(n).position;)n=na(n);return n&&("html"===t6(n)||"body"===t6(n)&&"static"===ne(n).position)?t:n||function(e){var t=/firefox/i.test(t4());if(/Trident/i.test(t4())&&tJ(e)&&"fixed"===ne(e).position)return null;var n=nr(e);for(tX(n)&&(n=n.host);tJ(n)&&0>["html","body"].indexOf(t6(n));){var r=ne(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var ns="bottom",nl="right",nu="left",nc="auto",nd=["top",ns,nl,nu],nf="start",nh="viewport",np="popper",nm=nd.reduce(function(e,t){return e.concat([t+"-"+nf,t+"-end"])},[]),nx=[].concat(nd,[nc]).reduce(function(e,t){return e.concat([t,t+"-"+nf,t+"-end"])},[]),ng=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],nv={placement:"bottom",modifiers:[],strategy:"absolute"};function ny(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function nj(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?nw(i):null,o=i?n_(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case"top":t={x:s,y:n.y-r.height};break;case ns:t={x:s,y:n.y+n.height};break;case nl:t={x:n.x+n.width,y:l};break;case nu:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?nk(a):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case nf:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var nE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nO(e){var t,n,r,i,a,o,s,l=e.popper,u=e.popperRect,c=e.placement,d=e.variation,f=e.offsets,h=e.position,p=e.gpuAcceleration,m=e.adaptive,x=e.roundOffsets,g=e.isFixed,v=f.x,y=void 0===v?0:v,b=f.y,w=void 0===b?0:b,_="function"==typeof x?x({x:y,y:w}):{x:y,y:w};y=_.x,w=_.y;var k=f.hasOwnProperty("x"),j=f.hasOwnProperty("y"),E=nu,O="top",T=window;if(m){var C=no(l),S="clientHeight",N="clientWidth";C===tY(l)&&"static"!==ne(C=t9(l)).position&&"absolute"===h&&(S="scrollHeight",N="scrollWidth"),("top"===c||(c===nu||c===nl)&&"end"===d)&&(O=ns,w-=(g&&C===T&&T.visualViewport?T.visualViewport.height:C[S])-u.height,w*=p?1:-1),(c===nu||("top"===c||c===ns)&&"end"===d)&&(E=nl,y-=(g&&C===T&&T.visualViewport?T.visualViewport.width:C[N])-u.width,y*=p?1:-1)}var R=Object.assign({position:h},m&&nE),A=!0===x?(t={x:y,y:w},n=tY(l),r=t.x,i=t.y,{x:t2(r*(a=n.devicePixelRatio||1))/a||0,y:t2(i*a)/a||0}):{x:y,y:w};return(y=A.x,w=A.y,p)?Object.assign({},R,((s={})[O]=j?"0":"",s[E]=k?"0":"",s.transform=1>=(T.devicePixelRatio||1)?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",s)):Object.assign({},R,((o={})[O]=j?w+"px":"",o[E]=k?y+"px":"",o.transform="",o))}var nT={left:"right",right:"left",bottom:"top",top:"bottom"};function nC(e){return e.replace(/left|right|bottom|top/g,function(e){return nT[e]})}var nS={start:"end",end:"start"};function nN(e){return e.replace(/start|end/g,function(e){return nS[e]})}function nR(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&tX(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function nA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nI(e,t,n){var r,i,a,o,s,l,u,c,d,f;return t===nh?nA(function(e,t){var n=tY(e),r=t9(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var u=t5();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+t8(e),y:l}}(e,n)):tQ(t)?((r=t7(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):nA((i=t9(e),o=t9(i),s=t3(i),l=null==(a=i.ownerDocument)?void 0:a.body,u=t0(o.scrollWidth,o.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=t0(o.scrollHeight,o.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-s.scrollLeft+t8(i),f=-s.scrollTop,"rtl"===ne(l||o).direction&&(d+=t0(o.clientWidth,l?l.clientWidth:0)-u),{width:u,height:c,x:d,y:f}))}function nL(){return{top:0,right:0,bottom:0,left:0}}function nP(e){return Object.assign({},nL(),e)}function nM(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function nZ(e,t){void 0===t&&(t={});var n,r,i,a,o,s,l,u,c=t,d=c.placement,f=void 0===d?e.placement:d,h=c.strategy,p=void 0===h?e.strategy:h,m=c.boundary,x=c.rootBoundary,g=c.elementContext,v=void 0===g?np:g,y=c.altBoundary,b=c.padding,w=void 0===b?0:b,_=nP("number"!=typeof w?w:nM(w,nd)),k=e.rects.popper,j=e.elements[void 0!==y&&y?v===np?"reference":np:v],E=(n=tQ(j)?j:j.contextElement||t9(e.elements.popper),r=void 0===m?"clippingParents":m,i=void 0===x?nh:x,l=(s=[].concat("clippingParents"===r?(a=ni(nr(n)),tQ(o=["absolute","fixed"].indexOf(ne(n).position)>=0&&tJ(n)?no(n):n)?a.filter(function(e){return tQ(e)&&nR(e,o)&&"body"!==t6(e)}):[]):[].concat(r),[i]))[0],(u=s.reduce(function(e,t){var r=nI(n,t,p);return e.top=t0(r.top,e.top),e.right=t1(r.right,e.right),e.bottom=t1(r.bottom,e.bottom),e.left=t0(r.left,e.left),e},nI(n,l,p))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),O=t7(e.elements.reference),T=nj({reference:O,element:k,strategy:"absolute",placement:f}),C=nA(Object.assign({},k,T)),S=v===np?C:O,N={top:E.top-S.top+_.top,bottom:S.bottom-E.bottom+_.bottom,left:E.left-S.left+_.left,right:S.right-E.right+_.right},R=e.modifiersData.offset;if(v===np&&R){var A=R[f];Object.keys(N).forEach(function(e){var t=[nl,ns].indexOf(e)>=0?1:-1,n=["top",ns].indexOf(e)>=0?"y":"x";N[e]+=A[n]*t})}return N}function nF(e,t,n){return t0(e,t1(t,n))}function nD(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function nz(e){return["top",nl,ns,nu].some(function(t){return e[t]>=0})}var n$=(y=void 0===(v=(g={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,o=r.resize,s=void 0===o||o,l=tY(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(e){e.addEventListener("scroll",n.update,nb)}),s&&l.addEventListener("resize",n.update,nb),function(){a&&u.forEach(function(e){e.removeEventListener("scroll",n.update,nb)}),s&&l.removeEventListener("resize",n.update,nb)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=nj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,a=n.roundOffsets,o=void 0===a||a,s={placement:nw(t.placement),variation:n_(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,nO(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:o})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,nO(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];tJ(i)&&t6(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});tJ(r)&&t6(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=nx.reduce(function(e,n){var r,i,o,s,l,u;return e[n]=(r=t.rects,o=[nu,"top"].indexOf(i=nw(n))>=0?-1:1,l=(s="function"==typeof a?a(Object.assign({},r,{placement:n})):a)[0],u=s[1],l=l||0,u=(u||0)*o,[nu,nl].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=o[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,x=t.options.placement,g=nw(x)===x,v=l||(g||!p?[nC(x)]:function(e){if(nw(e)===nc)return[];var t=nC(e);return[nN(e),t,nN(t)]}(x)),y=[x].concat(v).reduce(function(e,n){var r,i,a,o,s,l,f,h,x,g,v,y;return e.concat(nw(n)===nc?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,a=r.boundary,o=r.rootBoundary,s=r.padding,l=r.flipVariations,h=void 0===(f=r.allowedAutoPlacements)?nx:f,0===(v=(g=(x=n_(i))?l?nm:nm.filter(function(e){return n_(e)===x}):nd).filter(function(e){return h.indexOf(e)>=0})).length&&(v=g),Object.keys(y=v.reduce(function(e,n){return e[n]=nZ(t,{placement:n,boundary:a,rootBoundary:o,padding:s})[nw(n)],e},{})).sort(function(e,t){return y[e]-y[t]})):n)},[]),b=t.rects.reference,w=t.rects.popper,_=new Map,k=!0,j=y[0],E=0;E=0,N=S?"width":"height",R=nZ(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),A=S?C?nl:nu:C?ns:"top";b[N]>w[N]&&(A=nC(A));var I=nC(A),L=[];if(a&&L.push(R[T]<=0),s&&L.push(R[A]<=0,R[I]<=0),L.every(function(e){return e})){j=O,k=!1;break}_.set(O,L)}if(k)for(var P=p?3:1,M=function(e){var t=y.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return j=t,"break"},Z=P;Z>0&&"break"!==M(Z);Z--);t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=n.altAxis,o=n.boundary,s=n.rootBoundary,l=n.altBoundary,u=n.padding,c=n.tether,d=void 0===c||c,f=n.tetherOffset,h=void 0===f?0:f,p=nZ(t,{boundary:o,rootBoundary:s,padding:u,altBoundary:l}),m=nw(t.placement),x=n_(t.placement),g=!x,v=nk(m),y="x"===v?"y":"x",b=t.modifiersData.popperOffsets,w=t.rects.reference,_=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,j="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(b){if(void 0===i||i){var T,C="y"===v?"top":nu,S="y"===v?ns:nl,N="y"===v?"height":"width",R=b[v],A=R+p[C],I=R-p[S],L=d?-_[N]/2:0,P=x===nf?w[N]:_[N],M=x===nf?-_[N]:-w[N],Z=t.elements.arrow,F=d&&Z?nn(Z):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:nL(),z=D[C],$=D[S],U=nF(0,w[N],F[N]),W=g?w[N]/2-L-U-z-j.mainAxis:P-U-z-j.mainAxis,H=g?-w[N]/2+L+U+$+j.mainAxis:M+U+$+j.mainAxis,G=t.elements.arrow&&no(t.elements.arrow),V=G?"y"===v?G.clientTop||0:G.clientLeft||0:0,B=null!=(T=null==E?void 0:E[v])?T:0,q=nF(d?t1(A,R+W-B-V):A,R,d?t0(I,R+H-B):I);b[v]=q,O[v]=q-R}if(void 0!==a&&a){var K,Y,Q="x"===v?"top":nu,J="x"===v?ns:nl,X=b[y],ee="y"===y?"height":"width",et=X+p[Q],en=X-p[J],er=-1!==["top",nu].indexOf(m),ei=null!=(Y=null==E?void 0:E[y])?Y:0,ea=er?et:X-w[ee]-_[ee]-ei+j.altAxis,eo=er?X+w[ee]+_[ee]-ei-j.altAxis:en,es=d&&er?(K=nF(ea,X,eo))>eo?eo:K:nF(d?ea:et,X,d?eo:en);b[y]=es,O[y]=es-X}t.modifiersData[r]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,l=nw(r.placement),u=nk(l),c=[nu,nl].indexOf(l)>=0?"height":"width";if(o&&s){var d=nP("number"!=typeof(t="function"==typeof(t=a.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:nM(t,nd)),f=nn(o),h="y"===u?"top":nu,p="y"===u?ns:nl,m=r.rects.reference[c]+r.rects.reference[u]-s[u]-r.rects.popper[c],x=s[u]-r.rects.reference[u],g=no(o),v=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,y=d[h],b=v-f[c]-d[p],w=v/2-f[c]/2+(m/2-x/2),_=nF(y,w,b);r.modifiersData[i]=((n={})[u]=_,n.centerOffset=_-w,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&nR(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=nZ(t,{elementContext:"reference"}),s=nZ(t,{altBoundary:!0}),l=nD(o,r),u=nD(s,i,a),c=nz(l),d=nz(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:v,w=void 0===(b=g.defaultOptions)?nv:b,function(e,t,n){void 0===n&&(n=w);var r,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},nv,w),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,l={state:a,setOptions:function(n){var r,i,s,c,d,f="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},w,a.options,f),a.scrollParents={reference:tQ(e)?ni(e):e.contextElement?ni(e.contextElement):[],popper:ni(t)};var h=(i=Object.keys(r=[].concat(y,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),s=new Map,c=new Set,d=[],i.forEach(function(e){s.set(e.name,e)}),i.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var n=s.get(t);n&&e(n)}}),d.push(t)}(e)}),ng.reduce(function(e,t){return e.concat(d.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=h.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:a,name:t,instance:l,options:void 0===n?{}:n});o.push(i||function(){})}}),l.update()},forceUpdate:function(){if(!s){var e,t,n,r,i,o,u,c,d,f,h,p,m=a.elements,x=m.reference,g=m.popper;if(ny(x,g)){a.rects={reference:(t=no(g),n="fixed"===a.options.strategy,r=tJ(t),c=tJ(t)&&(o=t2((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,u=t2(i.height)/t.offsetHeight||1,1!==o||1!==u),d=t9(t),f=t7(x,c,n),h={scrollLeft:0,scrollTop:0},p={x:0,y:0},(r||!r&&!n)&&(("body"!==t6(t)||nt(d))&&(h=(e=t)!==tY(e)&&tJ(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:t3(e)),tJ(t)?(p=t7(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):d&&(p.x=t8(d))),{x:f.left+h.scrollLeft-p.x,y:f.top+h.scrollTop-p.y,width:f.width,height:f.height}),popper:nn(g)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var v=0;v()=>e.dispose(),[e]),e}var nV=n(7604),nB=n(8953),nq=n(277),nK=n(4877),nY=n(4980),nQ=n(7185),nJ=n(3623);function nX(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&e.classList.add(...n)}function n0(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&e.classList.remove(...n)}let n1=(0,N.createContext)(null);n1.displayName="OpenClosedContext";var n2=((i=n2||{})[i.Open=1]="Open",i[i.Closed=2]="Closed",i[i.Closing=4]="Closing",i[i.Opening=8]="Opening",i);function n4(){return(0,N.useContext)(n1)}function n5(e){let{value:t,children:n}=e;return N.createElement(n1.Provider,{value:t},n)}var n7=n(8980),n3=n(4243);function n6(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(/\s+/).filter(e=>e.length>1)}let n9=(0,N.createContext)(null);n9.displayName="TransitionContext";var n8=((a=n8||{}).Visible="visible",a.Hidden="hidden",a);let re=(0,N.createContext)(null);function rt(e){return"children"in e?rt(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function rn(e,t){let n=(0,nK.E)(e),r=(0,N.useRef)([]),i=(0,nB.t)(),a=nG(),o=(0,nV.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n3.l4.Hidden,o=r.current.findIndex(t=>{let{el:n}=t;return n===e});-1!==o&&((0,nJ.E)(t,{[n3.l4.Unmount](){r.current.splice(o,1)},[n3.l4.Hidden](){r.current[o].state="hidden"}}),a.microTask(()=>{var e;!rt(r)&&i.current&&(null==(e=n.current)||e.call(n))}))}),s=(0,nV.z)(e=>{let t=r.current.find(t=>{let{el:n}=t;return n===e});return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>o(e,n3.l4.Unmount)}),l=(0,N.useRef)([]),u=(0,N.useRef)(Promise.resolve()),c=(0,N.useRef)({enter:[],leave:[],idle:[]}),d=(0,nV.z)((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(t=>{let[n]=t;return n!==e})),null==t||t.chains.current[n].push([e,new Promise(e=>{l.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(c.current[n].map(e=>{let[t,n]=e;return n})).then(()=>e())})]),"enter"===n?u.current=u.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),f=(0,nV.z)((e,t,n)=>{Promise.all(c.current[t].splice(0).map(e=>{let[t,n]=e;return n})).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>n(t))});return(0,N.useMemo)(()=>({children:r,register:s,unregister:o,onStart:d,onStop:f,wait:u,chains:c}),[s,o,r,d,f,c,u])}function rr(){}re.displayName="NestingContext";let ri=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ra(e){var t;let n={};for(let r of ri)n[r]=null!=(t=e[r])?t:rr;return n}let ro=n3.AN.RenderStrategy,rs=(0,n3.yV)(function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=(0,N.useRef)(null),s=(0,nQ.T)(o,t);(0,nY.H)();let l=n4();if(void 0===n&&null!==l&&(n=(l&n2.Open)===n2.Open),![!0,!1].includes(n))throw Error("A is used but it is missing a `show={true | false}` prop.");let[u,c]=(0,N.useState)(n?"visible":"hidden"),d=rn(()=>{c("hidden")}),[f,h]=(0,N.useState)(!0),p=(0,N.useRef)([n]);(0,nq.e)(()=>{!1!==f&&p.current[p.current.length-1]!==n&&(p.current.push(n),h(!1))},[p,n]);let m=(0,N.useMemo)(()=>({show:n,appear:r,initial:f}),[n,r,f]);(0,N.useEffect)(()=>{if(n)c("visible");else if(rt(d)){let e=o.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&c("hidden")}else c("hidden")},[n,d]);let x={unmount:i},g=(0,nV.z)(()=>{var t;f&&h(!1),null==(t=e.beforeEnter)||t.call(e)}),v=(0,nV.z)(()=>{var t;f&&h(!1),null==(t=e.beforeLeave)||t.call(e)});return N.createElement(re.Provider,{value:d},N.createElement(n9.Provider,{value:m},(0,n3.sY)({ourProps:{...x,as:N.Fragment,children:N.createElement(rl,{ref:s,...x,...a,beforeEnter:g,beforeLeave:v})},theirProps:{},defaultTag:N.Fragment,features:ro,visible:"visible"===u,name:"Transition"})))}),rl=(0,n3.yV)(function(e,t){var n,r,i;let a;let{beforeEnter:o,afterEnter:s,beforeLeave:l,afterLeave:u,enter:c,enterFrom:d,enterTo:f,entered:h,leave:p,leaveFrom:m,leaveTo:x,...g}=e,v=(0,N.useRef)(null),y=(0,nQ.T)(v,t),b=null==(n=g.unmount)||n?n3.l4.Unmount:n3.l4.Hidden,{show:w,appear:_,initial:k}=function(){let e=(0,N.useContext)(n9);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),[j,E]=(0,N.useState)(w?"visible":"hidden"),O=function(){let e=(0,N.useContext)(re);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),{register:T,unregister:C}=O;(0,N.useEffect)(()=>T(v),[T,v]),(0,N.useEffect)(()=>{if(b===n3.l4.Hidden&&v.current){if(w&&"visible"!==j){E("visible");return}return(0,nJ.E)(j,{hidden:()=>C(v),visible:()=>T(v)})}},[j,v,T,C,w,b]);let S=(0,nK.E)({base:n6(g.className),enter:n6(c),enterFrom:n6(d),enterTo:n6(f),entered:n6(h),leave:n6(p),leaveFrom:n6(m),leaveTo:n6(x)}),R=(i={beforeEnter:o,afterEnter:s,beforeLeave:l,afterLeave:u},a=(0,N.useRef)(ra(i)),(0,N.useEffect)(()=>{a.current=ra(i)},[i]),a),A=(0,nY.H)();(0,N.useEffect)(()=>{if(A&&"visible"===j&&null===v.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[v,j,A]);let I=_&&w&&k,L=A&&(!k||_)?w?"enter":"leave":"idle",P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,N.useState)(e),r=(0,nB.t)(),i=(0,N.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),a=(0,N.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:(0,N.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,N.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}(0),M=(0,nV.z)(e=>(0,nJ.E)(e,{enter:()=>{P.addFlag(n2.Opening),R.current.beforeEnter()},leave:()=>{P.addFlag(n2.Closing),R.current.beforeLeave()},idle:()=>{}})),Z=(0,nV.z)(e=>(0,nJ.E)(e,{enter:()=>{P.removeFlag(n2.Opening),R.current.afterEnter()},leave:()=>{P.removeFlag(n2.Closing),R.current.afterLeave()},idle:()=>{}})),F=rn(()=>{E("hidden"),C(v)},O),D=(0,N.useRef)(!1);!function(e){let{immediate:t,container:n,direction:r,classes:i,onStart:a,onStop:o}=e,s=(0,nB.t)(),l=nG(),u=(0,nK.E)(r);(0,nq.e)(()=>{t&&(u.current="enter")},[t]),(0,nq.e)(()=>{let e=(0,nH.k)();l.add(e.dispose);let t=n.current;if(t&&"idle"!==u.current&&s.current){var r,c,d;let n,s,l,f,h,p,m;return e.dispose(),a.current(u.current),e.add((r=i.current,c="enter"===u.current,d=()=>{e.dispose(),o.current(u.current)},s=c?"enter":"leave",l=(0,nH.k)(),f=void 0!==d?(n={called:!1},function(){for(var e=arguments.length,t=Array(e),r=0;r{},"enter"===s&&(t.removeAttribute("hidden"),t.style.display=""),h=(0,nJ.E)(s,{enter:()=>r.enter,leave:()=>r.leave}),p=(0,nJ.E)(s,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),m=(0,nJ.E)(s,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom}),n0(t,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),nX(t,...r.base,...h,...m),l.nextFrame(()=>{n0(t,...r.base,...h,...m),nX(t,...r.base,...h,...p),function(e,t){let n=(0,nH.k)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),s=a+o;if(0!==s){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},s),n.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),r())})}else t();n.add(()=>t()),n.dispose}(t,()=>(n0(t,...r.base,...h),nX(t,...r.base,...r.entered),f()))}),l.dispose)),e.dispose}},[r])}({immediate:I,container:v,classes:S,direction:L,onStart:(0,nK.E)(e=>{D.current=!0,F.onStart(v,e,M)}),onStop:(0,nK.E)(e=>{D.current=!1,F.onStop(v,e,Z),"leave"!==e||rt(F)||(E("hidden"),C(v))})});let z=g;return I?z={...z,className:(0,n7.A)(g.className,...S.current.enter,...S.current.enterFrom)}:D.current&&(z.className=(0,n7.A)(g.className,null==(r=v.current)?void 0:r.className),""===z.className&&delete z.className),N.createElement(re.Provider,{value:F},N.createElement(n5,{value:(0,nJ.E)(j,{visible:n2.Open,hidden:n2.Closed})|P.flags},(0,n3.sY)({ourProps:{ref:y},theirProps:z,defaultTag:"div",features:ro,visible:"visible"===j,name:"Transition.Child"})))}),ru=(0,n3.yV)(function(e,t){let n=null!==(0,N.useContext)(n9),r=null!==n4();return N.createElement(N.Fragment,null,!n&&r?N.createElement(rs,{ref:t,...e}):N.createElement(rl,{ref:t,...e}))}),rc=Object.assign(rs,{Child:ru,Root:rs});var rd=n(7200);function rf(e,t){let[n,r]=(0,N.useState)(e),i=(0,nK.E)(e);return(0,nq.e)(()=>r(i.current),[i,r,...t]),n}var rh=n(2706),rp=n(5088);function rm(e,t,n){let r=(0,nK.E)(t);(0,N.useEffect)(()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}function rx(e,t){var n,r;let i,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=(0,N.useRef)(!1);function s(n,r){if(!o.current||n.defaultPrevented)return;let i=r(n);if(null!==i&&i.getRootNode().contains(i)&&i.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(i)||n.composed&&n.composedPath().includes(e))return}return(0,rp.sP)(i,rp.tJ.Loose)||-1===i.tabIndex||n.preventDefault(),t(n,i)}}(0,N.useEffect)(()=>{requestAnimationFrame(()=>{o.current=a})},[a]);let l=(0,N.useRef)(null);rm("pointerdown",e=>{var t,n;o.current&&(l.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),rm("mousedown",e=>{var t,n;o.current&&(l.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),rm("click",e=>{/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)||l.current&&(s(e,()=>l.current),l.current=null)},!0),rm("touchend",e=>s(e,()=>e.target instanceof HTMLElement?e.target:null),!0),n="blur",r=e=>s(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),i=(0,nK.E)(r),(0,N.useEffect)(()=>{function e(e){i.current(e)}return window.addEventListener(n,e,!0),()=>window.removeEventListener(n,e,!0)},[n,!0])}var rg=n(6512);let rv=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ry(e){var t,n;let r=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let e of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),a=!0;let o=a?null!=(n=i.innerText)?n:"":r;return rv.test(o)&&(o=o.replace(rv,"")),o}function rb(e){let t=(0,N.useRef)(""),n=(0,N.useRef)("");return(0,nV.z)(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():ry(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return ry(e).trim()})(r).trim().toLowerCase();return t.current=i,n.current=a,a})}function rw(e){return[e.screenX,e.screenY]}function r_(){let e=(0,N.useRef)([-1,-1]);return{wasMoved(t){let n=rw(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=rw(t)}}}var rk=n(6835);function rj(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var rE=((o=rE||{})[o.First=0]="First",o[o.Previous=1]="Previous",o[o.Next=2]="Next",o[o.Last=3]="Last",o[o.Specific=4]="Specific",o[o.Nothing=5]="Nothing",o);function rO(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,rp.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return -1===i&&(i=null),{options:r,activeOptionIndex:i}}let rP={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=rL(e),i=rO(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),a=i?e.options.indexOf(i):-1;return -1===a||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=rL(e,e=>[...e,n]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=rL(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},rM=(0,N.createContext)(null);function rZ(e){let t=(0,N.useContext)(rM);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,rZ),t}return t}rM.displayName="ListboxActionsContext";let rF=(0,N.createContext)(null);function rD(e){let t=(0,N.useContext)(rF);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,rD),t}return t}function rz(e,t){return(0,nJ.E)(t.type,rP,e,t)}rF.displayName="ListboxDataContext";let r$=N.Fragment,rU=n3.AN.RenderStrategy|n3.AN.Static,rW=Object.assign((0,n3.yV)(function(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(e,t)=>e===t,disabled:l=!1,horizontal:u=!1,multiple:c=!1,...d}=e,f=u?"horizontal":"vertical",h=(0,nQ.T)(t),[p=c?[]:void 0,m]=function(e,t,n){let[r,i]=(0,N.useState)(n),a=void 0!==e,o=(0,N.useRef)(a),s=(0,N.useRef)(!1),l=(0,N.useRef)(!1);return!a||o.current||s.current?a||!o.current||l.current||(l.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:r,(0,nV.z)(e=>(a||i(e),null==t?void 0:t(e)))]}(n,o,r),[x,g]=(0,N.useReducer)(rz,{dataRef:(0,N.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=(0,N.useRef)({static:!1,hold:!1}),y=(0,N.useRef)(null),b=(0,N.useRef)(null),w=(0,N.useRef)(null),_=(0,nV.z)("string"==typeof s?(e,t)=>(null==e?void 0:e[s])===(null==t?void 0:t[s]):s),k=(0,N.useCallback)(e=>(0,nJ.E)(j.mode,{1:()=>p.some(t=>_(t,e)),0:()=>_(p,e)}),[p]),j=(0,N.useMemo)(()=>({...x,value:p,disabled:l,mode:c?1:0,orientation:f,compare:_,isSelected:k,optionsPropsRef:v,labelRef:y,buttonRef:b,optionsRef:w}),[p,l,c,x]);(0,nq.e)(()=>{x.dataRef.current=j},[j]),rx([j.buttonRef,j.optionsRef],(e,t)=>{var n;g({type:1}),(0,rp.sP)(t,rp.tJ.Loose)||(e.preventDefault(),null==(n=j.buttonRef.current)||n.focus())},0===j.listboxState);let E=(0,N.useMemo)(()=>({open:0===j.listboxState,disabled:l,value:p}),[j,l,p]),O=(0,nV.z)(e=>{let t=j.options.find(t=>t.id===e);t&&L(t.dataRef.current.value)}),T=(0,nV.z)(()=>{if(null!==j.activeOptionIndex){let{dataRef:e,id:t}=j.options[j.activeOptionIndex];L(e.current.value),g({type:2,focus:rE.Specific,id:t})}}),C=(0,nV.z)(()=>g({type:0})),S=(0,nV.z)(()=>g({type:1})),R=(0,nV.z)((e,t,n)=>e===rE.Specific?g({type:2,focus:rE.Specific,id:t,trigger:n}):g({type:2,focus:e,trigger:n})),A=(0,nV.z)((e,t)=>(g({type:5,id:e,dataRef:t}),()=>g({type:6,id:e}))),I=(0,nV.z)(e=>(g({type:7,id:e}),()=>g({type:7,id:null}))),L=(0,nV.z)(e=>(0,nJ.E)(j.mode,{0:()=>null==m?void 0:m(e),1(){let t=j.value.slice(),n=t.findIndex(t=>_(t,e));return -1===n?t.push(e):t.splice(n,1),null==m?void 0:m(t)}})),P=(0,nV.z)(e=>g({type:3,value:e})),M=(0,nV.z)(()=>g({type:4})),Z=(0,N.useMemo)(()=>({onChange:L,registerOption:A,registerLabel:I,goToOption:R,closeListbox:S,openListbox:C,selectActiveOption:T,selectOption:O,search:P,clearSearch:M}),[]),F=(0,N.useRef)(null),D=nG();return(0,N.useEffect)(()=>{F.current&&void 0!==r&&D.addEventListener(F.current,"reset",()=>{null==m||m(r)})},[F,m]),N.createElement(rM.Provider,{value:Z},N.createElement(rF.Provider,{value:j},N.createElement(n5,{value:(0,nJ.E)(j.listboxState,{0:n2.Open,1:n2.Closed})},null!=a&&null!=p&&(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[i,a]of Object.entries(t))!function t(n,r,i){if(Array.isArray(i))for(let[e,a]of i.entries())t(n,rT(r,e.toString()),a);else i instanceof Date?n.push([r,i.toISOString()]):"boolean"==typeof i?n.push([r,i?"1":"0"]):"string"==typeof i?n.push([r,i]):"number"==typeof i?n.push([r,"".concat(i)]):null==i?n.push([r,""]):e(i,r,n)}(r,rT(n,i),a);return r})({[a]:p}).map((e,t)=>{let[n,r]=e;return N.createElement(rk._,{features:rk.A.Hidden,ref:0===t?e=>{var t;F.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,n3.oA)({key:n,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,disabled:l,name:n,value:r})})}),(0,n3.sY)({ourProps:{ref:h},theirProps:d,slot:E,defaultTag:r$,name:"Listbox"}))))}),{Button:(0,n3.yV)(function(e,t){var n;let r=(0,rh.M)(),{id:i="headlessui-listbox-button-".concat(r),...a}=e,o=rD("Listbox.Button"),s=rZ("Listbox.Button"),l=(0,nQ.T)(o.buttonRef,t),u=nG(),c=(0,nV.z)(e=>{switch(e.key){case rS.R.Space:case rS.R.Enter:case rS.R.ArrowDown:e.preventDefault(),s.openListbox(),u.nextFrame(()=>{o.value||s.goToOption(rE.First)});break;case rS.R.ArrowUp:e.preventDefault(),s.openListbox(),u.nextFrame(()=>{o.value||s.goToOption(rE.Last)})}}),d=(0,nV.z)(e=>{e.key===rS.R.Space&&e.preventDefault()}),f=(0,nV.z)(e=>{if(rj(e.currentTarget))return e.preventDefault();0===o.listboxState?(s.closeListbox(),u.nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(e.preventDefault(),s.openListbox())}),h=rf(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),p=(0,N.useMemo)(()=>({open:0===o.listboxState,disabled:o.disabled,value:o.value}),[o]),m={ref:l,id:i,type:(0,rg.f)(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=o.optionsRef.current)?void 0:n.id,"aria-expanded":0===o.listboxState,"aria-labelledby":h,disabled:o.disabled,onKeyDown:c,onKeyUp:d,onClick:f};return(0,n3.sY)({ourProps:m,theirProps:a,slot:p,defaultTag:"button",name:"Listbox.Button"})}),Label:(0,n3.yV)(function(e,t){let n=(0,rh.M)(),{id:r="headlessui-listbox-label-".concat(n),...i}=e,a=rD("Listbox.Label"),o=rZ("Listbox.Label"),s=(0,nQ.T)(a.labelRef,t);(0,nq.e)(()=>o.registerLabel(r),[r]);let l=(0,nV.z)(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),u=(0,N.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled}),[a]);return(0,n3.sY)({ourProps:{ref:s,id:r,onClick:l},theirProps:i,slot:u,defaultTag:"label",name:"Listbox.Label"})}),Options:(0,n3.yV)(function(e,t){var n;let r=(0,rh.M)(),{id:i="headlessui-listbox-options-".concat(r),...a}=e,o=rD("Listbox.Options"),s=rZ("Listbox.Options"),l=(0,nQ.T)(o.optionsRef,t),u=nG(),c=nG(),d=n4(),f=null!==d?(d&n2.Open)===n2.Open:0===o.listboxState;(0,N.useEffect)(()=>{var e;let t=o.optionsRef.current;t&&0===o.listboxState&&t!==(null==(e=(0,rC.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let h=(0,nV.z)(e=>{switch(c.dispose(),e.key){case rS.R.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),s.search(e.key);case rS.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==o.activeOptionIndex){let{dataRef:e}=o.options[o.activeOptionIndex];s.onChange(e.current.value)}0===o.mode&&(s.closeListbox(),(0,nH.k)().nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case(0,nJ.E)(o.orientation,{vertical:rS.R.ArrowDown,horizontal:rS.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),s.goToOption(rE.Next);case(0,nJ.E)(o.orientation,{vertical:rS.R.ArrowUp,horizontal:rS.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),s.goToOption(rE.Previous);case rS.R.Home:case rS.R.PageUp:return e.preventDefault(),e.stopPropagation(),s.goToOption(rE.First);case rS.R.End:case rS.R.PageDown:return e.preventDefault(),e.stopPropagation(),s.goToOption(rE.Last);case rS.R.Escape:return e.preventDefault(),e.stopPropagation(),s.closeListbox(),u.nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case rS.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(s.search(e.key),c.setTimeout(()=>s.clearSearch(),350))}}),p=rf(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.id},[o.buttonRef.current]),m=(0,N.useMemo)(()=>({open:0===o.listboxState}),[o]),x={"aria-activedescendant":null===o.activeOptionIndex||null==(n=o.options[o.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===o.mode||void 0,"aria-labelledby":p,"aria-orientation":o.orientation,id:i,onKeyDown:h,role:"listbox",tabIndex:0,ref:l};return(0,n3.sY)({ourProps:x,theirProps:a,slot:m,defaultTag:"ul",features:rU,visible:f,name:"Listbox.Options"})}),Option:(0,n3.yV)(function(e,t){let n=(0,rh.M)(),{id:r="headlessui-listbox-option-".concat(n),disabled:i=!1,value:a,...o}=e,s=rD("Listbox.Option"),l=rZ("Listbox.Option"),u=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===r,c=s.isSelected(a),d=(0,N.useRef)(null),f=rb(d),h=(0,nK.E)({disabled:i,value:a,domRef:d,get textValue(){return f()}}),p=(0,nQ.T)(t,d);(0,nq.e)(()=>{if(0!==s.listboxState||!u||0===s.activationTrigger)return;let e=(0,nH.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[d,u,s.listboxState,s.activationTrigger,s.activeOptionIndex]),(0,nq.e)(()=>l.registerOption(r,h),[h,r]);let m=(0,nV.z)(e=>{if(i)return e.preventDefault();l.onChange(a),0===s.mode&&(l.closeListbox(),(0,nH.k)().nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))}),x=(0,nV.z)(()=>{if(i)return l.goToOption(rE.Nothing);l.goToOption(rE.Specific,r)}),g=r_(),v=(0,nV.z)(e=>g.update(e)),y=(0,nV.z)(e=>{g.wasMoved(e)&&(i||u||l.goToOption(rE.Specific,r,0))}),b=(0,nV.z)(e=>{g.wasMoved(e)&&(i||u&&l.goToOption(rE.Nothing))}),w=(0,N.useMemo)(()=>({active:u,selected:c,disabled:i}),[u,c,i]);return(0,n3.sY)({ourProps:{id:r,ref:p,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":c,disabled:void 0,onClick:m,onFocus:x,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:o,slot:w,defaultTag:"li",name:"Listbox.Option"})})});var rH=n(967),rG=n(1128),rV=n.n(rG);function rB(){return(rB=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var rK=["keyOverride"],rY=["crossOrigin"],rQ={templateTitle:"",noindex:!1,nofollow:!1,norobots:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},rJ=function(e,t,n){void 0===t&&(t=[]);var r=void 0===n?{}:n,i=r.defaultWidth,a=r.defaultHeight;return t.reduce(function(t,n,r){return t.push(N.createElement("meta",{key:"og:"+e+":0"+r,property:"og:"+e,content:n.url})),n.alt&&t.push(N.createElement("meta",{key:"og:"+e+":alt0"+r,property:"og:"+e+":alt",content:n.alt})),n.secureUrl&&t.push(N.createElement("meta",{key:"og:"+e+":secure_url0"+r,property:"og:"+e+":secure_url",content:n.secureUrl.toString()})),n.type&&t.push(N.createElement("meta",{key:"og:"+e+":type0"+r,property:"og:"+e+":type",content:n.type.toString()})),n.width?t.push(N.createElement("meta",{key:"og:"+e+":width0"+r,property:"og:"+e+":width",content:n.width.toString()})):i&&t.push(N.createElement("meta",{key:"og:"+e+":width0"+r,property:"og:"+e+":width",content:i.toString()})),n.height?t.push(N.createElement("meta",{key:"og:"+e+":height"+r,property:"og:"+e+":height",content:n.height.toString()})):a&&t.push(N.createElement("meta",{key:"og:"+e+":height"+r,property:"og:"+e+":height",content:a.toString()})),t},[])},rX=function(e){var t,n,r,i,a,o=[];e.titleTemplate&&(rQ.templateTitle=e.titleTemplate);var s="";e.title?(s=e.title,rQ.templateTitle&&(s=rQ.templateTitle.replace(/%s/g,function(){return s}))):e.defaultTitle&&(s=e.defaultTitle),s&&o.push(N.createElement("title",{key:"title"},s));var l=void 0===e.noindex?rQ.noindex||e.dangerouslySetAllPagesToNoIndex:e.noindex,u=void 0===e.nofollow?rQ.nofollow||e.dangerouslySetAllPagesToNoFollow:e.nofollow,c=e.norobots||rQ.norobots,d="";if(e.robotsProps){var f=e.robotsProps,h=f.nosnippet,p=f.maxSnippet,m=f.maxImagePreview,x=f.maxVideoPreview,g=f.noarchive,v=f.noimageindex,y=f.notranslate,b=f.unavailableAfter;d=(h?",nosnippet":"")+(p?",max-snippet:"+p:"")+(m?",max-image-preview:"+m:"")+(g?",noarchive":"")+(b?",unavailable_after:"+b:"")+(v?",noimageindex":"")+(x?",max-video-preview:"+x:"")+(y?",notranslate":"")}if(e.norobots&&(rQ.norobots=!0),l||u?(e.dangerouslySetAllPagesToNoIndex&&(rQ.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(rQ.nofollow=!0),o.push(N.createElement("meta",{key:"robots",name:"robots",content:(l?"noindex":"index")+","+(u?"nofollow":"follow")+d}))):(!c||d)&&o.push(N.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+d})),e.description&&o.push(N.createElement("meta",{key:"description",name:"description",content:e.description})),e.themeColor&&o.push(N.createElement("meta",{key:"theme-color",name:"theme-color",content:e.themeColor})),e.mobileAlternate&&o.push(N.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach(function(e){o.push(N.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))}),e.twitter&&(e.twitter.cardType&&o.push(N.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&o.push(N.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&o.push(N.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&o.push(N.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),(null!=(t=e.openGraph)&&t.title||s)&&o.push(N.createElement("meta",{key:"og:title",property:"og:title",content:(null==(i=e.openGraph)?void 0:i.title)||s})),(null!=(n=e.openGraph)&&n.description||e.description)&&o.push(N.createElement("meta",{key:"og:description",property:"og:description",content:(null==(a=e.openGraph)?void 0:a.description)||e.description})),e.openGraph){if((e.openGraph.url||e.canonical)&&o.push(N.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var w=e.openGraph.type.toLowerCase();o.push(N.createElement("meta",{key:"og:type",property:"og:type",content:w})),"profile"===w&&e.openGraph.profile?(e.openGraph.profile.firstName&&o.push(N.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&o.push(N.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&o.push(N.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&o.push(N.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===w&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEach(function(e,t){o.push(N.createElement("meta",{key:"book:author:0"+t,property:"book:author",content:e}))}),e.openGraph.book.isbn&&o.push(N.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&o.push(N.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEach(function(e,t){o.push(N.createElement("meta",{key:"book:tag:0"+t,property:"book:tag",content:e}))})):"article"===w&&e.openGraph.article?(e.openGraph.article.publishedTime&&o.push(N.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&o.push(N.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&o.push(N.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach(function(e,t){o.push(N.createElement("meta",{key:"article:author:0"+t,property:"article:author",content:e}))}),e.openGraph.article.section&&o.push(N.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach(function(e,t){o.push(N.createElement("meta",{key:"article:tag:0"+t,property:"article:tag",content:e}))})):("video.movie"===w||"video.episode"===w||"video.tv_show"===w||"video.other"===w)&&e.openGraph.video&&(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach(function(e,t){e.profile&&o.push(N.createElement("meta",{key:"video:actor:0"+t,property:"video:actor",content:e.profile})),e.role&&o.push(N.createElement("meta",{key:"video:actor:role:0"+t,property:"video:actor:role",content:e.role}))}),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach(function(e,t){o.push(N.createElement("meta",{key:"video:director:0"+t,property:"video:director",content:e}))}),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach(function(e,t){o.push(N.createElement("meta",{key:"video:writer:0"+t,property:"video:writer",content:e}))}),e.openGraph.video.duration&&o.push(N.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&o.push(N.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEach(function(e,t){o.push(N.createElement("meta",{key:"video:tag:0"+t,property:"video:tag",content:e}))}),e.openGraph.video.series&&o.push(N.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(rQ.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(rQ.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&o.push.apply(o,rJ("image",e.openGraph.images,{defaultWidth:rQ.defaultOpenGraphImageWidth,defaultHeight:rQ.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(rQ.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(rQ.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&o.push.apply(o,rJ("video",e.openGraph.videos,{defaultWidth:rQ.defaultOpenGraphVideoWidth,defaultHeight:rQ.defaultOpenGraphVideoHeight})),e.openGraph.audio&&o.push.apply(o,rJ("audio",e.openGraph.audio)),e.openGraph.locale&&o.push(N.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),(e.openGraph.siteName||e.openGraph.site_name)&&o.push(N.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.siteName||e.openGraph.site_name}))}return e.canonical&&o.push(N.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach(function(e){var t,n,r=e.keyOverride,i=rq(e,rK);o.push(N.createElement("meta",rB({key:"meta:"+(null!=(t=null!=(n=null!=r?r:i.name)?n:i.property)?t:i.httpEquiv)},i)))}),null!=(r=e.additionalLinkTags)&&r.length&&e.additionalLinkTags.forEach(function(e){var t,n=e.crossOrigin,r=rq(e,rY);o.push(N.createElement("link",rB({key:"link"+(null!=(t=r.keyOverride)?t:r.href)+r.rel},r,{crossOrigin:"anonymous"===n||"use-credentials"===n||""===n?n:void 0})))}),o},r0=function(e){return N.createElement(rV(),null,rX(e))},r1=function(e){var t=e.title,n=e.themeColor,r=e.noindex,i=e.nofollow,a=e.robotsProps,o=e.description,s=e.canonical,l=e.openGraph,u=e.facebook,c=e.twitter,d=e.additionalMetaTags,f=e.titleTemplate,h=e.defaultTitle,p=e.mobileAlternate,m=e.languageAlternates,x=e.additionalLinkTags;return N.createElement(N.Fragment,null,N.createElement(r0,{title:t,themeColor:n,noindex:r,nofollow:i,robotsProps:a,description:o,canonical:s,facebook:u,openGraph:l,additionalMetaTags:d,twitter:c,titleTemplate:f,defaultTitle:h,mobileAlternate:p,languageAlternates:m,additionalLinkTags:x}))};RegExp("["+Object.keys(Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"})).join("")+"]","g");var r2=((d=r2||{})[d.Open=0]="Open",d[d.Closed=1]="Closed",d),r4=((f=r4||{})[f.Pointer=0]="Pointer",f[f.Other=1]="Other",f),r5=((h=r5||{})[h.OpenMenu=0]="OpenMenu",h[h.CloseMenu=1]="CloseMenu",h[h.GoToItem=2]="GoToItem",h[h.Search=3]="Search",h[h.ClearSearch=4]="ClearSearch",h[h.RegisterItem=5]="RegisterItem",h[h.UnregisterItem=6]="UnregisterItem",h);function r7(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=(0,rp.z2)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return -1===i&&(i=null),{items:r,activeItemIndex:i}}let r3={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n;let r=r7(e),i=rO(t,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:i,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled}),a=i?e.items.indexOf(i):-1;return -1===a||a===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:a,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=r7(e,e=>[...e,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=r7(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}}},r6=(0,N.createContext)(null);function r9(e){let t=(0,N.useContext)(r6);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,r9),t}return t}function r8(e,t){return(0,nJ.E)(t.type,r3,e,t)}r6.displayName="MenuContext";let ie=N.Fragment,it=n3.AN.RenderStrategy|n3.AN.Static,ir=N.Fragment,ii=Object.assign((0,n3.yV)(function(e,t){let{__demoMode:n=!1,...r}=e,i=(0,N.useReducer)(r8,{__demoMode:n,menuState:n?0:1,buttonRef:(0,N.createRef)(),itemsRef:(0,N.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:o,buttonRef:s},l]=i,u=(0,nQ.T)(t);rx([s,o],(e,t)=>{var n;l({type:1}),(0,rp.sP)(t,rp.tJ.Loose)||(e.preventDefault(),null==(n=s.current)||n.focus())},0===a);let c=(0,nV.z)(()=>{l({type:1})}),d=(0,N.useMemo)(()=>({open:0===a,close:c}),[a,c]);return N.createElement(r6.Provider,{value:i},N.createElement(n5,{value:(0,nJ.E)(a,{0:n2.Open,1:n2.Closed})},(0,n3.sY)({ourProps:{ref:u},theirProps:r,slot:d,defaultTag:ie,name:"Menu"})))}),{Button:(0,n3.yV)(function(e,t){var n;let r=(0,rh.M)(),{id:i="headlessui-menu-button-".concat(r),...a}=e,[o,s]=r9("Menu.Button"),l=(0,nQ.T)(o.buttonRef,t),u=nG(),c=(0,nV.z)(e=>{switch(e.key){case rS.R.Space:case rS.R.Enter:case rS.R.ArrowDown:e.preventDefault(),e.stopPropagation(),s({type:0}),u.nextFrame(()=>s({type:2,focus:rE.First}));break;case rS.R.ArrowUp:e.preventDefault(),e.stopPropagation(),s({type:0}),u.nextFrame(()=>s({type:2,focus:rE.Last}))}}),d=(0,nV.z)(e=>{e.key===rS.R.Space&&e.preventDefault()}),f=(0,nV.z)(t=>{if(rj(t.currentTarget))return t.preventDefault();e.disabled||(0===o.menuState?(s({type:1}),u.nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(t.preventDefault(),s({type:0})))}),h=(0,N.useMemo)(()=>({open:0===o.menuState}),[o]),p={ref:l,id:i,type:(0,rg.f)(e,o.buttonRef),"aria-haspopup":"menu","aria-controls":null==(n=o.itemsRef.current)?void 0:n.id,"aria-expanded":0===o.menuState,onKeyDown:c,onKeyUp:d,onClick:f};return(0,n3.sY)({ourProps:p,theirProps:a,slot:h,defaultTag:"button",name:"Menu.Button"})}),Items:(0,n3.yV)(function(e,t){var n,r;let i=(0,rh.M)(),{id:a="headlessui-menu-items-".concat(i),...o}=e,[s,l]=r9("Menu.Items"),u=(0,nQ.T)(s.itemsRef,t),c=function(){for(var e=arguments.length,t=Array(e),n=0;n(0,rC.r)(...t),[...t])}(s.itemsRef),d=nG(),f=n4(),h=null!==f?(f&n2.Open)===n2.Open:0===s.menuState;(0,N.useEffect)(()=>{let e=s.itemsRef.current;e&&0===s.menuState&&e!==(null==c?void 0:c.activeElement)&&e.focus({preventScroll:!0})},[s.menuState,s.itemsRef,c]),function(e){let{container:t,accept:n,walk:r,enabled:i=!0}=e,a=(0,N.useRef)(n),o=(0,N.useRef)(r);(0,N.useEffect)(()=>{a.current=n,o.current=r},[n,r]),(0,nq.e)(()=>{if(!t||!i)return;let e=(0,rC.r)(t);if(!e)return;let n=a.current,r=o.current,s=Object.assign(e=>n(e),{acceptNode:n}),l=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)r(l.currentNode)},[t,i,a,o])}({container:s.itemsRef.current,enabled:0===s.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let p=(0,nV.z)(e=>{var t,n;switch(d.dispose(),e.key){case rS.R.Space:if(""!==s.searchQuery)return e.preventDefault(),e.stopPropagation(),l({type:3,value:e.key});case rS.R.Enter:if(e.preventDefault(),e.stopPropagation(),l({type:1}),null!==s.activeItemIndex){let{dataRef:e}=s.items[s.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}(0,rp.wI)(s.buttonRef.current);break;case rS.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:rE.Next});case rS.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:rE.Previous});case rS.R.Home:case rS.R.PageUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:rE.First});case rS.R.End:case rS.R.PageDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:rE.Last});case rS.R.Escape:e.preventDefault(),e.stopPropagation(),l({type:1}),(0,nH.k)().nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case rS.R.Tab:e.preventDefault(),e.stopPropagation(),l({type:1}),(0,nH.k)().nextFrame(()=>{(0,rp.EO)(s.buttonRef.current,e.shiftKey?rp.TO.Previous:rp.TO.Next)});break;default:1===e.key.length&&(l({type:3,value:e.key}),d.setTimeout(()=>l({type:4}),350))}}),m=(0,nV.z)(e=>{e.key===rS.R.Space&&e.preventDefault()}),x=(0,N.useMemo)(()=>({open:0===s.menuState}),[s]),g={"aria-activedescendant":null===s.activeItemIndex||null==(n=s.items[s.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=s.buttonRef.current)?void 0:r.id,id:a,onKeyDown:p,onKeyUp:m,role:"menu",tabIndex:0,ref:u};return(0,n3.sY)({ourProps:g,theirProps:o,slot:x,defaultTag:"div",features:it,visible:h,name:"Menu.Items"})}),Item:(0,n3.yV)(function(e,t){let n=(0,rh.M)(),{id:r="headlessui-menu-item-".concat(n),disabled:i=!1,...a}=e,[o,s]=r9("Menu.Item"),l=null!==o.activeItemIndex&&o.items[o.activeItemIndex].id===r,u=(0,N.useRef)(null),c=(0,nQ.T)(t,u);(0,nq.e)(()=>{if(o.__demoMode||0!==o.menuState||!l||0===o.activationTrigger)return;let e=(0,nH.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[o.__demoMode,u,l,o.menuState,o.activationTrigger,o.activeItemIndex]);let d=rb(u),f=(0,N.useRef)({disabled:i,domRef:u,get textValue(){return d()}});(0,nq.e)(()=>{f.current.disabled=i},[f,i]),(0,nq.e)(()=>(s({type:5,id:r,dataRef:f}),()=>s({type:6,id:r})),[f,r]);let h=(0,nV.z)(()=>{s({type:1})}),p=(0,nV.z)(e=>{if(i)return e.preventDefault();s({type:1}),(0,rp.wI)(o.buttonRef.current)}),m=(0,nV.z)(()=>{if(i)return s({type:2,focus:rE.Nothing});s({type:2,focus:rE.Specific,id:r})}),x=r_(),g=(0,nV.z)(e=>x.update(e)),v=(0,nV.z)(e=>{x.wasMoved(e)&&(i||l||s({type:2,focus:rE.Specific,id:r,trigger:0}))}),y=(0,nV.z)(e=>{x.wasMoved(e)&&(i||l&&s({type:2,focus:rE.Nothing}))}),b=(0,N.useMemo)(()=>({active:l,disabled:i,close:h}),[l,i,h]);return(0,n3.sY)({ourProps:{id:r,ref:c,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,disabled:void 0,onClick:p,onFocus:m,onPointerEnter:g,onMouseEnter:g,onPointerMove:v,onMouseMove:v,onPointerLeave:y,onMouseLeave:y},theirProps:a,slot:b,defaultTag:ir,name:"Menu.Item"})})}),ia=e=>"object"==typeof e&&null!=e&&1===e.nodeType,io=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,is=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,iu=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},ic=(e,t)=>{var n,r,i,a;if("undefined"==typeof document)return[];let{scrollMode:o,block:s,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d="function"==typeof u?u:e=>e!==u;if(!ia(e))throw TypeError("Invalid target");let f=document.scrollingElement||document.documentElement,h=[],p=e;for(;ia(p)&&d(p);){if((p=iu(p))===f){h.push(p);break}null!=p&&p===document.body&&is(p)&&!is(document.documentElement)||null!=p&&is(p,c)&&h.push(p)}let m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,x=null!=(a=null==(i=window.visualViewport)?void 0:i.height)?a:innerHeight,{scrollX:g,scrollY:v}=window,{height:y,width:b,top:w,right:_,bottom:k,left:j}=e.getBoundingClientRect(),{top:E,right:O,bottom:T,left:C}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),S="start"===s||"nearest"===s?w-E:"end"===s?k+T:w+y/2-E+T,N="center"===l?j+b/2-C+O:"end"===l?_+O:j-C,R=[];for(let e=0;e=0&&j>=0&&k<=x&&_<=m&&w>=i&&k<=u&&j>=c&&_<=a)break;let d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),O=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10),C=0,A=0,I="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-O:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-T:0,P="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,M="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)C="start"===s?S:"end"===s?S-x:"nearest"===s?il(v,v+x,x,E,T,v+S,v+S+y,y):S-x/2,A="start"===l?N:"center"===l?N-m/2:"end"===l?N-m:il(g,g+m,m,p,O,g+N,g+N+b,b),C=Math.max(0,C+v),A=Math.max(0,A+g);else{C="start"===s?S-i-E:"end"===s?S-u+T+L:"nearest"===s?il(i,u,n,E,T+L,S,S+y,y):S-(i+n/2)+L/2,A="start"===l?N-c-p:"center"===l?N-(c+r/2)+I/2:"end"===l?N-a+O+I:il(c,a,r,p,O+I,N,N+b,b);let{scrollLeft:e,scrollTop:o}=t;C=0===M?0:Math.max(0,Math.min(o+C/M,t.scrollHeight-n/M+L)),A=0===P?0:Math.max(0,Math.min(e+A/P,t.scrollWidth-r/P+I)),S+=o-C,N+=e-A}R.push({el:t,top:C,left:A})}return R},id=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"};function ih(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(ic(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:i,top:a,left:o}of ic(e,id(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var ip=n(2601),im=n.n(ip);let ix={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},ig=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function iv(e,t,n){void 0===n&&(n={});let{keys:r,threshold:i=ix.MATCHES,baseSort:a=ig,sorter:o=e=>e.sort((e,t)=>(function(e,t,n){let{rank:r,keyIndex:i}=e,{rank:a,keyIndex:o}=t;return r!==a?r>a?-1:1:i===o?n(e,t):i{let{rank:i,rankedValue:a,keyIndex:o,keyThreshold:l}=e,{itemValue:u,attributes:c}=n,d=iy(u,t,s),f=a,{minRanking:h,maxRanking:p,threshold:m}=c;return d=ix.MATCHES?d=h:d>p&&(d=p),d>i&&(i=d,o=r,l=m,f=u),{rankedValue:f,rank:i,keyIndex:o,keyThreshold:l}},{rankedValue:a,rank:ix.NO_MATCH,keyIndex:-1,keyThreshold:s.threshold}):{rankedValue:a,rank:iy(a,t,s),keyIndex:-1,keyThreshold:s.threshold}),{rank:u,keyThreshold:c=i}=l;return u>=c&&e.push({...l,item:a,index:o}),e},[])).map(e=>{let{item:t}=e;return t})}function iy(e,t,n){let r;return(e=ib(e,n),(t=ib(t,n)).length>e.length)?ix.NO_MATCH:e===t?ix.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?ix.EQUAL:e.startsWith(t)?ix.STARTS_WITH:e.includes(` ${t}`)?ix.WORD_STARTS_WITH:e.includes(t)?ix.CONTAINS:1===t.length?ix.NO_MATCH:(r="",e.split(" ").forEach(e=>{e.split("-").forEach(e=>{r+=e.substr(0,1)})}),r).includes(t)?ix.ACRONYM:function(e,t){let n=0,r=0;function i(e,t,r){for(let i=r,a=t.length;i-1))return ix.NO_MATCH;return function(e){let r=n/t.length;return ix.MATCHES+1/e*r}(r-a)}(e,t)}function ib(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=im()(e)),e}iv.rankings=ix;let iw={maxRanking:1/0,minRanking:-1/0};var i_=n(587),ik=Object.defineProperty,ij=Object.defineProperties,iE=Object.getOwnPropertyDescriptors,iO=Object.getOwnPropertySymbols,iT=Object.prototype.hasOwnProperty,iC=Object.prototype.propertyIsEnumerable,iS=(e,t,n)=>t in e?ik(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iN=(e,t)=>{for(var n in t||(t={}))iT.call(t,n)&&iS(e,n,t[n]);if(iO)for(var n of iO(t))iC.call(t,n)&&iS(e,n,t[n]);return e},iR=(e,t)=>ij(e,iE(t)),iA=(e,t)=>{var n={};for(var r in e)iT.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&iO)for(var r of iO(e))0>t.indexOf(r)&&iC.call(e,r)&&(n[r]=e[r]);return n},iI=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),iL=(0,N.createContext)({}),iP=(0,N.createContext)(e=>e),iM=(0,N.createContext)(null),iZ=new WeakMap,iF=(0,N.createContext)(iZ),iD=()=>(0,N.useContext)(iL),iz=()=>(0,N.useContext)(iP),i$=()=>(0,N.useContext)(iM),iU=()=>(0,N.useContext)(iF),iW=({children:e})=>{let[t,n]=(0,N.useState)({}),r=(0,N.useRef)(null);return aI&&!r.current&&(r.current=new IntersectionObserver(e=>{n(t=>{let n=iN({},t);for(let t of e)if((null==t?void 0:t.rootBounds)&&iZ.has(t.target)){let[e,r]=iZ.get(t.target),i=t.boundingClientRect.y+t.boundingClientRect.height<=t.rootBounds.y+t.rootBounds.height,a=t.intersectionRatio>0;n[e]={index:r,aboveHalfViewport:i,insideHalfViewport:a}}let r="",i=1/0,a=-1;for(let e in n)n[e].isActive=!1,n[e].insideHalfViewport&&n[e].indexa&&(a=n[e].index,r=e);return n[r]&&(n[r].isActive=!0),n})},{rootMargin:"0px 0px -50%",threshold:[0,1]})),(0,tF.jsx)(iL.Provider,{value:t,children:(0,tF.jsx)(iP.Provider,{value:n,children:(0,tF.jsx)(iF.Provider,{value:iZ,children:(0,tF.jsx)(iM.Provider,{value:r.current,children:e})})})})},iH=(0,N.createContext)({menu:!1,setMenu:()=>!1}),iG=()=>(0,N.useContext)(iH),iV=iH.Provider,iB=(0,N.createContext)(iN({title:"",frontMatter:{}},az));function iq(){return(0,N.useContext)(iB)}var iK=({children:e,value:{themeConfig:t,pageOpts:n}})=>{let[r,i]=(0,N.useState)(!1);C||(C=iN(iN({},az),Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t&&"object"==typeof t&&a$.includes(e)?iN(iN({},az[e]),t):t]))));let a=iR(iN(iR(iN({},C),{flexsearch:n.flexsearch}),"boolean"==typeof n.newNextLinkBehavior&&{newNextLinkBehavior:n.newNextLinkBehavior}),{title:n.title,frontMatter:n.frontMatter}),{nextThemes:o}=a;return(0,tF.jsx)(tD.f,{attribute:"class",disableTransitionOnChange:!0,defaultTheme:o.defaultTheme,storageKey:o.storageKey,forcedTheme:o.forcedTheme,children:(0,tF.jsx)(iB.Provider,{value:a,children:(0,tF.jsx)(iV,{value:{menu:r,setMenu:i},children:e})})})},iY=(0,N.createContext)(e=>e),iQ=()=>(0,N.useContext)(iY),iJ=iY.Provider,iX=Number("14.2.20".split(".")[0]),i0=(0,N.forwardRef)(function(e,t){var{href:n="",children:r,newWindow:i}=e,a=iA(e,["href","children","newWindow"]);let o=iq();return i?(0,tF.jsxs)("a",iR(iN({ref:t,href:n,target:"_blank",rel:"noreferrer"},a),{children:[r,(0,tF.jsx)("span",{className:"nx-sr-only nx-select-none",children:" (opens in a new tab)"})]})):n?iX>12||o.newNextLinkBehavior?(0,tF.jsx)(tZ(),iR(iN({ref:t,href:n},a),{children:r})):(0,tF.jsx)(tZ(),{href:n,passHref:!0,children:(0,tF.jsx)("a",iR(iN({ref:t},a),{children:r}))}):(0,tF.jsx)("a",iR(iN({ref:t},a),{children:r}))});i0.displayName="Anchor";var i1=({repository:e="",title:t,labels:n})=>{let r=tK()(e);if(!r)throw Error("Invalid `docsRepositoryBase` URL!");return r.resource.includes("gitlab")?`${r.protocol}://${r.resource}/${r.owner}/${r.name}/-/issues/new?issue[title]=${encodeURIComponent(t)}${n?`&issue[description]=/label${encodeURIComponent(` ~${n} +`)}`:""}`:r.resource.includes("github")?`${r.protocol}://${r.resource}/${r.owner}/${r.name}/issues/new?title=${encodeURIComponent(t)}&labels=${n||""}`:"#"};function i2(e,t){return e?"function"!=typeof e?e:(0,tF.jsx)(e,iN({},t)):null}function i4(e,t={}){return("function"==typeof e?e(t):e)||""}function i5(){let{banner:e}=iq();if(!e.text)return null;let t=`try{if(localStorage.getItem(${JSON.stringify(e.key)})==='0'){document.body.classList.add('nextra-banner-hidden')}}catch(e){}`;return(0,tF.jsxs)(tF.Fragment,{children:[(0,tF.jsx)("script",{dangerouslySetInnerHTML:{__html:t}}),(0,tF.jsxs)("div",{className:(0,R.Z)("nextra-banner-container nx-sticky nx-top-0 nx-z-20 nx-flex nx-items-center md:nx-relative","nx-h-[var(--nextra-banner-height)] [body.nextra-banner-hidden_&]:nx-hidden","nx-text-slate-50 dark:nx-text-white nx-bg-neutral-900 dark:nx-bg-[linear-gradient(1deg,#383838,#212121)]","nx-px-2 ltr:nx-pl-10 rtl:nx-pr-10 print:nx-hidden"),children:[(0,tF.jsx)("div",{className:"nx-w-full nx-truncate nx-px-4 nx-text-center nx-font-medium nx-text-sm",children:i2(e.text)}),e.dismissible&&(0,tF.jsx)("button",{type:"button","aria-label":"Dismiss banner",className:"nx-w-8 nx-h-8 nx-opacity-80 hover:nx-opacity-100",onClick:()=>{try{localStorage.setItem(e.key,"0")}catch(e){}document.body.classList.add("nextra-banner-hidden")},children:(0,tF.jsx)(M.b0,{className:"nx-mx-auto nx-h-4 nx-w-4"})})]})]})}function i7({activePath:e}){return(0,tF.jsx)("div",{className:"nextra-breadcrumb nx-mt-1.5 nx-flex nx-items-center nx-gap-1 nx-overflow-hidden nx-text-sm nx-text-gray-500 dark:nx-text-gray-400 contrast-more:nx-text-current",children:e.map((t,n)=>{let r=!t.children||t.withIndexPage,i=n===e.length-1;return(0,tF.jsxs)(N.Fragment,{children:[n>0&&(0,tF.jsx)(M.LZ,{className:"nx-w-3.5 nx-shrink-0"}),(0,tF.jsx)("div",{className:(0,R.Z)("nx-whitespace-nowrap nx-transition-colors",i?"nx-font-medium nx-text-gray-700 contrast-more:nx-font-bold contrast-more:nx-text-current dark:nx-text-gray-100 contrast-more:dark:nx-text-current":["nx-min-w-[24px] nx-overflow-hidden nx-text-ellipsis",r&&"hover:nx-text-gray-900 dark:hover:nx-text-gray-100"]),title:t.title,children:r&&!i?(0,tF.jsx)(i0,{href:t.route,children:t.title}):t.title})]},t.route+t.name)})})}function i3({children:e,className:t,isOpen:n,horizontal:r=!1}){let i=(0,N.useRef)(null),a=(0,N.useRef)(null),o=(0,N.useRef)(0),s=(0,N.useRef)(n),l=(0,N.useRef)(!0);return(0,N.useEffect)(()=>{let e=i.current,t=a.current,s=o.current;s&&clearTimeout(s),!l.current&&e&&t&&(e.classList.toggle("nx-duration-500",!n),e.classList.toggle("nx-duration-300",n),r?(t.style.width=`${t.clientWidth}px`,e.style.width=`${t.clientWidth}px`):e.style.height=`${t.clientHeight}px`,n?o.current=window.setTimeout(()=>{e.style.removeProperty("height")},300):setTimeout(()=>{r?e.style.width="0px":e.style.height="0px"},0))},[r,n]),(0,N.useEffect)(()=>{l.current=!1},[]),(0,tF.jsx)("div",{ref:i,className:"nx-transform-gpu nx-overflow-hidden nx-transition-all nx-ease-in-out motion-reduce:nx-transition-none",style:s.current||r?void 0:{height:0},children:(0,tF.jsx)("div",{ref:a,className:(0,R.Z)("nx-transition-opacity nx-duration-500 nx-ease-in-out motion-reduce:nx-transition-none",n?"nx-opacity-100":"nx-opacity-0",t),children:e})})}var i6=(0,N.memo)(function({value:e,match:t}){let n;if(!e)return null;let r=e.split(""),i=RegExp((0,nW.Z)(t.trim()).replaceAll(/\s+/g,"|"),"ig"),a=0,o=[];for(;n=i.exec(e);)if(n.index===i.lastIndex)i.lastIndex++;else{let e=r.splice(0,n.index-a).join(""),t=r.splice(0,i.lastIndex-n.index).join("");o.push(e,(0,tF.jsx)("span",{className:"nx-text-primary-600",children:t},n.index)),a=i.lastIndex}return(0,tF.jsxs)(tF.Fragment,{children:[o,r.join("")]})}),i9=(0,N.forwardRef)((e,t)=>{var{className:n,suffix:r}=e,i=iA(e,["className","suffix"]);return(0,tF.jsxs)("div",{className:"nx-relative nx-flex nx-items-center nx-text-gray-900 contrast-more:nx-text-gray-800 dark:nx-text-gray-300 contrast-more:dark:nx-text-gray-300",children:[(0,tF.jsx)("input",iN({ref:t,spellCheck:!1,className:(0,R.Z)(n,"nx-block nx-w-full nx-appearance-none nx-rounded-lg nx-px-3 nx-py-2 nx-transition-colors","nx-text-base nx-leading-tight md:nx-text-sm","nx-bg-black/[.05] dark:nx-bg-gray-50/10","focus:nx-bg-white dark:focus:nx-bg-dark","placeholder:nx-text-gray-500 dark:placeholder:nx-text-gray-400","contrast-more:nx-border contrast-more:nx-border-current")},i)),r]})});i9.displayName="Input";var i8=["input","select","button","textarea"];function ae({className:e,overlayClassName:t,value:n,onChange:r,onActive:i,loading:a,error:o,results:s}){let[l,u]=(0,N.useState)(!1),c=iq(),[d,f]=(0,N.useState)(0),h=(0,S.useRouter)(),{setMenu:p}=iG(),m=(0,N.useRef)(null),x=(0,N.useRef)(null),[g,v]=(0,N.useState)(!1),[y,b]=(0,N.useState)(!0);(0,N.useEffect)(()=>{f(0)},[n]),(0,N.useEffect)(()=>{let e=e=>{let t=document.activeElement,n=null==t?void 0:t.tagName.toLowerCase();!m.current||!n||i8.includes(n)||null!=t&&t.isContentEditable||("/"===e.key||"k"===e.key&&(e.metaKey||e.ctrlKey)?(e.preventDefault(),m.current.focus({preventScroll:!0})):"Escape"===e.key&&(u(!1),m.current.blur()))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[]);let w=(0,N.useCallback)(()=>{var e;null==(e=m.current)||e.blur(),r(""),u(!1),p(!1)},[r,p]),_=(0,N.useCallback)(e=>{let{index:t}=e.currentTarget.dataset;f(Number(t))},[]),k=(0,N.useCallback)(function(e){var t,n,r;switch(e.key){case"ArrowDown":if(d+1 a`);n&&(e.preventDefault(),_({currentTarget:n}),n.focus())}break;case"ArrowUp":if(d-1>=0){let t=null==(n=x.current)?void 0:n.querySelector(`li:nth-of-type(${d}) > a`);t&&(e.preventDefault(),_({currentTarget:t}),t.focus())}break;case"Enter":{let e=s[d];e&&y&&(h.push(e.route),w());break}case"Escape":u(!1),null==(r=m.current)||r.blur()}},[d,s,h,w,_,y]),j=A(),E=l&&!!n,O=(0,tF.jsx)(rc,{show:j&&(!l||!!n),as:N.Fragment,enter:"nx-transition-opacity",enterFrom:"nx-opacity-0",enterTo:"nx-opacity-100",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,tF.jsx)("kbd",{className:(0,R.Z)("nx-absolute nx-my-1.5 nx-select-none ltr:nx-right-1.5 rtl:nx-left-1.5","nx-h-5 nx-rounded nx-bg-white nx-px-1.5 nx-font-mono nx-text-[10px] nx-font-medium nx-text-gray-500","nx-border dark:nx-border-gray-100/20 dark:nx-bg-dark/50","contrast-more:nx-border-current contrast-more:nx-text-current contrast-more:dark:nx-border-current","nx-items-center nx-gap-1 nx-transition-opacity",n?"nx-z-20 nx-flex nx-cursor-pointer hover:nx-opacity-70":"nx-pointer-events-none nx-hidden sm:nx-flex"),title:n?"Clear":void 0,onClick:()=>{r("")},children:n&&g?"ESC":j&&(navigator.userAgent.includes("Macintosh")?(0,tF.jsxs)(tF.Fragment,{children:[(0,tF.jsx)("span",{className:"nx-text-xs",children:"⌘"}),"K"]}):"CTRL K")})}),T=(0,N.useCallback)(e=>{b("compositionend"===e.type)},[]);return(0,tF.jsxs)("div",{className:(0,R.Z)("nextra-search nx-relative md:nx-w-64",e),children:[E&&(0,tF.jsx)("div",{className:"nx-fixed nx-inset-0 nx-z-10",onClick:()=>u(!1)}),(0,tF.jsx)(i9,{ref:m,value:n,onChange:e=>{let{value:t}=e.target;r(t),u(!!t)},onFocus:()=>{null==i||i(!0),v(!0)},onBlur:()=>{v(!1)},onCompositionStart:T,onCompositionEnd:T,type:"search",placeholder:i4(c.search.placeholder),onKeyDown:k,suffix:O}),(0,tF.jsx)(rc,{show:E,as:rc.Child,leave:"nx-transition-opacity nx-duration-100",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,tF.jsx)("ul",{className:(0,R.Z)("nextra-scrollbar","nx-border nx-border-gray-200 nx-bg-white nx-text-gray-100 dark:nx-border-neutral-800 dark:nx-bg-neutral-900","nx-absolute nx-top-full nx-z-20 nx-mt-2 nx-overflow-auto nx-overscroll-contain nx-rounded-xl nx-py-2.5 nx-shadow-xl","nx-max-h-[min(calc(50vh-11rem-env(safe-area-inset-bottom)),400px)]","md:nx-max-h-[min(calc(100vh-5rem-env(safe-area-inset-bottom)),400px)]","nx-inset-x-0 ltr:md:nx-left-auto rtl:md:nx-right-auto","contrast-more:nx-border contrast-more:nx-border-gray-900 contrast-more:dark:nx-border-gray-50",t),ref:x,style:{transition:"max-height .2s ease"},children:o?(0,tF.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-red-500",children:[(0,tF.jsx)(M.AV,{className:"nx-h-5 nx-w-5"}),i4(c.search.error)]}):a?(0,tF.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:[(0,tF.jsx)(M.L4,{className:"nx-h-5 nx-w-5 nx-animate-spin"}),i2(c.search.loading)]}):s.length>0?s.map(({route:e,prefix:t,children:n,id:r},i)=>(0,tF.jsxs)(N.Fragment,{children:[t,(0,tF.jsx)("li",{className:(0,R.Z)("nx-mx-2.5 nx-break-words nx-rounded-md","contrast-more:nx-border",i===d?"nx-bg-primary-500/10 nx-text-primary-600 contrast-more:nx-border-primary-500":"nx-text-gray-800 contrast-more:nx-border-transparent dark:nx-text-gray-300"),children:(0,tF.jsx)(i0,{className:"nx-block nx-scroll-m-12 nx-px-2.5 nx-py-2",href:e,"data-index":i,onFocus:_,onMouseMove:_,onClick:w,onKeyDown:k,children:n})})]},r)):i2(c.search.emptyResult)})})]})}var at={},an=new Map,ar=(e,t)=>{let n=e+"@"+t;if(an.has(n))return an.get(n);let r=ai(e,t);return an.set(n,r),r},ai=(e,t)=>iI(void 0,null,function*(){let n=yield fetch(`${e}/_next/static/chunks/nextra-data-${t}.json`),r=yield n.json(),i=new nU.Z.Document({cache:100,tokenize:"full",document:{id:"id",index:"content",store:["title"]},context:{resolution:9,depth:2,bidirectional:!0}}),a=new nU.Z.Document({cache:100,tokenize:"full",document:{id:"id",index:"content",tag:"pageId",store:["title","content","url","display"]},context:{resolution:9,depth:2,bidirectional:!0}}),o=0;for(let[e,t]of Object.entries(r)){let n="";for(let[r,i]of(++o,Object.entries(t.data))){let[s,l]=r.split("#"),u=e+(s?"#"+s:""),c=l||t.title,d=i.split("\n");a.add(iN({id:u,url:u,title:c,pageId:`page_${o}`,content:c},d[0]&&{display:d[0]}));for(let e=0;e{var n,r;if(!e)return;let[i,a]=at[t],o=(null==(n=i.search(e,5,{enrich:!0,suggest:!0})[0])?void 0:n.result)||[],s=[],u={};for(let t=0;te._page_rk===t._page_rk?e._section_rk-t._section_rk:u[e._page_rk]!==u[t._page_rk]?u[t._page_rk]-u[e._page_rk]:e._page_rk-t._page_rk).map(e=>({id:`${e._page_rk}_${e._section_rk}`,route:e.route,prefix:e.prefix,children:e.children})))},f=(0,N.useCallback)(e=>iI(this,null,function*(){if(e&&!at[t]){i(!0);try{yield ar(n,t)}catch(e){o(!0)}i(!1)}}),[t,n]);return(0,tF.jsx)(ae,{loading:r,error:a,value:u,onChange:e=>iI(this,null,function*(){if(c(e),!r){if(!at[t]){i(!0);try{yield ar(n,t)}catch(e){o(!0)}i(!1)}d(e)}}),onActive:f,className:e,overlayClassName:"nx-w-screen nx-min-h-[100px] nx-max-w-[min(calc(100vw-2rem),calc(100%+20rem))]",results:s})}function ao({options:e,selected:t,onChange:n,title:r,className:i}){let[a,o]=function(e){let t=(0,N.useRef)(null),n=(0,N.useRef)(null),r=(0,N.useRef)(),i=(0,N.useCallback)(()=>{var i;t.current&&n.current&&(null==(i=r.current)||i.call(r),r.current=n$(t.current,n.current,e).destroy)},[t,n,r,e]);return(0,N.useMemo)(()=>[e=>{t.current=e,i()},e=>{n.current=e,i()}],[t,n,i])}({strategy:"fixed",placement:"top-start",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn({state:e}){e.styles.popper.minWidth=`${e.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return(0,tF.jsx)(rW,{value:t,onChange:n,children:({open:n})=>(0,tF.jsxs)(rW.Button,{ref:a,title:r,className:(0,R.Z)("nx-h-7 nx-rounded-md nx-px-2 nx-text-left nx-text-xs nx-font-medium nx-text-gray-600 nx-transition-colors dark:nx-text-gray-400",n?"nx-bg-gray-200 nx-text-gray-900 dark:nx-bg-primary-100/10 dark:nx-text-gray-50":"hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",i),children:[t.name,(0,tF.jsx)(as,{children:(0,tF.jsx)(rc,{ref:o,show:n,as:rW.Options,className:"nx-z-20 nx-max-h-64 nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:e.map(e=>(0,tF.jsxs)(rW.Option,{value:e,className:({active:e})=>(0,R.Z)(e?"nx-bg-primary-50 nx-text-primary-600 dark:nx-bg-primary-500/10":"nx-text-gray-800 dark:nx-text-gray-100","nx-relative nx-cursor-pointer nx-whitespace-nowrap nx-py-1.5","nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),children:[e.name,e.key===t.key&&(0,tF.jsx)("span",{className:"nx-absolute nx-inset-y-0 nx-flex nx-items-center ltr:nx-right-3 rtl:nx-left-3",children:(0,tF.jsx)(M.nQ,{})})]},e.key))})})]})})}function as(e){return A()?(0,rH.createPortal)(e.children,document.body):null}function al({lite:e,className:t}){let n=iq(),{locale:r,asPath:i}=(0,S.useRouter)(),a=n.i18n;if(!a.length)return null;let o=a.find(e=>r===e.locale);return(0,tF.jsx)(ao,{title:"Change language",className:t,onChange:e=>{let t=new Date(Date.now()+31536e6);document.cookie=`NEXT_LOCALE=${e.key}; expires=${t.toUTCString()}; path=/`,location.href=(0,rd.addBasePath)(i)},selected:{key:(null==o?void 0:o.locale)||"",name:(0,tF.jsxs)("span",{className:"nx-flex nx-items-center nx-gap-2",children:[(0,tF.jsx)(M.n9,{}),(0,tF.jsx)("span",{className:e?"nx-hidden":"",children:null==o?void 0:o.text})]})},options:a.map(e=>({key:e.locale,name:e.text}))})}function au(){var e;let t=iq(),{resolvedTheme:n}=(0,tD.F)(),r=A(),i="function"==typeof t.head?t.head({}):t.head,{primaryHue:a,primarySaturation:o}=t,{dark:s,light:l}="number"==typeof a?{dark:a,light:a}:a,{dark:u,light:c}="number"==typeof o?{dark:o,light:o}:o,d=t.frontMatter;return(0,tF.jsxs)(tF.Fragment,{children:[(0,tF.jsx)(r1,iN({title:t.title,description:d.description,canonical:d.canonical,openGraph:d.openGraph},null==(e=t.useNextSeoProps)?void 0:e.call(t))),(0,tF.jsxs)(rV(),{children:[t.faviconGlyph?(0,tF.jsx)("link",{rel:"icon",href:`data:image/svg+xml;utf8,${t.faviconGlyph}`}):null,r?(0,tF.jsx)("meta",{name:"theme-color",content:"dark"===n?"#111":"#fff"}):(0,tF.jsxs)(tF.Fragment,{children:[(0,tF.jsx)("meta",{name:"theme-color",content:"#fff",media:"(prefers-color-scheme: light)"}),(0,tF.jsx)("meta",{name:"theme-color",content:"#111",media:"(prefers-color-scheme: dark)"})]}),(0,tF.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,tF.jsx)("style",{children:` + :root { + --nextra-primary-hue: ${l}deg; + --nextra-primary-saturation: ${c}%; + --nextra-navbar-height: 4rem; + --nextra-menu-height: 3.75rem; + --nextra-banner-height: 2.5rem; + } + + .dark { + --nextra-primary-hue: ${s}deg; + --nextra-primary-saturation: ${u}%; + } + `}),i]})]})}var ac={link:(0,R.Z)("nx-flex nx-max-w-[50%] nx-items-center nx-gap-1 nx-py-4 nx-text-base nx-font-medium nx-text-gray-600 nx-transition-colors [word-break:break-word] hover:nx-text-primary-600 dark:nx-text-gray-300 md:nx-text-lg"),icon:(0,R.Z)("nx-inline nx-h-5 nx-shrink-0")},ad=({flatDirectories:e,currentIndex:t})=>{let n=iq().navigation,r="boolean"==typeof n?{prev:n,next:n}:n,i=r.prev&&e[t-1],a=r.next&&e[t+1];return(i&&!i.isUnderCurrentDocsTree&&(i=!1),a&&!a.isUnderCurrentDocsTree&&(a=!1),i||a)?(0,tF.jsxs)("div",{className:(0,R.Z)("nx-mb-8 nx-flex nx-items-center nx-border-t nx-pt-8 dark:nx-border-neutral-800","contrast-more:nx-border-neutral-400 dark:contrast-more:nx-border-neutral-400","print:nx-hidden"),children:[i&&(0,tF.jsxs)(i0,{href:i.route,title:i.title,className:(0,R.Z)(ac.link,"ltr:nx-pr-4 rtl:nx-pl-4"),children:[(0,tF.jsx)(M.LZ,{className:(0,R.Z)(ac.icon,"ltr:nx-rotate-180")}),i.title]}),a&&(0,tF.jsxs)(i0,{href:a.route,title:a.title,className:(0,R.Z)(ac.link,"ltr:nx-ml-auto ltr:nx-pl-4 ltr:nx-text-right rtl:nx-mr-auto rtl:nx-pr-4 rtl:nx-text-left"),children:[a.title,(0,tF.jsx)(M.LZ,{className:(0,R.Z)(ac.icon,"rtl:nx-rotate-180")})]})]}):null},af={link:(0,R.Z)("nx-text-sm contrast-more:nx-text-gray-700 contrast-more:dark:nx-text-gray-100"),active:(0,R.Z)("nx-font-medium nx-subpixel-antialiased"),inactive:(0,R.Z)("nx-text-gray-600 hover:nx-text-gray-800 dark:nx-text-gray-400 dark:hover:nx-text-gray-200")};function ah({className:e,menu:t,children:n}){let{items:r}=t,i=Object.fromEntries((t.children||[]).map(e=>[e.name,e]));return(0,tF.jsx)("div",{className:"nx-relative nx-inline-block",children:(0,tF.jsxs)(ii,{children:[(0,tF.jsx)(ii.Button,{className:(0,R.Z)(e,"-nx-ml-2 nx-hidden nx-items-center nx-whitespace-nowrap nx-rounded nx-p-2 md:nx-inline-flex",af.inactive),children:n}),(0,tF.jsx)(rc,{leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,tF.jsx)(ii.Items,{className:"nx-absolute nx-right-0 nx-z-20 nx-mt-1 nx-max-h-64 nx-min-w-full nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",children:Object.entries(r||{}).map(([e,n])=>{var r;return(0,tF.jsx)(ii.Item,{children:(0,tF.jsx)(i0,{href:n.href||(null==(r=i[e])?void 0:r.route)||t.route+"/"+e,className:(0,R.Z)("nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block","nx-py-1.5 nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),newWindow:n.newWindow,children:n.title||e})},e)})})})]})})}var ap=Object.create(null),am=(0,N.createContext)(null),ax=(0,N.createContext)(null),ag=(0,N.createContext)(0),av=(0,N.memo)(function(e){let t=(0,N.useContext)(ag);return(0,tF.jsx)(ag.Provider,{value:t+1,children:(0,tF.jsx)(ab,iN({},e))})}),ay={link:(0,R.Z)("nx-flex nx-rounded nx-px-2 nx-py-1.5 nx-text-sm nx-transition-colors [word-break:break-word]","nx-cursor-pointer [-webkit-tap-highlight-color:transparent] [-webkit-touch-callout:none] contrast-more:nx-border"),inactive:(0,R.Z)("nx-text-gray-500 hover:nx-bg-gray-100 hover:nx-text-gray-900","dark:nx-text-neutral-400 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50","contrast-more:nx-text-gray-900 contrast-more:dark:nx-text-gray-50","contrast-more:nx-border-transparent contrast-more:hover:nx-border-gray-900 contrast-more:dark:hover:nx-border-gray-50"),active:(0,R.Z)("nx-bg-primary-100 nx-font-semibold nx-text-primary-800 dark:nx-bg-primary-400/10 dark:nx-text-primary-600","contrast-more:nx-border-primary-500 contrast-more:dark:nx-border-primary-500"),list:(0,R.Z)("nx-flex nx-flex-col nx-gap-1"),border:(0,R.Z)("nx-relative before:nx-absolute before:nx-inset-y-1",'before:nx-w-px before:nx-bg-gray-200 before:nx-content-[""] dark:before:nx-bg-neutral-800',"ltr:nx-pl-3 ltr:before:nx-left-0 rtl:nx-pr-3 rtl:before:nx-right-0")};function ab({item:e,anchors:t}){let[n]=L().split("#"),r=[n,n+"/"].includes(e.route+"/"),i=r||n.startsWith(e.route+"/"),a=(0,N.useContext)(am),o=!!(null==a?void 0:a.startsWith(e.route+"/")),s=(0,N.useContext)(ag),{setMenu:l}=iG(),u=iq(),{theme:c}=e,d=void 0===ap[e.route]?r||i||o||(c&&"collapsed"in c?!c.collapsed:s{u.sidebar.autoCollapse?i&&o?ap[e.route]=!0:delete ap[e.route]:(i||o)&&(ap[e.route]=!0)},[i,o,e.route,u.sidebar.autoCollapse]),"menu"===e.type){let t=Object.fromEntries((e.children||[]).map(e=>[e.name,e]));e.children=Object.entries(e.items||{}).map(([n,r])=>{let i=t[n]||iR(iN({name:n},"locale"in e&&{locale:e.locale}),{route:e.route+"/"+n});return iN(iN({},i),r)})}let h="withIndexPage"in e&&e.withIndexPage,p=h?i0:"button";return(0,tF.jsxs)("li",{className:(0,R.Z)({open:d,active:r}),children:[(0,tF.jsxs)(p,{href:h?e.route:void 0,className:(0,R.Z)("nx-items-center nx-justify-between nx-gap-2",!h&&"nx-text-left nx-w-full",ay.link,r?ay.active:ay.inactive),onClick:t=>{let n=["svg","path"].includes(t.target.tagName.toLowerCase());if(n&&t.preventDefault(),h){r||n?ap[e.route]=!d:(ap[e.route]=!0,l(!1)),f({});return}r||(ap[e.route]=!d,f({}))},children:[i2(u.sidebar.titleComponent,{title:e.title,type:e.type,route:e.route}),(0,tF.jsx)(M.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5 hover:nx-bg-gray-800/5 dark:hover:nx-bg-gray-100/5",pathClassName:(0,R.Z)("nx-origin-center nx-transition-transform rtl:-nx-rotate-180",d&&"ltr:nx-rotate-90 rtl:nx-rotate-[-270deg]")})]}),(0,tF.jsx)(i3,{className:"ltr:nx-pr-0 rtl:nx-pl-0 nx-pt-1",isOpen:d,children:Array.isArray(e.children)?(0,tF.jsx)(ak,{className:(0,R.Z)(ay.border,"ltr:nx-ml-3 rtl:nx-mr-3"),directories:e.children,base:e.route,anchors:t}):null})]})}function aw({title:e}){let t=iq();return(0,tF.jsx)("li",{className:(0,R.Z)("[word-break:break-word]",e?"nx-mt-5 nx-mb-2 nx-px-2 nx-py-1.5 nx-text-sm nx-font-semibold nx-text-gray-900 first:nx-mt-0 dark:nx-text-gray-100":"nx-my-4"),children:e?i2(t.sidebar.titleComponent,{title:e,type:"separator",route:""}):(0,tF.jsx)("hr",{className:"nx-mx-2 nx-border-t nx-border-gray-200 dark:nx-border-primary-100/10"})})}function a_({item:e,anchors:t}){let n=L(),r=(0,N.useContext)(ax),i=e.route&&[n,n+"/"].includes(e.route+"/"),a=iD(),{setMenu:o}=iG(),s=iq();return"separator"===e.type?(0,tF.jsx)(aw,{title:e.title}):(0,tF.jsxs)("li",{className:(0,R.Z)(ay.list,{active:i}),children:[(0,tF.jsx)(i0,{href:e.href||e.route,newWindow:e.newWindow,className:(0,R.Z)(ay.link,i?ay.active:ay.inactive),onClick:()=>{o(!1)},onFocus:()=>{null==r||r(e.route)},onBlur:()=>{null==r||r(null)},children:i2(s.sidebar.titleComponent,{title:e.title,type:e.type,route:e.route})}),i&&t.length>0&&(0,tF.jsx)("ul",{className:(0,R.Z)(ay.list,ay.border,"ltr:nx-ml-3 rtl:nx-mr-3"),children:t.map(({id:e,value:t})=>{var n;return(0,tF.jsx)("li",{children:(0,tF.jsx)("a",{href:`#${e}`,className:(0,R.Z)(ay.link,'nx-flex nx-gap-2 before:nx-opacity-25 before:nx-content-["#"]',(null==(n=a[e])?void 0:n.isActive)?ay.active:ay.inactive),onClick:()=>{o(!1)},children:t})},e)})})]})}function ak({directories:e,anchors:t,className:n,onlyCurrentDocs:r}){return(0,tF.jsx)("ul",{className:(0,R.Z)(ay.list,n),children:e.map(e=>!r||e.isUnderCurrentDocsTree?"menu"===e.type||e.children&&(e.children.length||!e.withIndexPage)?(0,tF.jsx)(av,{item:e,anchors:t},e.name):(0,tF.jsx)(a_,{item:e,anchors:t},e.name):null)})}function aj({docsDirectories:e,flatDirectories:t,fullDirectories:n,asPopover:r=!1,headings:i,includePlaceholder:a}){let o=iq(),{menu:s,setMenu:l}=iG(),u=(0,S.useRouter)(),[c,d]=(0,N.useState)(null),[f,h]=(0,N.useState)(!0),[p,m]=(0,N.useState)(!1),x=(0,N.useMemo)(()=>i.filter(e=>2===e.depth),[i]),g=(0,N.useRef)(null),v=(0,N.useRef)(null),y=A();(0,N.useEffect)(()=>{s?document.body.classList.add("nx-overflow-hidden","md:nx-overflow-auto"):document.body.classList.remove("nx-overflow-hidden","md:nx-overflow-auto")},[s]),(0,N.useEffect)(()=>{var e;let t=null==(e=g.current)?void 0:e.querySelector("li.active");if(t&&(window.innerWidth>767||s)){let e=()=>{ih(t,{block:"center",inline:"center",scrollMode:"always",boundary:v.current})};s?setTimeout(e,300):e()}},[s]),(0,N.useEffect)(()=>{l(!1)},[u.asPath,l]);let b=o.i18n.length>0,w=o.darkMode||b||o.sidebar.toggleButton;return(0,tF.jsxs)(tF.Fragment,{children:[a&&r?(0,tF.jsx)("div",{className:"max-xl:nx-hidden nx-h-0 nx-w-64 nx-shrink-0"}):null,(0,tF.jsx)("div",{className:(0,R.Z)("motion-reduce:nx-transition-none [transition:background-color_1.5s_ease]",s?"nx-fixed nx-inset-0 nx-z-10 nx-bg-black/80 dark:nx-bg-black/60":"nx-bg-transparent"),onClick:()=>l(!1)}),(0,tF.jsxs)("aside",{className:(0,R.Z)("nextra-sidebar-container nx-flex nx-flex-col","md:nx-top-16 md:nx-shrink-0 motion-reduce:nx-transform-none","nx-transform-gpu nx-transition-all nx-ease-in-out","print:nx-hidden",f?"md:nx-w-64":"md:nx-w-20",r?"md:nx-hidden":"md:nx-sticky md:nx-self-start",s?"max-md:[transform:translate3d(0,0,0)]":"max-md:[transform:translate3d(0,-100%,0)]"),ref:v,children:[(0,tF.jsx)("div",{className:"nx-px-4 nx-pt-4 md:nx-hidden",children:i2(o.search.component,{directories:t})}),(0,tF.jsx)(am.Provider,{value:c,children:(0,tF.jsx)(ax.Provider,{value:e=>{d(e)},children:(0,tF.jsxs)("div",{className:(0,R.Z)("nx-overflow-y-auto nx-overflow-x-hidden","nx-p-4 nx-grow md:nx-h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",f?"nextra-scrollbar":"no-scrollbar"),ref:g,children:[(!r||!f)&&(0,tF.jsx)(i3,{isOpen:f,horizontal:!0,children:(0,tF.jsx)(ak,{className:"nextra-menu-desktop max-md:nx-hidden",directories:e,anchors:o.toc.float?[]:x,onlyCurrentDocs:!0})}),y&&window.innerWidth<768&&(0,tF.jsx)(ak,{className:"nextra-menu-mobile md:nx-hidden",directories:n,anchors:x})]})})}),w&&(0,tF.jsxs)("div",{className:(0,R.Z)("nx-sticky nx-bottom-0","nx-bg-white dark:nx-bg-dark","nx-mx-4 nx-py-4 nx-shadow-[0_-12px_16px_#fff]","nx-flex nx-items-center nx-gap-2","dark:nx-border-neutral-800 dark:nx-shadow-[0_-12px_16px_#111]","contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-shadow-none",f?(0,R.Z)(b&&"nx-justify-end","nx-border-t"):"nx-py-4 nx-flex-wrap nx-justify-center"),"data-toggle-animation":p?f?"show":"hide":"off",children:[(0,tF.jsx)(al,{lite:!f,className:(0,R.Z)(f?"nx-grow":"max-md:nx-grow")}),o.darkMode&&(0,tF.jsx)("div",{className:f&&!b?"nx-grow nx-flex nx-flex-col":"",children:i2(o.themeSwitch.component,{lite:!f||b})}),o.sidebar.toggleButton&&(0,tF.jsx)("button",{title:f?"Hide sidebar":"Show sidebar",className:"max-md:nx-hidden nx-h-7 nx-rounded-md nx-transition-colors nx-text-gray-600 dark:nx-text-gray-400 nx-px-2 hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",onClick:()=>{h(!f),m(!0)},children:(0,tF.jsx)(M.Qq,{isOpen:f})})]})]})]})}var aE="reach-skip-nav";(0,N.forwardRef)(function(e,t){var{className:n,id:r,label:i="Skip to content",styled:a}=e,o=iA(e,["className","id","label","styled"]);let s=void 0===n?a?(0,R.Z)("nx-sr-only","focus:nx-not-sr-only focus:nx-fixed focus:nx-z-50 focus:nx-m-3 focus:nx-ml-4 focus:nx-h-[calc(var(--nextra-navbar-height)-1.5rem)] focus:nx-rounded-lg focus:nx-border focus:nx-px-3 focus:nx-py-2 focus:nx-align-middle focus:nx-text-sm focus:nx-font-bold","focus:nx-text-gray-900 focus:dark:nx-text-gray-100","focus:nx-bg-white focus:dark:nx-bg-neutral-900","focus:nx-border-neutral-400 focus:dark:nx-border-neutral-800"):"":n;return(0,tF.jsx)("a",iR(iN({},o),{ref:t,href:`#${r||aE}`,className:s,"data-reach-skip-link":"",children:i}))}).displayName="SkipNavLink";var aO=(0,N.forwardRef)(function(e,t){var{id:n}=e,r=iA(e,["id"]);return(0,tF.jsx)("div",iR(iN({},r),{ref:t,id:n||aE}))});aO.displayName="SkipNavContent";var aT=tP.strictObject({light:tP.string(),dark:tP.string(),system:tP.string()});function aC(){window.scrollTo({top:0,behavior:"smooth"})}function aS({className:e}){let t=(0,N.useRef)(null);return(0,N.useEffect)(()=>{function e(){var e;let{scrollTop:n}=document.documentElement;null==(e=t.current)||e.classList.toggle("nx-opacity-0",n<300)}return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,tF.jsxs)("button",{ref:t,"aria-hidden":"true",onClick:aC,className:(0,R.Z)("nx-flex nx-items-center nx-gap-1.5 nx-transition nx-opacity-0",e),children:["Scroll to top",(0,tF.jsx)(M.LZ,{className:"-nx-rotate-90 nx-w-3.5 nx-h-3.5 nx-border nx-rounded-full nx-border-current"})]})}var aN=(0,R.Z)("nx-text-xs nx-font-medium nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100","contrast-more:nx-text-gray-800 contrast-more:dark:nx-text-gray-50");function aR({className:e,directories:t}){let[n,r]=(0,N.useState)(""),i=(0,N.useMemo)(()=>n?iv(t,n,{keys:["title"]}).map(({route:e,title:t})=>({id:e+t,route:e,children:(0,tF.jsx)(i6,{value:t,match:n})})):[],[n,t]);return(0,tF.jsx)(ae,{value:n,onChange:r,className:e,overlayClassName:"nx-w-full",results:i})}var aA="en-US",aI="undefined"!=typeof window;function aL(e){return"function"==typeof e}var aP=tP.array(tP.strictObject({direction:tP.enum(["ltr","rtl"]).optional(),locale:tP.string(),text:tP.string()})),aM=[function(e){return null==e||"string"==typeof e||aL(e)||(0,N.isValidElement)(e)},{message:"Must be React.ReactNode or React.FC"}],aZ=[aL,{message:"Must be React.FC"}];tP.strictObject({banner:tP.strictObject({dismissible:tP.boolean(),key:tP.string(),text:tP.custom(...aM).optional()}),chat:tP.strictObject({icon:tP.custom(...aM),link:tP.string().startsWith("https://").optional()}),components:tP.record(tP.custom(...aZ)).optional(),darkMode:tP.boolean(),direction:tP.enum(["ltr","rtl"]),docsRepositoryBase:tP.string().startsWith("https://"),editLink:tP.strictObject({component:tP.custom(...aZ).or(tP.null()),text:tP.custom(...aM)}),faviconGlyph:tP.string().optional(),feedback:tP.strictObject({content:tP.custom(...aM),labels:tP.string(),useLink:tP.function().returns(tP.string())}),footer:tP.strictObject({component:tP.custom(...aM),text:tP.custom(...aM)}),gitTimestamp:tP.custom(...aM),head:tP.custom(...aM),i18n:aP,logo:tP.custom(...aM),logoLink:tP.boolean().or(tP.string()),main:tP.custom(...aZ).optional(),navbar:tP.strictObject({component:tP.custom(...aM),extraContent:tP.custom(...aM).optional()}),navigation:tP.boolean().or(tP.strictObject({next:tP.boolean(),prev:tP.boolean()})),nextThemes:tP.strictObject({defaultTheme:tP.string(),forcedTheme:tP.string().optional(),storageKey:tP.string()}),notFound:tP.strictObject({content:tP.custom(...aM),labels:tP.string()}),primaryHue:tP.number().or(tP.strictObject({dark:tP.number(),light:tP.number()})),primarySaturation:tP.number().or(tP.strictObject({dark:tP.number(),light:tP.number()})),project:tP.strictObject({icon:tP.custom(...aM),link:tP.string().startsWith("https://").optional()}),search:tP.strictObject({component:tP.custom(...aM),emptyResult:tP.custom(...aM),error:tP.string().or(tP.function().returns(tP.string())),loading:tP.custom(...aM),placeholder:tP.string().or(tP.function().returns(tP.string()))}),serverSideError:tP.strictObject({content:tP.custom(...aM),labels:tP.string()}),sidebar:tP.strictObject({autoCollapse:tP.boolean().optional(),defaultMenuCollapseLevel:tP.number().min(1).int(),titleComponent:tP.custom(...aM),toggleButton:tP.boolean()}),themeSwitch:tP.strictObject({component:tP.custom(...aM),useOptions:aT.or(tP.function().returns(aT))}),toc:tP.strictObject({backToTop:tP.boolean(),component:tP.custom(...aM),extraContent:tP.custom(...aM),float:tP.boolean(),headingComponent:tP.custom(...aZ).optional(),title:tP.custom(...aM)}),useNextSeoProps:tP.custom(aL)}).deepPartial().extend({i18n:aP.optional()});var aF={"en-US":"Loading",fr:"Сhargement",ru:"Загрузка","zh-CN":"正在加载"},aD={"en-US":"Search documentation",fr:"Rechercher documents",ru:"Поиск документации","zh-CN":"搜索文档"},az={banner:{dismissible:!0,key:"nextra-banner"},chat:{icon:(0,tF.jsxs)(tF.Fragment,{children:[(0,tF.jsx)(M.D7,{}),(0,tF.jsx)("span",{className:"nx-sr-only",children:"Discord"})]})},darkMode:!0,direction:"ltr",docsRepositoryBase:"https://github.com/shuding/nextra",editLink:{component:function({className:e,filePath:t,children:n}){let r=function(e=""){let t=iq(),n=tK()(t.docsRepositoryBase||"");if(!n)throw Error("Invalid `docsRepositoryBase` URL!");return`${n.href}/${e}`}(t);return r?(0,tF.jsx)(i0,{className:e,href:r,children:n}):null},text:"Edit this page"},feedback:{content:"Question? Give us feedback →",labels:"feedback",useLink(){let e=iq();return i1({labels:e.feedback.labels,repository:e.docsRepositoryBase,title:`Feedback for \u201C${e.title}\u201D`})}},footer:{component:function({menu:e}){let t=iq();return(0,tF.jsxs)("footer",{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent",children:[(0,tF.jsxs)("div",{className:(0,R.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-gap-2 nx-py-2 nx-px-4",e&&(t.i18n.length>0||t.darkMode)?"nx-flex":"nx-hidden"),children:[(0,tF.jsx)(al,{}),t.darkMode&&i2(t.themeSwitch.component)]}),(0,tF.jsx)("hr",{className:"dark:nx-border-neutral-800"}),(0,tF.jsx)("div",{className:(0,R.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-justify-center nx-py-12 nx-text-gray-600 dark:nx-text-gray-400 md:nx-justify-start","nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:i2(t.footer.text)})]})},text:`MIT ${new Date().getFullYear()} \xa9 Nextra.`},gitTimestamp:function({timestamp:e}){let{locale:t=aA}=(0,S.useRouter)();return(0,tF.jsxs)(tF.Fragment,{children:["Last updated on"," ",(0,tF.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleDateString(t,{day:"numeric",month:"long",year:"numeric"})})]})},head:(0,tF.jsxs)(tF.Fragment,{children:[(0,tF.jsx)("meta",{name:"msapplication-TileColor",content:"#fff"}),(0,tF.jsx)("meta",{httpEquiv:"Content-Language",content:"en"}),(0,tF.jsx)("meta",{name:"description",content:"Nextra: the next docs builder"}),(0,tF.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,tF.jsx)("meta",{name:"twitter:site",content:"@shuding_"}),(0,tF.jsx)("meta",{property:"og:title",content:"Nextra: the next docs builder"}),(0,tF.jsx)("meta",{property:"og:description",content:"Nextra: the next docs builder"}),(0,tF.jsx)("meta",{name:"apple-mobile-web-app-title",content:"Nextra"})]}),i18n:[],logo:(0,tF.jsxs)(tF.Fragment,{children:[(0,tF.jsx)("span",{className:"nx-font-extrabold",children:"Nextra"}),(0,tF.jsx)("span",{className:"nx-ml-2 nx-hidden nx-font-normal nx-text-gray-600 md:nx-inline",children:"The Next Docs Builder"})]}),logoLink:!0,navbar:{component:function({flatDirectories:e,items:t}){let n=iq(),r=L(),{menu:i,setMenu:a}=iG();return(0,tF.jsxs)("div",{className:"nextra-nav-container nx-sticky nx-top-0 nx-z-20 nx-w-full nx-bg-transparent print:nx-hidden",children:[(0,tF.jsx)("div",{className:(0,R.Z)("nextra-nav-container-blur","nx-pointer-events-none nx-absolute nx-z-[-1] nx-h-full nx-w-full nx-bg-white dark:nx-bg-dark","nx-shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)] dark:nx-shadow-[0_-1px_0_rgba(255,255,255,.1)_inset]","contrast-more:nx-shadow-[0_0_0_1px_#000] contrast-more:dark:nx-shadow-[0_0_0_1px_#fff]")}),(0,tF.jsxs)("nav",{className:"nx-mx-auto nx-flex nx-h-[var(--nextra-navbar-height)] nx-max-w-[90rem] nx-items-center nx-justify-end nx-gap-2 nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]",children:[n.logoLink?(0,tF.jsx)(i0,{href:"string"==typeof n.logoLink?n.logoLink:"/",className:"nx-flex nx-items-center hover:nx-opacity-75 ltr:nx-mr-auto rtl:nx-ml-auto",children:i2(n.logo)}):(0,tF.jsx)("div",{className:"nx-flex nx-items-center ltr:nx-mr-auto rtl:nx-ml-auto",children:i2(n.logo)}),t.map(e=>{if("hidden"===e.display)return null;if("menu"===e.type)return(0,tF.jsxs)(ah,{className:(0,R.Z)(af.link,"nx-flex nx-gap-1",af.inactive),menu:e,children:[e.title,(0,tF.jsx)(M.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5",pathClassName:"nx-origin-center nx-transition-transform nx-rotate-90"})]},e.title);let t=e.href||e.route||"#";e.children&&(t=(e.withIndexPage?e.route:e.firstChildRoute)||t);let n=e.route===r||r.startsWith(e.route+"/");return(0,tF.jsxs)(i0,{href:t,className:(0,R.Z)(af.link,"nx-relative -nx-ml-2 nx-hidden nx-whitespace-nowrap nx-p-2 md:nx-inline-block",!n||e.newWindow?af.inactive:af.active),newWindow:e.newWindow,"aria-current":!e.newWindow&&n,children:[(0,tF.jsx)("span",{className:"nx-absolute nx-inset-x-0 nx-text-center",children:e.title}),(0,tF.jsx)("span",{className:"nx-invisible nx-font-medium",children:e.title})]},t)}),i2(n.search.component,{directories:e,className:"nx-hidden md:nx-inline-block mx-min-w-[200px]"}),n.project.link?(0,tF.jsx)(i0,{className:"nx-p-2 nx-text-current",href:n.project.link,newWindow:!0,children:i2(n.project.icon)}):null,n.chat.link?(0,tF.jsx)(i0,{className:"nx-p-2 nx-text-current",href:n.chat.link,newWindow:!0,children:i2(n.chat.icon)}):null,i2(n.navbar.extraContent),(0,tF.jsx)("button",{type:"button","aria-label":"Menu",className:"nextra-hamburger -nx-mr-2 nx-rounded nx-p-2 active:nx-bg-gray-400/20 md:nx-hidden",onClick:()=>a(!i),children:(0,tF.jsx)(M.Oq,{className:(0,R.Z)({open:i})})})]})]})}},navigation:!0,nextThemes:{defaultTheme:"system",storageKey:"theme"},notFound:{content:"Submit an issue about broken link →",labels:"bug"},primaryHue:{dark:204,light:212},primarySaturation:{dark:100,light:100},project:{icon:(0,tF.jsxs)(tF.Fragment,{children:[(0,tF.jsx)(M.fy,{}),(0,tF.jsx)("span",{className:"nx-sr-only",children:"GitHub"})]})},search:{component:function({className:e,directories:t}){return iq().flexsearch?(0,tF.jsx)(aa,{className:e}):(0,tF.jsx)(aR,{className:e,directories:t})},emptyResult:(0,tF.jsx)("span",{className:"nx-block nx-select-none nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:"No results found."}),error:"Failed to load search index.",loading:function(){let{locale:e,defaultLocale:t=aA}=(0,S.useRouter)(),n=e&&aF[e]||aF[t];return(0,tF.jsxs)(tF.Fragment,{children:[n,"…"]})},placeholder:function(){let{locale:e,defaultLocale:t=aA}=(0,S.useRouter)(),n=e&&aD[e]||aD[t];return`${n}\u2026`}},serverSideError:{content:"Submit an issue about error in url →",labels:"bug"},sidebar:{defaultMenuCollapseLevel:2,titleComponent:({title:e})=>(0,tF.jsx)(tF.Fragment,{children:e}),toggleButton:!1},themeSwitch:{component:function({lite:e,className:t}){let{setTheme:n,resolvedTheme:r,theme:i=""}=(0,tD.F)(),a=A(),o=iq().themeSwitch,s=a&&"dark"===r?M.kL:M.NW,l="function"==typeof o.useOptions?o.useOptions():o.useOptions;return(0,tF.jsx)(ao,{className:t,title:"Change theme",options:[{key:"light",name:l.light},{key:"dark",name:l.dark},{key:"system",name:l.system}],onChange:e=>{n(e.key)},selected:{key:i,name:(0,tF.jsxs)("div",{className:"nx-flex nx-items-center nx-gap-2 nx-capitalize",children:[(0,tF.jsx)(s,{}),(0,tF.jsx)("span",{className:e?"md:nx-hidden":"",children:a?l[i]:l.light})]})}})},useOptions(){let{locale:e}=(0,S.useRouter)();return"zh-CN"===e?{dark:"深色主题",light:"浅色主题",system:"系统默认"}:{dark:"Dark",light:"Light",system:"System"}}},toc:{backToTop:!1,component:function({headings:e,filePath:t}){var n;let r=iD(),i=iq(),a=(0,N.useRef)(null),o=(0,N.useMemo)(()=>e.filter(e=>e.depth>1),[e]),s=o.length>0,l=!!(i.feedback.content||i.editLink.component||i.toc.extraContent),u=null==(n=Object.entries(r).find(([,{isActive:e}])=>e))?void 0:n[0];return(0,N.useEffect)(()=>{var e;if(!u)return;let t=null==(e=a.current)?void 0:e.querySelector(`li > a[href="#${u}"]`);t&&ih(t,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:a.current})},[u]),(0,tF.jsxs)("div",{ref:a,className:(0,R.Z)("nextra-scrollbar nx-sticky nx-top-16 nx-overflow-y-auto nx-pr-4 nx-pt-6 nx-text-sm [hyphens:auto]","nx-max-h-[calc(100vh-var(--nextra-navbar-height)-env(safe-area-inset-bottom))] ltr:-nx-mr-4 rtl:-nx-ml-4"),children:[s&&(0,tF.jsxs)(tF.Fragment,{children:[(0,tF.jsx)("p",{className:"nx-mb-4 nx-font-semibold nx-tracking-tight",children:i2(i.toc.title)}),(0,tF.jsx)("ul",{children:o.map(({id:e,value:t,depth:n})=>{var a,o,s,l;return(0,tF.jsx)("li",{className:"nx-my-2 nx-scroll-my-6 nx-scroll-py-6",children:(0,tF.jsx)("a",{href:`#${e}`,className:(0,R.Z)({2:"nx-font-semibold",3:"ltr:nx-pl-4 rtl:nx-pr-4",4:"ltr:nx-pl-8 rtl:nx-pr-8",5:"ltr:nx-pl-12 rtl:nx-pr-12",6:"ltr:nx-pl-16 rtl:nx-pr-16"}[n],"nx-inline-block",(null==(a=r[e])?void 0:a.isActive)?"nx-text-primary-600 nx-subpixel-antialiased contrast-more:!nx-text-primary-600":"nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-300","contrast-more:nx-text-gray-900 contrast-more:nx-underline contrast-more:dark:nx-text-gray-50 nx-w-full nx-break-words"),children:null!=(l=null==(s=(o=i.toc).headingComponent)?void 0:s.call(o,{id:e,children:t}))?l:t})},e)})})]}),l&&(0,tF.jsxs)("div",{className:(0,R.Z)(s&&"nx-mt-8 nx-border-t nx-bg-white nx-pt-8 nx-shadow-[0_-12px_16px_white] dark:nx-bg-dark dark:nx-shadow-[0_-12px_16px_#111]","nx-sticky nx-bottom-0 nx-flex nx-flex-col nx-items-start nx-gap-2 nx-pb-8 dark:nx-border-neutral-800","contrast-more:nx-border-t contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-border-neutral-400"),children:[i.feedback.content?(0,tF.jsx)(i0,{className:aN,href:i.feedback.useLink(),newWindow:!0,children:i2(i.feedback.content)}):null,i2(i.editLink.component,{filePath:t,className:aN,children:i2(i.editLink.text)}),i2(i.toc.extraContent),i.toc.backToTop&&(0,tF.jsx)(aS,{className:aN})]})]})},float:!0,title:"On This Page"},useNextSeoProps:()=>({titleTemplate:"%s – Nextra"})},a$=Object.entries(az).map(([e,t])=>{if(t&&"object"==typeof t&&!Array.isArray(t)&&!(0,N.isValidElement)(t))return e}).filter(Boolean);if(aI){let e;window.addEventListener("resize",()=>{document.body.classList.add("resizing"),clearTimeout(e),e=setTimeout(()=>{document.body.classList.remove("resizing")},200)})}function aU(e){var{tag:t,context:n,children:r,id:i,className:a}=e,o=iA(e,["tag","context","children","id","className"]);let s=iz(),l=iU(),u=i$(),c=(0,N.useRef)(null);return(0,N.useEffect)(()=>{if(!i)return;let e=c.current;if(e)return l.set(e,[i,n.index+=1]),null==u||u.observe(e),()=>{null==u||u.disconnect(),l.delete(e),s(e=>{let t=iN({},e);return delete t[i],t})}},[i,n,l,u,s]),(0,tF.jsxs)(t,iR(iN({className:"sr-only"===a?"nx-sr-only":(0,R.Z)("nx-font-semibold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100",{h2:"nx-mt-10 nx-border-b nx-pb-1 nx-text-3xl nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400",h3:"nx-mt-8 nx-text-2xl",h4:"nx-mt-8 nx-text-xl",h5:"nx-mt-8 nx-text-lg",h6:"nx-mt-8 nx-text-base"}[t])},o),{children:[r,i&&(0,tF.jsx)("a",{href:`#${i}`,id:i,className:"subheading-anchor","aria-label":"Permalink for this section",ref:c})]}))}var aW=e=>{let t=null,n=[];return N.Children.forEach(e,(e,r)=>{var i;if(e&&e.type===aG){t||(t=e);return}let a=e;if(!t&&e&&"object"==typeof e&&e.type!==aH&&"props"in e&&e.props){let n=aW(e.props.children);t=n[0],a=(0,N.cloneElement)(e,iR(iN({},e.props),{children:(null==(i=n[1])?void 0:i.length)?n[1]:void 0,key:r}))}n.push(a)}),[t,n]},aH=e=>{var{children:t,open:n}=e,r=iA(e,["children","open"]);let[i,a]=(0,N.useState)(!!n),[o,s]=aW(t),[l,u]=(0,N.useState)(i);return(0,N.useEffect)(()=>{if(i)u(!0);else{let e=setTimeout(()=>u(i),500);return()=>clearTimeout(e)}},[i]),(0,tF.jsxs)("details",iR(iN(iR(iN({className:"nx-my-4 nx-rounded nx-border nx-border-gray-200 nx-bg-white nx-p-2 nx-shadow-sm first:nx-mt-0 dark:nx-border-neutral-800 dark:nx-bg-neutral-900"},r),{open:l}),i&&{"data-expanded":!0}),{children:[(0,tF.jsx)(iJ,{value:a,children:o}),(0,tF.jsx)(i3,{isOpen:i,children:s})]}))},aG=e=>{let t=iQ();return(0,tF.jsx)("summary",iR(iN({className:(0,R.Z)("nx-flex nx-items-center nx-cursor-pointer nx-list-none nx-p-1 nx-transition-colors hover:nx-bg-gray-100 dark:hover:nx-bg-neutral-800","before:nx-mr-1 before:nx-inline-block before:nx-transition-transform before:nx-content-[''] dark:before:nx-invert before:nx-shrink-0","rtl:before:nx-rotate-180 [[data-expanded]>&]:before:nx-rotate-90")},e),{onClick:e=>{e.preventDefault(),t(e=>!e)}}))},aV=/https?:\/\//,aB=e=>{var{href:t="",className:n}=e,r=iA(e,["href","className"]);return(0,tF.jsx)(i0,iN({href:t,newWindow:aV.test(t),className:(0,R.Z)("nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]",n)},r))},aq=e=>{var{href:t=""}=e,n=iA(e,["href"]);return(0,tF.jsx)(i0,iN({href:t,newWindow:aV.test(t)},n))},aK=({isRawLayout:e,components:t})=>{if(e)return{a:aq};let n={index:0};return iN({h1:e=>(0,tF.jsx)("h1",iN({className:"nx-mt-2 nx-text-4xl nx-font-bold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100"},e)),h2:e=>(0,tF.jsx)(aU,iN({tag:"h2",context:n},e)),h3:e=>(0,tF.jsx)(aU,iN({tag:"h3",context:n},e)),h4:e=>(0,tF.jsx)(aU,iN({tag:"h4",context:n},e)),h5:e=>(0,tF.jsx)(aU,iN({tag:"h5",context:n},e)),h6:e=>(0,tF.jsx)(aU,iN({tag:"h6",context:n},e)),ul:e=>(0,tF.jsx)("ul",iN({className:"nx-mt-6 nx-list-disc first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},e)),ol:e=>(0,tF.jsx)("ol",iN({className:"nx-mt-6 nx-list-decimal first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},e)),li:e=>(0,tF.jsx)("li",iN({className:"nx-my-2"},e)),blockquote:e=>(0,tF.jsx)("blockquote",iN({className:(0,R.Z)("nx-mt-6 nx-border-gray-300 nx-italic nx-text-gray-700 dark:nx-border-gray-700 dark:nx-text-gray-400","first:nx-mt-0 ltr:nx-border-l-2 ltr:nx-pl-6 rtl:nx-border-r-2 rtl:nx-pr-6")},e)),hr:e=>(0,tF.jsx)("hr",iN({className:"nx-my-8 nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400"},e)),a:aB,table:e=>(0,tF.jsx)(i_.iA,iN({className:"nextra-scrollbar nx-mt-6 nx-p-0 first:nx-mt-0"},e)),p:e=>(0,tF.jsx)("p",iN({className:"nx-mt-6 nx-leading-7 first:nx-mt-0"},e)),tr:i_.Tr,th:i_.Th,td:i_.Td,details:aH,summary:aG,pre:i_.SU,code:i_.EK},t)},aY={toc:(0,R.Z)("nextra-toc nx-order-last nx-hidden nx-w-64 nx-shrink-0 xl:nx-block print:nx-hidden"),main:(0,R.Z)("nx-w-full nx-break-words")},aQ=({themeContext:e,breadcrumb:t,timestamp:n,navigation:r,children:i})=>{var a;let o=iq(),s=A();if("raw"===e.layout)return(0,tF.jsx)("div",{className:aY.main,children:i});let l=e.timestamp&&o.gitTimestamp&&n?new Date(n):null,u=s&&l?(0,tF.jsx)("div",{className:"nx-mt-12 nx-mb-8 nx-block nx-text-xs nx-text-gray-500 ltr:nx-text-right rtl:nx-text-left dark:nx-text-gray-400",children:i2(o.gitTimestamp,{timestamp:l})}):(0,tF.jsx)("div",{className:"nx-mt-16"}),c=(0,tF.jsxs)(tF.Fragment,{children:[i,u,r]}),d=(null==(a=o.main)?void 0:a.call(o,{children:c}))||c;return"full"===e.layout?(0,tF.jsx)("article",{className:(0,R.Z)(aY.main,"nextra-content nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:d}):(0,tF.jsx)("article",{className:(0,R.Z)(aY.main,"nextra-content nx-flex nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-min-w-0 nx-justify-center nx-pb-8 nx-pr-[calc(env(safe-area-inset-right)-1.5rem)]","article"===e.typesetting&&"nextra-body-typesetting-article"),children:(0,tF.jsxs)("main",{className:"nx-w-full nx-min-w-0 nx-max-w-6xl nx-px-6 nx-pt-4 md:nx-px-12",children:[t,d]})})},aJ=({filePath:e,pageMap:t,frontMatter:n,headings:r,timestamp:i,children:a})=>{let o=iq(),{locale:s=aA,defaultLocale:l}=(0,S.useRouter)(),u=L(),{activeType:c,activeIndex:d,activeThemeContext:f,activePath:h,topLevelNavbarItems:p,docsDirectories:m,flatDirectories:x,flatDocsDirectories:g,directories:v}=(0,N.useMemo)(()=>(function e({list:t,locale:n,defaultLocale:r,route:i,docsRoot:a="",underCurrentDocsRoot:o=!1,pageThemeContext:s=tz}){let l,u;for(let e of t)if("Meta"===e.kind){if(e.locale===n){l=e.data;break}l||(l=e.data)}let c=l||{},d=Object.keys(c);for(let e of d)"string"==typeof c[e]&&(c[e]={title:c[e]});let f=[],h=[],p=[],m=[],x=[],g=0,v=s,y=[],b=-1,w=c["*"]||{};delete w.title,delete w.href;let _=t.filter(e=>"Meta"!==e.kind&&!e.name.startsWith("_")&&(!("locale"in e)||!e.locale||[n,r].includes(e.locale))).sort((e,t)=>{let n=d.indexOf(e.name),r=d.indexOf(t.name);return -1===n&&-1===r?e.name{let t;let n=[],r=d.indexOf(e.name);if(-1!==r){for(let e=b+1;e({...l,type:k,...T&&{title:T},...b&&{display:b},...O&&{children:[]}}),S=C(),N=C(),R=C();if(N.isUnderCurrentDocsTree=E,"separator"===k&&(S.isUnderCurrentDocsTree=E),l.route===i)switch(y=[S],u=k,v={...v,...j},k){case"page":case"menu":g=x.length;break;case"doc":g=m.length}if(!("hidden"===b&&"Folder"!==S.kind||I.hV.has(l.route))){if(O){if(void 0!==O.activeIndex&&void 0!==O.activeType){switch(v=O.activeThemeContext,u=O.activeType,y=[S,...O.activePath],u){case"page":case"menu":g=x.length+O.activeIndex;break;case"doc":g=m.length+O.activeIndex}l.withIndexPage&&"doc"===k&&g++}switch(k){case"page":case"menu":R.children.push(...O.directories),p.push(...O.docsDirectories),O.flatDirectories.length?(R.firstChildRoute=function e(t){for(let n of t){if(n.route)return n.route;if(n.children){let t=e(n.children);if(t)return t}}}(O.flatDirectories),x.push(R)):R.withIndexPage&&x.push(R);break;case"doc":Array.isArray(N.children)&&N.children.push(...O.docsDirectories),S.withIndexPage&&"children"!==b&&m.push(N)}h.push(...O.flatDirectories),m.push(...O.flatDocsDirectories),Array.isArray(S.children)&&S.children.push(...O.directories)}else switch(h.push(S),k){case"page":case"menu":x.push(R);break;case"doc":m.push(N)}switch("doc"===k&&"children"===b?N.children&&(f.push(...N.children),p.push(...N.children)):f.push(S),k){case"page":case"menu":p.push(R);break;case"doc":"children"!==b&&p.push(N);break;case"separator":p.push(S)}}}return{activeType:u,activeIndex:g,activeThemeContext:v,activePath:y,directories:f,flatDirectories:h,docsDirectories:p,flatDocsDirectories:m,topLevelNavbarItems:x}})({list:t,locale:s,defaultLocale:l,route:u}),[t,s,l,u]),y=iN(iN({},f),n),b=!y.sidebar||"raw"===y.layout||"page"===c,w="page"!==c&&y.toc&&"default"===y.layout?(0,tF.jsx)("nav",{className:(0,R.Z)(aY.toc,"nx-px-4"),"aria-label":"table of contents",children:i2(o.toc.component,{headings:o.toc.float?r:[],filePath:e})}):"full"!==y.layout&&"raw"!==y.layout&&(0,tF.jsx)("nav",{className:aY.toc,"aria-label":"table of contents"}),_=o.i18n.find(e=>e.locale===s),k=(_?"rtl"===_.direction:"rtl"===o.direction)?"rtl":"ltr";return(0,tF.jsxs)("div",{dir:k,children:[(0,tF.jsx)("script",{dangerouslySetInnerHTML:{__html:`document.documentElement.setAttribute('dir','${k}')`}}),(0,tF.jsx)(au,{}),(0,tF.jsx)(i5,{}),y.navbar&&i2(o.navbar.component,{flatDirectories:x,items:p}),(0,tF.jsx)("div",{className:(0,R.Z)("nx-mx-auto nx-flex","raw"!==y.layout&&"nx-max-w-[90rem]"),children:(0,tF.jsxs)(iW,{children:[(0,tF.jsx)(aj,{docsDirectories:m,flatDirectories:x,fullDirectories:v,headings:r,asPopover:b,includePlaceholder:"default"===y.layout}),w,(0,tF.jsx)(aO,{}),(0,tF.jsx)(aQ,{themeContext:y,breadcrumb:"page"!==c&&y.breadcrumb?(0,tF.jsx)(i7,{activePath:h}):null,timestamp:i,navigation:"page"!==c&&y.pagination?(0,tF.jsx)(ad,{flatDirectories:g,currentIndex:d}):null,children:(0,tF.jsx)(P.Z,{components:aK({isRawLayout:"raw"===y.layout,components:o.components}),children:a})})]})}),y.footer&&i2(o.footer.component,{menu:b})]})};function aX(e){var{children:t}=e,n=iA(e,["children"]);return(0,tF.jsx)(iK,{value:n,children:(0,tF.jsx)(aJ,iR(iN({},n.pageOpts),{children:t}))})}},587:function(e,t,n){"use strict";let r,i,a;n.d(t,{UW:function(){return f},EK:function(){return m},SU:function(){return x},Rg:function(){return g},OK:function(){return K},iA:function(){return J},mQ:function(){return Y},Td:function(){return Q},Th:function(){return X},Tr:function(){return ee}});var o=n(4814),s=n(2676),l=({children:e,className:t,...n})=>(0,s.jsx)("button",{className:(0,o.Z)("nextra-button nx-transition-all active:nx-opacity-50","nx-bg-primary-700/5 nx-border nx-border-black/5 nx-text-gray-600 hover:nx-text-gray-900 nx-rounded-md nx-p-1.5","dark:nx-bg-primary-300/10 dark:nx-border-white/10 dark:nx-text-gray-400 dark:hover:nx-text-gray-50",t),...n,children:e}),u=n(5418),c={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,s.jsx)(u.AV,{className:"nx-mt-1"}),warning:"⚠️"},d={default:(0,o.Z)("nx-border-orange-100 nx-bg-orange-50 nx-text-orange-800 dark:nx-border-orange-400/30 dark:nx-bg-orange-400/20 dark:nx-text-orange-300"),error:(0,o.Z)("nx-border-red-200 nx-bg-red-100 nx-text-red-900 dark:nx-border-red-200/30 dark:nx-bg-red-900/30 dark:nx-text-red-200"),info:(0,o.Z)("nx-border-blue-200 nx-bg-blue-100 nx-text-blue-900 dark:nx-border-blue-200/30 dark:nx-bg-blue-900/30 dark:nx-text-blue-200"),warning:(0,o.Z)("nx-border-yellow-100 nx-bg-yellow-50 nx-text-yellow-900 dark:nx-border-yellow-200/30 dark:nx-bg-yellow-700/30 dark:nx-text-yellow-200")};function f({children:e,type:t="default",emoji:n=c[t]}){return(0,s.jsxs)("div",{className:(0,o.Z)("nextra-callout nx-overflow-x-auto nx-mt-6 nx-flex nx-rounded-lg nx-border nx-py-2 ltr:nx-pr-4 rtl:nx-pl-4","contrast-more:nx-border-current contrast-more:dark:nx-border-current",d[t]),children:[(0,s.jsx)("div",{className:"nx-select-none nx-text-xl ltr:nx-pl-3 ltr:nx-pr-2 rtl:nx-pr-3 rtl:nx-pl-2",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},children:n}),(0,s.jsx)("div",{className:"nx-w-full nx-min-w-0 nx-leading-7",children:e})]})}var h=n(5271),p=({getValue:e,...t})=>{let[n,r]=(0,h.useState)(!1);(0,h.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>{r(!1)},2e3);return()=>{clearTimeout(e)}},[n]);let i=(0,h.useCallback)(async()=>{r(!0),navigator?.clipboard||console.error("Access to clipboard rejected!");try{await navigator.clipboard.writeText(e())}catch{console.error("Failed to copy!")}},[e]),a=n?u.nQ:u.TI;return(0,s.jsx)(l,{onClick:i,title:"Copy code",tabIndex:0,...t,children:(0,s.jsx)(a,{className:"nextra-copy-icon nx-pointer-events-none nx-h-4 nx-w-4"})})},m=({children:e,className:t,...n})=>(0,s.jsx)("code",{className:(0,o.Z)("nx-border-black nx-border-opacity-[0.04] nx-bg-opacity-[0.03] nx-bg-black nx-break-words nx-rounded-md nx-border nx-py-0.5 nx-px-[.25em] nx-text-[.9em]","dark:nx-border-white/10 dark:nx-bg-white/10","data-line-numbers"in n&&"[counter-reset:line]",t),dir:"ltr",...n,children:e}),x=({children:e,className:t,hasCopyCode:n,filename:r,...i})=>{let a=(0,h.useRef)(null),c=(0,h.useCallback)(()=>{let e=document.documentElement.dataset;"nextraWordWrap"in e?delete e.nextraWordWrap:e.nextraWordWrap=""},[]);return(0,s.jsxs)("div",{className:"nextra-code-block nx-relative nx-mt-6 first:nx-mt-0",children:[r&&(0,s.jsx)("div",{className:"nx-absolute nx-top-0 nx-z-[1] nx-w-full nx-truncate nx-rounded-t-xl nx-bg-primary-700/5 nx-py-2 nx-px-4 nx-text-xs nx-text-gray-700 dark:nx-bg-primary-300/10 dark:nx-text-gray-200",children:r}),(0,s.jsx)("pre",{className:(0,o.Z)("nx-bg-primary-700/5 nx-mb-4 nx-overflow-x-auto nx-rounded-xl nx-subpixel-antialiased dark:nx-bg-primary-300/10 nx-text-[.9em]","contrast-more:nx-border contrast-more:nx-border-primary-900/20 contrast-more:nx-contrast-150 contrast-more:dark:nx-border-primary-100/40",r?"nx-pt-12 nx-pb-4":"nx-py-4",t),ref:a,...i,children:e}),(0,s.jsxs)("div",{className:(0,o.Z)("nx-opacity-0 nx-transition [div:hover>&]:nx-opacity-100 focus-within:nx-opacity-100","nx-flex nx-gap-1 nx-absolute nx-m-[11px] nx-right-0",r?"nx-top-8":"nx-top-0"),children:[(0,s.jsx)(l,{onClick:c,className:"md:nx-hidden",title:"Toggle word wrap",children:(0,s.jsx)(u.NK,{className:"nx-pointer-events-none nx-h-4 nx-w-4"})}),n&&(0,s.jsx)(p,{getValue:()=>a.current?.querySelector("code")?.textContent||""})]})]})};function g({children:e,className:t,...n}){return(0,s.jsx)("div",{className:(0,o.Z)("nextra-steps nx-ml-4 nx-mb-12 nx-border-l nx-border-gray-200 nx-pl-6","dark:nx-border-neutral-800 [counter-reset:step]",t),...n,children:e})}var v=n(121),y=n(7604),b=n(2706),w=n(277),_=n(4877),k=n(6512),j=n(7185),E=n(8953),O=n(6835);function T(e){let{onFocus:t}=e,[n,r]=(0,h.useState)(!0),i=(0,E.t)();return n?h.createElement(O._,{as:"button",type:"button",features:O.A.Focusable,onFocus:e=>{e.preventDefault();let n,a=50;n=requestAnimationFrame(function e(){if(a--<=0){n&&cancelAnimationFrame(n);return}if(t()){if(cancelAnimationFrame(n),!i.current)return;r(!1);return}n=requestAnimationFrame(e)})}}):null}var C=n(5088),S=n(3623),N=n(7062),R=n(1644),A=n(4243);let I=h.createContext(null);function L(e){let{children:t}=e,n=h.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let i=null!=(n=r.get(t))?n:0;return r.set(t,i+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return h.createElement(I.Provider,{value:n},t)}function P(e){let t=h.useContext(I);if(!t)throw Error("You must wrap your component in a ");let n=function(){var e,t,n;let r=null!=(n=null==(t=null==(e=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let i=[],a=r;for(;a;)i.push(a.index),a=a.return;return"$."+i.join(".")}(),[r,i]=t.current.get(e,n);return h.useEffect(()=>i,[]),r}var M=((r=M||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r),Z=((i=Z||{})[i.Less=-1]="Less",i[i.Equal=0]="Equal",i[i.Greater=1]="Greater",i),F=((a=F||{})[a.SetSelectedIndex=0]="SetSelectedIndex",a[a.RegisterTab=1]="RegisterTab",a[a.UnregisterTab=2]="UnregisterTab",a[a.RegisterPanel=3]="RegisterPanel",a[a.UnregisterPanel=4]="UnregisterPanel",a);let D={0(e,t){var n;let r=(0,C.z2)(e.tabs,e=>e.current),i=(0,C.z2)(e.panels,e=>e.current),a=r.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),o={...e,tabs:r,panels:i};if(t.index<0||t.index>r.length-1){let n=(0,S.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,S.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===a.length)return o;let i=(0,S.E)(n,{0:()=>r.indexOf(a[0]),1:()=>r.indexOf(a[a.length-1])});return{...o,selectedIndex:-1===i?e.selectedIndex:i}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find(e=>a.includes(e));if(!l)return o;let u=null!=(n=r.indexOf(l))?n:e.selectedIndex;return -1===u&&(u=e.selectedIndex),{...o,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],r=(0,C.z2)([...e.tabs,t.tab],e=>e.current),i=e.selectedIndex;return e.info.current.isControlled||-1===(i=r.indexOf(n))&&(i=e.selectedIndex),{...e,tabs:r,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,C.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},z=(0,h.createContext)(null);function $(e){let t=(0,h.useContext)(z);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,$),t}return t}z.displayName="TabsDataContext";let U=(0,h.createContext)(null);function W(e){let t=(0,h.useContext)(U);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,W),t}return t}function H(e,t){return(0,S.E)(t.type,D,e,t)}U.displayName="TabsActionsContext";let G=h.Fragment,V=A.AN.RenderStrategy|A.AN.Static,B=Object.assign((0,A.yV)(function(e,t){var n,r;let i=(0,b.M)(),{id:a="headlessui-tabs-tab-".concat(i),...o}=e,{orientation:s,activation:l,selectedIndex:u,tabs:c,panels:d}=$("Tab"),f=W("Tab"),p=$("Tab"),m=(0,h.useRef)(null),x=(0,j.T)(m,t);(0,w.e)(()=>f.registerTab(m),[f,m]);let g=P("tabs"),_=c.indexOf(m);-1===_&&(_=g);let E=_===u,O=(0,y.z)(e=>{var t;let n=e();if(n===C.fE.Success&&"auto"===l){let e=null==(t=(0,R.r)(m))?void 0:t.activeElement,n=p.tabs.findIndex(t=>t.current===e);-1!==n&&f.change(n)}return n}),T=(0,y.z)(e=>{let t=c.map(e=>e.current).filter(Boolean);if(e.key===v.R.Space||e.key===v.R.Enter){e.preventDefault(),e.stopPropagation(),f.change(_);return}switch(e.key){case v.R.Home:case v.R.PageUp:return e.preventDefault(),e.stopPropagation(),O(()=>(0,C.jA)(t,C.TO.First));case v.R.End:case v.R.PageDown:return e.preventDefault(),e.stopPropagation(),O(()=>(0,C.jA)(t,C.TO.Last))}if(O(()=>(0,S.E)(s,{vertical:()=>e.key===v.R.ArrowUp?(0,C.jA)(t,C.TO.Previous|C.TO.WrapAround):e.key===v.R.ArrowDown?(0,C.jA)(t,C.TO.Next|C.TO.WrapAround):C.fE.Error,horizontal:()=>e.key===v.R.ArrowLeft?(0,C.jA)(t,C.TO.Previous|C.TO.WrapAround):e.key===v.R.ArrowRight?(0,C.jA)(t,C.TO.Next|C.TO.WrapAround):C.fE.Error}))===C.fE.Success)return e.preventDefault()}),I=(0,h.useRef)(!1),L=(0,y.z)(()=>{var e;I.current||(I.current=!0,null==(e=m.current)||e.focus({preventScroll:!0}),f.change(_),(0,N.Y)(()=>{I.current=!1}))}),M=(0,y.z)(e=>{e.preventDefault()}),Z=(0,h.useMemo)(()=>{var t;return{selected:E,disabled:null!=(t=e.disabled)&&t}},[E,e.disabled]),F={ref:x,onKeyDown:T,onMouseDown:M,onClick:L,id:a,role:"tab",type:(0,k.f)(e,m),"aria-controls":null==(r=null==(n=d[_])?void 0:n.current)?void 0:r.id,"aria-selected":E,tabIndex:E?0:-1};return(0,A.sY)({ourProps:F,theirProps:o,slot:Z,defaultTag:"button",name:"Tabs.Tab"})}),{Group:(0,A.yV)(function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:i=!1,onChange:a,selectedIndex:o=null,...s}=e,l=r?"vertical":"horizontal",u=i?"manual":"auto",c=null!==o,d=(0,_.E)({isControlled:c}),f=(0,j.T)(t),[p,m]=(0,h.useReducer)(H,{info:d,selectedIndex:null!=o?o:n,tabs:[],panels:[]}),x=(0,h.useMemo)(()=>({selectedIndex:p.selectedIndex}),[p.selectedIndex]),g=(0,_.E)(a||(()=>{})),v=(0,_.E)(p.tabs),b=(0,h.useMemo)(()=>({orientation:l,activation:u,...p}),[l,u,p]),k=(0,y.z)(e=>(m({type:1,tab:e}),()=>m({type:2,tab:e}))),E=(0,y.z)(e=>(m({type:3,panel:e}),()=>m({type:4,panel:e}))),O=(0,y.z)(e=>{S.current!==e&&g.current(e),c||m({type:0,index:e})}),S=(0,_.E)(c?e.selectedIndex:p.selectedIndex),N=(0,h.useMemo)(()=>({registerTab:k,registerPanel:E,change:O}),[]);return(0,w.e)(()=>{m({type:0,index:null!=o?o:n})},[o]),(0,w.e)(()=>{if(void 0===S.current||p.tabs.length<=0)return;let e=(0,C.z2)(p.tabs,e=>e.current);e.some((e,t)=>p.tabs[t]!==e)&&O(e.indexOf(p.tabs[S.current]))}),h.createElement(L,null,h.createElement(U.Provider,{value:N},h.createElement(z.Provider,{value:b},b.tabs.length<=0&&h.createElement(T,{onFocus:()=>{var e,t;for(let n of v.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),(0,A.sY)({ourProps:{ref:f},theirProps:s,slot:x,defaultTag:G,name:"Tabs"}))))}),List:(0,A.yV)(function(e,t){let{orientation:n,selectedIndex:r}=$("Tab.List"),i=(0,j.T)(t);return(0,A.sY)({ourProps:{ref:i,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})}),Panels:(0,A.yV)(function(e,t){let{selectedIndex:n}=$("Tab.Panels"),r=(0,j.T)(t),i=(0,h.useMemo)(()=>({selectedIndex:n}),[n]);return(0,A.sY)({ourProps:{ref:r},theirProps:e,slot:i,defaultTag:"div",name:"Tabs.Panels"})}),Panel:(0,A.yV)(function(e,t){var n,r,i,a;let o=(0,b.M)(),{id:s="headlessui-tabs-panel-".concat(o),tabIndex:l=0,...u}=e,{selectedIndex:c,tabs:d,panels:f}=$("Tab.Panel"),p=W("Tab.Panel"),m=(0,h.useRef)(null),x=(0,j.T)(m,t);(0,w.e)(()=>p.registerPanel(m),[p,m,s]);let g=P("panels"),v=f.indexOf(m);-1===v&&(v=g);let y=v===c,_=(0,h.useMemo)(()=>({selected:y}),[y]),k={ref:x,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=d[v])?void 0:n.current)?void 0:r.id,tabIndex:y?l:-1};return y||null!=(i=u.unmount)&&!i||null!=(a=u.static)&&a?(0,A.sY)({ourProps:k,theirProps:u,slot:_,defaultTag:"div",features:V,visible:y,name:"Tabs.Panel"}):h.createElement(O._,{as:"span","aria-hidden":"true",...k})})});function q(e){return!!e&&"object"==typeof e&&"label"in e}function K({children:e,...t}){return(0,s.jsx)(B.Panel,{...t,className:"nx-rounded nx-pt-6",children:e})}var Y=Object.assign(function({items:e,selectedIndex:t,defaultIndex:n=0,onChange:r,children:i,storageKey:a}){let[l,u]=(0,h.useState)(n);(0,h.useEffect)(()=>{void 0!==t&&u(t)},[t]),(0,h.useEffect)(()=>{if(!a)return;function e(e){e.key===a&&u(Number(e.newValue))}let t=Number(localStorage.getItem(a));return u(Number.isNaN(t)?0:t),window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[]);let c=(0,h.useCallback)(e=>{if(a){let t=String(e);localStorage.setItem(a,t),window.dispatchEvent(new StorageEvent("storage",{key:a,newValue:t}));return}u(e),r?.(e)},[]);return(0,s.jsxs)(B.Group,{selectedIndex:l,defaultIndex:n,onChange:c,children:[(0,s.jsx)("div",{className:"nextra-scrollbar nx-overflow-x-auto nx-overflow-y-hidden nx-overscroll-x-contain",children:(0,s.jsx)(B.List,{className:"nx-mt-4 nx-flex nx-w-max nx-min-w-full nx-border-b nx-border-gray-200 nx-pb-px dark:nx-border-neutral-800",children:e.map((e,t)=>{let n=q(e)&&e.disabled;return(0,s.jsx)(B,{disabled:n,className:({selected:e})=>(0,o.Z)("nx-mr-2 nx-rounded-t nx-p-2 nx-font-medium nx-leading-5 nx-transition-colors","-nx-mb-0.5 nx-select-none nx-border-b-2",e?"nx-border-primary-500 nx-text-primary-600":"nx-border-transparent nx-text-gray-600 hover:nx-border-gray-200 hover:nx-text-black dark:nx-text-gray-200 dark:hover:nx-border-neutral-800 dark:hover:nx-text-white",n&&"nx-pointer-events-none nx-text-gray-400 dark:nx-text-neutral-600"),children:q(e)?e.label:e},t)})})}),(0,s.jsx)(B.Panels,{children:i})]})},{displayName:"Tabs",Tab:K}),Q=({className:e="",...t})=>(0,s.jsx)("td",{className:(0,o.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 dark:nx-border-gray-600",e),...t}),J=({className:e="",...t})=>(0,s.jsx)("table",{className:(0,o.Z)("nx-block nx-overflow-x-scroll",e),...t}),X=({className:e="",...t})=>(0,s.jsx)("th",{className:(0,o.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 nx-font-semibold dark:nx-border-gray-600",e),...t}),ee=({className:e="",...t})=>(0,s.jsx)("tr",{className:(0,o.Z)("nx-m-0 nx-border-t nx-border-gray-300 nx-p-0 dark:nx-border-gray-600","even:nx-bg-gray-100 even:dark:nx-bg-gray-600/20",e),...t}),et=n(2618),en=n.n(et),er={cards:(0,o.Z)("nextra-cards nx-mt-4 nx-gap-4 nx-grid","nx-not-prose"),card:(0,o.Z)("nextra-card nx-group nx-flex nx-flex-col nx-justify-start nx-overflow-hidden nx-rounded-lg nx-border nx-border-gray-200","nx-text-current nx-no-underline dark:nx-shadow-none","hover:nx-shadow-gray-100 dark:hover:nx-shadow-none nx-shadow-gray-100","active:nx-shadow-sm active:nx-shadow-gray-200","nx-transition-all nx-duration-200 hover:nx-border-gray-300"),title:(0,o.Z)("nx-flex nx-font-semibold nx-items-start nx-gap-2 nx-p-4 nx-text-gray-700 hover:nx-text-gray-900")},ei=(0,s.jsx)("span",{className:"nx-transition-transform nx-duration-75 group-hover:nx-translate-x-[2px]",children:"→"});Object.assign(function({children:e,num:t=3,className:n,style:r,...i}){return(0,s.jsx)("div",{className:(0,o.Z)(er.cards,n),...i,style:{...r,"--rows":t},children:e})},{displayName:"Cards",Card:function({children:e,title:t,icon:n,image:r,arrow:i,href:a,...l}){let u=i?ei:null;return r?(0,s.jsxs)(en(),{href:a,className:(0,o.Z)(er.card,"nx-bg-gray-100 nx-shadow dark:nx-border-neutral-700 dark:nx-bg-neutral-800 dark:nx-text-gray-50 hover:nx-shadow-lg dark:hover:nx-border-neutral-500 dark:hover:nx-bg-neutral-700"),...l,children:[e,(0,s.jsxs)("span",{className:(0,o.Z)(er.title,"dark:nx-text-gray-300 dark:hover:nx-text-gray-100"),children:[n,(0,s.jsxs)("span",{className:"nx-flex nx-gap-1",children:[t,u]})]})]}):(0,s.jsx)(en(),{href:a,className:(0,o.Z)(er.card,"nx-bg-transparent nx-shadow-sm dark:nx-border-neutral-800 hover:nx-bg-slate-50 hover:nx-shadow-md dark:hover:nx-border-neutral-700 dark:hover:nx-bg-neutral-900"),...l,children:(0,s.jsxs)("span",{className:(0,o.Z)(er.title,"dark:nx-text-neutral-200 dark:hover:nx-text-neutral-50 nx-flex nx-items-center"),children:[n,t,u]})})}});var ea=(0,h.createContext)(0);function eo(){return(0,h.useContext)(ea)}function es(){let e=eo();return(0,s.jsx)(s.Fragment,{children:Array.from({length:e},(e,t)=>(0,s.jsx)("span",{className:"nx-w-5"},t))})}var el=(0,h.memo)(({label:e,name:t,open:n,children:r,defaultOpen:i=!1,onToggle:a})=>{let o=eo(),[l,u]=(0,h.useState)(i),c=(0,h.useCallback)(()=>{a?.(!l),u(!l)},[l,a]),d=void 0===n?l:n;return(0,s.jsxs)("li",{className:"nx-flex nx-list-none nx-flex-col",children:[(0,s.jsxs)("button",{onClick:c,title:t,className:"nx-inline-flex nx-cursor-pointer nx-items-center nx-py-1 hover:nx-opacity-60",children:[(0,s.jsx)(es,{}),(0,s.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:d?"M5 19a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4l2 2h4a2 2 0 0 1 2 2v1M5 19h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2Z":"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2Z"})}),(0,s.jsx)("span",{className:"nx-ml-1",children:e??t})]}),d&&(0,s.jsx)("ul",{children:(0,s.jsx)(ea.Provider,{value:o+1,children:r})})]})});el.displayName="Folder";var eu=(0,h.memo)(({label:e,name:t,active:n})=>(0,s.jsx)("li",{className:(0,o.Z)("nx-flex nx-list-none",n&&"nx-text-primary-600 contrast-more:nx-underline"),children:(0,s.jsxs)("span",{className:"nx-inline-flex nx-cursor-default nx-items-center nx-py-1",children:[(0,s.jsx)(es,{}),(0,s.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2Z"})}),(0,s.jsx)("span",{className:"nx-ml-1",children:e??t})]})}));eu.displayName="File",Object.assign(function({children:e}){return(0,s.jsx)("div",{className:(0,o.Z)("nextra-filetree nx-mt-6 nx-select-none nx-text-sm nx-text-gray-800 dark:nx-text-gray-300","nx-not-prose"),children:(0,s.jsx)("div",{className:"nx-inline-block nx-rounded-lg nx-border nx-px-4 nx-py-2 dark:nx-border-neutral-800",children:e})})},{Folder:el,File:eu})},5418:function(e,t,n){"use strict";n.d(t,{LZ:function(){return i},nQ:function(){return a},TI:function(){return o},D7:function(){return s},Qq:function(){return l},fy:function(){return u},n9:function(){return c},AV:function(){return d},Oq:function(){return f},kL:function(){return h},L4:function(){return p},NW:function(){return m},NK:function(){return x},b0:function(){return g}});var r=n(2676);function i({pathClassName:e,...t}){return(0,r.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...t,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7",className:e})})}function a(e){return(0,r.jsx)("svg",{viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function o(e){return(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...e,children:[(0,r.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function s(e){return(0,r.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 5 30.67 23.25",...e,children:[(0,r.jsx)("title",{children:"Discord"}),(0,r.jsx)("path",{d:"M26.0015 6.9529C24.0021 6.03845 21.8787 5.37198 19.6623 5C19.3833 5.48048 19.0733 6.13144 18.8563 6.64292C16.4989 6.30193 14.1585 6.30193 11.8336 6.64292C11.6166 6.13144 11.2911 5.48048 11.0276 5C8.79575 5.37198 6.67235 6.03845 4.6869 6.9529C0.672601 12.8736 -0.41235 18.6548 0.130124 24.3585C2.79599 26.2959 5.36889 27.4739 7.89682 28.2489C8.51679 27.4119 9.07477 26.5129 9.55525 25.5675C8.64079 25.2265 7.77283 24.808 6.93587 24.312C7.15286 24.1571 7.36986 23.9866 7.57135 23.8161C12.6241 26.1255 18.0969 26.1255 23.0876 23.8161C23.3046 23.9866 23.5061 24.1571 23.7231 24.312C22.8861 24.808 22.0182 25.2265 21.1037 25.5675C21.5842 26.5129 22.1422 27.4119 22.7621 28.2489C25.2885 27.4739 27.8769 26.2959 30.5288 24.3585C31.1952 17.7559 29.4733 12.0212 26.0015 6.9529ZM10.2527 20.8402C8.73376 20.8402 7.49382 19.4608 7.49382 17.7714C7.49382 16.082 8.70276 14.7025 10.2527 14.7025C11.7871 14.7025 13.0425 16.082 13.0115 17.7714C13.0115 19.4608 11.7871 20.8402 10.2527 20.8402ZM20.4373 20.8402C18.9183 20.8402 17.6768 19.4608 17.6768 17.7714C17.6768 16.082 18.8873 14.7025 20.4373 14.7025C21.9717 14.7025 23.2271 16.082 23.1961 17.7714C23.1961 19.4608 21.9872 20.8402 20.4373 20.8402Z"})]})}function l({isOpen:e,...t}){return(0,r.jsxs)("svg",{height:"12",width:"12",viewBox:"0 0 16 16",fill:"currentColor",...t,children:[(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z",className:e?"":"nx-origin-[35%] nx-rotate-180"}),(0,r.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"})]})}function u(e){return(0,r.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",viewBox:"3 3 18 18",...e,children:[(0,r.jsx)("title",{children:"GitHub"}),(0,r.jsx)("path",{d:"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"})]})}function c(e){return(0,r.jsx)("svg",{viewBox:"2 2 16 16",width:"12",height:"12",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"})})}function d(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"20",height:"20",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"})})}function f(e){return(0,r.jsxs)("svg",{fill:"none",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:[(0,r.jsx)("g",{children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16"})}),(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"}),(0,r.jsx)("g",{children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 18h16"})})]})}function h(e){return(0,r.jsx)("svg",{fill:"none",viewBox:"2 2 20 20",width:"12",height:"12",stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}function p(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24",...e,children:[(0,r.jsx)("circle",{className:"nx-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"nx-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function m(e){return(0,r.jsx)("svg",{fill:"none",viewBox:"3 3 18 18",width:"12",height:"12",stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}function x(e){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}function g(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}},7212:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},a:function(){return d}});var r=n(5271);let i=r.createContext({});function a(e){let t=r.useContext(i);return r.useMemo(()=>"function"==typeof e?e(t):{...t,...e},[t,e])}let o={};function s({components:e,children:t,disableParentContext:n}){let s;return s=n?"function"==typeof e?e({}):e||o:a(e),r.createElement(i.Provider,{value:s},t)}var l=n(3098),u=n.n(l),c={img:e=>(0,r.createElement)("object"==typeof e.src?u():"img",e)},d=e=>a({...c,...e})},4351:function(e,t,n){"use strict";n.d(t,{j:function(){return v}});var r,i=n(5554),a=n.n(i),o=n(1779),s=n(5271);n(6778),"undefined"!=typeof window&&(window.requestIdleCallback=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)}),n(7212);var l=n(2676),u=(0,s.createContext)(!1),c=n(7692);function d({__nextra_pageMap:e,__nextra_dynamic_opts:t,...n}){let{context:r,Layout:i}=function(){let e=globalThis[o.eZ],{route:t}=(0,c.useRouter)();(0,s.useState)({})[1];let n=e.context[t];if(!n)throw Error("No content found for the current route. This is a Nextra bug.");return{context:n,Layout:e.Layout}}(),{Content:a,...d}=r;if(e&&(d.pageOpts={...d.pageOpts,pageMap:e}),t){let{headings:e,title:n,frontMatter:r}=JSON.parse(t);d.pageOpts={...d.pageOpts,headings:e,title:n,frontMatter:r}}return(0,l.jsx)(i,{...d,pageProps:n,children:(0,l.jsx)(u.Provider,{value:n,children:(0,l.jsx)(a,{...n})})})}var f=n(3770),h=n(4473),p=n(9378);function m(e){return p(e.replaceAll(/[-_]/g," "))}function x(e){return!!e&&"object"==typeof e&&"folder"===e.type}function g(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>{if(x(t)){let n=e.replace("/","");return[n,t.title||m(n)]}return[e,t||m(e)]}))}function v({pageNextRoute:e,pageOpts:t,nextraLayout:n,themeConfig:i,MDXContent:s,hot:l,pageOptsChecksum:u,dynamicMetaModules:c=[]}){var p;"undefined"==typeof window&&(globalThis.__nextra_resolvePageMap=async()=>{if(r)return r;let e=JSON.parse(JSON.stringify(m.pageMap));return await Promise.all(c.map(async([t,{metaObjectKeyPath:n,metaParentKeyPath:r}])=>{let i=await t,o=await i.default(),s=a()(e,n);s.data=o,function e(t,n,r=!0){if(r){e(t,{kind:"Meta",data:n.data,locale:n.locale},!1),n.data=g(n.data);return}for(let[r,a]of Object.entries(n.data)){if(!x(a)){var i;if("*"===r)continue;t.children.push({kind:"MdxPage",...n.locale&&{locale:n.locale},name:r,route:(i=t.route,h(f.join(i,r.replace(/^index$/,""))))});continue}let o=r.replace("/",""),s={kind:"Folder",name:o,route:`${t.route}/${o}`,children:[{kind:"Meta",...n.locale&&{locale:n.locale},data:g(a.items)}]};t.children.push(s),e(s,{kind:"Meta",data:a.items,locale:n.locale},!1)}}(a()(e,r),s)})),r=e});let m=globalThis[p=o.eZ]||(globalThis[p]=Object.create(null));return t.pageMap?(m.pageMap=t.pageMap,m.Layout=n):(t={...t,pageMap:m.pageMap,flexsearch:m.flexsearch},i=m.themeConfig),t={frontMatter:{},...t},m.route=t.route,m.context||(m.context=Object.create(null)),m.context[e]={Content:s,pageOpts:t,themeConfig:i},d}},5182:function(e,t,n){"use strict";var r=n(6097);e.exports=function(e){var t={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:e,query:{},parse_failed:!1};try{var n=new URL(e);t.protocols=r(n),t.protocol=t.protocols[0],t.port=n.port,t.resource=n.hostname,t.host=n.host,t.user=n.username||"",t.password=n.password||"",t.pathname=n.pathname,t.hash=n.hash.slice(1),t.search=n.search.slice(1),t.href=n.href,t.query=Object.fromEntries(n.searchParams)}catch(n){t.protocols=["file"],t.protocol=t.protocols[0],t.port="",t.resource="",t.user="",t.pathname="",t.hash="",t.search="",t.href=e,t.query={},t.parse_failed=!0}return t}},8593:function(e,t,n){"use strict";var r=n(5182),i=r&&"object"==typeof r&&"default"in r?r:{default:r};let a=(e,t)=>t.some(t=>t instanceof RegExp?t.test(e):t===e),o=(e,{stripHash:t})=>{let n=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(e);if(!n)throw Error(`Invalid URL: ${e}`);let{type:r,data:i,hash:a}=n.groups,o=r.split(";");a=t?"":a;let s=!1;"base64"===o[o.length-1]&&(o.pop(),s=!0);let l=(o.shift()||"").toLowerCase(),u=[...o.map(e=>{let[t,n=""]=e.split("=").map(e=>e.trim());return"charset"===t&&"us-ascii"===(n=n.toLowerCase())?"":`${t}${n?`=${n}`:""}`}).filter(Boolean)];return s&&u.push("base64"),(u.length>0||l&&"text/plain"!==l)&&u.unshift(l),`data:${u.join(";")},${s?i.trim():i}${a?`#${a}`:""}`},s=(e,t=!1)=>{let n=t=>{let n=Error(t);throw n.subject_url=e,n};"string"==typeof e&&e.trim()||n("Invalid url."),e.length>s.MAX_INPUT_LENGTH&&n("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),t&&("object"!=typeof t&&(t={stripHash:!1}),e=function(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return o(e,t);if(/^view-source:/i.test(e))throw Error("`view-source:` is not supported as it is a non-standard protocol");let n=e.startsWith("//");!n&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let r=new URL(e);if(t.forceHttp&&t.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===r.protocol&&(r.protocol="http:"),t.forceHttps&&"http:"===r.protocol&&(r.protocol="https:"),t.stripAuthentication&&(r.username="",r.password=""),t.stripHash?r.hash="":t.stripTextFragment&&(r.hash=r.hash.replace(/#?:~:text.*?$/i,"")),r.pathname){let e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,t=0,n="";for(;;){let i=e.exec(r.pathname);if(!i)break;let a=i[0],o=i.index;n+=r.pathname.slice(t,o).replace(/\/{2,}/g,"/")+a,t=o+a.length}n+=r.pathname.slice(t,r.pathname.length).replace(/\/{2,}/g,"/"),r.pathname=n}if(r.pathname)try{r.pathname=decodeURI(r.pathname)}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=r.pathname.split("/");a(e[e.length-1],t.removeDirectoryIndex)&&(e=e.slice(0,-1),r.pathname=e.slice(1).join("/")+"/")}if(r.hostname&&(r.hostname=r.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(r.hostname)&&(r.hostname=r.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let e of[...r.searchParams.keys()])a(e,t.removeQueryParameters)&&r.searchParams.delete(e);if(!0===t.removeQueryParameters&&(r.search=""),t.sortQueryParameters){r.searchParams.sort();try{r.search=decodeURIComponent(r.search)}catch{}}t.removeTrailingSlash&&(r.pathname=r.pathname.replace(/\/$/,""));let i=e;return e=r.toString(),t.removeSingleSlash||"/"!==r.pathname||i.endsWith("/")||""!==r.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===r.pathname)&&""===r.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}(e,t));let r=i.default(e);if(r.parse_failed){let e=r.href.match(/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/);e?(r.protocols=["ssh"],r.protocol="ssh",r.resource=e[2],r.host=e[2],r.user=e[1],r.pathname=`/${e[3]}`,r.parse_failed=!1):n("URL parsing failed.")}return r};s.MAX_INPUT_LENGTH=2048,e.exports=s},6097:function(e){"use strict";e.exports=function(e,t){!0===t&&(t=0);var n="";if("string"==typeof e)try{n=new URL(e).protocol}catch(e){}else e&&e.constructor===URL&&(n=e.protocol);var r=n.split(/\:|\+/).filter(Boolean);return"number"==typeof t?r[t]:r}},2601:function(e){var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),r=RegExp(n,"g"),i=RegExp(n,"");function a(e){return t[e]}var o=function(e){return e.replace(r,a)};e.exports=o,e.exports.has=function(e){return!!e.match(i)},e.exports.remove=o},4473:function(e){"use strict";e.exports=e=>{let t=/^\\\\\?\\/.test(e),n=/[^\u0000-\u0080]+/.test(e);return t||n?e:e.replace(/\\/g,"/")}},9378:function(e,t,n){let r=n(3587),i=n(2168),a="[^\\s'’\\(\\)!?;:\"-]",o=RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${a}))|(${a}))(${a}*[’']*${a}*)`,"g"),s=e=>e.map(e=>[RegExp(`\\b${e}\\b`,"gi"),e]);e.exports=(e,t={})=>(e=e.toLowerCase().replace(o,(e,t="",n,i,a,o,s)=>{let l=e.length+o>=s.length,u=function(e){let t=e[0];return/\s/.test(t)?e.slice(1):/[\(\)]/.test(t)?null:e}(e);return u?!n&&r.has(i+a)&&!l?u:t+(i||n).toUpperCase()+a:e}),s([...i,...t.special||[]]).forEach(([t,n])=>{e=e.replace(t,n)}),e)},3587:function(e){e.exports=new Set(["for","and","nor","but","or","yet","so","a","an","the","aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"])},2168:function(e){e.exports=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS","SQL","C","C#","GraphQL","GraphiQL","JWT","JWTs"]},6778:function(e,t,n){n(2676)},4814:function(e,t,n){"use strict";t.Z=function(){for(var e,t,n=0,r="",i=arguments.length;na.O.nextId():null);return(0,o.e)(()=>{null===t&&n(a.O.nextId())},[t]),null!=t?""+t:void 0}},8953:function(e,t,n){"use strict";n.d(t,{t:function(){return a}});var r=n(5271),i=n(277);function a(){let e=(0,r.useRef)(!1);return(0,i.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},277:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var r=n(5271),i=n(1126);let a=(e,t)=>{i.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},4877:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});var r=n(5271),i=n(277);function a(e){let t=(0,r.useRef)(e);return(0,i.e)(()=>{t.current=e},[e]),t}},6512:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(5271),i=n(277);function a(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function o(e,t){let[n,o]=(0,r.useState)(()=>a(e));return(0,i.e)(()=>{o(a(e))},[e.type,e.as]),(0,i.e)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")},[n,t]),n}},4980:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r,i=n(5271),a=n(1126);function o(){let e;let t=(e="undefined"==typeof document,(0,(r||(r=n.t(i,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[o,s]=i.useState(a.O.isHandoffComplete);return o&&!1===a.O.isHandoffComplete&&s(!1),i.useEffect(()=>{!0!==o&&s(!0)},[o]),i.useEffect(()=>a.O.handoff(),[]),!t&&o}},7185:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(5271),i=n(7604);let a=Symbol();function o(){for(var e=arguments.length,t=Array(e),n=0;n{o.current=t},[t]);let s=(0,i.z)(e=>{for(let t of o.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[a]))?void 0:s}},6835:function(e,t,n){"use strict";let r;n.d(t,{A:function(){return a},_:function(){return o}});var i=n(4243),a=((r=a||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let o=(0,i.yV)(function(e,t){var n;let{features:r=1,...a}=e,o={ref:t,"aria-hidden":(2&r)==2||(null!=(n=a["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,i.sY)({ourProps:o,theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})})},8980:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}n.d(t,{A:function(){return r}})},6955:function(e,t,n){"use strict";n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,r,i)=>(e.addEventListener(t,r,i),n.add(()=>e.removeEventListener(t,r,i))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;rcancelAnimationFrame(i))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;rn.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;rclearTimeout(i))},microTask(){for(var e=arguments.length,t=Array(e),i=0;i{a.current&&t[0]()}),n.add(()=>{a.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var r=n(7062)},1126:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=Object.defineProperty,i=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(i(e,"symbol"!=typeof t?t+"":t,n),n);class o{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){a(this,"current",this.detect()),a(this,"handoffState","pending"),a(this,"currentId",0)}}let s=new o},5088:function(e,t,n){"use strict";let r,i,a,o,s;n.d(t,{EO:function(){return w},TO:function(){return f},fE:function(){return h},jA:function(){return _},sP:function(){return g},tJ:function(){return x},wI:function(){return v},z2:function(){return b}});var l=n(6955),u=n(3623),c=n(1644);let d=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var f=((r=f||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),h=((i=h||{})[i.Error=0]="Error",i[i.Overflow=1]="Overflow",i[i.Success=2]="Success",i[i.Underflow=3]="Underflow",i),p=((a=p||{})[a.Previous=-1]="Previous",a[a.Next=1]="Next",a);function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(d)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var x=((o=x||{})[o.Strict=0]="Strict",o[o.Loose=1]="Loose",o);function g(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,c.r)(e))?void 0:t.body)&&(0,u.E)(n,{0:()=>e.matches(d),1(){let t=e;for(;null!==t;){if(t.matches(d))return!0;t=t.parentElement}return!1}})}function v(e){let t=(0,c.r)(e);(0,l.k)().nextFrame(()=>{t&&!g(t.activeElement,0)&&(null==e||e.focus({preventScroll:!0}))})}var y=((s=y||{})[s.Keyboard=0]="Keyboard",s[s.Mouse=1]="Mouse",s);function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function w(e,t){return _(m(),t,{relativeTo:e})}function _(e,t){var n,r,i;let{sorted:a=!0,relativeTo:o=null,skipElements:s=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?a?b(e):e:m(e);s.length>0&&u.length>1&&(u=u.filter(e=>!s.includes(e))),o=null!=o?o:l.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(o))-1;if(4&t)return Math.max(0,u.indexOf(o))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},h=0,p=u.length,x;do{if(h>=p||h+p<=0)return 0;let e=d+h;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}null==(x=u[e])||x.focus(f),h+=c}while(x!==l.activeElement);return 6&t&&null!=(i=null==(r=null==(n=x)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&i&&x.select(),2}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},3623:function(e,t,n){"use strict";function r(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),a=2;a'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(o,r),o}n.d(t,{E:function(){return r}})},7062:function(e,t,n){"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}n.d(t,{Y:function(){return r}})},1644:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(1126);function i(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},4243:function(e,t,n){"use strict";let r,i;n.d(t,{AN:function(){return l},l4:function(){return u},oA:function(){return m},sY:function(){return c},yV:function(){return p}});var a=n(5271),o=n(8980),s=n(3623),l=((r=l||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),u=((i=u||{})[i.Unmount=0]="Unmount",i[i.Hidden=1]="Hidden",i);function c(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:i,features:a,visible:o=!0,name:l,mergeRefs:u}=e;u=null!=u?u:f;let c=h(n,t);if(o)return d(c,r,i,l,u);let p=null!=a?a:0;if(2&p){let{static:e=!1,...t}=c;if(e)return d(t,r,i,l,u)}if(1&p){let{unmount:e=!0,...t}=c;return(0,s.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},r,i,l,u)})}return d(c,r,i,l,u)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,{as:s=n,children:l,refName:u="ref",...c}=x(e,["unmount","static"]),d=void 0!==e.ref?{[u]:e.ref}:{},f="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let p={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r);e&&(p["data-headlessui-state"]=n.join(" "))}if(s===a.Fragment&&Object.keys(m(c)).length>0){if(!(0,a.isValidElement)(f)||Array.isArray(f)&&f.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(c).map(e=>" - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"));let e=f.props,t="function"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,n=Array(t),r=0;rnull==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function h(){for(var e=arguments.length,t=Array(e),n=0;n[e,void 0])));for(let e in i)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},1779:function(e,t,n){"use strict";n.d(t,{ZW:function(){return a},eZ:function(){return s},hV:function(){return l}});var r=n(3770),i=n(9927),a="en-US",o=i.cwd();r.join(o,"public");var s=Symbol.for("__nextra_internal__"),l=new Set(["/404","/500"])}}]); \ No newline at end of file diff --git a/_next/static/chunks/769-bca440da70d3d0ab.js b/_next/static/chunks/769-bca440da70d3d0ab.js deleted file mode 100644 index d9be48440..000000000 --- a/_next/static/chunks/769-bca440da70d3d0ab.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[769],{6757:function(e,t,o){"use strict";o.d(t,{Z:function(){return q}});var i=o(2676);o(2734);var n=o(5271);let a={isLoaded:!1,options:{credentials:"omit"}},r=n.createContext(a),s=n.createContext(a);function l(e,t){if("updateIsLoaded"===t.type)return{...e,isLoaded:t.isLoaded};throw Error("Unhandled action type: ".concat(t.type))}let c=e=>{let{initialState:t=a,children:o}=e,[c,d]=n.useReducer(l,t);return(0,i.jsx)(r.Provider,{value:c,children:(0,i.jsx)(s.Provider,{value:d,children:o})})};var d=o(7467),p=o(8158);let x=(0,p.zo)("div",{display:"flex",flexDirection:"column",alignItems:"center"}),m=(0,p.zo)("p",{fontWeight:"bold"}),u=(0,p.zo)("span",{});var h=e=>{let{error:t}=e,{message:o}=t;return(0,i.jsxs)(x,{role:"alert",children:[(0,i.jsx)(m,{"data-testid":"headline",children:"Something went wrong"}),o&&(0,i.jsxs)(u,{children:["Error message: ".concat(o)," "]})]})};let b=(0,p.zo)("div",{display:"flex",background:"none",border:"none",width:"2rem !important",height:"2rem !important",padding:"0",margin:"0",borderRadius:"2rem",backgroundColor:"$accent",color:"$secondary",cursor:"pointer",boxSizing:"content-box !important",transition:"$all",justifyContent:"center",alignItems:"center",svg:{height:"60%",width:"60%",fill:"$secondary",stroke:"$secondary",opacity:"1",filter:"drop-shadow(5px 5px 5px #000D)",transition:"$all"}}),f=(0,p.zo)("button",{zIndex:"1",border:"none",cursor:"pointer",background:"transparent",marginLeft:"$2",padding:"0","&:disabled":{["> ".concat(b)]:{backgroundColor:"#6663",boxShadow:"none",svg:{fill:"$secondary",stroke:"$secondary",filter:"unset"}}},"&:hover:enabled":{["> ".concat(b)]:{backgroundColor:"$accentAlt",boxShadow:"3px 3px 11px #0003","&:disabled":{boxShadow:"unset"}}}}),g=(0,p.zo)("div",{display:"flex",flexDirection:"column"}),v=(0,p.zo)("div",{display:"flex",flexDirection:"row",alignItems:"center",paddingLeft:"$5",paddingRight:"$4","@xs":{width:"100%",justifyContent:"center",padding:"$4 $1 0 0"}}),j=(0,p.zo)("div",{display:"flex",flexDirection:"row",justifyContent:"space-between",paddingBottom:"$4",margin:"0",lineHeight:"1.4em",alignItems:"flex-end","@xs":{flexDirection:"column"},".clover-slider-header-homepage":{textDecoration:"none"},".clover-slider-header-label":{fontSize:"1.25rem",fontWeight:"400"},".clover-slider-header-summary":{fontSize:"$4",marginTop:"$2"}});var w=o(4384);let k=()=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:"Next"}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M268 112l144 144-144 144M392 256H100"})]}),y=()=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:"Previous"}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M244 400L100 256l144-144M120 256h292"})]});var C=o(637);let S=(0,p.zo)(w.bw,{display:"flex",backgroundColor:"$accent",color:"$secondary",height:"2rem !important",padding:"0 $3",margin:"0 0 0 $3",borderRadius:"2rem",cursor:"pointer",boxSizing:"content-box !important",transition:"$all",justifyContent:"center",alignItems:"center",lineBreak:"none",whiteSpace:"nowrap",textDecoration:"none !important",fontSize:"0.8333rem","&:hover":{backgroundColor:"$accentAlt",boxShadow:"3px 3px 11px #0003","&:disabled":{boxShadow:"unset"}}});var z=e=>{let{t}=(0,C.$G)();return(0,i.jsx)(S,{...e,children:t("commonViewAll")})},$=e=>{let{homepage:t,instance:o,label:a,summary:r}=e,{t:s}=(0,C.$G)(),[l,c]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t&&(null==t?void 0:t.length)>0&&c(!0)},[t]),(0,i.jsxs)(j,{"data-testid":"slider-header",children:[(0,i.jsxs)(g,{children:[l?(0,i.jsx)(w.bw,{homepage:t,className:"clover-slider-header-homepage",children:(0,i.jsx)(w.__,{label:a,as:"span",className:"clover-slider-header-label"})}):(0,i.jsx)(w.__,{label:a,as:"span",className:"clover-slider-header-label"}),r&&(0,i.jsx)(w.ER,{summary:r,as:"span",className:"clover-slider-header-summary"})]}),(0,i.jsxs)(v,{children:[(0,i.jsx)(f,{className:"clover-slider-previous-".concat(o),"aria-label":s("commonPrevious"),children:(0,i.jsx)(b,{children:(0,i.jsx)(y,{})})}),(0,i.jsx)(f,{className:"clover-slider-next-".concat(o),"aria-label":s("commonNext"),children:(0,i.jsx)(b,{children:(0,i.jsx)(k,{})})}),l&&(0,i.jsx)(z,{homepage:t,className:"clover-slider-header-view-all"})]})]})},I=o(6887),N=o(5675);let P=(0,p.zo)("a",{textDecoration:"none"}),M=(0,p.zo)("div",{position:"relative",zIndex:"0",borderRadius:"3px"});var F=o(1675);let L=(0,p.zo)("div",{position:"absolute",width:"100%",backgroundColor:"green"}),R=(0,p.zo)("figure",{display:"flex",flexDirection:"column",margin:"0 0 $2",flexGrow:"0",flexShrink:"0",borderRadius:"3px",transition:"$all",img:{position:"absolute",display:"flex",flexDirection:"column",objectFit:"cover",zIndex:"0",width:"100%",height:"100%",color:"transparent"},video:{position:"absolute",display:"flex",flexDirection:"column",objectFit:"cover",zIndex:"1",width:"100%",height:"100%",color:"transparent",opacity:"0",transition:"$load",borderRadius:"3px"},figcaption:{display:"flex",flexDirection:"column",padding:"$2 0",transition:"$all"},variants:{isFocused:{true:{video:{opacity:"1"},figcaption:{color:"$accent"}}}}}),V=(0,p.zo)("span",{display:"flex",position:"relative",width:"100%",height:"100%",overflow:"hidden",borderRadius:"3px",boxShadow:"none",transition:"$all"}),A=(0,p.zo)(w.__,{fontSize:"$3",fontWeight:"700"}),B=(0,p.zo)(w.ER,{fontSize:"$2",marginTop:"$1"});var Z=e=>{let{isFocused:t,label:o,summary:a,thumbnail:r}=e,s=(0,n.useRef)(null);return(0,i.jsxs)(R,{isFocused:t,children:[(0,i.jsxs)(F.f,{ratio:1,children:[(0,i.jsx)(L,{ref:s}),(0,i.jsx)(V,{children:(0,i.jsx)(w.pl,{altAsLabel:o,thumbnail:r,"data-testid":"figure-thumbnail"})})]}),(0,i.jsxs)("figcaption",{children:[(0,i.jsx)(A,{label:o}),a&&(0,i.jsx)(B,{summary:a})]})]})};let D=(0,p.zo)(F.f,{backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"50% 50%",filter:"blur(3em)",opacity:"0.7"}),T=(0,p.zo)("div",{position:"absolute",width:"100%",overflow:"hidden",backgroundColor:"#716C6B"});var E=e=>{let{backgroundImage:t}=e;return(0,i.jsx)(T,{"data-testid":"slider-item-placeholder",children:(0,i.jsx)(D,{ratio:1,css:{backgroundImage:"url(".concat(t,")")}})})},_=e=>{var t,o;let{handleItemInteraction:a,index:r,item:s}=e,[l,c]=(0,n.useState)(!1),d=[],p="#";(null==s?void 0:s.thumbnail)&&(null==s?void 0:null===(t=s.thumbnail)||void 0===t?void 0:t.length)>0&&(d=s.thumbnail),(null==s?void 0:s.homepage)&&(null===(o=s.homepage)||void 0===o?void 0:o.length)>0&&(p=s.homepage[0].id);let x=()=>c(!0),m=()=>c(!1);return(0,i.jsx)(M,{"data-testid":"slider-item",children:(0,i.jsxs)(P,{"data-testid":"slider-item-anchor",href:p,onClick:e=>{a&&(e.preventDefault(),a(s))},tabIndex:0,onFocus:x,onBlur:m,onMouseEnter:x,onMouseLeave:m,children:[(0,i.jsx)(E,{backgroundImage:""}),(0,i.jsx)(Z,{"data-testid":"slider-item-figure",index:r,isFocused:l,label:s.label,summary:s.summary,thumbnail:d},s.id)]})})};let G=(0,p.zo)("div",{"& .swiper-slide":{}}),W={640:{slidesPerView:2,slidesPerGroup:2,spaceBetween:20},768:{slidesPerView:3,slidesPerGroup:3,spaceBetween:30},1024:{slidesPerView:4,slidesPerGroup:4,spaceBetween:40},1366:{slidesPerView:5,slidesPerGroup:5,spaceBetween:50},1920:{slidesPerView:6,slidesPerGroup:6,spaceBetween:60}};var H=e=>{let{breakpoints:t=W,handleItemInteraction:o,instance:a,items:r}=e,s=(0,n.useRef)(null);return(0,i.jsx)(G,{ref:s,children:(0,i.jsx)(N.tq,{a11y:{prevSlideMessage:"previous item",nextSlideMessage:"next item"},spaceBetween:31,modules:[I.W_,I.s5],navigation:{nextEl:".clover-slider-next-".concat(a),prevEl:".clover-slider-previous-".concat(a)},slidesPerView:2,slidesPerGroup:2,breakpoints:t,children:r.map((e,t)=>(0,i.jsx)(N.o5,{"data-index":t,"data-type":null==e?void 0:e.type.toLowerCase(),children:(0,i.jsx)(_,{handleItemInteraction:o,index:t,item:e})},"".concat(e.id,"-").concat(t)))})})},O=e=>{let t=0,o=null==e?void 0:e.length,i=0;if(o>0)for(;i{let{collectionId:t,iiifContent:o,onItemInteraction:a}=e,{options:s}=function(){let e=n.useContext(r);if(void 0===e)throw Error("useCollectionState must be used within a CollectionProvider");return e}(),[l,c]=(0,n.useState)(),p=o;if(t&&(p=t),(0,n.useEffect)(()=>{p&&fetch(p).then(e=>e.json()).then(U._).then(e=>c(e)).catch(e=>{console.error("The IIIF Collection ".concat(p," failed to load: ").concat(e))})},[p]),(null==l?void 0:l.items.length)===0)return console.log("The IIIF Collection ".concat(p," does not contain items.")),(0,i.jsx)(i.Fragment,{});let x=s.customViewAll?[{id:s.customViewAll,type:"Text",format:"text/html"}]:null==l?void 0:l.homepage,m=O(p);return l?(0,i.jsx)("div",{children:(0,i.jsxs)(d.SV,{FallbackComponent:h,children:[(0,i.jsx)($,{label:l.label,summary:l&&l.summary?l.summary:{none:[""]},homepage:x,instance:m}),(0,i.jsx)(H,{items:l.items,handleItemInteraction:a,instance:m,breakpoints:s.breakpoints})]})}):(0,i.jsx)(i.Fragment,{})};var q=e=>(0,i.jsx)(c,{initialState:{...a,options:{...e.options}},children:(0,i.jsx)(J,{...e})})},2734:function(e,t,o){"use strict";var i=o(310),n=o(9366),a=o(637),r=JSON.parse('{"commonClose":"Close","commonNext":"Next","commonPrevious":"Previous","commonSearch":"Search","commonSearchPlaceholder":"Search...","commonShare":"Share","commonViewAll":"View All","copyFailure":"Failed","copySuccess":"Copied","informationPanelTabs":"Select","informationPanelTabsAbout":"About","informationPanelTabsAnnotations":"Annotations","informationPanelTabsSearch":"Search","informationPanelToggle":"More Information","shareCollectionJson":"View Collection","shareCollectionCopy":"Copy Collection URL","shareManifestJson":"View Manifest","shareManifestCopy":"Copy Manifest URL"}');let s="clover",l=Object.fromEntries(Object.entries({en:r,pt:{}}).map(e=>{let[t,o]=e;return[t,{["".concat(s)]:o}]}));n.ZP.use(i.Z).use(a.Db).init({defaultNS:s,fallbackLng:"en",ns:[s],resources:{...l}})},8158:function(e,t,o){"use strict";o.d(t,{BC:function(){return n},F4:function(){return s},zo:function(){return a}});var i=o(1028);let n={xxs:"(max-width: 349px)",xs:"(max-width: 575px)",sm:"(max-width: 767px)",md:"(max-width: 991px)",lg:"(max-width: 90rem)",xl:"(min-width: calc(90rem + 1px))"},{styled:a,css:r,keyframes:s,createTheme:l}=(0,i.Th)({theme:{colors:{primary:"#1a1d1e",primaryMuted:"#26292b",primaryAlt:"#151718",accent:"hsl(".concat(209," 100% 38.2%)"),accentMuted:"hsl(".concat(209," 80% 61.8%)"),accentAlt:"hsl(".concat(209," 80% 30%)"),secondary:"#FFFFFF",secondaryMuted:"#e6e8eb",secondaryAlt:"#c1c8cd"},fontSizes:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},lineHeights:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},sizes:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},space:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},radii:{1:"4px",2:"6px",3:"8px",4:"12px",round:"50%",pill:"9999px"},transitions:{all:"all 300ms cubic-bezier(0.16, 1, 0.3, 1)"},zIndices:{1:"100",2:"200",3:"300",4:"400",max:"999"}},media:n})},7104:function(e,t,o){"use strict";o.d(t,{Z:function(){return u}});var i=o(2676),n=o(2936),a=o.n(n),r=o(5271);let s={position:"relative",top:"-1px",right:"0",backgroundColor:"hsl(var(--nextra-primary-hue), var(--nextra-primary-saturation), 32%)",color:"white",borderRadius:"6px",padding:"2px 4px",fontSize:"0.7222rem",fontWeight:"700",marginLeft:"10px"},l=["Scroll"];var c=e=>{let{title:t}=e;return l.includes(t)?(0,i.jsxs)("span",{children:[t,(0,i.jsx)("span",{style:s,children:"Beta"})]}):(0,i.jsx)("span",{children:t})},d=o(826),p=o(9205);let x="Clover IIIF",m="Showcase IIIF Manifests as interoperable web content.";var u={darkMode:!0,nextThemes:{defaultTheme:"system"},docsRepositoryBase:"https://github.com/samvera-labs/clover-iiif",footer:{text:"Extensible IIIF front-end toolkit and Manifest viewer. Accessible. Composable. Open Source."},useNextSeoProps(){let e=(0,d.ZR)(),t=e.frontMatter.title?"".concat(e.frontMatter.title," – ").concat(x):"".concat(x," – ").concat(m),o=e.frontMatter.description?e.frontMatter.description:m,{route:i}=(0,p.useRouter)(),n=(0,r.useMemo)(()=>new URL(i.endsWith("/")?i:"".concat(i,"/"),"https://samvera-labs.github.io/clover-iiif/").href,[i]);return{defaultTitle:"".concat(x," - ").concat(m),title:t,description:o,canonical:n,openGraph:{url:n,title:t,siteName:"".concat(x," - ").concat(m),images:[{url:"",type:"image/png",width:1200,height:675}]},twitter:{cardType:"summary_large_image"}}},logo:(0,i.jsx)(()=>(0,i.jsxs)("span",{className:"jsx-64174b446b45575f",children:[(0,i.jsxs)("svg",{id:"clover-iiif-logo",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45.11 8.15",fill:"none",className:"jsx-64174b446b45575f",children:[(0,i.jsx)("path",{fill:"currentColor",d:"m5.66,6.02c-.21.11-.43.21-.65.3s-.51.13-.83.13c-.63,0-1.13-.18-1.48-.55-.36-.37-.53-.9-.53-1.61,0-.46.07-.85.22-1.17.15-.32.36-.57.65-.74.28-.17.63-.26,1.04-.26.31,0,.59.05.83.14.24.1.46.21.66.35.14-.09.26-.21.36-.37.1-.16.16-.33.16-.53,0-.25-.09-.47-.28-.66s-.45-.34-.79-.46c-.34-.11-.76-.17-1.25-.17-.69,0-1.32.15-1.89.45-.57.3-1.03.74-1.36,1.31-.34.57-.5,1.27-.5,2.11,0,.89.17,1.62.52,2.18.35.57.82.99,1.4,1.26.59.27,1.24.41,1.96.41.38,0,.7-.03.96-.1.26-.06.47-.13.61-.19.23-.1.4-.23.49-.38.1-.15.14-.32.14-.5,0-.21-.04-.39-.11-.55-.08-.16-.18-.29-.32-.4Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m7.55,0c-.19,0-.37.01-.53.04s-.29.05-.38.07v6.96c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V.96c0-.38-.09-.63-.26-.76-.18-.13-.46-.2-.86-.2Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m13.93,2.3c-.47-.26-1.02-.38-1.65-.38s-1.17.13-1.64.38c-.47.25-.84.61-1.1,1.07-.26.46-.4,1.01-.4,1.64s.13,1.2.39,1.67c.26.46.63.82,1.1,1.07.47.25,1.02.37,1.66.37s1.19-.13,1.66-.38c.47-.25.83-.61,1.09-1.07.26-.46.39-1.02.39-1.66s-.13-1.17-.4-1.63c-.26-.46-.63-.82-1.1-1.08Zm-.87,3.83c-.18.26-.44.39-.78.39s-.6-.13-.78-.38c-.18-.26-.28-.63-.28-1.13s.09-.85.28-1.11c.19-.26.45-.39.77-.39s.59.13.77.4.28.63.28,1.1-.09.86-.28,1.12Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m20.29,1.98c-.35,0-.67.08-.96.23-.14.69-.29,1.39-.46,2.12s-.33,1.38-.48,1.97h-.06c-.02-.11-.06-.25-.1-.42-.04-.17-.09-.36-.15-.57s-.12-.43-.18-.67l-.47-1.84c-.08-.32-.21-.54-.4-.65-.18-.12-.42-.17-.7-.17-.22,0-.43.04-.62.13s-.34.18-.45.29c.06.29.15.62.27,1.01.12.38.24.78.38,1.19.14.41.27.81.41,1.2.14.39.27.73.4,1.04.12.3.23.54.32.71.09.18.25.3.47.38.23.08.5.12.81.12.27,0,.52-.03.74-.09.22-.06.38-.13.49-.21.12-.22.26-.5.41-.85.15-.35.31-.73.46-1.15.16-.41.3-.82.43-1.21s.23-.75.31-1.06.12-.54.12-.7c0-.3-.1-.5-.29-.62s-.43-.18-.71-.18Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m25.91,2.25c-.42-.22-.92-.33-1.49-.33-.38,0-.74.06-1.1.17-.36.12-.68.29-.97.53-.29.24-.52.55-.69.94-.17.38-.26.84-.26,1.37,0,.71.15,1.3.44,1.78.29.47.69.83,1.19,1.06.5.24,1.06.35,1.69.35.45,0,.84-.04,1.19-.12.34-.08.61-.21.81-.38.2-.17.29-.39.29-.65,0-.16-.04-.31-.13-.46-.09-.14-.2-.26-.32-.34-.18.1-.43.2-.73.29-.3.09-.62.13-.96.13s-.67-.07-.95-.22c-.23-.11-.37-.32-.47-.58l2.96-.44c.27-.04.48-.13.64-.28.15-.14.23-.35.23-.62,0-.5-.12-.93-.36-1.31-.24-.38-.57-.68-1-.9Zm-2.59,2.21c.04-.31.13-.56.31-.74.21-.21.48-.31.8-.31s.53.08.67.24c.14.16.22.32.24.48l-2.02.33Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m30.59,1.93c-.4,0-.79.04-1.16.13-.38.09-.7.22-.98.38-.2.13-.36.28-.49.45-.12.17-.19.37-.19.61v3.56c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V3.82c.17-.1.36-.17.59-.22.22-.05.44-.07.64-.07.14,0,.26,0,.37.01.11,0,.21.02.29.04.06-.09.1-.19.14-.32s.06-.26.06-.4c0-.62-.44-.92-1.31-.92Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m33.91.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m36.24.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m38.57.56c-.12,0-.24.01-.35.03s-.2.04-.25.05v6.76c0,.22.06.37.17.46s.29.14.53.14c.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47s-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m44.63,1.7c.15,0,.27-.05.35-.14.08-.1.13-.23.13-.41,0-.1-.02-.2-.05-.29-.03-.09-.06-.16-.1-.21h-3.98c-.21,0-.38.06-.5.19-.13.12-.19.29-.19.5v6.08c0,.21.06.36.17.45.12.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.05v-2.98h2.64c.15,0,.27-.05.35-.14.08-.1.12-.23.12-.41,0-.1-.01-.2-.04-.29-.03-.09-.06-.16-.09-.22h-2.98s-.01-.01-.01-.01V1.7h3.06Z",className:"jsx-64174b446b45575f"})]}),(0,i.jsx)(a(),{id:"64174b446b45575f",children:"svg.jsx-64174b446b45575f{height:1rem}span.jsx-64174b446b45575f{padding:.5rem .5rem .5rem 0;-webkit-mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-moz-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-o-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:linear-gradient(60deg,black 25%,rgba(0,0,0,.2)50%,black 75%);-webkit-mask-size:400%;mask-size:400%;-webkit-mask-position:0%;mask-position:0%}span.jsx-64174b446b45575f:hover{-webkit-mask-position:100%;mask-position:100%;-webkit-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-moz-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-o-transition:mask-position 1s ease,-webkit-mask-position 1s ease;transition:mask-position 1s ease,-webkit-mask-position 1s ease}"})]}),{}),project:{link:"https://github.com/samvera-labs/clover-iiif"},primaryHue:209,sidebar:{autoCollapse:!0,defaultMenuCollapseLevel:1,titleComponent:e=>(0,i.jsx)(c,{...e}),toggleButton:!0}}},5184:function(){}}]); \ No newline at end of file diff --git a/_next/static/chunks/779-12219ff4a829ebae.js b/_next/static/chunks/779-12219ff4a829ebae.js new file mode 100644 index 000000000..c2b24e7f8 --- /dev/null +++ b/_next/static/chunks/779-12219ff4a829ebae.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[779],{2035:function(e,t,o){"use strict";o.d(t,{Z:function(){return q}});var i=o(2676);o(7178);var n=o(5271);let a={isLoaded:!1,options:{credentials:"omit"}},r=n.createContext(a),s=n.createContext(a);function l(e,t){if("updateIsLoaded"===t.type)return{...e,isLoaded:t.isLoaded};throw Error("Unhandled action type: ".concat(t.type))}let c=e=>{let{initialState:t=a,children:o}=e,[c,d]=n.useReducer(l,t);return(0,i.jsx)(r.Provider,{value:c,children:(0,i.jsx)(s.Provider,{value:d,children:o})})};var d=o(7467),p=o(4601);let x=(0,p.zo)("div",{display:"flex",flexDirection:"column",alignItems:"center"}),m=(0,p.zo)("p",{fontWeight:"bold"}),u=(0,p.zo)("span",{});var h=e=>{let{error:t}=e,{message:o}=t;return(0,i.jsxs)(x,{role:"alert",children:[(0,i.jsx)(m,{"data-testid":"headline",children:"Something went wrong"}),o&&(0,i.jsxs)(u,{children:["Error message: ".concat(o)," "]})]})};let b=(0,p.zo)("div",{display:"flex",background:"none",border:"none",width:"2rem !important",height:"2rem !important",padding:"0",margin:"0",borderRadius:"2rem",backgroundColor:"$accent",color:"$secondary",cursor:"pointer",boxSizing:"content-box !important",transition:"$all",justifyContent:"center",alignItems:"center",svg:{height:"60%",width:"60%",fill:"$secondary",stroke:"$secondary",opacity:"1",filter:"drop-shadow(5px 5px 5px #000D)",transition:"$all"}}),f=(0,p.zo)("button",{zIndex:"1",border:"none",cursor:"pointer",background:"transparent",marginLeft:"$2",padding:"0","&:disabled":{["> ".concat(b)]:{backgroundColor:"#6663",boxShadow:"none",svg:{fill:"$secondary",stroke:"$secondary",filter:"unset"}}},"&:hover:enabled":{["> ".concat(b)]:{backgroundColor:"$accentAlt",boxShadow:"3px 3px 11px #0003","&:disabled":{boxShadow:"unset"}}}}),g=(0,p.zo)("div",{display:"flex",flexDirection:"column"}),v=(0,p.zo)("div",{display:"flex",flexDirection:"row",alignItems:"center",paddingLeft:"$5",paddingRight:"$4","@xs":{width:"100%",justifyContent:"center",padding:"$4 $1 0 0"}}),j=(0,p.zo)("div",{display:"flex",flexDirection:"row",justifyContent:"space-between",paddingBottom:"$4",margin:"0",lineHeight:"1.4em",alignItems:"flex-end","@xs":{flexDirection:"column"},".clover-slider-header-homepage":{textDecoration:"none"},".clover-slider-header-label":{fontSize:"1.25rem",fontWeight:"400"},".clover-slider-header-summary":{fontSize:"$4",marginTop:"$2"}});var w=o(4234);let k=()=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:"Next"}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M268 112l144 144-144 144M392 256H100"})]}),y=()=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:"Previous"}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M244 400L100 256l144-144M120 256h292"})]});var C=o(1795);let S=(0,p.zo)(w.bw,{display:"flex",backgroundColor:"$accent",color:"$secondary",height:"2rem !important",padding:"0 $3",margin:"0 0 0 $3",borderRadius:"2rem",cursor:"pointer",boxSizing:"content-box !important",transition:"$all",justifyContent:"center",alignItems:"center",lineBreak:"none",whiteSpace:"nowrap",textDecoration:"none !important",fontSize:"0.8333rem","&:hover":{backgroundColor:"$accentAlt",boxShadow:"3px 3px 11px #0003","&:disabled":{boxShadow:"unset"}}});var z=e=>{let{t}=(0,C.$G)();return(0,i.jsx)(S,{...e,children:t("commonViewAll")})},$=e=>{let{homepage:t,instance:o,label:a,summary:r}=e,{t:s}=(0,C.$G)(),[l,c]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t&&(null==t?void 0:t.length)>0&&c(!0)},[t]),(0,i.jsxs)(j,{"data-testid":"slider-header",children:[(0,i.jsxs)(g,{children:[l?(0,i.jsx)(w.bw,{homepage:t,className:"clover-slider-header-homepage",children:(0,i.jsx)(w.__,{label:a,as:"span",className:"clover-slider-header-label"})}):(0,i.jsx)(w.__,{label:a,as:"span",className:"clover-slider-header-label"}),r&&(0,i.jsx)(w.ER,{summary:r,as:"span",className:"clover-slider-header-summary"})]}),(0,i.jsxs)(v,{children:[(0,i.jsx)(f,{className:"clover-slider-previous-".concat(o),"aria-label":s("commonPrevious"),children:(0,i.jsx)(b,{children:(0,i.jsx)(y,{})})}),(0,i.jsx)(f,{className:"clover-slider-next-".concat(o),"aria-label":s("commonNext"),children:(0,i.jsx)(b,{children:(0,i.jsx)(k,{})})}),l&&(0,i.jsx)(z,{homepage:t,className:"clover-slider-header-view-all"})]})]})},I=o(6887),N=o(5675);let P=(0,p.zo)("a",{textDecoration:"none"}),M=(0,p.zo)("div",{position:"relative",zIndex:"0",borderRadius:"3px"});var F=o(2508);let L=(0,p.zo)("div",{position:"absolute",width:"100%",backgroundColor:"green"}),R=(0,p.zo)("figure",{display:"flex",flexDirection:"column",margin:"0 0 $2",flexGrow:"0",flexShrink:"0",borderRadius:"3px",transition:"$all",img:{position:"absolute",display:"flex",flexDirection:"column",objectFit:"cover",zIndex:"0",width:"100%",height:"100%",color:"transparent"},video:{position:"absolute",display:"flex",flexDirection:"column",objectFit:"cover",zIndex:"1",width:"100%",height:"100%",color:"transparent",opacity:"0",transition:"$load",borderRadius:"3px"},figcaption:{display:"flex",flexDirection:"column",padding:"$2 0",transition:"$all"},variants:{isFocused:{true:{video:{opacity:"1"},figcaption:{color:"$accent"}}}}}),V=(0,p.zo)("span",{display:"flex",position:"relative",width:"100%",height:"100%",overflow:"hidden",borderRadius:"3px",boxShadow:"none",transition:"$all"}),A=(0,p.zo)(w.__,{fontSize:"$3",fontWeight:"700"}),B=(0,p.zo)(w.ER,{fontSize:"$2",marginTop:"$1"});var Z=e=>{let{isFocused:t,label:o,summary:a,thumbnail:r}=e,s=(0,n.useRef)(null);return(0,i.jsxs)(R,{isFocused:t,children:[(0,i.jsxs)(F.f,{ratio:1,children:[(0,i.jsx)(L,{ref:s}),(0,i.jsx)(V,{children:(0,i.jsx)(w.pl,{altAsLabel:o,thumbnail:r,"data-testid":"figure-thumbnail"})})]}),(0,i.jsxs)("figcaption",{children:[(0,i.jsx)(A,{label:o}),a&&(0,i.jsx)(B,{summary:a})]})]})};let D=(0,p.zo)(F.f,{backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"50% 50%",filter:"blur(3em)",opacity:"0.7"}),T=(0,p.zo)("div",{position:"absolute",width:"100%",overflow:"hidden",backgroundColor:"#716C6B"});var E=e=>{let{backgroundImage:t}=e;return(0,i.jsx)(T,{"data-testid":"slider-item-placeholder",children:(0,i.jsx)(D,{ratio:1,css:{backgroundImage:"url(".concat(t,")")}})})},_=e=>{var t,o;let{handleItemInteraction:a,index:r,item:s}=e,[l,c]=(0,n.useState)(!1),d=[],p="#";(null==s?void 0:s.thumbnail)&&(null==s?void 0:null===(t=s.thumbnail)||void 0===t?void 0:t.length)>0&&(d=s.thumbnail),(null==s?void 0:s.homepage)&&(null===(o=s.homepage)||void 0===o?void 0:o.length)>0&&(p=s.homepage[0].id);let x=()=>c(!0),m=()=>c(!1);return(0,i.jsx)(M,{"data-testid":"slider-item",children:(0,i.jsxs)(P,{"data-testid":"slider-item-anchor",href:p,onClick:e=>{a&&(e.preventDefault(),a(s))},tabIndex:0,onFocus:x,onBlur:m,onMouseEnter:x,onMouseLeave:m,children:[(0,i.jsx)(E,{backgroundImage:""}),(0,i.jsx)(Z,{"data-testid":"slider-item-figure",index:r,isFocused:l,label:s.label,summary:s.summary,thumbnail:d},s.id)]})})};let G=(0,p.zo)("div",{"& .swiper-slide":{}}),W={640:{slidesPerView:2,slidesPerGroup:2,spaceBetween:20},768:{slidesPerView:3,slidesPerGroup:3,spaceBetween:30},1024:{slidesPerView:4,slidesPerGroup:4,spaceBetween:40},1366:{slidesPerView:5,slidesPerGroup:5,spaceBetween:50},1920:{slidesPerView:6,slidesPerGroup:6,spaceBetween:60}};var H=e=>{let{breakpoints:t=W,handleItemInteraction:o,instance:a,items:r}=e,s=(0,n.useRef)(null);return(0,i.jsx)(G,{ref:s,children:(0,i.jsx)(N.tq,{a11y:{prevSlideMessage:"previous item",nextSlideMessage:"next item"},spaceBetween:31,modules:[I.W_,I.s5],navigation:{nextEl:".clover-slider-next-".concat(a),prevEl:".clover-slider-previous-".concat(a)},slidesPerView:2,slidesPerGroup:2,breakpoints:t,children:r.map((e,t)=>(0,i.jsx)(N.o5,{"data-index":t,"data-type":null==e?void 0:e.type.toLowerCase(),children:(0,i.jsx)(_,{handleItemInteraction:o,index:t,item:e})},"".concat(e.id,"-").concat(t)))})})},O=e=>{let t=0,o=null==e?void 0:e.length,i=0;if(o>0)for(;i{let{collectionId:t,iiifContent:o,onItemInteraction:a}=e,{options:s}=function(){let e=n.useContext(r);if(void 0===e)throw Error("useCollectionState must be used within a CollectionProvider");return e}(),[l,c]=(0,n.useState)(),p=o;if(t&&(p=t),(0,n.useEffect)(()=>{p&&fetch(p).then(e=>e.json()).then(U._).then(e=>c(e)).catch(e=>{console.error("The IIIF Collection ".concat(p," failed to load: ").concat(e))})},[p]),(null==l?void 0:l.items.length)===0)return console.log("The IIIF Collection ".concat(p," does not contain items.")),(0,i.jsx)(i.Fragment,{});let x=s.customViewAll?[{id:s.customViewAll,type:"Text",format:"text/html"}]:null==l?void 0:l.homepage,m=O(p);return l?(0,i.jsx)("div",{children:(0,i.jsxs)(d.SV,{FallbackComponent:h,children:[(0,i.jsx)($,{label:l.label,summary:l&&l.summary?l.summary:{none:[""]},homepage:x,instance:m}),(0,i.jsx)(H,{items:l.items,handleItemInteraction:a,instance:m,breakpoints:s.breakpoints})]})}):(0,i.jsx)(i.Fragment,{})};var q=e=>(0,i.jsx)(c,{initialState:{...a,options:{...e.options}},children:(0,i.jsx)(J,{...e})})},7178:function(e,t,o){"use strict";var i=o(8289),n=o(9366),a=o(1795),r=JSON.parse('{"commonClose":"Close","commonNext":"Next","commonPrevious":"Previous","commonSearch":"Search","commonSearchPlaceholder":"Search...","commonShare":"Share","commonViewAll":"View All","copyFailure":"Failed","copySuccess":"Copied","informationPanelTabs":"Select","informationPanelTabsAbout":"About","informationPanelTabsAnnotations":"Annotations","informationPanelTabsSearch":"Search","informationPanelToggle":"More Information","shareCollectionJson":"View Collection","shareCollectionCopy":"Copy Collection URL","shareManifestJson":"View Manifest","shareManifestCopy":"Copy Manifest URL"}');let s="clover",l=Object.fromEntries(Object.entries({en:r,pt:{}}).map(e=>{let[t,o]=e;return[t,{["".concat(s)]:o}]}));n.ZP.use(i.Z).use(a.Db).init({defaultNS:s,fallbackLng:"en",ns:[s],resources:{...l}})},4601:function(e,t,o){"use strict";o.d(t,{BC:function(){return n},F4:function(){return s},zo:function(){return a}});var i=o(1028);let n={xxs:"(max-width: 349px)",xs:"(max-width: 575px)",sm:"(max-width: 767px)",md:"(max-width: 991px)",lg:"(max-width: 90rem)",xl:"(min-width: calc(90rem + 1px))"},{styled:a,css:r,keyframes:s,createTheme:l}=(0,i.Th)({theme:{colors:{primary:"#1a1d1e",primaryMuted:"#26292b",primaryAlt:"#151718",accent:"hsl(".concat(209," 100% 38.2%)"),accentMuted:"hsl(".concat(209," 80% 61.8%)"),accentAlt:"hsl(".concat(209," 80% 30%)"),secondary:"#FFFFFF",secondaryMuted:"#e6e8eb",secondaryAlt:"#c1c8cd"},fontSizes:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},lineHeights:{1:"12px",2:"13px",3:"15px",4:"17px",5:"19px",6:"21px",7:"27px",8:"35px",9:"59px"},sizes:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},space:{1:"5px",2:"10px",3:"15px",4:"20px",5:"25px",6:"35px",7:"45px",8:"65px",9:"80px"},radii:{1:"4px",2:"6px",3:"8px",4:"12px",round:"50%",pill:"9999px"},transitions:{all:"all 300ms cubic-bezier(0.16, 1, 0.3, 1)"},zIndices:{1:"100",2:"200",3:"300",4:"400",max:"999"}},media:n})},6946:function(e,t,o){"use strict";o.d(t,{Z:function(){return u}});var i=o(2676),n=o(9763),a=o.n(n),r=o(5271);let s={position:"relative",top:"-1px",right:"0",backgroundColor:"hsl(var(--nextra-primary-hue), var(--nextra-primary-saturation), 32%)",color:"white",borderRadius:"6px",padding:"2px 4px",fontSize:"0.7222rem",fontWeight:"700",marginLeft:"10px"},l=["Scroll"];var c=e=>{let{title:t}=e;return l.includes(t)?(0,i.jsxs)("span",{children:[t,(0,i.jsx)("span",{style:s,children:"Beta"})]}):(0,i.jsx)("span",{children:t})},d=o(7240),p=o(7692);let x="Clover IIIF",m="Showcase IIIF Manifests as interoperable web content.";var u={darkMode:!0,nextThemes:{defaultTheme:"system"},docsRepositoryBase:"https://github.com/samvera-labs/clover-iiif",footer:{text:"Extensible IIIF front-end toolkit and Manifest viewer. Accessible. Composable. Open Source."},useNextSeoProps(){let e=(0,d.ZR)(),t=e.frontMatter.title?"".concat(e.frontMatter.title," – ").concat(x):"".concat(x," – ").concat(m),o=e.frontMatter.description?e.frontMatter.description:m,{route:i}=(0,p.useRouter)(),n=(0,r.useMemo)(()=>new URL(i.endsWith("/")?i:"".concat(i,"/"),"https://samvera-labs.github.io/clover-iiif/").href,[i]);return{defaultTitle:"".concat(x," - ").concat(m),title:t,description:o,canonical:n,openGraph:{url:n,title:t,siteName:"".concat(x," - ").concat(m),images:[{url:"",type:"image/png",width:1200,height:675}]},twitter:{cardType:"summary_large_image"}}},logo:(0,i.jsx)(()=>(0,i.jsxs)("span",{className:"jsx-64174b446b45575f",children:[(0,i.jsxs)("svg",{id:"clover-iiif-logo",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45.11 8.15",fill:"none",className:"jsx-64174b446b45575f",children:[(0,i.jsx)("path",{fill:"currentColor",d:"m5.66,6.02c-.21.11-.43.21-.65.3s-.51.13-.83.13c-.63,0-1.13-.18-1.48-.55-.36-.37-.53-.9-.53-1.61,0-.46.07-.85.22-1.17.15-.32.36-.57.65-.74.28-.17.63-.26,1.04-.26.31,0,.59.05.83.14.24.1.46.21.66.35.14-.09.26-.21.36-.37.1-.16.16-.33.16-.53,0-.25-.09-.47-.28-.66s-.45-.34-.79-.46c-.34-.11-.76-.17-1.25-.17-.69,0-1.32.15-1.89.45-.57.3-1.03.74-1.36,1.31-.34.57-.5,1.27-.5,2.11,0,.89.17,1.62.52,2.18.35.57.82.99,1.4,1.26.59.27,1.24.41,1.96.41.38,0,.7-.03.96-.1.26-.06.47-.13.61-.19.23-.1.4-.23.49-.38.1-.15.14-.32.14-.5,0-.21-.04-.39-.11-.55-.08-.16-.18-.29-.32-.4Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m7.55,0c-.19,0-.37.01-.53.04s-.29.05-.38.07v6.96c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V.96c0-.38-.09-.63-.26-.76-.18-.13-.46-.2-.86-.2Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m13.93,2.3c-.47-.26-1.02-.38-1.65-.38s-1.17.13-1.64.38c-.47.25-.84.61-1.1,1.07-.26.46-.4,1.01-.4,1.64s.13,1.2.39,1.67c.26.46.63.82,1.1,1.07.47.25,1.02.37,1.66.37s1.19-.13,1.66-.38c.47-.25.83-.61,1.09-1.07.26-.46.39-1.02.39-1.66s-.13-1.17-.4-1.63c-.26-.46-.63-.82-1.1-1.08Zm-.87,3.83c-.18.26-.44.39-.78.39s-.6-.13-.78-.38c-.18-.26-.28-.63-.28-1.13s.09-.85.28-1.11c.19-.26.45-.39.77-.39s.59.13.77.4.28.63.28,1.1-.09.86-.28,1.12Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m20.29,1.98c-.35,0-.67.08-.96.23-.14.69-.29,1.39-.46,2.12s-.33,1.38-.48,1.97h-.06c-.02-.11-.06-.25-.1-.42-.04-.17-.09-.36-.15-.57s-.12-.43-.18-.67l-.47-1.84c-.08-.32-.21-.54-.4-.65-.18-.12-.42-.17-.7-.17-.22,0-.43.04-.62.13s-.34.18-.45.29c.06.29.15.62.27,1.01.12.38.24.78.38,1.19.14.41.27.81.41,1.2.14.39.27.73.4,1.04.12.3.23.54.32.71.09.18.25.3.47.38.23.08.5.12.81.12.27,0,.52-.03.74-.09.22-.06.38-.13.49-.21.12-.22.26-.5.41-.85.15-.35.31-.73.46-1.15.16-.41.3-.82.43-1.21s.23-.75.31-1.06.12-.54.12-.7c0-.3-.1-.5-.29-.62s-.43-.18-.71-.18Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m25.91,2.25c-.42-.22-.92-.33-1.49-.33-.38,0-.74.06-1.1.17-.36.12-.68.29-.97.53-.29.24-.52.55-.69.94-.17.38-.26.84-.26,1.37,0,.71.15,1.3.44,1.78.29.47.69.83,1.19,1.06.5.24,1.06.35,1.69.35.45,0,.84-.04,1.19-.12.34-.08.61-.21.81-.38.2-.17.29-.39.29-.65,0-.16-.04-.31-.13-.46-.09-.14-.2-.26-.32-.34-.18.1-.43.2-.73.29-.3.09-.62.13-.96.13s-.67-.07-.95-.22c-.23-.11-.37-.32-.47-.58l2.96-.44c.27-.04.48-.13.64-.28.15-.14.23-.35.23-.62,0-.5-.12-.93-.36-1.31-.24-.38-.57-.68-1-.9Zm-2.59,2.21c.04-.31.13-.56.31-.74.21-.21.48-.31.8-.31s.53.08.67.24c.14.16.22.32.24.48l-2.02.33Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m30.59,1.93c-.4,0-.79.04-1.16.13-.38.09-.7.22-.98.38-.2.13-.36.28-.49.45-.12.17-.19.37-.19.61v3.56c0,.37.09.62.27.76.18.14.47.2.86.2.19,0,.37-.01.53-.04.16-.02.29-.05.38-.07V3.82c.17-.1.36-.17.59-.22.22-.05.44-.07.64-.07.14,0,.26,0,.37.01.11,0,.21.02.29.04.06-.09.1-.19.14-.32s.06-.26.06-.4c0-.62-.44-.92-1.31-.92Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m33.91.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m36.24.56c-.12,0-.24.01-.35.03-.11.02-.2.04-.25.05v6.76c0,.22.06.37.17.46.11.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47-.11-.09-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m38.57.56c-.12,0-.24.01-.35.03s-.2.04-.25.05v6.76c0,.22.06.37.17.46s.29.14.53.14c.12,0,.24,0,.35-.03.11-.02.19-.04.24-.07V1.16c0-.22-.05-.38-.16-.47s-.28-.13-.52-.13Z",className:"jsx-64174b446b45575f"}),(0,i.jsx)("path",{fill:"currentColor",d:"m44.63,1.7c.15,0,.27-.05.35-.14.08-.1.13-.23.13-.41,0-.1-.02-.2-.05-.29-.03-.09-.06-.16-.1-.21h-3.98c-.21,0-.38.06-.5.19-.13.12-.19.29-.19.5v6.08c0,.21.06.36.17.45.12.09.29.14.53.14.12,0,.24,0,.35-.03.11-.02.19-.04.24-.05v-2.98h2.64c.15,0,.27-.05.35-.14.08-.1.12-.23.12-.41,0-.1-.01-.2-.04-.29-.03-.09-.06-.16-.09-.22h-2.98s-.01-.01-.01-.01V1.7h3.06Z",className:"jsx-64174b446b45575f"})]}),(0,i.jsx)(a(),{id:"64174b446b45575f",children:"svg.jsx-64174b446b45575f{height:1rem}span.jsx-64174b446b45575f{padding:.5rem .5rem .5rem 0;-webkit-mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-webkit-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-moz-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:-o-linear-gradient(30deg,black 25%,rgba(0,0,0,.2)50%,black 75%);mask-image:linear-gradient(60deg,black 25%,rgba(0,0,0,.2)50%,black 75%);-webkit-mask-size:400%;mask-size:400%;-webkit-mask-position:0%;mask-position:0%}span.jsx-64174b446b45575f:hover{-webkit-mask-position:100%;mask-position:100%;-webkit-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-moz-transition:mask-position 1s ease,-webkit-mask-position 1s ease;-o-transition:mask-position 1s ease,-webkit-mask-position 1s ease;transition:mask-position 1s ease,-webkit-mask-position 1s ease}"})]}),{}),project:{link:"https://github.com/samvera-labs/clover-iiif"},primaryHue:209,sidebar:{autoCollapse:!0,defaultMenuCollapseLevel:1,titleComponent:e=>(0,i.jsx)(c,{...e}),toggleButton:!0}}},5184:function(){}}]); \ No newline at end of file diff --git a/_next/static/chunks/793.ff0e294758447eb4.js b/_next/static/chunks/793.ff0e294758447eb4.js new file mode 100644 index 000000000..f93fc7136 --- /dev/null +++ b/_next/static/chunks/793.ff0e294758447eb4.js @@ -0,0 +1,22 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[793],{3836:function(e,t,r){let n=r(815).parse,o=r(3647).compile,a=r(4604).segment,l=r(4425);e.exports={parse:n,compile:o,segment:a,hls:l}},3647:function(e){function t(e,t){this.message=e,this.error=t}function r(e){let t=n(Math.floor(e/60/60),2),r=n(Math.floor(e/60)%60,2),o=n(Math.floor(e%60),2),a=n(Math.floor(1e3*(e%1).toFixed(4)),3);return`${t}:${r}:${o}.${a}`}function n(e,t){let r=`${e}`;for(;r.length{if("string"!=typeof e[1])throw new t(`Metadata value for "${e[0]}" must be string`);n+=`${e[0]}: ${e[1]} +`})}let o=null;return e.cues.forEach((e,a)=>{if(o&&o>e.start)throw new t(`Cue number ${a} is not in chronological order`);o=e.start,n+="\n"+function(e){if("object"!=typeof e)throw new t("Cue malformed: not of type object");if("string"!=typeof e.identifier&&"number"!=typeof e.identifier&&null!==e.identifier)throw new t(`Cue malformed: identifier value is not a string. + ${JSON.stringify(e)}`);if(isNaN(e.start))throw new t(`Cue malformed: null start value. + ${JSON.stringify(e)}`);if(isNaN(e.end))throw new t(`Cue malformed: null end value. + ${JSON.stringify(e)}`);if(e.start>=e.end)throw new t(`Cue malformed: start timestamp greater than end + ${JSON.stringify(e)}`);if("string"!=typeof e.text)throw new t(`Cue malformed: null text value. + ${JSON.stringify(e)}`);if("string"!=typeof e.styles)throw new t(`Cue malformed: null styles value. + ${JSON.stringify(e)}`);let n="";e.identifier.length>0&&(n+=`${e.identifier} +`);let o=r(e.start),a=r(e.end);return n+(`${o} --> ${a}`+(e.styles?` ${e.styles}`:""))+` +${e.text}`}(e)+"\n"}),n}}},4425:function(e,t,r){let n=r(4604).segment;function o(e,t){let r="0".repeat(Math.max(0,t-e.toString().length));return`${r}${e}`}function a(e){let t=(e%1).toFixed(3),r=Math.floor((e=Math.round(e-t))/3600),n=Math.floor((e-3600*r)/60),a=e-3600*r-60*n,l=`${o(r,2)}:`;return`${l}${o(n,2)}:${o(a,2)}.${o(1e3*t,3)}`}e.exports={hlsSegment:function(e,t,r){void 0===r&&(r="900000");let o=n(e,t),l=[];return o.forEach((e,t)=>{let n=`WEBVTT +X-TIMESTAMP-MAP=MPEGTS:${r},LOCAL:00:00:00.000 + +${function(e){let t=[];return e.forEach(e=>{t.push(function(e){let t=[];e.identifier&&t.push(e.identifier);let r=a(e.start),n=a(e.end),o=e.styles?`${e.styles}`:"";return t.push(`${r} --> ${n} ${o}`),t.push(e.text),t.join("\n")}(e))}),t.join("\n\n")}(e.cues)} +`,o=`${t}.vtt`;l.push({filename:o,content:n})}),l},hlsSegmentPlaylist:function(e,t){let r;let o=n(e,t),a=function(e){let t=[];return e.forEach((e,r)=>{t.push(`#EXTINF:${e.duration.toFixed(5)}, +${r}.vtt`)}),t.join("\n")}(o),l=Math.round((r=0,o.forEach(e=>{e.duration>r&&(r=e.duration)}),r));return`#EXTM3U +#EXT-X-TARGETDURATION:${l} +#EXT-X-VERSION:3 +#EXT-X-MEDIA-SEQUENCE:0 +#EXT-X-PLAYLIST-TYPE:VOD +${a} +#EXT-X-ENDLIST +`}}},815:function(e){function t(e,t){this.message=e,this.error=t}t.prototype=Object.create(Error.prototype);let r=/([0-9]+)?:?([0-9]{2}):([0-9]{2}\.[0-9]{2,3})/;function n(e){let t=e.match(r);return 3600*parseFloat(t[1]||0)+(60*parseFloat(t[2])+parseFloat(t[3]))}e.exports={ParserError:t,parse:function(e,o){o||(o={});let{meta:a=!1,strict:l=!0}=o;if("string"!=typeof e)throw new t("Input must be a string");let i=(e=(e=(e=e.trim()).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).split("\n\n"),s=i.shift();if(!s.startsWith("WEBVTT"))throw new t('Must start with "WEBVTT"');let u=s.split("\n"),c=u[0].replace("WEBVTT","");if(c.length>0&&" "!==c[0]&&" "!==c[0])throw new t("Header comment must start with space or tab");if(0===i.length&&1===u.length)return{valid:!0,strict:l,cues:[],errors:[]};if(!a&&u.length>1&&""!==u[1])throw new t("Missing blank line after signature");let{cues:d,errors:f}=function(e,o){let a=[];return{cues:e.map((e,l)=>{try{return function(e,o,a){var l,i;let s="",u=0,c=.01,d="",f="",p=e.split("\n").filter(Boolean);if(p.length>0&&p[0].trim().startsWith("NOTE"))return null;if(1===p.length&&!p[0].includes("-->"))throw new t(`Cue identifier cannot be standalone (cue #${o})`);if(p.length>1&&!(p[0].includes("-->")||p[1].includes("-->")))throw new t(`Cue identifier needs to be followed by timestamp (cue #${o})`);p.length>1&&p[1].includes("-->")&&(s=p.shift());let h="string"==typeof p[0]&&p[0].split(" --> ");if(2!==h.length||(l=h[0],!r.test(l))||(i=h[1],!r.test(i)))throw new t(`Invalid cue timestamp (cue #${o})`);if(u=n(h[0]),c=n(h[1]),a){if(u>c)throw new t(`Start timestamp greater than end (cue #${o})`);if(c<=u)throw new t(`End must be greater than start (cue #${o})`)}if(!a&&c0)throw f[0];let p=a?function(e){let t={};return e.slice(1).forEach(e=>{let r=e.indexOf(":"),n=e.slice(0,r).trim(),o=e.slice(r+1).trim();t[n]=o}),Object.keys(t).length>0?t:null}(u):null,h={valid:0===f.length,strict:l,cues:d,errors:f};return a&&(h.meta=p),h}}},4604:function(e,t,r){let n=r(815).parse;e.exports={segment:function(e,t){t=t||10;let r=n(e),o=[],a=[],l=null,i=0,s=0;return r.cues.forEach((e,n)=>{let u=0===n,c=n===r.cues.length-1,d=e.start,f=e.end,p=c?1/0:r.cues[n+1].start,h=u?f:f-d,m=u?0:d-r.cues[n-1].end;i=i+h+m,o.length,l&&(a.push(l),i+=l.end-s,l=null),a.push(e);let v=p-ft;if(function(e,t,r,n){return(n<=t||n+(t-n%t)+e=t}(s,t,p,m)){var w,g,y,b;let e;let r=(w=t,g=i,y=s,e=w,g>w&&(e=(b=g-w)+(w-b%w)),e=c?parseFloat((f-y).toFixed(2)):Math.round(e));o.push({duration:r,cues:a}),s+=r,i=0,a=[]}else v=!1;v&&(l=e)}),o}}},634:function(e,t,r){r.d(t,{VY:function(){return R},fC:function(){return E},xz:function(){return M}});var n=r(5271),o=r(5061),a=r(8689),l=r(9895),i=r(83),s=r(4657),u=r(1559),c=r(8061),d=r(9883),f=r(2676),p="Collapsible",[h,m]=(0,a.b)(p),[v,w]=h(p),g=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:o,defaultOpen:a,disabled:i,onOpenChange:s,...c}=e,[p=!1,h]=(0,l.T)({prop:o,defaultProp:a,onChange:s});return(0,f.jsx)(v,{scope:r,disabled:i,contentId:(0,d.M)(),open:p,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),children:(0,f.jsx)(u.WV.div,{"data-state":j(p),"data-disabled":i?"":void 0,...c,ref:t})})});g.displayName=p;var y="CollapsibleTrigger",b=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,a=w(y,r);return(0,f.jsx)(u.WV.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":j(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:t,onClick:(0,o.M)(e.onClick,a.onOpenToggle)})});b.displayName=y;var x="CollapsibleContent",C=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=w(x,e.__scopeCollapsible);return(0,f.jsx)(c.z,{present:r||o.open,children:({present:e})=>(0,f.jsx)(S,{...n,ref:t,present:e})})});C.displayName=x;var S=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:o,children:a,...l}=e,c=w(x,r),[d,p]=n.useState(o),h=n.useRef(null),m=(0,s.e)(t,h),v=n.useRef(0),g=v.current,y=n.useRef(0),b=y.current,C=c.open||d,S=n.useRef(C),E=n.useRef();return n.useEffect(()=>{let e=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,i.b)(()=>{let e=h.current;if(e){E.current=E.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,y.current=t.width,S.current||(e.style.transitionDuration=E.current.transitionDuration,e.style.animationName=E.current.animationName),p(o)}},[c.open,o]),(0,f.jsx)(u.WV.div,{"data-state":j(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!C,...l,ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:C&&a})});function j(e){return e?"open":"closed"}var E=g,M=b,R=C},5576:function(e,t,r){r.d(t,{B:function(){return s}});var n=r(5271),o=r(8766),a=r(4657),l=r(7839),i=r(2676);function s(e){let t=e+"CollectionProvider",[r,s]=(0,o.b)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(u,{scope:t,itemMap:a,collectionRef:o,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=c(f,r),s=(0,a.e)(t,o.collectionRef);return(0,i.jsx)(l.g7,{ref:s,children:n})});p.displayName=f;let h=e+"CollectionItemSlot",m="data-radix-collection-item",v=n.forwardRef((e,t)=>{let{scope:r,children:o,...s}=e,u=n.useRef(null),d=(0,a.e)(t,u),f=c(h,r);return n.useEffect(()=>(f.itemMap.set(u,{ref:u,...s}),()=>void f.itemMap.delete(u))),(0,i.jsx)(l.g7,{[m]:"",ref:d,children:o})});return v.displayName=h,[{Provider:d,Slot:p,ItemSlot:v},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},s]}},868:function(e,t,r){r.d(t,{gm:function(){return a}});var n=r(5271);r(2676);var o=n.createContext(void 0);function a(e){let t=n.useContext(o);return e||t||"ltr"}},7743:function(e,t,r){r.d(t,{ck:function(){return W},fC:function(){return $}});var n=r(5271),o=r(5061),a=r(4657),l=r(8689),i=r(1559),s=r(6104),u=r(9895),c=r(868),d=r(2979),f=r(6673),p=r(8061),h=r(2676),m="Radio",[v,w]=(0,l.b)(m),[g,y]=v(m),b=n.forwardRef((e,t)=>{let{__scopeRadio:r,name:l,checked:s=!1,required:u,disabled:c,value:d="on",onCheck:f,form:p,...m}=e,[v,w]=n.useState(null),y=(0,a.e)(t,e=>w(e)),b=n.useRef(!1),x=!v||p||!!v.closest("form");return(0,h.jsxs)(g,{scope:r,checked:s,disabled:c,children:[(0,h.jsx)(i.WV.button,{type:"button",role:"radio","aria-checked":s,"data-state":j(s),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:y,onClick:(0,o.M)(e.onClick,e=>{s||f?.(),x&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),x&&(0,h.jsx)(S,{control:v,bubbles:!b.current,name:l,value:d,checked:s,required:u,disabled:c,form:p,style:{transform:"translateX(-100%)"}})]})});b.displayName=m;var x="RadioIndicator",C=n.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:n,...o}=e,a=y(x,r);return(0,h.jsx)(p.z,{present:n||a.checked,children:(0,h.jsx)(i.WV.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});C.displayName=x;var S=e=>{let{control:t,checked:r,bubbles:o=!0,...a}=e,l=n.useRef(null),i=(0,f.D)(r),s=(0,d.t)(t);return n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(i!==r&&t){let n=new Event("click",{bubbles:o});t.call(e,r),e.dispatchEvent(n)}},[i,r,o]),(0,h.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:l,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function j(e){return e?"checked":"unchecked"}var E=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],M="RadioGroup",[R,T]=(0,l.b)(M,[s.Pc,w]),k=(0,s.Pc)(),I=w(),[N,D]=R(M),P=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:l=!1,disabled:d=!1,orientation:f,dir:p,loop:m=!0,onValueChange:v,...w}=e,g=k(r),y=(0,c.gm)(p),[b,x]=(0,u.T)({prop:a,defaultProp:o,onChange:v});return(0,h.jsx)(N,{scope:r,name:n,required:l,disabled:d,value:b,onValueChange:x,children:(0,h.jsx)(s.fC,{asChild:!0,...g,orientation:f,dir:y,loop:m,children:(0,h.jsx)(i.WV.div,{role:"radiogroup","aria-required":l,"aria-orientation":f,"data-disabled":d?"":void 0,dir:y,...w,ref:t})})})});P.displayName=M;var V="RadioGroupItem",A=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,disabled:l,...i}=e,u=D(V,r),c=u.disabled||l,d=k(r),f=I(r),p=n.useRef(null),m=(0,a.e)(t,p),v=u.value===i.value,w=n.useRef(!1);return n.useEffect(()=>{let e=e=>{E.includes(e.key)&&(w.current=!0)},t=()=>w.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,h.jsx)(s.ck,{asChild:!0,...d,focusable:!c,active:v,children:(0,h.jsx)(b,{disabled:c,required:u.required,checked:v,...f,...i,name:u.name,ref:m,onCheck:()=>u.onValueChange(i.value),onKeyDown:(0,o.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,o.M)(i.onFocus,()=>{w.current&&p.current?.click()})})})});A.displayName=V,n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...n}=e,o=I(r);return(0,h.jsx)(C,{...o,...n,ref:t})}).displayName="RadioGroupIndicator";var $=P,W=A},6104:function(e,t,r){r.d(t,{Pc:function(){return x},ck:function(){return N},fC:function(){return I}});var n=r(5271),o=r(5061),a=r(5576),l=r(4657),i=r(8766),s=r(9883),u=r(1559),c=r(3591),d=r(9895),f=r(868),p=r(2676),h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[w,g,y]=(0,a.B)(v),[b,x]=(0,i.b)(v,[y]),[C,S]=b(v),j=n.forwardRef((e,t)=>(0,p.jsx)(w.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(w.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(E,{...e,ref:t})})}));j.displayName=v;var E=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:i=!1,dir:s,currentTabStopId:v,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:y,onEntryFocus:b,preventScrollOnEntryFocus:x=!1,...S}=e,j=n.useRef(null),E=(0,l.e)(t,j),M=(0,f.gm)(s),[R=null,T]=(0,d.T)({prop:v,defaultProp:w,onChange:y}),[I,N]=n.useState(!1),D=(0,c.W)(b),P=g(r),V=n.useRef(!1),[A,$]=n.useState(0);return n.useEffect(()=>{let e=j.current;if(e)return e.addEventListener(h,D),()=>e.removeEventListener(h,D)},[D]),(0,p.jsx)(C,{scope:r,orientation:a,dir:M,loop:i,currentTabStopId:R,onItemFocus:n.useCallback(e=>T(e),[T]),onItemShiftTab:n.useCallback(()=>N(!0),[]),onFocusableItemAdd:n.useCallback(()=>$(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>$(e=>e-1),[]),children:(0,p.jsx)(u.WV.div,{tabIndex:I||0===A?-1:0,"data-orientation":a,...S,ref:E,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{V.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!V.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);k([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),x)}}V.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>N(!1))})})}),M="RovingFocusGroupItem",R=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:l=!1,tabStopId:i,...c}=e,d=(0,s.M)(),f=i||d,h=S(M,r),m=h.currentTabStopId===f,v=g(r),{onFocusableItemAdd:y,onFocusableItemRemove:b}=h;return n.useEffect(()=>{if(a)return y(),()=>b()},[a,y,b]),(0,p.jsx)(w.ItemSlot,{scope:r,id:f,focusable:a,active:l,children:(0,p.jsx)(u.WV.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{a?h.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return T[o]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=h.loop?(r=o,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(a+1)}setTimeout(()=>k(o))}})})})});R.displayName=M;var T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var I=j,N=R},6921:function(e,t,r){r.d(t,{VY:function(){return eI},ck:function(){return eD},__:function(){return eN},fC:function(){return eT},DI:function(){return ei},GV:function(){return X},o6:function(){return ew},S_:function(){return em},ue:function(){return U},Jk:function(){return ex},Pn:function(){return ey},ki:function(){return K},Q_:function(){return en},xz:function(){return ek}});var n=r(5271),o=r(967);function a(e,[t,r]){return Math.min(r,Math.max(t,e))}var l=r(5061),i=r(5576),s=r(4657),u=r(8689),c=r(868),d=r(2319),f=r(7011),p=r(1482),h=r(9883),m=r(2518),v=r(69),w=r(1559),g=r(7839),y=r(3591),b=r(9895),x=r(83),C=r(6673),S=r(2676),j=n.forwardRef((e,t)=>(0,S.jsx)(w.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));j.displayName="VisuallyHidden";var E=r(9800),M=r(7276),R=[" ","Enter","ArrowUp","ArrowDown"],T=[" ","Enter"],k="Select",[I,N,D]=(0,i.B)(k),[P,V]=(0,u.b)(k,[D,m.D7]),A=(0,m.D7)(),[$,W]=P(k),[L,F]=P(k),O=e=>{let{__scopeSelect:t,children:r,open:o,defaultOpen:a,onOpenChange:l,value:i,defaultValue:s,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:v,required:w,form:g}=e,y=A(t),[x,C]=n.useState(null),[j,E]=n.useState(null),[M,R]=n.useState(!1),T=(0,c.gm)(d),[k=!1,N]=(0,b.T)({prop:o,defaultProp:a,onChange:l}),[D,P]=(0,b.T)({prop:i,defaultProp:s,onChange:u}),V=n.useRef(null),W=!x||g||!!x.closest("form"),[F,O]=n.useState(new Set),_=Array.from(F).map(e=>e.props.value).join(";");return(0,S.jsx)(m.fC,{...y,children:(0,S.jsxs)($,{required:w,scope:t,trigger:x,onTriggerChange:C,valueNode:j,onValueNodeChange:E,valueNodeHasChildren:M,onValueNodeHasChildrenChange:R,contentId:(0,h.M)(),value:D,onValueChange:P,open:k,onOpenChange:N,dir:T,triggerPointerDownPosRef:V,disabled:v,children:[(0,S.jsx)(I.Provider,{scope:t,children:(0,S.jsx)(L,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{O(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{O(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),W?(0,S.jsxs)(eE,{"aria-hidden":!0,required:w,tabIndex:-1,name:f,autoComplete:p,value:D,onChange:e=>P(e.target.value),disabled:v,form:g,children:[void 0===D?(0,S.jsx)("option",{value:""}):null,Array.from(F)]},_):null]})})};O.displayName=k;var _="SelectTrigger",B=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:o=!1,...a}=e,i=A(r),u=W(_,r),c=u.disabled||o,d=(0,s.e)(t,u.onTriggerChange),f=N(r),p=n.useRef("touch"),[h,v,g]=eM(e=>{let t=f().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=eR(t,e,r);void 0!==n&&u.onValueChange(n.value)}),y=e=>{c||(u.onOpenChange(!0),g()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,S.jsx)(m.ee,{asChild:!0,...i,children:(0,S.jsx)(w.WV.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":ej(u.value)?"":void 0,...a,ref:d,onClick:(0,l.M)(a.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&y(e)}),onPointerDown:(0,l.M)(a.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,l.M)(a.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&R.includes(e.key)&&(y(),e.preventDefault())})})})});B.displayName=_;var H="SelectValue",K=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:o,children:a,placeholder:l="",...i}=e,u=W(H,r),{onValueNodeHasChildrenChange:c}=u,d=void 0!==a,f=(0,s.e)(t,u.onValueNodeChange);return(0,x.b)(()=>{c(d)},[c,d]),(0,S.jsx)(w.WV.span,{...i,ref:f,style:{pointerEvents:"none"},children:ej(u.value)?(0,S.jsx)(S.Fragment,{children:l}):a})});K.displayName=H;var X=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...o}=e;return(0,S.jsx)(w.WV.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});X.displayName="SelectIcon";var U=e=>(0,S.jsx)(v.h,{asChild:!0,...e});U.displayName="SelectPortal";var z="SelectContent",G=n.forwardRef((e,t)=>{let r=W(z,e.__scopeSelect),[a,l]=n.useState();return((0,x.b)(()=>{l(new DocumentFragment)},[]),r.open)?(0,S.jsx)(J,{...e,ref:t}):a?o.createPortal((0,S.jsx)(q,{scope:e.__scopeSelect,children:(0,S.jsx)(I.Slot,{scope:e.__scopeSelect,children:(0,S.jsx)("div",{children:e.children})})}),a):null});G.displayName=z;var[q,Y]=P(z),J=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:u,side:c,sideOffset:h,align:m,alignOffset:v,arrowPadding:w,collisionBoundary:y,collisionPadding:b,sticky:x,hideWhenDetached:C,avoidCollisions:j,...R}=e,T=W(z,r),[k,I]=n.useState(null),[D,P]=n.useState(null),V=(0,s.e)(t,e=>I(e)),[A,$]=n.useState(null),[L,F]=n.useState(null),O=N(r),[_,B]=n.useState(!1),H=n.useRef(!1);n.useEffect(()=>{if(k)return(0,E.Ry)(k)},[k]),(0,f.EW)();let K=n.useCallback(e=>{let[t,...r]=O().map(e=>e.ref.current),[n]=r.slice(-1),o=document.activeElement;for(let r of e)if(r===o||(r?.scrollIntoView({block:"nearest"}),r===t&&D&&(D.scrollTop=0),r===n&&D&&(D.scrollTop=D.scrollHeight),r?.focus(),document.activeElement!==o))return},[O,D]),X=n.useCallback(()=>K([A,k]),[K,A,k]);n.useEffect(()=>{_&&X()},[_,X]);let{onOpenChange:U,triggerPointerDownPosRef:G}=T;n.useEffect(()=>{if(k){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():k.contains(r.target)||U(!1),document.removeEventListener("pointermove",t),G.current=null};return null!==G.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[k,U,G]),n.useEffect(()=>{let e=()=>U(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[U]);let[Y,J]=eM(e=>{let t=O().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eR(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=n.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==T.value&&T.value===t||n)&&($(e),n&&(H.current=!0))},[T.value]),et=n.useCallback(()=>k?.focus(),[k]),er=n.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==T.value&&T.value===t||n)&&F(e)},[T.value]),en="popper"===o?Z:Q,eo=en===Z?{side:c,sideOffset:h,align:m,alignOffset:v,arrowPadding:w,collisionBoundary:y,collisionPadding:b,sticky:x,hideWhenDetached:C,avoidCollisions:j}:{};return(0,S.jsx)(q,{scope:r,content:k,viewport:D,onViewportChange:P,itemRefCallback:ee,selectedItem:A,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:X,selectedItemText:L,position:o,isPositioned:_,searchRef:Y,children:(0,S.jsx)(M.Z,{as:g.g7,allowPinchZoom:!0,children:(0,S.jsx)(p.M,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,l.M)(a,e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,S.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,S.jsx)(en,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:e=>e.preventDefault(),...R,...eo,onPlaced:()=>B(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:(0,l.M)(R.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>K(t)),e.preventDefault()}})})})})})})});J.displayName="SelectContentImpl";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:o,...l}=e,i=W(z,r),u=Y(z,r),[c,d]=n.useState(null),[f,p]=n.useState(null),h=(0,s.e)(t,e=>p(e)),m=N(r),v=n.useRef(!1),g=n.useRef(!0),{viewport:y,selectedItem:b,selectedItemText:C,focusSelectedItem:j}=u,E=n.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&f&&y&&b&&C){let e=i.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=i.valueNode.getBoundingClientRect(),n=C.getBoundingClientRect();if("rtl"!==i.dir){let o=n.left-t.left,l=r.left-o,i=e.left-l,s=e.width+i,u=Math.max(s,t.width),d=a(l,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=s+"px",c.style.left=d+"px"}else{let o=t.right-n.right,l=window.innerWidth-r.right-o,i=window.innerWidth-e.right-l,s=e.width+i,u=Math.max(s,t.width),d=a(l,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=s+"px",c.style.right=d+"px"}let l=m(),s=window.innerHeight-20,u=y.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),w=parseInt(d.borderBottomWidth,10),g=p+h+u+parseInt(d.paddingBottom,10)+w,x=Math.min(5*b.offsetHeight,g),S=window.getComputedStyle(y),j=parseInt(S.paddingTop,10),E=parseInt(S.paddingBottom,10),M=e.top+e.height/2-10,R=b.offsetHeight/2,T=p+h+(b.offsetTop+R);if(T<=M){let e=l.length>0&&b===l[l.length-1].ref.current;c.style.bottom="0px";let t=f.clientHeight-y.offsetTop-y.offsetHeight;c.style.height=T+Math.max(s-M,R+(e?E:0)+t+w)+"px"}else{let e=l.length>0&&b===l[0].ref.current;c.style.top="0px";let t=Math.max(M,p+y.offsetTop+(e?j:0)+R);c.style.height=t+(g-T)+"px",y.scrollTop=T-M+y.offsetTop}c.style.margin="10px 0",c.style.minHeight=x+"px",c.style.maxHeight=s+"px",o?.(),requestAnimationFrame(()=>v.current=!0)}},[m,i.trigger,i.valueNode,c,f,y,b,C,i.dir,o]);(0,x.b)(()=>E(),[E]);let[M,R]=n.useState();(0,x.b)(()=>{f&&R(window.getComputedStyle(f).zIndex)},[f]);let T=n.useCallback(e=>{e&&!0===g.current&&(E(),j?.(),g.current=!1)},[E,j]);return(0,S.jsx)(ee,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:T,children:(0,S.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:(0,S.jsx)(w.WV.div,{...l,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});Q.displayName="SelectItemAlignedPosition";var Z=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:o=10,...a}=e,l=A(r);return(0,S.jsx)(m.VY,{...l,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Z.displayName="SelectPopperPosition";var[ee,et]=P(z,{}),er="SelectViewport",en=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:o,...a}=e,i=Y(er,r),u=et(er,r),c=(0,s.e)(t,i.onViewportChange),d=n.useRef(0);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,S.jsx)(I.Slot,{scope:r,children:(0,S.jsx)(w.WV.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:(0,l.M)(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if(n?.current&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,o=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(o0?i:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});en.displayName=er;var eo="SelectGroup",[ea,el]=P(eo),ei=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=(0,h.M)();return(0,S.jsx)(ea,{scope:r,id:o,children:(0,S.jsx)(w.WV.div,{role:"group","aria-labelledby":o,...n,ref:t})})});ei.displayName=eo;var es="SelectLabel",eu=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=el(es,r);return(0,S.jsx)(w.WV.div,{id:o.id,...n,ref:t})});eu.displayName=es;var ec="SelectItem",[ed,ef]=P(ec),ep=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:o,disabled:a=!1,textValue:i,...u}=e,c=W(ec,r),d=Y(ec,r),f=c.value===o,[p,m]=n.useState(i??""),[v,g]=n.useState(!1),y=(0,s.e)(t,e=>d.itemRefCallback?.(e,o,a)),b=(0,h.M)(),x=n.useRef("touch"),C=()=>{a||(c.onValueChange(o),c.onOpenChange(!1))};if(""===o)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,S.jsx)(ed,{scope:r,value:o,disabled:a,textId:b,isSelected:f,onItemTextChange:n.useCallback(e=>{m(t=>t||(e?.textContent??"").trim())},[]),children:(0,S.jsx)(I.ItemSlot,{scope:r,value:o,disabled:a,textValue:p,children:(0,S.jsx)(w.WV.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...u,ref:y,onFocus:(0,l.M)(u.onFocus,()=>g(!0)),onBlur:(0,l.M)(u.onBlur,()=>g(!1)),onClick:(0,l.M)(u.onClick,()=>{"mouse"!==x.current&&C()}),onPointerUp:(0,l.M)(u.onPointerUp,()=>{"mouse"===x.current&&C()}),onPointerDown:(0,l.M)(u.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,l.M)(u.onPointerMove,e=>{x.current=e.pointerType,a?d.onItemLeave?.():"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,l.M)(u.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:(0,l.M)(u.onKeyDown,e=>{d.searchRef?.current!==""&&" "===e.key||(T.includes(e.key)&&C()," "===e.key&&e.preventDefault())})})})})});ep.displayName=ec;var eh="SelectItemText",em=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:a,style:l,...i}=e,u=W(eh,r),c=Y(eh,r),d=ef(eh,r),f=F(eh,r),[p,h]=n.useState(null),m=(0,s.e)(t,e=>h(e),d.onItemTextChange,e=>c.itemTextRefCallback?.(e,d.value,d.disabled)),v=p?.textContent,g=n.useMemo(()=>(0,S.jsx)("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=f;return(0,x.b)(()=>(y(g),()=>b(g)),[y,b,g]),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(w.WV.span,{id:d.textId,...i,ref:m}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?o.createPortal(i.children,u.valueNode):null]})});em.displayName=eh;var ev="SelectItemIndicator",ew=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ef(ev,r).isSelected?(0,S.jsx)(w.WV.span,{"aria-hidden":!0,...n,ref:t}):null});ew.displayName=ev;var eg="SelectScrollUpButton",ey=n.forwardRef((e,t)=>{let r=Y(eg,e.__scopeSelect),o=et(eg,e.__scopeSelect),[a,l]=n.useState(!1),i=(0,s.e)(t,o.onScrollButtonChange);return(0,x.b)(()=>{if(r.viewport&&r.isPositioned){let e=function(){l(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,S.jsx)(eC,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ey.displayName=eg;var eb="SelectScrollDownButton",ex=n.forwardRef((e,t)=>{let r=Y(eb,e.__scopeSelect),o=et(eb,e.__scopeSelect),[a,l]=n.useState(!1),i=(0,s.e)(t,o.onScrollButtonChange);return(0,x.b)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,S.jsx)(eC,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ex.displayName=eb;var eC=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:o,...a}=e,i=Y("SelectScrollButton",r),s=n.useRef(null),u=N(r),c=n.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return n.useEffect(()=>()=>c(),[c]),(0,x.b)(()=>{let e=u().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[u]),(0,S.jsx)(w.WV.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:(0,l.M)(a.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(o,50))}),onPointerMove:(0,l.M)(a.onPointerMove,()=>{i.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(o,50))}),onPointerLeave:(0,l.M)(a.onPointerLeave,()=>{c()})})});n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,S.jsx)(w.WV.div,{"aria-hidden":!0,...n,ref:t})}).displayName="SelectSeparator";var eS="SelectArrow";function ej(e){return""===e||void 0===e}n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=A(r),a=W(eS,r),l=Y(eS,r);return a.open&&"popper"===l.position?(0,S.jsx)(m.Eh,{...o,...n,ref:t}):null}).displayName=eS;var eE=n.forwardRef((e,t)=>{let{value:r,...o}=e,a=n.useRef(null),l=(0,s.e)(t,a),i=(0,C.D)(r);return n.useEffect(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[i,r]),(0,S.jsx)(j,{asChild:!0,children:(0,S.jsx)("select",{...o,ref:l,defaultValue:r})})});function eM(e){let t=(0,y.W)(e),r=n.useRef(""),o=n.useRef(0),a=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),l=n.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,a,l]}function eR(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(a=a.filter(e=>e!==r));let l=a.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}eE.displayName="BubbleSelect";var eT=O,ek=B,eI=G,eN=eu,eD=ep},5836:function(e,t,r){r.d(t,{bU:function(){return S},fC:function(){return C}});var n=r(5271),o=r(5061),a=r(4657),l=r(8689),i=r(9895),s=r(6673),u=r(2979),c=r(1559),d=r(2676),f="Switch",[p,h]=(0,l.b)(f),[m,v]=p(f),w=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:l,checked:s,defaultChecked:u,required:f,disabled:p,value:h="on",onCheckedChange:v,form:w,...g}=e,[y,C]=n.useState(null),S=(0,a.e)(t,e=>C(e)),j=n.useRef(!1),E=!y||w||!!y.closest("form"),[M=!1,R]=(0,i.T)({prop:s,defaultProp:u,onChange:v});return(0,d.jsxs)(m,{scope:r,checked:M,disabled:p,children:[(0,d.jsx)(c.WV.button,{type:"button",role:"switch","aria-checked":M,"aria-required":f,"data-state":x(M),"data-disabled":p?"":void 0,disabled:p,value:h,...g,ref:S,onClick:(0,o.M)(e.onClick,e=>{R(e=>!e),E&&(j.current=e.isPropagationStopped(),j.current||e.stopPropagation())})}),E&&(0,d.jsx)(b,{control:y,bubbles:!j.current,name:l,value:h,checked:M,required:f,disabled:p,form:w,style:{transform:"translateX(-100%)"}})]})});w.displayName=f;var g="SwitchThumb",y=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,o=v(g,r);return(0,d.jsx)(c.WV.span,{"data-state":x(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});y.displayName=g;var b=e=>{let{control:t,checked:r,bubbles:o=!0,...a}=e,l=n.useRef(null),i=(0,s.D)(r),c=(0,u.t)(t);return n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(i!==r&&t){let n=new Event("click",{bubbles:o});t.call(e,r),e.dispatchEvent(n)}},[i,r,o]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:l,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function x(e){return e?"checked":"unchecked"}var C=w,S=y},2562:function(e,t,r){r.d(t,{VY:function(){return N},aV:function(){return k},fC:function(){return T},xz:function(){return I}});var n=r(5271),o=r(5061),a=r(8689),l=r(6104),i=r(8061),s=r(1559),u=r(868),c=r(9895),d=r(9883),f=r(2676),p="Tabs",[h,m]=(0,a.b)(p,[l.Pc]),v=(0,l.Pc)(),[w,g]=h(p),y=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:l="horizontal",dir:i,activationMode:p="automatic",...h}=e,m=(0,u.gm)(i),[v,g]=(0,c.T)({prop:n,onChange:o,defaultProp:a});return(0,f.jsx)(w,{scope:r,baseId:(0,d.M)(),value:v,onValueChange:g,orientation:l,dir:m,activationMode:p,children:(0,f.jsx)(s.WV.div,{dir:m,"data-orientation":l,...h,ref:t})})});y.displayName=p;var b="TabsList",x=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...o}=e,a=g(b,r),i=v(r);return(0,f.jsx)(l.fC,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:(0,f.jsx)(s.WV.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});x.displayName=b;var C="TabsTrigger",S=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:a=!1,...i}=e,u=g(C,r),c=v(r),d=M(u.baseId,n),p=R(u.baseId,n),h=n===u.value;return(0,f.jsx)(l.ck,{asChild:!0,...c,focusable:!a,active:h,children:(0,f.jsx)(s.WV.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...i,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(n)}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(n)}),onFocus:(0,o.M)(e.onFocus,()=>{let e="manual"!==u.activationMode;h||a||!e||u.onValueChange(n)})})})});S.displayName=C;var j="TabsContent",E=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:o,forceMount:a,children:l,...u}=e,c=g(j,r),d=M(c.baseId,o),p=R(c.baseId,o),h=o===c.value,m=n.useRef(h);return n.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(i.z,{present:a||h,children:({present:r})=>(0,f.jsx)(s.WV.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:p,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&l})})});function M(e,t){return`${e}-trigger-${t}`}function R(e,t){return`${e}-content-${t}`}E.displayName=j;var T=y,k=x,I=S,N=E}}]); \ No newline at end of file diff --git a/_next/static/chunks/841-d33f5d17f582ae92.js b/_next/static/chunks/841-d33f5d17f582ae92.js new file mode 100644 index 000000000..ec810cd1e --- /dev/null +++ b/_next/static/chunks/841-d33f5d17f582ae92.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[841],{9626:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},4657:function(e,t,i){"use strict";i.d(t,{F:function(){return n},e:function(){return r}});var s=i(5271);function n(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function r(...e){return s.useCallback(n(...e),e)}},1559:function(e,t,i){"use strict";i.d(t,{WV:function(){return a},jH:function(){return l}});var s=i(5271),n=i(967),r=i(7839),o=i(2676),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let i=s.forwardRef((e,i)=>{let{asChild:s,...n}=e,a=s?r.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(a,{...n,ref:i})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}},7839:function(e,t,i){"use strict";i.d(t,{g7:function(){return o}});var s=i(5271),n=i(4657),r=i(2676),o=s.forwardRef((e,t)=>{let{children:i,...n}=e,o=s.Children.toArray(i),l=o.find(u);if(l){let e=l.props.children,i=o.map(t=>t!==l?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,r.jsx)(a,{...n,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,i):null})}return(0,r.jsx)(a,{...n,ref:t,children:i})});o.displayName="Slot";var a=s.forwardRef((e,t)=>{let{children:i,...r}=e;if(s.isValidElement(i)){let e,o;let a=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.ref:(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.props.ref:i.props.ref||i.ref;return s.cloneElement(i,{...function(e,t){let i={...t};for(let s in t){let n=e[s],r=t[s];/^on[A-Z]/.test(s)?n&&r?i[s]=(...e)=>{r(...e),n(...e)}:n&&(i[s]=n):"style"===s?i[s]={...n,...r}:"className"===s&&(i[s]=[n,r].filter(Boolean).join(" "))}return{...e,...i}}(r,i.props),ref:t?(0,n.F)(t,a):a})}return s.Children.count(i)>1?s.Children.only(null):null});a.displayName="SlotClone";var l=({children:e})=>(0,r.jsx)(r.Fragment,{children:e});function u(e){return s.isValidElement(e)&&e.type===l}},8289:function(e,t,i){"use strict";i.d(t,{Z:function(){return w}});let{slice:s,forEach:n}=[],r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,o=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},s=encodeURIComponent(t),n=`${e}=${s}`;if(i.maxAge>0){let e=i.maxAge-0;if(Number.isNaN(e))throw Error("maxAge should be a Number");n+=`; Max-Age=${Math.floor(e)}`}if(i.domain){if(!r.test(i.domain))throw TypeError("option domain is invalid");n+=`; Domain=${i.domain}`}if(i.path){if(!r.test(i.path))throw TypeError("option path is invalid");n+=`; Path=${i.path}`}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invalid");n+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(n+="; HttpOnly"),i.secure&&(n+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":n+="; SameSite=Strict";break;case"lax":n+="; SameSite=Lax";break;case"none":n+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return n},a={create(e,t,i,s){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};i&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+6e4*i)),s&&(n.domain=s),document.cookie=o(e,encodeURIComponent(t),n)},read(e){let t=`${e}=`,i=document.cookie.split(";");for(let e=0;e-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));let s=e.substring(1).split("&");for(let e=0;e0&&s[e].substring(0,n)===i&&(t=s[e].substring(n+1))}}return t}};let h=null,p=()=>{if(null!==h)return h;try{h="undefined"!==window&&null!==window.localStorage;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){h=!1}return h};var g={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&p())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:i}=t;i&&p()&&window.localStorage.setItem(i,e)}};let d=null,c=()=>{if(null!==d)return d;try{d="undefined"!==window&&null!==window.sessionStorage;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){d=!1}return d};var f={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&c())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:i}=t;i&&c()&&window.sessionStorage.setItem(i,e)}},m={name:"navigator",lookup(e){let t=[];if("undefined"!=typeof navigator){let{languages:e,userLanguage:i,language:s}=navigator;if(e)for(let i=0;i0?t:void 0}},y={name:"htmlTag",lookup(e){let t,{htmlTag:i}=e,s=i||("undefined"!=typeof document?document.documentElement:null);return s&&"function"==typeof s.getAttribute&&(t=s.getAttribute("lang")),t}},v={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"==typeof window)return;let i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(i))return i["number"==typeof t?t:0]?.replace("/","")}},b={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,i="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i["number"==typeof t?t+1:1]}};let x=!1;try{document.cookie,x=!0}catch(e){}let S=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];x||S.splice(1,1);let k=()=>({order:S,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return n.call(s.call(arguments,1),t=>{if(t)for(let i in t)void 0===e[i]&&(e[i]=t[i])}),e}(t,this.options||{},k()),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(l),this.addDetector(u),this.addDetector(g),this.addDetector(f),this.addDetector(m),this.addDetector(y),this.addDetector(v),this.addDetector(b)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return(e.forEach(e=>{if(this.detectors[e]){let i=this.detectors[e].lookup(this.options);i&&"string"==typeof i&&(i=[i]),i&&(t=t.concat(i))}}),t=t.map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes)?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}w.type="languageDetector"},9366:function(e,t,i){"use strict";i.d(t,{ZP:function(){return et}});let s=e=>"string"==typeof e,n=()=>{let e,t;let i=new Promise((i,s)=>{e=i,t=s});return i.resolve=e,i.reject=t,i},r=e=>null==e?"":""+e,o=(e,t,i)=>{e.forEach(e=>{t[e]&&(i[e]=t[e])})},a=/###/g,l=e=>e&&e.indexOf("###")>-1?e.replace(a,"."):e,u=e=>!e||s(e),h=(e,t,i)=>{let n=s(t)?t.split("."):t,r=0;for(;r{let{obj:s,k:n}=h(e,t,Object);if(void 0!==s||1===t.length){s[n]=i;return}let r=t[t.length-1],o=t.slice(0,t.length-1),a=h(e,o,Object);for(;void 0===a.obj&&o.length;)r=`${o[o.length-1]}.${r}`,(a=h(e,o=o.slice(0,o.length-1),Object))&&a.obj&&void 0!==a.obj[`${a.k}.${r}`]&&(a.obj=void 0);a.obj[`${a.k}.${r}`]=i},g=(e,t,i,s)=>{let{obj:n,k:r}=h(e,t,Object);n[r]=n[r]||[],n[r].push(i)},d=(e,t)=>{let{obj:i,k:s}=h(e,t);if(i)return i[s]},c=(e,t,i)=>{let s=d(e,i);return void 0!==s?s:d(t,i)},f=(e,t,i)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?s(e[n])||e[n]instanceof String||s(t[n])||t[n]instanceof String?i&&(e[n]=t[n]):f(e[n],t[n],i):e[n]=t[n]);return e},m=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var y={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};let v=e=>s(e)?e.replace(/[&<>"'\/]/g,e=>y[e]):e;class b{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}let x=[" ",",","?","!",";"],S=new b(20),k=(e,t,i)=>{t=t||"",i=i||"";let s=x.filter(e=>0>t.indexOf(e)&&0>i.indexOf(e));if(0===s.length)return!0;let n=S.getRegExp(`(${s.map(e=>"?"===e?"\\?":e).join("|")})`),r=!n.test(e);if(!r){let t=e.indexOf(i);t>0&&!n.test(e.substring(0,t))&&(r=!0)}return r},w=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let s=t.split(i),n=e;for(let e=0;e-1&&oe&&e.replace("_","-"),O={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class N{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||O,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),i=0;i{this.observers[e]||(this.observers[e]=new Map);let i=this.observers[e].get(t)||0;this.observers[e].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;s{let[t,s]=e;for(let e=0;e{let[s,n]=t;for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i){let n,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?n=e.split("."):(n=[e,t],i&&(Array.isArray(i)?n.push(...i):s(i)&&o?n.push(...i.split(o)):n.push(i)));let l=d(this.data,n);return(!l&&!t&&!i&&e.indexOf(".")>-1&&(e=n[0],t=n[1],i=n.slice(2).join(".")),!l&&a&&s(i))?w(this.data&&this.data[e]&&this.data[e][t],i,o):l}addResource(e,t,i,s){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=[e,t];i&&(o=o.concat(r?i.split(r):i)),e.indexOf(".")>-1&&(o=e.split("."),s=t,t=o[1]),this.addNamespaces(t),p(this.data,o,s),n.silent||this.emit("added",e,t,i,s)}addResources(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in i)(s(i[n])||Array.isArray(i[n]))&&this.addResource(e,t,n,i[n],{silent:!0});n.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,s,n){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),s=i,i=t,t=o[1]),this.addNamespaces(t);let a=d(this.data,o)||{};r.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?f(a,i,n):a={...a,...i},p(this.data,o,a),r.silent||this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var P={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,s,n){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,i,s,n))}),t}};let j={};class E extends R{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),o(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=C.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let i=this.resolve(e,t);return i&&void 0!==i.res}extractFromKey(e,t){let i=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],o=i&&e.indexOf(i)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!k(e,i,n);if(o&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:s(r)?[r]:r};let o=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(o[0])>-1)&&(r=o.shift()),e=o.join(n)}return{key:e,namespaces:s(r)?[r]:r}}translate(e,t,i){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],u=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(h){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:o}let p=this.resolve(e,t),g=p&&p.res,d=p&&p.usedKey||o,c=p&&p.exactUsedKey||o,f=Object.prototype.toString.apply(g),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!s(g)&&"boolean"!=typeof g&&"number"!=typeof g;if(y&&g&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(f)&&!(s(m)&&Array.isArray(g))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,g,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(p.res=e,p.usedParams=this.getUsedParamsDetails(t),p):e}if(r){let e=Array.isArray(g),i=e?[]:{},s=e?c:d;for(let e in g)if(Object.prototype.hasOwnProperty.call(g,e)){let n=`${s}${r}${e}`;i[e]=this.translate(n,{...t,joinArrays:!1,ns:a}),i[e]===n&&(i[e]=g[e])}g=i}}else if(y&&s(m)&&Array.isArray(g))(g=g.join(m))&&(g=this.extendTranslation(g,e,t,i));else{let n=!1,a=!1,h=void 0!==t.count&&!s(t.count),d=E.hasDefaultValue(t),c=h?this.pluralResolver.getSuffix(u,t.count,t):"",f=t.ordinal&&h?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",m=h&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),y=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${c}`]||t[`defaultValue${f}`]||t.defaultValue;!this.isValidLookup(g)&&d&&(n=!0,g=y),this.isValidLookup(g)||(a=!0,g=o);let v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:g,b=d&&y!==g&&this.options.updateMissing;if(a||n||b){if(this.logger.log(b?"updateKey":"missingKey",u,l,o,b?y:g),r){let e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],i=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&i&&i[0])for(let t=0;t{let n=d&&s!==g?s:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,i,n,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,i,n,b,t),this.emit("missingKey",e,l,i,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&h?e.forEach(e=>{let i=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>i.indexOf(`${this.options.pluralSeparator}zero`)&&i.push(`${this.options.pluralSeparator}zero`),i.forEach(i=>{s([e],o+i,t[`defaultValue${i}`]||y)})}):s(e,o,y))}g=this.extendTranslation(g,e,t,p,i),a&&g===o&&this.options.appendNamespaceToMissingKey&&(g=`${l}:${o}`),(a||n)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,n?g:void 0):this.options.parseMissingKeyHandler(g))}return n?(p.res=g,p.usedParams=this.getUsedParamsDetails(t),p):g}extendTranslation(e,t,i,n,r){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){let a;i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let l=s(e)&&(i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let u=i.replace&&!s(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,i.lng||this.language||n.usedLng,i),l){let t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(i.nest=!1)}!i.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(i.lng=this.language||n.usedLng),!1!==i.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,s=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return s(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,a),u=l.key;i=u;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));let p=void 0!==a.count&&!s(a.count),g=p&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&(s(a.context)||"number"==typeof a.context)&&""!==a.context,c=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);h.forEach(e=>{this.isValidLookup(t)||(o=e,!j[`${c[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(j[`${c[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${c.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),c.forEach(i=>{let s;if(this.isValidLookup(t))return;r=i;let o=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,u,i,e,a);else{let e;p&&(e=this.pluralResolver.getSuffix(i,a.count,a));let t=`${this.options.pluralSeparator}zero`,s=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(o.push(u+e),a.ordinal&&0===e.indexOf(s)&&o.push(u+e.replace(s,this.options.pluralSeparator)),g&&o.push(u+t)),d){let i=`${u}${this.options.contextSeparator}${a.context}`;o.push(i),p&&(o.push(i+e),a.ordinal&&0===e.indexOf(s)&&o.push(i+e.replace(s,this.options.pluralSeparator)),g&&o.push(i+t))}}for(;s=o.pop();)this.isValidLookup(t)||(n=s,t=this.getResource(i,e,s,a))}))})}),{res:t,usedKey:i,exactUsedKey:n,usedLng:r,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,s):this.resourceStore.getResource(e,t,i,s)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!s(e.replace),i=t?e.replace:e;if(t&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!t)for(let e of(i={...i},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete i[e];return i}static hasDefaultValue(e){let t="defaultValue";for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&void 0!==e[i])return!0;return!1}}let I=e=>e.charAt(0).toUpperCase()+e.slice(1);class D{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=C.create("languageUtils")}getScriptPartFromCode(e){if(!(e=L(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=L(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(s(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}let t=["hans","hant","latn","cyrl","cans","mong","arab"],i=e.split("-");return this.options.lowerCaseLng?i=i.map(e=>e.toLowerCase()):2===i.length?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=I(i[1].toLowerCase()))):3===i.length&&(i[0]=i[0].toLowerCase(),2===i[1].length&&(i[1]=i[1].toUpperCase()),"sgn"!==i[0]&&2===i[2].length&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=I(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=I(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let i=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>{if(e===i||!(0>e.indexOf("-")&&0>i.indexOf("-"))&&(e.indexOf("-")>0&&0>i.indexOf("-")&&e.substring(0,e.indexOf("-"))===i||0===e.indexOf(i)&&i.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),s(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){let i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],r=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return s(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):s(e)&&r(this.formatLanguageCode(e)),i.forEach(e=>{0>n.indexOf(e)&&r(this.formatLanguageCode(e))}),n}}let F=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],A={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},U=["v1","v2","v3"],T=["v4"],V={zero:0,one:1,two:2,few:3,many:4,other:5},M=()=>{let e={};return F.forEach(t=>{t.lngs.forEach(i=>{e[i]={numbers:t.nr,plurals:A[t.fc]}})}),e};class z{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=C.create("pluralResolver"),(!this.options.compatibilityJSON||T.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=M(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){let i;let s=L("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:s,type:n});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];try{i=new Intl.PluralRules(s,{type:n})}catch(n){if(!e.match(/-|_/))return;let s=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(s,t)}return this.pluralRulesCache[r]=i,i}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,i).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((e,t)=>V[e]-V[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):i.numbers.map(i=>this.getSuffix(e,i,t)):[]}getSuffix(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this.getRule(e,i);return s?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:this.getSuffixRetroCompatible(s,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),s=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===s?s="plural":1===s&&(s=""));let n=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?`_plural_${s.toString()}`:n():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?n():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!U.includes(this.options.compatibilityJSON)}}let K=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=c(e,t,i);return!o&&r&&s(i)&&void 0===(o=w(e,i,n))&&(o=w(t,i,n)),o},H=e=>e.replace(/\$/g,"$$$$");class B{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=C.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:i,useRawValueToEscape:s,prefix:n,prefixEscaped:r,suffix:o,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:g,nestingSuffix:d,nestingSuffixEscaped:c,nestingOptionsSeparator:f,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:v,this.escapeValue=void 0===i||i,this.useRawValueToEscape=void 0!==s&&s,this.prefix=n?m(n):r||"{{",this.suffix=o?m(o):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?m(p):g||m("$t("),this.nestingSuffix=d?m(d):c||m(")"),this.nestingOptionsSeparator=f||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,i,n){let o,a,l;let u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=e=>{if(0>e.indexOf(this.formatSeparator)){let s=K(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(s,void 0,i,{...n,...t,interpolationkey:e}):s}let s=e.split(this.formatSeparator),r=s.shift().trim(),o=s.join(this.formatSeparator).trim();return this.format(K(t,u,r,this.options.keySeparator,this.options.ignoreJSONStructure),o,i,{...n,...t,interpolationkey:r})};this.resetRegExp();let p=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,g=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>H(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?H(this.escape(e)):H(e)}].forEach(t=>{for(l=0;o=t.regex.exec(e);){let i=o[1].trim();if(void 0===(a=h(i))){if("function"==typeof p){let t=p(e,o,n);a=s(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,i))a="";else if(g){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${i} for interpolating ${e}`),a=""}else s(a)||this.useRawValueToEscape||(a=r(a));let u=t.safeValue(a);if(e=e.replace(o[0],u),g?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t){let i,n,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(e,t)=>{let i=this.nestingOptionsSeparator;if(0>e.indexOf(i))return e;let s=e.split(RegExp(`${i}[ ]*{`)),n=`{${s[1]}`;e=s[0];let r=(n=this.interpolate(n,o)).match(/'/g),a=n.match(/"/g);(r&&r.length%2==0&&!a||a.length%2!=0)&&(n=n.replace(/'/g,'"'));try{o=JSON.parse(n),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${i}${n}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let u=[];(o=(o={...a}).replace&&!s(o.replace)?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let h=!1;if(-1!==i[0].indexOf(this.formatSeparator)&&!/{.*}/.test(i[1])){let e=i[1].split(this.formatSeparator).map(e=>e.trim());i[1]=e.shift(),u=e,h=!0}if((n=t(l.call(this,i[1].trim(),o),o))&&i[0]===e&&!s(n))return n;s(n)||(n=r(n)),n||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),n=""),h&&(n=u.reduce((e,t)=>this.format(e,t,a.lng,{...a,interpolationkey:i[1].trim()}),n.trim())),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}let J=e=>{let t=e.toLowerCase().trim(),i={};if(e.indexOf("(")>-1){let s=e.split("(");t=s[0].toLowerCase().trim();let n=s[1].substring(0,s[1].length-1);"currency"===t&&0>n.indexOf(":")?i.currency||(i.currency=n.trim()):"relativetime"===t&&0>n.indexOf(":")?i.range||(i.range=n.trim()):n.split(";").forEach(e=>{if(e){let[t,...s]=e.split(":"),n=s.join(":").trim().replace(/^'+|'+$/g,""),r=t.trim();i[r]||(i[r]=n),"false"===n&&(i[r]=!1),"true"===n&&(i[r]=!0),isNaN(n)||(i[r]=parseInt(n,10))}})}return{formatName:t,formatOptions:i}},q=e=>{let t={};return(i,s,n)=>{let r=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(r={...r,[n.interpolationkey]:void 0});let o=s+JSON.stringify(r),a=t[o];return a||(a=e(L(s),n),t[o]=a),a(i)}};class _{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=C.create("formatter"),this.options=e,this.formats={number:q((e,t)=>{let i=new Intl.NumberFormat(e,{...t});return e=>i.format(e)}),currency:q((e,t)=>{let i=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>i.format(e)}),datetime:q((e,t)=>{let i=new Intl.DateTimeFormat(e,{...t});return e=>i.format(e)}),relativetime:q((e,t)=>{let i=new Intl.RelativeTimeFormat(e,{...t});return e=>i.format(e,t.range||"day")}),list:q((e,t)=>{let i=new Intl.ListFormat(e,{...t});return e=>i.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=q(t)}format(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=t.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&0>n[0].indexOf(")")&&n.find(e=>e.indexOf(")")>-1)){let e=n.findIndex(e=>e.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,e)].join(this.formatSeparator)}return n.reduce((e,t)=>{let{formatName:n,formatOptions:r}=J(t);if(this.formats[n]){let t=e;try{let o=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},a=o.locale||o.lng||s.locale||s.lng||i;t=this.formats[n](e,a,{...r,...s,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${n}`),e},e)}}let W=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class Y extends R{constructor(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=C.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,s.backend,s)}queueLoad(e,t,i,s){let n={},r={},o={},a={};return e.forEach(e=>{let s=!0;t.forEach(t=>{let o=`${e}|${t}`;!i.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===r[o]&&(r[o]=!0):(this.state[o]=1,s=!1,void 0===r[o]&&(r[o]=!0),void 0===n[o]&&(n[o]=!0),void 0===a[t]&&(a[t]=!0)))}),s||(o[e]=!0)}),(Object.keys(n).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(n),pending:Object.keys(r),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(a)}}loaded(e,t,i){let s=e.split("|"),n=s[0],r=s[1];t&&this.emit("failedLoading",n,r,t),!t&&i&&this.store.addResourceBundle(n,r,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&i&&(this.state[e]=0);let o={};this.queue.forEach(i=>{g(i.loaded,[n],r),W(i,e),t&&i.errors.push(t),0!==i.pendingCount||i.done||(Object.keys(i.loaded).forEach(e=>{o[e]||(o[e]={});let t=i.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:s,wait:n,callback:r});return}this.readingCalls++;let o=(o,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&a&&s{this.read.call(this,e,t,i,s+1,2*n,r)},n);return}r(o,a)},a=this.backend[i].bind(this.backend);if(2===a.length){try{let i=a(e,t);i&&"function"==typeof i.then?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}return}return a(e,t,o)}prepareLoading(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();s(e)&&(e=this.languageUtils.toResolveHierarchy(e)),s(t)&&(t=[t]);let r=this.queueLoad(e,t,i,n);if(!r.toLoad.length)return r.pending.length||n(),null;r.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),s=i[0],n=i[1];this.read(s,n,"read",void 0,void 0,(i,r)=>{i&&this.logger.warn(`${t}loading namespace ${n} for language ${s} failed`,i),!i&&r&&this.logger.log(`${t}loaded namespace ${n} for language ${s}`,r),this.loaded(e,i,r)})}saveMissing(e,t,i,s,n){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=i&&""!==i){if(this.backend&&this.backend.create){let a={...r,isUpdate:n},l=this.backend.create.bind(this.backend);if(l.length<6)try{let n;(n=5===l.length?l(e,t,i,s,a):l(e,t,i,s))&&"function"==typeof n.then?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}else l(e,t,i,s,o,a)}e&&e[0]&&this.store.addResource(e[0],t,i,s)}}}let Q=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),s(e[1])&&(t.defaultValue=e[1]),s(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let i=e[3]||e[2];Object.keys(i).forEach(e=>{t[e]=i[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),G=e=>(s(e.ns)&&(e.ns=[e.ns]),s(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),s(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Z=()=>{},X=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})};class ee extends R{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=G(e),this.services={},this.logger=C,this.modules={external:[]},X(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(i=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(s(t.ns)?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let r=Q();this.options={...r,...this.options,...G(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);let o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?C.init(o(this.modules.logger),this.options):C.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=_);let i=new D(this.options);this.store=new $(this.options.resources,this.options);let s=this.services;s.logger=C,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new z(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(s.formatter=o(t),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new B(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Y(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var i=arguments.length,s=Array(i>1?i-1:0),n=1;n1?i-1:0),n=1;n{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Z),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=n(),l=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),i(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,i=t,n=s(e)?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return i();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),i(e)})}else i(null)}reloadResources(e,t,i){let s=n();return"function"==typeof e&&(i=e,e=void 0),"function"==typeof t&&(i=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),i||(i=Z),this.services.backendConnector.reload(e,t,e=>{s.resolve(),i(e)}),s}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&P.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var i=this;this.isLanguageChangingTo=e;let r=n();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,s)=>{s?(o(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),t&&t(e,function(){return i.t(...arguments)})},l=t=>{e||t||!this.services.languageDetector||(t=[]);let i=s(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);i&&(this.language||o(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(i)),this.loadResources(i,e=>{a(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),r}getFixedT(e,t,i){var n=this;let r=function(e,t){let s,o;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),u=2;u`${s.keyPrefix}${h}${e}`):s.keyPrefix?`${s.keyPrefix}${h}${e}`:e,n.t(o,s)};return s(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=i,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=t.lng||this.resolvedLanguage||this.languages[0],s=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;let r=(e,t)=>{let i=this.services.backendConnector.state[`${e}|${t}`];return -1===i||0===i||2===i};if(t.precheck){let e=t.precheck(this,r);if(void 0!==e)return e}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(i,e)&&(!s||r(n,e)))}loadNamespaces(e,t){let i=n();return this.options.ns?(s(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){let i=n();s(e)&&(e=[e]);let r=this.options.preload||[],o=e.filter(e=>0>r.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new D(Q())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ee(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,i=e.forkResourceStore;i&&delete e.forkResourceStore;let s={...this.options,...e,isClone:!0},n=new ee(s);return(void 0!==e.debug||void 0!==e.prefix)&&(n.logger=n.logger.clone(e)),["store","services","language"].forEach(e=>{n[e]=this[e]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},i&&(n.store=new $(this.store.data,s),n.services.resourceStore=n.store),n.translator=new E(n.services,s),n.translator.on("*",function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;s{console?.warn&&(g(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},o={},a=(...e)=>{g(e[0])&&o[e[0]]||(g(e[0])&&(o[e[0]]=new Date),r(...e))},l=(e,t)=>()=>{if(e.isInitialized)t();else{let i=()=>{setTimeout(()=>{e.off("initialized",i)},0),t()};e.on("initialized",i)}},u=(e,t,i)=>{e.loadNamespaces(t,l(e,i))},h=(e,t,i,s)=>{if(g(i)&&(i=[i]),e.options.preload&&e.options.preload.indexOf(t)>-1)return u(e,i,s);i.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,l(e,s))},p=(e,t,i={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:i.lng,precheck:(t,s)=>{if(i.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e))return!1}}):(a("i18n.languages were undefined or empty",t.languages),!0),g=e=>"string"==typeof e,d=e=>"object"==typeof e&&null!==e,c=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,f={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"…","…":"…","/":"/","/":"/"},m=e=>f[e],y={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(c,m)},v=(e={})=>{y={...y,...e}},b=()=>y,x=e=>{s=e},S=()=>s,k={type:"3rdParty",init(e){v(e.options.react),x(e)}},w=(0,n.createContext)();class L{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let O=(e,t)=>{let i=(0,n.useRef)();return(0,n.useEffect)(()=>{i.current=t?i.current:e},[e,t]),i.current},N=(e,t,i,s)=>e.getFixedT(t,i,s),C=(e,t,i,s)=>(0,n.useCallback)(N(e,t,i,s),[e,t,i,s]),R=(e,t={})=>{let{i18n:i}=t,{i18n:s,defaultNS:r}=(0,n.useContext)(w)||{},o=i||s||S();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new L),!o){a("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>g(t)?t:d(t)&&g(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}o.options.react?.wait&&a("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let l={...b(),...o.options.react,...t},{useSuspense:c,keyPrefix:f}=l,m=e||r||o.options?.defaultNS;m=g(m)?[m]:m||["translation"],o.reportNamespaces.addUsedNamespaces?.(m);let y=(o.isInitialized||o.initializedStoreOnce)&&m.every(e=>p(e,o,l)),v=C(o,t.lng||null,"fallback"===l.nsMode?m:m[0],f),x=()=>v,k=()=>N(o,t.lng||null,"fallback"===l.nsMode?m:m[0],f),[R,$]=(0,n.useState)(x),P=m.join();t.lng&&(P=`${t.lng}${P}`);let j=O(P),E=(0,n.useRef)(!0);(0,n.useEffect)(()=>{let{bindI18n:e,bindI18nStore:i}=l;E.current=!0,y||c||(t.lng?h(o,t.lng,m,()=>{E.current&&$(k)}):u(o,m,()=>{E.current&&$(k)})),y&&j&&j!==P&&E.current&&$(k);let s=()=>{E.current&&$(k)};return e&&o?.on(e,s),i&&o?.store.on(i,s),()=>{E.current=!1,o&&e?.split(" ").forEach(e=>o.off(e,s)),i&&o&&i.split(" ").forEach(e=>o.store.off(e,s))}},[o,P]),(0,n.useEffect)(()=>{E.current&&y&&$(x)},[o,f,y]);let I=[R,o,y];if(I.t=R,I.i18n=o,I.ready=y,y||!y&&!c)return I;throw new Promise(e=>{t.lng?h(o,t.lng,m,()=>e()):u(o,m,()=>e())})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/938.e7c70315d9af7954.js b/_next/static/chunks/938.b303827c51591e2b.js similarity index 98% rename from _next/static/chunks/938.e7c70315d9af7954.js rename to _next/static/chunks/938.b303827c51591e2b.js index f39dc4213..134798dfb 100644 --- a/_next/static/chunks/938.e7c70315d9af7954.js +++ b/_next/static/chunks/938.b303827c51591e2b.js @@ -2,4 +2,4 @@ [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);let t=e.state[l];if(null==t)return;JSON.stringify(n.getState())!==JSON.stringify(t)&&f(t);return}n.dispatchFromDevtools&&"function"==typeof n.dispatch&&n.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":if(f(y),void 0===l)return null==u?void 0:u.init(n.getState());return null==u?void 0:u.init(eQ(c.name));case"COMMIT":if(void 0===l){null==u||u.init(n.getState());break}return null==u?void 0:u.init(eQ(c.name));case"ROLLBACK":return eW(e.state,e=>{if(void 0===l){f(e),null==u||u.init(n.getState());return}f(e[l]),null==u||u.init(eQ(c.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return eW(e.state,e=>{if(void 0===l){f(e);return}JSON.stringify(n.getState())!==JSON.stringify(e[l])&&f(e[l])});case"IMPORT_STATE":{let{nextLiftedState:i}=e.payload,r=null==(t=i.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;void 0===l?f(r):f(r[l]),null==u||u.send(null,i);break}case"PAUSE_RECORDING":return d=!d}return}}),y},eW=(e,t)=>{let i;try{i=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==i&&t(i)},eY=e=>(t,i,r)=>{let n=r.subscribe;return r.subscribe=(e,t,i)=>{let s=e;if(t){let n=(null==i?void 0:i.equalityFn)||Object.is,a=e(r.getState());s=i=>{let r=e(i);if(!n(a,r)){let e=a;t(a=r,e)}},(null==i?void 0:i.fireImmediately)&&t(a,a)}return n(s)},e(t,i,r)};function eX(e,t,i,r){return!(!e[i]||!e[i][t]||!e[i][t][r]||!Array.isArray(e[i][t][r]))}function eK(e){return e.payload}function eZ(e,t){return void 0===e?t:e}function e0(e={}){let t=Object.keys(e);return function(i={},r){let n=!1,s={};for(let a=0;a{switch(t.type){case v:return{...e,[t.payload.id]:t.payload.type};case g:return{...e,...t.payload.mapping};default:return e}},entities:(e=eU(),t)=>{let i=(i,r)=>({...e,[eK(t).type]:{...e[eK(t).type],[eK(t).id]:{...i,...r}}});switch(t.type){case s:{if(!e[eK(t).type]||!e[eK(t).type][eK(t).id])return e;let r=e[eK(t).type][eK(t).id];if("string"==typeof r)return e;return i(r,{[eK(t).key]:eK(t).value})}case a:{if(!eX(e,eK(t).id,eK(t).type,eK(t).key))return e;let r=e[eK(t).type][eK(t).id];if("string"==typeof r)return e;let n=Array.from(r[eK(t).key]),[s]=n.splice(eK(t).startIndex,1);return n.splice(eK(t).endIndex,0,s),i(r,{[eK(t).key]:n})}case n:{let i=Object.keys(eK(t).entities),r={...e};for(let n of i){let i=eK(t).entities[n],s={...e[n]||{}},a=!1,o=Object.keys(i||{})||[];if(i&&o){for(let t of o)a=!0,s[t]=e[n][t]?function(e,t){let i={},r=[];for(let[n,s]of Object.entries(e||{})){r.push(n);let e=(t||{})[n];if(!e||0===e.length){i[n]=s;continue}i[n]=e}for(let[e,n]of Object.entries(t||{}))-1===r.indexOf(e)&&(i[e]=n);return i}(e[n][t],i[t]):i[t];a&&(r[n]=s)}}return r}case o:{if(!eX(e,eK(t).id,eK(t).type,eK(t).key))return e;let r=e[eK(t).type][eK(t).id],n=Array.from(r[eK(t).key]);return n.splice(eZ(eK(t).index,n.length+1),0,eK(t).reference),i(r,{[eK(t).key]:n})}case l:case c:{if(!eX(e,eK(t).id,eK(t).type,eK(t).key))return e;let r=e[eK(t).type][eK(t).id],n=Array.from(r[eK(t).key]),s=eZ(eK(t).index,n.findIndex(e=>e&&e.id===eK(t).reference.id));if(-1===s||n[s]?.id!==eK(t).reference.id)return e;return t.type===l?n.splice(s,1,eK(t).reference):n.splice(s,1),i(r,{[eK(t).key]:n})}case u:{let r=e[eK(t).type][eK(t).id];if(!r)return e;let n=Array.from(r.metadata||[]),s=eK(t);return n.splice(eZ(t.payload.beforeIndex,n.length+1),0,{label:s.label,value:s.label}),i(r,{metadata:n})}case f:{let r=e[eK(t).type][eK(t).id];if("string"==typeof r||!r)return e;let n=Array.from(r.metadata||[]),[s]=n.splice(eK(t).startIndex,1);return n.splice(eK(t).endIndex,0,s),i(r,{metadata:n})}case d:case p:{let r=e[eK(t).type][eK(t).id],n=Array.from(r.metadata||[]),s=eK(t).atIndex;if(void 0===s||-1===s||!n[s])return e;return t.type===d?n.splice(s,1,{label:eK(t).label,value:eK(t).value}):n.splice(s,1),i(r,{metadata:n})}default:return e}},requests:(e={},t)=>{switch(t.type){case R:case T:return{...e,[t.payload.id]:{requestUri:t.payload.id,loadingState:S,uriMismatch:!1,resourceUri:t.payload.id}};case w:return{...e,[t.payload.requestId]:{...e[t.payload.requestId]||{},uriMismatch:!0,resourceUri:t.payload.actualId},[t.payload.actualId]:{requestUri:t.payload.requestId,loadingState:e[t.payload.requestId].loadingState,uriMismatch:!0,resourceUri:t.payload.actualId}};case O:return{...e,[t.payload.id]:{...e[t.payload.id]||{},loadingState:A,error:t.payload.message}};case E:return{...e,[t.payload.id]:{...e[t.payload.id]||{},loadingState:C,error:void 0}}}return e},meta:(e={},t)=>{let{id:i,updateValue:r,value:n,meta:s,key:a}=t&&t.payload||{};switch(t.type){case eN:return{...e,[i]:{...e[i]||{},[s]:{...e[i]&&e[i][s]||{},[a]:n}}};case eq:return{...e,[i]:{...e[i]||{},[s]:{...e[i]&&e[i][s]||{},[a]:r(e[i]&&e[i][s]?e[i][s][a]:void 0)}}};case eF:if(e[i]&&e[i][s]&&e[i][s][a])return{...e,[i]:{...e[i]||{},[s]:{...e[i]&&e[i][s]||{},[a]:void 0}}};return e;default:return e}}}),e2=Object.defineProperty;Object.prototype.hasOwnProperty;var e3=(e,t,i)=>t in e?e2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,e6=(e,t,i)=>(e3(e,"symbol"!=typeof t?t+"":t,i),i);function e4(e,t,i,r=!0){t[e9]=t[e9]||[],t[e9].push(e);let n=new Map;Object.defineProperty(t,e,{enumerable:r,get(){if(void 0===t[e8][e])return;let r=t[e8][e];if(!r)return r;let s=i.get(t[e8][e],{parent:this.id?{id:this.id,type:this.type}:void 0});return n.has(s)||(n.clear(),n.set(s,te(s,i))),n.get(s)},set(r){t[e8][e]!==r&&(this[e5]?i.modifyEntityField({id:this.id,type:this.type},e,function e(t){return Array.isArray(t)?t.map(t=>e(t)):t&&t.type?{id:t.id,type:t.type}:t}(r)):this[e8][e]=r)}})}var e8=Symbol.for("_refs_"),e5=Symbol.for("_reactive_"),e9=Symbol.for("_defined_"),e7=Symbol.for("_parent_");function te(e,t,i=!1,r){if(Array.isArray(e))return e.map(e=>te(e,t,i));if(!e||!e.type||!e.id)return e;let n=Object.assign(Object.create(function(e,t=!1,i){let r={id:"",type:"unknown",[e9]:[],[e8]:{},[e7]:null,[e5]:null,is(e){return"string"==typeof e?this.id===e:!!e.id&&e.id===this.id},reactive(){if(!this[e5])return this[e5]=this.subscribe(()=>this.refresh(),!0),()=>{this.unreactive()}},refresh(){if(this.id){let e=this.unwrap();for(let t of Object.keys(e||{}))this[e9].includes(t)?this[e8][t]=e[t]:this[t]=e[t]}},unreactive(){this[e5]&&(this[e5](),this[e5]=null)},unwrap(){if(!this.id)throw Error("Invalid object");let t=this[e7];return e.get(this.id,{parent:t?{id:t,type:"unknown"}:void 0})},toPresentation3(){return e.toPresentation3(this.unwrap())},toPresentation2(){return e.toPresentation2(this.unwrap())},valueOf(){return this.unwrap()},toJSON(){return{...this,items:this.items,annotations:this.annotations,structures:this.structures,seeAlso:this.seeAlso,service:this.service,services:this.services,rendering:this.rendering,partOf:this.partOf,start:this.start,supplementary:this.supplementary,homepage:this.homepage,thumbnail:this.thumbnail,placeholderCanvas:this.placeholderCanvas,accompanyingCanvas:this.accompanyingCanvas,provider:this.provider}},subscribe(t,i=!0){return e.subscribe(()=>this.id?e.get(this.id):null,t,i)}};return e4("items",r,e),e4("annotations",r,e),e4("structures",r,e),e4("seeAlso",r,e),e4("rendering",r,e),e4("partOf",r,e),e4("start",r,e,!1),e4("supplementary",r,e),e4("homepage",r,e),e4("thumbnail",r,e),e4("placeholderCanvas",r,e,!1),e4("accompanyingCanvas",r,e,!1),e4("provider",r,e),e4("body",r,e),e4("logo",r,e),r}(t,i)),e);return i&&n.reactive(),n}function tt(e){switch(e){case"Image":case"Video":case"Sound":case"Dataset":case"Text":case"Composite":case"List":case"Independents":case"Audience":return"ContentResource";case"ImageService1":case"ImageService2":case"ImageService3":return"Service"}return e}var ti=class{constructor(e,t){var i;e6(this,"options"),e6(this,"store"),e6(this,"emitter"),e6(this,"isBatching",!1),e6(this,"batchQueue",[]),e6(this,"remoteFetcher"),e6(this,"staticFetcher"),e6(this,"defaultFetcher",e=>fetch(e).then(e=>e.json())),this.options=Object.assign({reducers:{},customFetcher:this.defaultFetcher,enableDevtools:!0},e||{}),this.store=t||function(e={}){var t;let{enableDevtools:i=!1,iiifStoreName:r="iiif",defaultState:n={iiif:{entities:eU(),meta:{},mapping:{},requests:{}}},customReducers:s={}}=e,a=(t=e0({[r]:e1,...s}),(e,i)=>i&&i.type===D?i.payload.actions.reduce(t,e):i&&i.type===M?{...e,iiif:{...e.iiif,...i.payload.state}}:t(e,i));return ex(eY(("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?eG:(e,t)=>e)(eV(a,n),{enabled:i})))}({customReducers:this.options.reducers,defaultState:this.options.defaultState,enableDevtools:this.options.enableDevtools}),this.emitter={all:i=i||new Map,on:function(e,t){var r=i.get(e);r?r.push(t):i.set(e,[t])},off:function(e,t){var r=i.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):i.set(e,[]))},emit:function(e,t){var r=i.get(e);r&&r.slice().map(function(e){e(t)}),(r=i.get("*"))&&r.slice().map(function(i){i(e,t)})}},this.remoteFetcher=ej(this,this.options.customFetcher),this.staticFetcher=ej(this,(e,t)=>t)}batch(e){this.isBatching=!0;try{e(this),this.isBatching=!1,this.dispatch(j({actions:this.batchQueue}))}catch(e){throw this.batchQueue=[],this.isBatching=!1,e}this.batchQueue=[]}async asyncBatch(e){this.isBatching=!0;try{await e(this),this.isBatching=!1,this.dispatch(j({actions:this.batchQueue}))}catch(e){throw this.batchQueue=[],this.isBatching=!1,e}this.batchQueue=[]}modifyEntityField(e,t,i){this.dispatch(h({id:e.id,type:e.type,key:t,value:i}))}dispatch(e){if(this.isBatching)this.batchQueue.push(e);else{if(e.type===D){for(let t of e.payload.actions)this.emitter.emit(t.type,{action:t,state:this.store.getState()});this.store.dispatch(e);let t=this.getState();for(let i of e.payload.actions)this.emitter.emit(`after:${i.type}`,{action:i,state:t});return}this.emitter.emit(e.type,{action:e,state:this.store.getState()}),this.store.dispatch(e);let t=this.store.getState();this.emitter.emit(`after:${e.type}`,{action:e,state:t});return}}on(e,t){return this.emitter.on(e,t),()=>{this.emitter.off(e,t)}}serialize(e,t){return function(e,t,i){if(!t.type||!t.id)throw Error("Unknown entity");if(!i[t.type])throw Error(`Serializer not found for ${t.type}`);return function r(n,s,a=0){let o=i[n.type];if(!o)return Q;if(a>20)throw Error("Circular reference: "+n.id+" "+n.type);let[l,c]=function e(t,i,r){let n=function e(t,i){let r=i||"unknown";if(!t)return;if("string"==typeof t)return{id:t,type:r};if(N(t))return e(t.source,i);let n=r&&"unknown"!==r?r:t.type||t["@type"],s=t.id||t["@id"];if(n&&-1!==n.indexOf(":")&&(n=n.split(":").pop()),s&&n)return{id:s,type:n}}(i);if(!n)return[void 0,void 0];let s=t.requests[n.id],a=n.type||t.mapping[n.id];if(!a||s&&s.resourceUri&&(!t.entities[a]||!t.entities[a][s.resourceUri]))return[void 0,void 0];let o=t.entities[a][s?s.resourceUri:n.id];if(n.type&&!o)return e(t,{id:n.id},r);if(o&&o[J]){let e=o[J].find(e=>r?e[V]===r.id:e[V]===o.id);return[W(o,e),o]}return[o,o]}(e,n.type?n:n.id,s)||(n.id&&n.type?n:null);if(!l)return Q;let u=o(l,e,{parent:s,isTopLevel:t.id===n.id,fullResource:c}),p=u.next();for(;!p.done;){let e=p.value,t=Q;if(e){if(Array.isArray(e)){let i=[];for(let t of e)i.push(r(t,n,a+1));t=i}else t=r(e,n,a+1)}p=u.next(t)}return p.value===Q?Q:function(e){let t={};for(let[i,r]of e){if(i===H&&r!==Q)return r;r!==Q&&"u">typeof r&&null!==r&&(t[i]=r)}return t}(p.value)}(t)}(this.getState().iiif,e,t)}toPresentation2(e){return this.serialize(e,eC)}toPresentation3(e){return this.serialize(e,eI)}hydrate(e,t,i={}){return this.get(e,t,{...i,skipSelfReturn:!1})}get(e,t,i={}){"string"!=typeof t&&(i=t||{},t=void 0);let{skipSelfReturn:r=!0}=i||{},n=i.parent?"string"==typeof i.parent?i.parent:i.parent.id:void 0;if(Array.isArray(e))return e.map(e=>this.get(e,i));let s=this.getState();if(N(e)&&!i.preserveSpecificResources&&(e=e.source),"string"==typeof e){let i=tt(t||s.iiif.mapping[e]);if(!i)return r?null:{id:e,type:"unknown"};e={id:e,type:i}}if(e&&e.partOf&&!n&&!i.skipPartOfCheck){let t=Array.isArray(e.partOf)?e.partOf[0]:e.partOf;t&&("string"==typeof t&&(n=t),"string"==typeof t.id&&(n=t.id))}let a=tt(t||e?.type),o=e?.id,l=s.iiif.entities[a];if(!l){let t=s.iiif.requests[o];return t&&t.resourceUri!==o?this.get(t.resourceUri,i):r?null:e}let c=l[e.id];if(c&&c[J]){let e=c[J].find(e=>n?e[V]===n:e[V]===c.id);return W(c,e)}return l[e.id]||(r?null:e)}select(e){return e(this.getState())}getStore(){return this.store}getState(){return this.store.getState()}deep(e,t){if(void 0===e)return this.get(t,{skipSelfReturn:!1});if("function"==typeof e)try{let i=e(this.get(t,{skipSelfReturn:!1})),r=e=>this.deep(e,i);return r.size=Array.isArray(i)?i.length:1,r}catch(t){let e=e=>this.deep(e,void 0);return e.size=0,e}let i=t=>this.deep(t,e);return i.size=Array.isArray(e)?e.length:1,i}loadManifest(e,t){let i="string"==typeof e?e:e.id;return this.load(i,t)}loadCollection(e,t){let i="string"==typeof e?e:e.id;return this.load(i,t)}load(e,t){let i="string"==typeof e?e:e.id;return t?Promise.resolve(this.staticFetcher(i,t)):Promise.resolve(this.remoteFetcher(i))}loadSync(e,t){let i="string"==typeof e?e:e.id;return this.staticFetcher(i,t)}loadManifestSync(e,t){let i="string"==typeof e?e:e.id;return this.loadSync(i,t)}loadCollectionSync(e,t){let i="string"==typeof e?e:e.id;return this.loadSync(i,t)}areInputsEqual(e,t){return eD(e,t)}subscribe(e,t,i){return void 0===i&&(void 0===t||!1===t||!0===t)&&(i=t,t=e,e=e=>e),this.store.subscribe(e,e=>t(e,this),{equalityFn:eD,fireImmediately:!i})}async ensureLoaded(e){let t="string"==typeof e?e:e.id;this.requestStatus(t)||await this.load(t)}requestStatus(e){return this.select(t=>t.iiif.requests[e])}getResourceMeta(e,t){let i=this.getState().iiif.meta[e];return i?t?i[t]:i:void 0}getObject(e,t,i={}){let{reactive:r,...n}=i;return te(this.get(e,t,n),this,r)}async loadObject(e,t){return te(await this.load(e,t),this)}async loadManifestObject(e,t){return te(await this.loadManifest(e,t),this)}async loadCollectionObject(e,t){return te(await this.loadCollection(e,t),this)}wrapObject(e){return te(this.get(e,{skipSelfReturn:!1}),this)}isWrapped(e){return!!e[e9]}setMetaValue([e,t,i],r){this.dispatch("function"==typeof r?eJ.setMetaValueDynamic({id:e,meta:t,key:i,updateValue:r}):eJ.setMetaValue({id:e,meta:t,key:i,value:r}))}}},1858:function(e,t,i){i.d(t,{o0:function(){return n}});var r=i(8965).Buffer;function n(e){let t=(function(e){let t=e.length%4;if(1===t)throw Error("InvalidLengthError: Input base64url string is the wrong length to determine padding");return e+(t?"====".slice(0,4-t):"")})(e).replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent("undefined"==typeof atob?r.from(t,"base64").toString("utf-8"):atob(t)).trim()}}}]); \ No newline at end of file + `);let t=e.state[l];if(null==t)return;JSON.stringify(n.getState())!==JSON.stringify(t)&&f(t);return}n.dispatchFromDevtools&&"function"==typeof n.dispatch&&n.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":if(f(y),void 0===l)return null==u?void 0:u.init(n.getState());return null==u?void 0:u.init(eQ(c.name));case"COMMIT":if(void 0===l){null==u||u.init(n.getState());break}return null==u?void 0:u.init(eQ(c.name));case"ROLLBACK":return eW(e.state,e=>{if(void 0===l){f(e),null==u||u.init(n.getState());return}f(e[l]),null==u||u.init(eQ(c.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return eW(e.state,e=>{if(void 0===l){f(e);return}JSON.stringify(n.getState())!==JSON.stringify(e[l])&&f(e[l])});case"IMPORT_STATE":{let{nextLiftedState:i}=e.payload,r=null==(t=i.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;void 0===l?f(r):f(r[l]),null==u||u.send(null,i);break}case"PAUSE_RECORDING":return d=!d}return}}),y},eW=(e,t)=>{let i;try{i=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==i&&t(i)},eY=e=>(t,i,r)=>{let n=r.subscribe;return r.subscribe=(e,t,i)=>{let s=e;if(t){let n=(null==i?void 0:i.equalityFn)||Object.is,a=e(r.getState());s=i=>{let r=e(i);if(!n(a,r)){let e=a;t(a=r,e)}},(null==i?void 0:i.fireImmediately)&&t(a,a)}return n(s)},e(t,i,r)};function eX(e,t,i,r){return!(!e[i]||!e[i][t]||!e[i][t][r]||!Array.isArray(e[i][t][r]))}function eK(e){return e.payload}function eZ(e,t){return void 0===e?t:e}function e0(e={}){let t=Object.keys(e);return function(i={},r){let n=!1,s={};for(let a=0;a{switch(t.type){case v:return{...e,[t.payload.id]:t.payload.type};case g:return{...e,...t.payload.mapping};default:return e}},entities:(e=eU(),t)=>{let i=(i,r)=>({...e,[eK(t).type]:{...e[eK(t).type],[eK(t).id]:{...i,...r}}});switch(t.type){case s:{if(!e[eK(t).type]||!e[eK(t).type][eK(t).id])return e;let r=e[eK(t).type][eK(t).id];if("string"==typeof r)return e;return i(r,{[eK(t).key]:eK(t).value})}case a:{if(!eX(e,eK(t).id,eK(t).type,eK(t).key))return e;let r=e[eK(t).type][eK(t).id];if("string"==typeof r)return e;let n=Array.from(r[eK(t).key]),[s]=n.splice(eK(t).startIndex,1);return n.splice(eK(t).endIndex,0,s),i(r,{[eK(t).key]:n})}case n:{let i=Object.keys(eK(t).entities),r={...e};for(let n of i){let i=eK(t).entities[n],s={...e[n]||{}},a=!1,o=Object.keys(i||{})||[];if(i&&o){for(let t of o)a=!0,s[t]=e[n][t]?function(e,t){let i={},r=[];for(let[n,s]of Object.entries(e||{})){r.push(n);let e=(t||{})[n];if(!e||0===e.length){i[n]=s;continue}i[n]=e}for(let[e,n]of Object.entries(t||{}))-1===r.indexOf(e)&&(i[e]=n);return i}(e[n][t],i[t]):i[t];a&&(r[n]=s)}}return r}case o:{if(!eX(e,eK(t).id,eK(t).type,eK(t).key))return e;let r=e[eK(t).type][eK(t).id],n=Array.from(r[eK(t).key]);return n.splice(eZ(eK(t).index,n.length+1),0,eK(t).reference),i(r,{[eK(t).key]:n})}case l:case c:{if(!eX(e,eK(t).id,eK(t).type,eK(t).key))return e;let r=e[eK(t).type][eK(t).id],n=Array.from(r[eK(t).key]),s=eZ(eK(t).index,n.findIndex(e=>e&&e.id===eK(t).reference.id));if(-1===s||n[s]?.id!==eK(t).reference.id)return e;return t.type===l?n.splice(s,1,eK(t).reference):n.splice(s,1),i(r,{[eK(t).key]:n})}case u:{let r=e[eK(t).type][eK(t).id];if(!r)return e;let n=Array.from(r.metadata||[]),s=eK(t);return n.splice(eZ(t.payload.beforeIndex,n.length+1),0,{label:s.label,value:s.label}),i(r,{metadata:n})}case f:{let r=e[eK(t).type][eK(t).id];if("string"==typeof r||!r)return e;let n=Array.from(r.metadata||[]),[s]=n.splice(eK(t).startIndex,1);return n.splice(eK(t).endIndex,0,s),i(r,{metadata:n})}case d:case p:{let r=e[eK(t).type][eK(t).id],n=Array.from(r.metadata||[]),s=eK(t).atIndex;if(void 0===s||-1===s||!n[s])return e;return t.type===d?n.splice(s,1,{label:eK(t).label,value:eK(t).value}):n.splice(s,1),i(r,{metadata:n})}default:return e}},requests:(e={},t)=>{switch(t.type){case R:case T:return{...e,[t.payload.id]:{requestUri:t.payload.id,loadingState:S,uriMismatch:!1,resourceUri:t.payload.id}};case w:return{...e,[t.payload.requestId]:{...e[t.payload.requestId]||{},uriMismatch:!0,resourceUri:t.payload.actualId},[t.payload.actualId]:{requestUri:t.payload.requestId,loadingState:e[t.payload.requestId].loadingState,uriMismatch:!0,resourceUri:t.payload.actualId}};case O:return{...e,[t.payload.id]:{...e[t.payload.id]||{},loadingState:A,error:t.payload.message}};case E:return{...e,[t.payload.id]:{...e[t.payload.id]||{},loadingState:C,error:void 0}}}return e},meta:(e={},t)=>{let{id:i,updateValue:r,value:n,meta:s,key:a}=t&&t.payload||{};switch(t.type){case eN:return{...e,[i]:{...e[i]||{},[s]:{...e[i]&&e[i][s]||{},[a]:n}}};case eq:return{...e,[i]:{...e[i]||{},[s]:{...e[i]&&e[i][s]||{},[a]:r(e[i]&&e[i][s]?e[i][s][a]:void 0)}}};case eF:if(e[i]&&e[i][s]&&e[i][s][a])return{...e,[i]:{...e[i]||{},[s]:{...e[i]&&e[i][s]||{},[a]:void 0}}};return e;default:return e}}}),e2=Object.defineProperty;Object.prototype.hasOwnProperty;var e3=(e,t,i)=>t in e?e2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,e6=(e,t,i)=>(e3(e,"symbol"!=typeof t?t+"":t,i),i);function e4(e,t,i,r=!0){t[e7]=t[e7]||[],t[e7].push(e);let n=new Map;Object.defineProperty(t,e,{enumerable:r,get(){if(void 0===t[e5][e])return;let r=t[e5][e];if(!r)return r;let s=i.get(t[e5][e],{parent:this.id?{id:this.id,type:this.type}:void 0});return n.has(s)||(n.clear(),n.set(s,te(s,i))),n.get(s)},set(r){t[e5][e]!==r&&(this[e8]?i.modifyEntityField({id:this.id,type:this.type},e,function e(t){return Array.isArray(t)?t.map(t=>e(t)):t&&t.type?{id:t.id,type:t.type}:t}(r)):this[e5][e]=r)}})}var e5=Symbol.for("_refs_"),e8=Symbol.for("_reactive_"),e7=Symbol.for("_defined_"),e9=Symbol.for("_parent_");function te(e,t,i=!1,r){if(Array.isArray(e))return e.map(e=>te(e,t,i));if(!e||!e.type||!e.id)return e;let n=Object.assign(Object.create(function(e,t=!1,i){let r={id:"",type:"unknown",[e7]:[],[e5]:{},[e9]:null,[e8]:null,is(e){return"string"==typeof e?this.id===e:!!e.id&&e.id===this.id},reactive(){if(!this[e8])return this[e8]=this.subscribe(()=>this.refresh(),!0),()=>{this.unreactive()}},refresh(){if(this.id){let e=this.unwrap();for(let t of Object.keys(e||{}))this[e7].includes(t)?this[e5][t]=e[t]:this[t]=e[t]}},unreactive(){this[e8]&&(this[e8](),this[e8]=null)},unwrap(){if(!this.id)throw Error("Invalid object");let t=this[e9];return e.get(this.id,{parent:t?{id:t,type:"unknown"}:void 0})},toPresentation3(){return e.toPresentation3(this.unwrap())},toPresentation2(){return e.toPresentation2(this.unwrap())},valueOf(){return this.unwrap()},toJSON(){return{...this,items:this.items,annotations:this.annotations,structures:this.structures,seeAlso:this.seeAlso,service:this.service,services:this.services,rendering:this.rendering,partOf:this.partOf,start:this.start,supplementary:this.supplementary,homepage:this.homepage,thumbnail:this.thumbnail,placeholderCanvas:this.placeholderCanvas,accompanyingCanvas:this.accompanyingCanvas,provider:this.provider}},subscribe(t,i=!0){return e.subscribe(()=>this.id?e.get(this.id):null,t,i)}};return e4("items",r,e),e4("annotations",r,e),e4("structures",r,e),e4("seeAlso",r,e),e4("rendering",r,e),e4("partOf",r,e),e4("start",r,e,!1),e4("supplementary",r,e),e4("homepage",r,e),e4("thumbnail",r,e),e4("placeholderCanvas",r,e,!1),e4("accompanyingCanvas",r,e,!1),e4("provider",r,e),e4("body",r,e),e4("logo",r,e),r}(t,i)),e);return i&&n.reactive(),n}function tt(e){switch(e){case"Image":case"Video":case"Sound":case"Dataset":case"Text":case"Composite":case"List":case"Independents":case"Audience":return"ContentResource";case"ImageService1":case"ImageService2":case"ImageService3":return"Service"}return e}var ti=class{constructor(e,t){var i;e6(this,"options"),e6(this,"store"),e6(this,"emitter"),e6(this,"isBatching",!1),e6(this,"batchQueue",[]),e6(this,"remoteFetcher"),e6(this,"staticFetcher"),e6(this,"defaultFetcher",e=>fetch(e).then(e=>e.json())),this.options=Object.assign({reducers:{},customFetcher:this.defaultFetcher,enableDevtools:!0},e||{}),this.store=t||function(e={}){var t;let{enableDevtools:i=!1,iiifStoreName:r="iiif",defaultState:n={iiif:{entities:eU(),meta:{},mapping:{},requests:{}}},customReducers:s={}}=e,a=(t=e0({[r]:e1,...s}),(e,i)=>i&&i.type===D?i.payload.actions.reduce(t,e):i&&i.type===M?{...e,iiif:{...e.iiif,...i.payload.state}}:t(e,i));return ex(eY(("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?eG:(e,t)=>e)(eV(a,n),{enabled:i})))}({customReducers:this.options.reducers,defaultState:this.options.defaultState,enableDevtools:this.options.enableDevtools}),this.emitter={all:i=i||new Map,on:function(e,t){var r=i.get(e);r?r.push(t):i.set(e,[t])},off:function(e,t){var r=i.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):i.set(e,[]))},emit:function(e,t){var r=i.get(e);r&&r.slice().map(function(e){e(t)}),(r=i.get("*"))&&r.slice().map(function(i){i(e,t)})}},this.remoteFetcher=ej(this,this.options.customFetcher),this.staticFetcher=ej(this,(e,t)=>t)}batch(e){this.isBatching=!0;try{e(this),this.isBatching=!1,this.dispatch(j({actions:this.batchQueue}))}catch(e){throw this.batchQueue=[],this.isBatching=!1,e}this.batchQueue=[]}async asyncBatch(e){this.isBatching=!0;try{await e(this),this.isBatching=!1,this.dispatch(j({actions:this.batchQueue}))}catch(e){throw this.batchQueue=[],this.isBatching=!1,e}this.batchQueue=[]}modifyEntityField(e,t,i){this.dispatch(h({id:e.id,type:e.type,key:t,value:i}))}dispatch(e){if(this.isBatching)this.batchQueue.push(e);else{if(e.type===D){for(let t of e.payload.actions)this.emitter.emit(t.type,{action:t,state:this.store.getState()});this.store.dispatch(e);let t=this.getState();for(let i of e.payload.actions)this.emitter.emit(`after:${i.type}`,{action:i,state:t});return}this.emitter.emit(e.type,{action:e,state:this.store.getState()}),this.store.dispatch(e);let t=this.store.getState();this.emitter.emit(`after:${e.type}`,{action:e,state:t});return}}on(e,t){return this.emitter.on(e,t),()=>{this.emitter.off(e,t)}}serialize(e,t){return function(e,t,i){if(!t.type||!t.id)throw Error("Unknown entity");if(!i[t.type])throw Error(`Serializer not found for ${t.type}`);return function r(n,s,a=0){let o=i[n.type];if(!o)return Q;if(a>20)throw Error("Circular reference: "+n.id+" "+n.type);let[l,c]=function e(t,i,r){let n=function e(t,i){let r=i||"unknown";if(!t)return;if("string"==typeof t)return{id:t,type:r};if(N(t))return e(t.source,i);let n=r&&"unknown"!==r?r:t.type||t["@type"],s=t.id||t["@id"];if(n&&-1!==n.indexOf(":")&&(n=n.split(":").pop()),s&&n)return{id:s,type:n}}(i);if(!n)return[void 0,void 0];let s=t.requests[n.id],a=n.type||t.mapping[n.id];if(!a||s&&s.resourceUri&&(!t.entities[a]||!t.entities[a][s.resourceUri]))return[void 0,void 0];let o=t.entities[a][s?s.resourceUri:n.id];if(n.type&&!o)return e(t,{id:n.id},r);if(o&&o[J]){let e=o[J].find(e=>r?e[V]===r.id:e[V]===o.id);return[W(o,e),o]}return[o,o]}(e,n.type?n:n.id,s)||(n.id&&n.type?n:null);if(!l)return Q;let u=o(l,e,{parent:s,isTopLevel:t.id===n.id,fullResource:c}),p=u.next();for(;!p.done;){let e=p.value,t=Q;if(e){if(Array.isArray(e)){let i=[];for(let t of e)i.push(r(t,n,a+1));t=i}else t=r(e,n,a+1)}p=u.next(t)}return p.value===Q?Q:function(e){let t={};for(let[i,r]of e){if(i===H&&r!==Q)return r;r!==Q&&"u">typeof r&&null!==r&&(t[i]=r)}return t}(p.value)}(t)}(this.getState().iiif,e,t)}toPresentation2(e){return this.serialize(e,eC)}toPresentation3(e){return this.serialize(e,eI)}hydrate(e,t,i={}){return this.get(e,t,{...i,skipSelfReturn:!1})}get(e,t,i={}){"string"!=typeof t&&(i=t||{},t=void 0);let{skipSelfReturn:r=!0}=i||{},n=i.parent?"string"==typeof i.parent?i.parent:i.parent.id:void 0;if(Array.isArray(e))return e.map(e=>this.get(e,i));let s=this.getState();if(N(e)&&!i.preserveSpecificResources&&(e=e.source),"string"==typeof e){let i=tt(t||s.iiif.mapping[e]);if(!i)return r?null:{id:e,type:"unknown"};e={id:e,type:i}}if(e&&e.partOf&&!n&&!i.skipPartOfCheck){let t=Array.isArray(e.partOf)?e.partOf[0]:e.partOf;t&&("string"==typeof t&&(n=t),"string"==typeof t.id&&(n=t.id))}let a=tt(t||e?.type),o=e?.id,l=s.iiif.entities[a];if(!l){let t=s.iiif.requests[o];return t&&t.resourceUri!==o?this.get(t.resourceUri,i):r?null:e}let c=l[e.id];if(c&&c[J]){let e=c[J].find(e=>n?e[V]===n:e[V]===c.id);return W(c,e)}return l[e.id]||(r?null:e)}select(e){return e(this.getState())}getStore(){return this.store}getState(){return this.store.getState()}deep(e,t){if(void 0===e)return this.get(t,{skipSelfReturn:!1});if("function"==typeof e)try{let i=e(this.get(t,{skipSelfReturn:!1})),r=e=>this.deep(e,i);return r.size=Array.isArray(i)?i.length:1,r}catch(t){let e=e=>this.deep(e,void 0);return e.size=0,e}let i=t=>this.deep(t,e);return i.size=Array.isArray(e)?e.length:1,i}loadManifest(e,t){let i="string"==typeof e?e:e.id;return this.load(i,t)}loadCollection(e,t){let i="string"==typeof e?e:e.id;return this.load(i,t)}load(e,t){let i="string"==typeof e?e:e.id;return t?Promise.resolve(this.staticFetcher(i,t)):Promise.resolve(this.remoteFetcher(i))}loadSync(e,t){let i="string"==typeof e?e:e.id;return this.staticFetcher(i,t)}loadManifestSync(e,t){let i="string"==typeof e?e:e.id;return this.loadSync(i,t)}loadCollectionSync(e,t){let i="string"==typeof e?e:e.id;return this.loadSync(i,t)}areInputsEqual(e,t){return eD(e,t)}subscribe(e,t,i){return void 0===i&&(void 0===t||!1===t||!0===t)&&(i=t,t=e,e=e=>e),this.store.subscribe(e,e=>t(e,this),{equalityFn:eD,fireImmediately:!i})}async ensureLoaded(e){let t="string"==typeof e?e:e.id;this.requestStatus(t)||await this.load(t)}requestStatus(e){return this.select(t=>t.iiif.requests[e])}getResourceMeta(e,t){let i=this.getState().iiif.meta[e];return i?t?i[t]:i:void 0}getObject(e,t,i={}){let{reactive:r,...n}=i;return te(this.get(e,t,n),this,r)}async loadObject(e,t){return te(await this.load(e,t),this)}async loadManifestObject(e,t){return te(await this.loadManifest(e,t),this)}async loadCollectionObject(e,t){return te(await this.loadCollection(e,t),this)}wrapObject(e){return te(this.get(e,{skipSelfReturn:!1}),this)}isWrapped(e){return!!e[e7]}setMetaValue([e,t,i],r){this.dispatch("function"==typeof r?eJ.setMetaValueDynamic({id:e,meta:t,key:i,updateValue:r}):eJ.setMetaValue({id:e,meta:t,key:i,value:r}))}}},1858:function(e,t,i){i.d(t,{o0:function(){return n}});var r=i(5243).Buffer;function n(e){let t=(function(e){let t=e.length%4;if(1===t)throw Error("InvalidLengthError: Input base64url string is the wrong length to determine padding");return e+(t?"====".slice(0,4-t):"")})(e).replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent("undefined"==typeof atob?r.from(t,"base64").toString("utf-8"):atob(t)).trim()}}}]); \ No newline at end of file diff --git a/_next/static/chunks/282.1a9f0283aabea075.js b/_next/static/chunks/947.7a2f36cc27343c56.js similarity index 52% rename from _next/static/chunks/282.1a9f0283aabea075.js rename to _next/static/chunks/947.7a2f36cc27343c56.js index cdeee84a1..7fc803005 100644 --- a/_next/static/chunks/282.1a9f0283aabea075.js +++ b/_next/static/chunks/947.7a2f36cc27343c56.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[282],{7097:function(e,t,n){n.d(t,{x:function(){return i}});let i=(0,n(8158).zo)("svg",{display:"inline-flex",variants:{isLarge:{true:{height:"4rem",width:"4rem"}},isMedium:{true:{height:"2rem",width:"2rem"}},isSmall:{true:{height:"1rem",width:"1rem"}}}})},8622:function(e,t,n){n.d(t,{J:function(){return a}});var i=n(2676);n(5271);var o=n(7097);let a=e=>(0,i.jsx)(o.x,{...e,"data-testid":"icon-svg",role:"img",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:e.children});a.Title=e=>{let{children:t}=e;return(0,i.jsx)("title",{children:t})},a.Add=()=>(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288M400 256H112"}),a.Audio=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M232 416a23.88 23.88 0 01-14.2-4.68 8.27 8.27 0 01-.66-.51L125.76 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.75l91.37-74.81a8.27 8.27 0 01.66-.51A24 24 0 01256 120v272a24 24 0 01-24 24zm-106.18-80zm-.27-159.86zM320 336a16 16 0 01-14.29-23.19c9.49-18.87 14.3-38 14.3-56.81 0-19.38-4.66-37.94-14.25-56.73a16 16 0 0128.5-14.54C346.19 208.12 352 231.44 352 256c0 23.86-6 47.81-17.7 71.19A16 16 0 01320 336z"}),(0,i.jsx)("path",{d:"M368 384a16 16 0 01-13.86-24C373.05 327.09 384 299.51 384 256c0-44.17-10.93-71.56-29.82-103.94a16 16 0 0127.64-16.12C402.92 172.11 416 204.81 416 256c0 50.43-13.06 83.29-34.13 120a16 16 0 01-13.87 8z"}),(0,i.jsx)("path",{d:"M416 432a16 16 0 01-13.39-24.74C429.85 365.47 448 323.76 448 256c0-66.5-18.18-108.62-45.49-151.39a16 16 0 1127-17.22C459.81 134.89 480 181.74 480 256c0 64.75-14.66 113.63-50.6 168.74A16 16 0 01416 432z"})]}),a.Close=()=>(0,i.jsx)("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}),a.Download=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M336 176h40a40 40 0 0140 40v208a40 40 0 01-40 40H136a40 40 0 01-40-40V216a40 40 0 0140-40h40",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M176 272l80 80 80-80M256 48v288"})]}),a.Image=()=>(0,i.jsx)("path",{d:"M416 64H96a64.07 64.07 0 00-64 64v256a64.07 64.07 0 0064 64h320a64.07 64.07 0 0064-64V128a64.07 64.07 0 00-64-64zm-80 64a48 48 0 11-48 48 48.05 48.05 0 0148-48zM96 416a32 32 0 01-32-32v-67.63l94.84-84.3a48.06 48.06 0 0165.8 1.9l64.95 64.81L172.37 416zm352-32a32 32 0 01-32 32H217.63l121.42-121.42a47.72 47.72 0 0161.64-.16L448 333.84z"}),a.Video=()=>(0,i.jsx)("path",{d:"M464 384.39a32 32 0 01-13-2.77 15.77 15.77 0 01-2.71-1.54l-82.71-58.22A32 32 0 01352 295.7v-79.4a32 32 0 0113.58-26.16l82.71-58.22a15.77 15.77 0 012.71-1.54 32 32 0 0145 29.24v192.76a32 32 0 01-32 32zM268 400H84a68.07 68.07 0 01-68-68V180a68.07 68.07 0 0168-68h184.48A67.6 67.6 0 01336 179.52V332a68.07 68.07 0 01-68 68z"})},4868:function(e,t,n){n.d(t,{Hz:function(){return d},bC:function(){return l},tr:function(){return c},uv:function(){return u},yP:function(){return s}});var i=n(9454),o=n(8158);let a=(0,o.F4)({"0%":{opacity:0,transform:"translateY(1rem)"},"100%":{opacity:1,transform:"translateY(0)"}}),r=(0,o.F4)({"0%":{opacity:0,transform:"translateY(1rem)"},"100%":{opacity:1,transform:"translateY(0)"}}),l=(0,o.zo)(i.Eh,{fill:"$secondaryAlt"}),s=(0,o.zo)(i.x8,{position:"absolute",right:"0",top:"0",padding:"0.5rem",margin:"0",cursor:"pointer",border:"none",background:"none",fill:"inherit","&:hover":{opacity:"0.75"}}),d=(0,o.zo)(i.VY,{border:"none",backgroundColor:"white",fill:"inhrerit",padding:"1rem 2rem 1rem 1rem",width:"auto",minWidth:"200px",maxWidth:"350px",borderRadius:"3px",boxShadow:"5px 5px 13px #0002",animationDuration:"0.3s",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",'&[data-side="top"]':{animationName:r},'&[data-side="bottom"]':{animationName:a},'&[data-align="end"]':{["& ".concat(l)]:{margin:"0 0.7rem"}}}),c=(0,o.zo)(i.xz,{display:"inline-flex",padding:"0.5rem 0",margin:"0 0.5rem 0 0",cursor:"pointer",border:"none",background:"none","> button, > span":{margin:"0"}}),u=(0,o.zo)(i.fC,{boxSizing:"content-box"})},8855:function(e,t,n){n.d(t,{JO:function(){return i.J},J2:function(){return r},Vp:function(){return s}});var i=n(8622),o=n(2676),a=n(4868);n(5271);let r=e=>{let{children:t}=e;return(0,o.jsx)(a.uv,{children:t})};r.Trigger=e=>(0,o.jsx)(a.tr,{...e,children:e.children}),r.Content=e=>(0,o.jsxs)(a.Hz,{...e,sideOffset:5,collisionPadding:21,children:[(0,o.jsx)(a.bC,{}),(0,o.jsx)(a.yP,{children:(0,o.jsx)(i.J,{isSmall:!0,children:(0,o.jsx)(i.J.Close,{})})}),e.children]});var l=n(7097);let s=(0,n(8158).zo)("div",{boxSizing:"border-box",display:"inline-flex",alignItems:"center",borderRadius:"5px",padding:"$1",marginBottom:"$2",marginRight:"$2",backgroundColor:"$lightGrey",color:"$richBlack50",textTransform:"uppercase",fontSize:"$2",objectFit:"contain",lineHeight:"1em !important","&:last-child":{marginRight:"0"},["".concat(l.x)]:{position:"absolute",left:"$1",height:"$3",width:"$3"},variants:{isIcon:{true:{position:"relative",paddingLeft:"$5"}}}})},1282:function(e,t,n){n.r(t),n.d(t,{default:function(){return tZ}});var i=n(2676);n(2734);var o=n(5271),a=n(7498),r=n(4340),l=n(4399),s=n(4250),d=n(9822);let c=async(e,t)=>{let n=e.get({id:t,type:"Canvas"});if(!(null==n?void 0:n.annotations)||!n.annotations[0])return[];let i=e.get(n.annotations).filter(e=>!!e.items&&e),o=[];for(let t of i)if(t.items.length>0){let e=t.label||{none:["Annotations"]};o.push({...t,label:e})}else{let n={};try{n=await e.load(t.id)}catch(e){console.log(e)}if(n.items&&n.items.length>0){let e=n.label||{none:["Annotations"]};o.push({...n,label:e})}}return o},u=async(e,t,n,i)=>{let o;if(void 0==i||void 0==i.q)return{label:{none:[n]}};let a="".concat(t,"?q=").concat(i.q.trim());try{o=await e.load(a)}catch(e){return console.log("Could not load content search."),{}}return void 0==o.label&&(o.label={none:[n]}),o};var h=n(7467),m=n(2461),p=n(8158);let g=(0,p.zo)("div",{position:"relative",zIndex:"0"}),f=(0,p.zo)("div",{display:"flex",flexDirection:"row",flexGrow:"1",overflow:"hidden","@sm":{flexDirection:"column"}}),x=(0,p.zo)("div",{display:"flex",flexDirection:"column",flexGrow:"1",flexShrink:"1",width:"61.8%","@sm":{width:"100%"}}),v=(0,p.zo)(l.xz,{display:"none",border:"none",padding:"0",transition:"$all",opacity:"1",background:"#6663",margin:"1rem 0",borderRadius:"6px","&[data-information-panel='false']":{opacity:"0",marginTop:"-59px"},"@sm":{display:"flex","> span":{display:"flex",flexGrow:"1",fontSize:"0.8333em",justifyContent:"center",padding:"0.5rem",fontFamily:"inherit"}}}),b=(0,p.zo)(l.VY,{width:"100%",display:"flex"}),j=(0,p.zo)("aside",{display:"flex",flexGrow:"1",flexShrink:"0",width:"38.2%",maxHeight:"100%","@sm":{width:"100%"}}),y=(0,p.zo)("div",{display:"flex",flexDirection:"column",fontSmooth:"auto",webkitFontSmoothing:"antialiased",'&[data-absolute-position="true"]':{position:"absolute",width:"100%",height:"100%",zIndex:"0"},"> div":{display:"flex",flexDirection:"column",flexGrow:"1",justifyContent:"flex-start",height:"100%",maxHeight:"100%","@sm":{["& ".concat(f)]:{flexGrow:"1"},["& ".concat(x)]:{flexGrow:"0"}}},"@sm":{padding:"0"},"&[data-information-panel-open='true']":{"@sm":{position:"fixed",height:"100%",width:"100%",top:"0",left:"0",zIndex:"2500000000",["& ".concat(g)]:{display:"none"},["& ".concat(v)]:{margin:"1rem"},["& ".concat(b)]:{height:"100%"}}}});var w=n(3517);let C=(0,p.zo)(w.fC,{display:"flex",flexDirection:"column",width:"100%",height:"100%",flexGrow:"1",flexShrink:"0",position:"relative",zIndex:"1",maskImage:"linear-gradient(180deg, rgba(0, 0, 0, 1) calc(100% - 2rem), transparent 100%)","@sm":{marginTop:"0.5rem",boxShadow:"none"}}),S=(0,p.zo)(w.aV,{display:"flex",flexGrow:"0",margin:"0 1.618rem",borderBottom:"4px solid #6663","@sm":{margin:"0 1rem"}}),k=(0,p.zo)(w.xz,{display:"flex",position:"relative",padding:"0.5rem 1rem",background:"none",backgroundColor:"transparent",fontFamily:"inherit",border:"none",opacity:"0.7",fontSize:"1rem",marginRight:"1rem",lineHeight:"1rem",whiteSpace:"nowrap",cursor:"pointer",fontWeight:400,transition:"$all","&::after":{width:"0",height:"4px",content:"",position:"absolute",bottom:"-4px",left:"0",transition:"$all"},"&[data-state='active']":{opacity:"1",fontWeight:700,"&::after":{width:"100%",backgroundColor:"$accent"}}}),z=(0,p.zo)(w.VY,{display:"flex",flexGrow:"1",flexShrink:"0",position:"absolute",top:"0",left:"0","&[data-state='active']":{width:"100%",height:"calc(100% - 2rem)",padding:"1.618rem 0"}}),I=(0,p.zo)(e=>{let{handleScroll:t,children:n,className:o}=e;return(0,i.jsx)("div",{className:o,onScroll:t,children:n})},{position:"relative",height:"100%",width:"100%",overflowY:"scroll"}),$={position:"relative",cursor:"pointer",display:"flex",width:"100%",justifyContent:"space-between",textAlign:"left",margin:"0",padding:"0.5rem 1.618rem",fontFamily:"inherit",lineHeight:"1.25em",fontSize:"1rem",color:"inherit",border:"none",background:"none"},T=(0,p.zo)("button",{textAlign:"left","&:hover":{color:"$accent"}}),A=(0,p.zo)("div",{display:"flex",flexDirection:"column",width:"100%"}),M=(0,p.zo)("div",{...$}),E=(0,p.zo)("div",{"&:hover":{color:"$accent"}});var R=e=>{let{value:t,handleClick:n}=e;return(0,i.jsx)(T,{onClick:n,children:t})},L=e=>{let{value:t,handleClick:n}=e;return(0,i.jsx)(E,{dangerouslySetInnerHTML:{__html:t},onClick:n})},F=n(2950),H=()=>{function e(e){return e.map(e=>{let t=e.identifier||(0,F.Z)();return{...e,identifier:t}})}return{addIdentifiersToParsedCues:e,createNestedCues:function(t){let n=[],i=[];for(let a of e(t)){for(;i.length>0&&i[i.length-1].end<=a.start;)i.pop();if(i.length>0){var o;i[i.length-1].children||(i[i.length-1].children=[]),null===(o=i[i.length-1].children)||void 0===o||o.push(a),i.push(a)}else n.push(a),i.push(a)}return n},isChild:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some(t=>e.start>=t.start&&e.end<=t.end)},orderCuesByTime:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((e,t)=>e.start-t.start)}}},P=n(2014);let D=(0,p.F4)({from:{transform:"rotate(360deg)"},to:{transform:"rotate(0deg)"}}),O=(0,p.zo)(P.fC,{display:"flex",flexDirection:"column",width:"100%"}),V=(0,p.zo)(P.ck,{...$,"@sm":{padding:"0.5rem 1rem",fontSize:"0.8333rem"},"&::before":{content:"",width:"12px",height:"12px",borderRadius:"12px",position:"absolute",backgroundColor:"$primaryMuted",opacity:"0",left:"8px",marginTop:"3px",boxSizing:"content-box","@sm":{content:"unset"}},"&::after":{content:"",width:"4px",height:"6px",position:"absolute",backgroundColor:"$secondary",opacity:"0",clipPath:"polygon(100% 50%, 0 100%, 0 0)",left:"13px",marginTop:"6px",boxSizing:"content-box","@sm":{content:"unset"}},strong:{marginLeft:"1rem"},"&:hover":{color:"$accent","&::before":{backgroundColor:"$accent",opacity:"1"},"&::after":{content:"",width:"4px",height:"6px",position:"absolute",backgroundColor:"$secondary",clipPath:"polygon(100% 50%, 0 100%, 0 0)",opacity:"1"}},"&[aria-checked='true']":{backgroundColor:"#6663","&::before":{content:"",width:"6px",height:"6px",position:"absolute",backgroundColor:"transparent",border:"3px solid $accentMuted",borderRadius:"12px",left:"8px",marginTop:"4px",opacity:"1",animation:"1s linear infinite",animationName:D,boxSizing:"content-box","@sm":{content:"unset"}},"&::after":{content:"",width:"6px",height:"6px",position:"absolute",backgroundColor:"transparent",border:"3px solid $accent",clipPath:"polygon(100% 0, 100% 100%, 0 0)",borderRadius:"12px",left:"8px",marginTop:"4px",opacity:"1",animation:"1.5s linear infinite",animationName:D,boxSizing:"content-box","@sm":{content:"unset"}}}});var N=n(1644);let B=e=>{for(;e&&e!==document.body;){let t=window.getComputedStyle(e).overflowY;if("visible"!==t&&"hidden"!==t&&e.scrollHeight>e.clientHeight)return e;e=e.parentNode}return null};var G=e=>{var t,n;let{label:r,start:l,end:s}=e,d=(0,a.Cu)(),{configOptions:c,isAutoScrollEnabled:u,isUserScrolling:h}=(0,a.D1)(),m=null==c?void 0:null===(n=c.informationPanel)||void 0===n?void 0:null===(t=n.vtt)||void 0===t?void 0:t.autoScroll,[p,g]=(0,o.useState)(!1),f=(0,o.useRef)(null),x=document.getElementById("clover-iiif-video");return(0,o.useEffect)(()=>(null==x||x.addEventListener("timeupdate",()=>{let{currentTime:e}=x;g(l<=e&&edocument.removeEventListener("timeupdate",()=>{})),[s,l,x]),(0,o.useEffect)(()=>{if(u&&p&&f.current&&!h){let n=f.current;if(n&&n instanceof HTMLElement){let i=B(n);if(i&&i instanceof HTMLElement){var e,t;let o;switch(null==m?void 0:null===(e=m.settings)||void 0===e?void 0:e.block){case"center":let a=i.getBoundingClientRect();o=n.offsetTop+n.offsetHeight-Math.floor((a.bottom-a.top)/2);break;case"end":o=n.offsetTop+n.offsetHeight-(i.clientHeight-n.clientHeight)+2;break;default:o=n.offsetTop-2}t=()=>{var e;return i.scrollTo({top:o,left:0,behavior:null==m?void 0:null===(e=m.settings)||void 0===e?void 0:e.behavior})},d({type:"updateAutoScrolling",isAutoScrolling:!0}),t(),setTimeout(()=>d({type:"updateAutoScrolling",isAutoScrolling:!1}),750)}}}},[m,p,h,u,d]),(0,i.jsxs)(V,{ref:f,"aria-checked":p,"data-testid":"information-panel-cue",onClick:()=>{x&&(x.pause(),x.currentTime=l,x.play())},value:r,children:[r,(0,i.jsx)("strong",{children:(0,N.rJ)(l)})]})};let W=(0,p.zo)("ul",{listStyle:"none",paddingLeft:"1rem",position:"relative","&&:first-child":{paddingLeft:"0"},"& li ul":{["& ".concat(V)]:{backgroundColor:"unset","&::before":{content:"none"},"&::after":{content:"none"}}},"&:first-child":{margin:"0 0 1.618rem"}}),_=e=>{let{items:t}=e;return(0,i.jsx)(W,{children:t.map(e=>{let{text:t,start:n,end:o,children:a,identifier:r}=e;return(0,i.jsxs)("li",{children:[(0,i.jsx)(G,{label:t,start:n,end:o}),a&&(0,i.jsx)(_,{items:a})]},r)})})},J=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if(!e)return"";if(!e[t]){let t=Object.getOwnPropertyNames(e);if(t.length>0)return e[t[0]]}return e[t]};var q=n(3836),Z=e=>{let{label:t,vttUri:n}=e,[a,r]=o.useState([]),{createNestedCues:l,orderCuesByTime:s}=H(),[d,c]=o.useState();return(0,o.useEffect)(()=>{n&&fetch(n,{headers:{"Content-Type":"text/plain",Accept:"application/json"}}).then(e=>e.text()).then(e=>{r(l(s((0,q.parse)(e).cues)))}).catch(e=>{console.error(n,e.toString()),c(e)})},[n]),(0,i.jsxs)(O,{"data-testid":"annotation-item-vtt","aria-label":"".concat(J(t)),children:[d&&(0,i.jsxs)("div",{"data-testid":"error-message",children:["Network Error: ",d.toString()]}),(0,i.jsx)(_,{items:a})]})},U=e=>{let{caption:t,handleClick:n,imageUri:o}=e;return(0,i.jsxs)(T,{onClick:n,children:[(0,i.jsx)("img",{src:o,alt:"A visual annotation for ".concat(t)}),(0,i.jsx)("span",{children:t})]})},Y=e=>{var t,n;let{annotation:o}=e,{target:r}=o,{openSeadragonViewer:l,vault:d,activeCanvas:c,configOptions:u}=(0,a.D1)(),h=o.body.map(e=>d.get(e.id)),m=(null===(t=h.find(e=>e.format))||void 0===t?void 0:t.format)||"",p=(null===(n=h.find(e=>e.value))||void 0===n?void 0:n.value)||"",g=d.get({id:c,type:"Canvas"});function f(){var e;if(!r)return;let t=(null===(e=u.annotationOverlays)||void 0===e?void 0:e.zoomLevel)||1;(0,s.$H)(l,t,r,g)}return(0,i.jsx)(M,{children:function(){var e,t;switch(m){case"text/plain":return(0,i.jsx)(R,{value:p,handleClick:f});case"text/html":return(0,i.jsx)(L,{value:p,handleClick:f});case"text/vtt":return(0,i.jsx)(Z,{label:h[0].label,vttUri:h[0].id||""});case null===(e=m.match(/^image\//))||void 0===e?void 0:e.input:let n=(null===(t=h.find(e=>{var t;return!(null===(t=e.id)||void 0===t?void 0:t.includes("vault://"))}))||void 0===t?void 0:t.id)||"";return(0,i.jsx)(U,{caption:p,handleClick:f,imageUri:n});default:return(0,i.jsx)(R,{value:p,handleClick:f})}}()})},Q=e=>{var t;let{annotationPage:n}=e,{vault:o}=(0,a.D1)();if(!n||!n.items||(null===(t=n.items)||void 0===t?void 0:t.length)===0)return(0,i.jsx)(i.Fragment,{});let r=n.items.map(e=>o.get(e.id));return r?(0,i.jsx)(A,{"data-testid":"annotation-page",children:null==r?void 0:r.map(e=>(0,i.jsx)(Y,{annotation:e},e.id))}):(0,i.jsx)(i.Fragment,{})};let X=(0,p.zo)("button",{textAlign:"left","&:hover":{color:"$accent"}}),K=(0,p.zo)("li",{margin:"0.25rem 0"}),ee=(0,p.zo)("ol",{listStyleType:"auto",marginBottom:"1rem",listStylePosition:"inside"}),et=(0,p.zo)("div",{margin:"0.5rem 1.618rem"}),en=(0,p.zo)("div",{fontWeight:"bold"}),ei=(0,p.zo)("div",{marginBottom:"1rem"});var eo=e=>{let{value:t,handleClick:n,target:o,canvas:a}=e;return(0,i.jsx)(X,{onClick:n,"data-target":o,"data-canvas":a,children:t})},ea=e=>{var t,n,r;let l,d,{annotation:c,activeContentSearchTarget:u,setActiveContentSearchTarget:h}=e,m=(0,a.Cu)(),{openSeadragonViewer:p,vault:g,contentSearchVault:f,activeCanvas:x,configOptions:v,OSDImageLoaded:b}=(0,a.D1)(),j=g.get({id:x,type:"Canvas"}),y=(null===(t=c.body.map(e=>f.get(e.id)).find(e=>e.value))||void 0===t?void 0:t.value)||"";if(c.target&&"string"==typeof c.target&&(l=c.target),l){let e=l.split("#xywh");e.length>1&&(d=e[0])}let w=(null===(r=v.contentSearch)||void 0===r?void 0:null===(n=r.overlays)||void 0===n?void 0:n.zoomLevel)||1;(0,o.useEffect)(()=>{b&&p&&c.target&&c.target==u&&(0,s.$H)(p,w,l,j)},[p,b]);let C=JSON.stringify(l);return(0,i.jsx)(K,{children:(0,i.jsx)(eo,{target:C,canvas:d,value:y,handleClick:function(e){if(!p)return;let t=JSON.parse(e.target.dataset.target),n=e.target.dataset.canvas;x===n?(0,s.$H)(p,w,l,j):(m({type:"updateOSDImageLoaded",OSDImageLoaded:!1}),m({type:"updateActiveCanvas",canvasId:n}),h(t))}})})},er=e=>{var t,n,r;let{annotationPage:l}=e,{contentSearchVault:s,configOptions:d}=(0,a.D1)(),[c,u]=(0,o.useState)(),h=null===(t=d.contentSearch)||void 0===t?void 0:t.searchResultsLimit,m=null===(n=d.localeText)||void 0===n?void 0:n.contentSearch;return l&&l.items&&(null===(r=l.items)||void 0===r?void 0:r.length)!==0?(0,i.jsx)(i.Fragment,{children:Object.entries(function(e){let t={};return e.items.forEach(e=>{let n=s.get(e.id),i="";if(n.label){let e=J(n.label);e&&(i=e[0])}void 0==t[i]&&(t[i]=[]),t[i].push(n)}),t}(l)).map((e,t)=>{let[n,o]=e;return(0,i.jsxs)("div",{children:[(0,i.jsx)(en,{className:"content-search-results-title",children:n}),(0,i.jsx)(ee,{className:"content-search-results",children:(h?o.slice(0,h):o).map((e,t)=>(0,i.jsx)(ea,{annotation:e,activeContentSearchTarget:c,setActiveContentSearchTarget:u},t))}),function(e){if(h){let t=e.length-h;if(t>0)return(0,i.jsxs)(ei,{children:[t," ",null==m?void 0:m.moreResults]})}}(o)]},t)})}):(0,i.jsx)("p",{children:null==m?void 0:m.noSearchResults})},el=n(4966);let es=(0,p.zo)("div",{".content-search-form":{display:"flex",marginBottom:"1rem"},input:{padding:".25rem",marginRight:"1rem"}}),ed=(0,p.zo)("button",{display:"flex",background:"none",border:"none",width:"2rem",height:"2rem",padding:"0",margin:"0",fontWeight:"700",borderRadius:"2rem",backgroundColor:"$accent",color:"$secondary",cursor:"pointer",boxSizing:"content-box",transition:"$all",svg:{height:"60%",width:"60%",padding:"20%",fill:"$secondary",stroke:"$secondary",opacity:"1",filter:"drop-shadow(5px 5px 5px #000D)",boxSizing:"inherit",transition:"$all"},"&:disabled":{backgroundColor:"transparent",boxShadow:"none",svg:{opacity:"0.25"}}});var ec=e=>{var t;let{searchServiceUrl:n,setContentSearchResource:r,setLoading:l}=e,[s,d]=(0,o.useState)(),{contentSearchVault:c,openSeadragonViewer:h,configOptions:m}=(0,a.D1)(),p=null===(t=m.localeText)||void 0===t?void 0:t.contentSearch;async function g(e){e.preventDefault();let t=null==p?void 0:p.tabLabel;if(h&&n){if(!s||""===s.trim()){r({label:{none:[t]}});return}l(!0),u(c,n,t,{q:s}).then(e=>{r(e),l(!1)})}}return(0,i.jsx)(es,{children:(0,i.jsxs)(el.fC,{onSubmit:g,className:"content-search-form",children:[(0,i.jsx)(el.gN,{className:"FormField",name:"searchTerms",onChange:e=>{e.preventDefault(),d(e.target.value)},children:(0,i.jsx)(el.oT,{placeholder:null==p?void 0:p.formPlaceholder})}),(0,i.jsx)(el.k4,{asChild:!0,children:(0,i.jsx)(ed,{type:"submit",children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:"Search"}),(0,i.jsx)("path",{d:"M456.69 421.39L362.6 327.3a173.81 173.81 0 0034.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 00327.3 362.6l94.09 94.09a25 25 0 0035.3-35.3zM97.92 222.72a124.8 124.8 0 11124.8 124.8 124.95 124.95 0 01-124.8-124.8z"})]})})})]})})},eu=e=>{let{searchServiceUrl:t,setContentSearchResource:n,activeCanvas:a,annotationPage:r}=e,[l,s]=(0,o.useState)(!1);return(0,i.jsxs)(et,{children:[(0,i.jsx)(ec,{searchServiceUrl:t,setContentSearchResource:n,activeCanvas:a,setLoading:s}),!l&&(0,i.jsx)(er,{annotationPage:r}),l&&(0,i.jsx)("span",{children:"Loading..."})]})};let eh=(0,p.zo)("div",{padding:" 0 1.618rem 2rem",display:"flex",flexDirection:"column",overflow:"scroll",position:"absolute",fontWeight:"400",fontSize:"1rem",zIndex:"0",img:{maxWidth:"100px",maxHeight:"100px",objectFit:"contain",color:"transparent",margin:"0 0 1rem",borderRadius:"3px",backgroundColor:"$secondaryMuted"},video:{display:"none"},"a, a:visited":{color:"$accent"},p:{fontSize:"1rem",lineHeight:"1.45em",margin:"0"},dl:{margin:"0",dt:{fontWeight:"700",margin:"1rem 0 0.25rem"},dd:{margin:"0"}},".manifest-property-title":{fontWeight:"700",margin:"1rem 0 0.25rem"},"ul, ol":{padding:"0",margin:"0",li:{fontSize:"1rem",lineHeight:"1.45em",listStyle:"none",margin:"0.25rem 0 0.25rem"}}}),em=(0,p.zo)("div",{position:"relative",width:"100%",height:"100%",zIndex:"0"});var ep=n(4384),eg=e=>{let{homepage:t}=e;return(null==t?void 0:t.length)===0?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"manifest-property-title",children:"Homepage"}),(0,i.jsx)(ep.bw,{homepage:t})]})},ef=e=>{let{id:t,htmlLabel:n,parent:o="manifest"}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"manifest-property-title",children:n}),(0,i.jsx)("a",{href:t,target:"_blank",id:"iiif-".concat(o,"-id"),children:t})]})},ex=e=>{let{metadata:t,parent:n="manifest"}=e;return t?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ep.SF,{metadata:t,id:"iiif-".concat(n,"-metadata")})}):(0,i.jsx)(i.Fragment,{})},ev=e=>{let{rendering:t}=e;return(null==t?void 0:t.length)===0?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"manifest-property-title",children:"Alternate formats"}),(0,i.jsx)(ep.Oy,{rendering:t})]})},eb=e=>{let{requiredStatement:t,parent:n="manifest"}=e;return t?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ep.bT,{requiredStatement:t,id:"iiif-".concat(n,"-required-statement")})}):(0,i.jsx)(i.Fragment,{})},ej=e=>{let{rights:t}=e;return t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"manifest-property-title",children:"Rights"}),(0,i.jsx)("a",{href:t,target:"_blank",children:t})]}):(0,i.jsx)(i.Fragment,{})},ey=e=>{let{seeAlso:t}=e;return(null==t?void 0:t.length)===0?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"manifest-property-title",children:"See Also"}),(0,i.jsx)(ep.QZ,{seeAlso:t})]})},ew=e=>{let{summary:t,parent:n="manifest"}=e;return t?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ep.ER,{summary:t,as:"p",id:"iiif-".concat(n,"-summary")})}):(0,i.jsx)(i.Fragment,{})},eC=e=>{let{label:t,thumbnail:n}=e;return(null==n?void 0:n.length)===0?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ep.pl,{altAsLabel:t||{none:["resource"]},thumbnail:n,style:{backgroundColor:"#6663",objectFit:"cover"}})})},eS=()=>{let{activeManifest:e,vault:t}=(0,a.D1)(),[n,r]=(0,o.useState)(),[l,s]=(0,o.useState)([]),[d,c]=(0,o.useState)([]),[u,h]=(0,o.useState)([]),[m,p]=(0,o.useState)([]);return((0,o.useEffect)(()=>{var n,i,o,a;let l=t.get(e);r(l),(null===(n=l.homepage)||void 0===n?void 0:n.length)>0&&s(t.get(l.homepage)),(null===(i=l.seeAlso)||void 0===i?void 0:i.length)>0&&c(t.get(l.seeAlso)),(null===(o=l.rendering)||void 0===o?void 0:o.length)>0&&h(t.get(l.rendering)),(null===(a=l.thumbnail)||void 0===a?void 0:a.length)>0&&p(t.get(l.thumbnail))},[e,t]),n)?(0,i.jsx)(em,{children:(0,i.jsxs)(eh,{children:[(0,i.jsx)(eC,{thumbnail:m,label:n.label}),(0,i.jsx)(ew,{summary:n.summary}),(0,i.jsx)(ex,{metadata:n.metadata}),(0,i.jsx)(eb,{requiredStatement:n.requiredStatement}),(0,i.jsx)(ej,{rights:n.rights}),(0,i.jsx)(eg,{homepage:l}),(0,i.jsx)(ey,{seeAlso:d}),(0,i.jsx)(ev,{rendering:u}),(0,i.jsx)(ef,{id:n.id,htmlLabel:"IIIF Manifest"})]})}):(0,i.jsx)(i.Fragment,{})},ek=n(637),ez=e=>{let{activeCanvas:t,annotationResources:n,searchServiceUrl:r,setContentSearchResource:l,contentSearchResource:s}=e,{t:d}=(0,ek.$G)(),c=(0,a.Cu)(),{isAutoScrolling:u,isUserScrolling:p,vault:g,configOptions:f,plugins:x}=(0,a.D1)(),{informationPanel:v}=f,[b,j]=(0,o.useState)(),y=null==v?void 0:v.renderAbout,w=null==v?void 0:v.renderAnnotation,$=g.get({id:t,type:"Canvas"}),T=null==v?void 0:v.renderContentSearch,{pluginsWithInfoPanel:A}=function(e){let t=[];return e.forEach(e=>{var n;(null===(n=e.informationPanel)||void 0===n?void 0:n.component)&&t.push(e)}),{pluginsWithInfoPanel:t}}(x);return(0,o.useEffect)(()=>{if(!b){if(null==v?void 0:v.defaultTab){let e=["manifest-about","manifest-content-search"];$.annotations.length>0&&$.annotations.forEach(t=>e.push(t.id)),e.includes(null==v?void 0:v.defaultTab)?j(v.defaultTab):j("manifest-about")}else y?j("manifest-about"):T?j("manifest-content-search"):n&&(null==n?void 0:n.length)>0?j(n[0].id):x.length>0&&j(x[0].id)}},[null==v?void 0:v.defaultTab,t,b,y,T,n,s,null==$?void 0:$.annotations,x]),(0,i.jsxs)(C,{"data-testid":"information-panel",defaultValue:b,onValueChange:e=>{j(e)},orientation:"horizontal",value:b,className:"clover-viewer-information-panel",children:[(0,i.jsxs)(S,{"aria-label":d("informationPanelTabs"),"data-testid":"information-panel-list",children:[y&&(0,i.jsx)(k,{value:"manifest-about",children:d("informationPanelTabsAbout")}),T&&s&&(0,i.jsx)(k,{value:"manifest-content-search",children:(0,i.jsx)(ep.__,{label:s.label})}),w&&n&&n.map((e,t)=>(0,i.jsx)(k,{value:e.id,children:(0,i.jsx)(ep.__,{label:e.label})},t)),A&&A.map((e,t)=>{var n;return(0,i.jsx)(k,{value:e.id,children:(0,i.jsx)(ep.__,{label:null===(n=e.informationPanel)||void 0===n?void 0:n.label})},t)})]}),(0,i.jsxs)(I,{handleScroll:function(){if(!u){clearTimeout(p);let e=setTimeout(()=>{c({type:"updateUserScrolling",isUserScrolling:void 0})},1500);c({type:"updateUserScrolling",isUserScrolling:e})}},children:[y&&(0,i.jsx)(z,{value:"manifest-about",children:(0,i.jsx)(eS,{})}),T&&s&&(0,i.jsx)(z,{value:"manifest-content-search",children:(0,i.jsx)(eu,{searchServiceUrl:r,setContentSearchResource:l,activeCanvas:t,annotationPage:s})}),w&&n&&n.map(e=>(0,i.jsx)(z,{value:e.id,children:(0,i.jsx)(Q,{annotationPage:e})},e.id)),A&&A.map((e,t)=>(function(e,t){var n,o;let r=null==e?void 0:null===(n=e.informationPanel)||void 0===n?void 0:n.component;return void 0===r?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(z,{value:e.id,children:(0,i.jsx)(h.SV,{FallbackComponent:m.Z,children:(0,i.jsx)(r,{...null==e?void 0:null===(o=e.informationPanel)||void 0===o?void 0:o.componentProps,canvas:$,useViewerDispatch:a.Cu,useViewerState:a.D1})})},t)})(e,t))]})]})},eI=n(9854);let e$=(e,t,n,i)=>{let o=[];if(t.canvas&&t.canvas.thumbnail.length>0){let n=e.get(t.canvas.thumbnail[0]);o.push(n)}if(t.annotations[0]){if(t.annotations[0].thumbnail&&t.annotations[0].thumbnail.length>0){let n=e.get(t.annotations[0].thumbnail[0]);o.push(n)}if(!t.annotations[0].body)return;let n=t.annotations[0].body;"Image"===n.type&&o.push(n)}if(0!==o.length)return{id:o[0].id,format:o[0].format,type:o[0].type,width:n,height:i}},eT=(0,p.zo)("div",{position:"absolute",right:"1rem",top:"1rem",display:"flex",justifyContent:"flex-end",zIndex:"1"}),eA=(0,p.zo)("input",{flexGrow:"1",border:"none",backgroundColor:"$secondaryMuted",color:"$primary",marginRight:"1rem",height:"2rem",padding:"0 1rem",borderRadius:"2rem",fontFamily:"inherit",fontSize:"1rem",lineHeight:"1rem",boxShadow:"inset 1px 1px 2px #0003","&::placeholder":{color:"$primaryMuted"}}),eM=(0,p.zo)("button",{display:"flex",background:"none",border:"none",width:"2rem !important",height:"2rem !important",padding:"0",margin:"0",fontWeight:"700",borderRadius:"2rem",backgroundColor:"$accent",color:"$secondary",cursor:"pointer",boxSizing:"content-box !important",transition:"$all",svg:{height:"60%",width:"60%",padding:"20%",fill:"$secondary",stroke:"$secondary",opacity:"1",filter:"drop-shadow(5px 5px 5px #000D)",boxSizing:"inherit",transition:"$all"},"&:disabled":{backgroundColor:"transparent",boxShadow:"none",svg:{opacity:"0.25"}}}),eE=(0,p.zo)("div",{display:"flex",marginRight:"0.618rem",backgroundColor:"$accentAlt",borderRadius:"2rem",boxShadow:"5px 5px 5px #0003",color:"$secondary",alignItems:"center","> span":{display:"flex",margin:"0 0.5rem",fontSize:"0.7222rem"}}),eR=(0,p.zo)("div",{display:"flex",position:"relative",zIndex:"1",width:"100%",padding:"0",transition:"$all",variants:{isToggle:{true:{paddingTop:"2.618rem",["& ".concat(eT)]:{width:"calc(100% - 2rem)","@sm":{width:"calc(100% - 2rem)"}}}}}});var eL=(e,t)=>{(0,o.useEffect)(()=>{function n(n){n.key===e&&t()}return window.addEventListener("keyup",n),()=>window.removeEventListener("keyup",n)},[])};let eF=e=>{let{title:t}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M244 400L100 256l144-144M120 256h292"})]})},eH=e=>{let{title:t}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M268 112l144 144-144 144M392 256H100"})]})},eP=e=>{let{title:t}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})]})},eD=e=>{let{title:t}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{d:"M456.69 421.39L362.6 327.3a173.81 173.81 0 0034.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 00327.3 362.6l94.09 94.09a25 25 0 0035.3-35.3zM97.92 222.72a124.8 124.8 0 11124.8 124.8 124.95 124.95 0 01-124.8-124.8z"})]})};var eO=e=>{let{handleCanvasToggle:t,handleFilter:n,activeIndex:a,canvasLength:r}=e,[l,s]=(0,o.useState)(!1),[d,c]=(0,o.useState)(!1),[u,h]=(0,o.useState)(!1),{t:m}=(0,ek.$G)();return(0,o.useEffect)(()=>{0===a?h(!0):h(!1),a===r-1?c(!0):c(!1)},[a,r]),eL("Escape",()=>{s(!1),n("")}),(0,i.jsx)(eR,{isToggle:l,children:(0,i.jsxs)(eT,{children:[l&&(0,i.jsx)(eA,{autoFocus:!0,onChange:e=>n(e.target.value),placeholder:m("commonSearchPlaceholder")}),!l&&(0,i.jsxs)(eE,{children:[(0,i.jsx)(eM,{onClick:()=>t(-1),disabled:u,type:"button",children:(0,i.jsx)(eF,{title:m("commonPrevious")})}),(0,i.jsxs)("span",{children:[a+1," of ",r]}),(0,i.jsx)(eM,{onClick:()=>t(1),disabled:d,type:"button",children:(0,i.jsx)(eH,{title:m("commonNext")})})]}),(0,i.jsx)(eM,{onClick:()=>{s(e=>!e),n("")},type:"button",children:l?(0,i.jsx)(eP,{title:m("commonClose")}):(0,i.jsx)(eD,{title:m("commonSearch")})})]})})};let eV=(0,p.zo)(P.fC,{display:"flex",flexDirection:"row",flexGrow:"1",padding:"1.618rem",overflowX:"scroll",position:"relative",zIndex:"0"});var eN=n(8855);let eB=(0,p.zo)("span",{display:"flex"}),eG=(0,p.zo)("span",{display:"flex",width:"1.2111rem",height:"0.7222rem"}),eW=(0,p.zo)("span",{display:"inline-flex",marginLeft:"5px",marginBottom:"-1px"}),e_=(0,p.zo)(P.ck,{display:"flex",flexShrink:"0",margin:"0 1.618rem 0 0",padding:"0",cursor:"pointer",background:"none",border:"none",fontFamily:"inherit",lineHeight:"1.25em",fontSize:"1rem",textAlign:"left","&:last-child":{marginRight:"1rem"},figure:{margin:"0",width:"161.8px","> div":{position:"relative",display:"flex",backgroundColor:"$secondaryAlt",width:"inherit",height:"100px",overflow:"hidden",borderRadius:"3px",transition:"$all",img:{width:"100%",height:"100%",objectFit:"cover",filter:"blur(0)",transform:"scale3d(1, 1, 1)",transition:"$all",color:"transparent"},["& ".concat(eB)]:{position:"absolute",right:"0",bottom:"0",["& ".concat(eN.Vp)]:{margin:"0",paddingLeft:"0",fontSize:"0.7222rem",backgroundColor:"#000d",color:"$secondary",fill:"$secondary",borderBottomLeftRadius:"0",borderTopRightRadius:"0"}}},figcaption:{marginTop:"0.5rem",fontWeight:"400",fontSize:"0.8333rem",display:"-webkit-box",overflow:"hidden",MozBoxOrient:"vertical",WebkitBoxOrient:"vertical",WebkitLineClamp:"5","@sm":{fontSize:"0.8333rem"}}},"&[aria-checked='true']":{figure:{"> div":{backgroundColor:"$primaryAlt","&::before":{position:"absolute",zIndex:"1",color:"$secondaryMuted",content:"Active Item",textTransform:"uppercase",fontWeight:"700",fontSize:"0.6111rem",letterSpacing:"0.03rem",display:"flex",width:"100%",height:"100%",flexDirection:"column",justifyContent:"center",textAlign:"center",textShadow:"5px 5px 5px #0003"},img:{opacity:"0.3",transform:"scale3d(1.1, 1.1, 1.1)",filter:"blur(2px)"},["& ".concat(eB)]:{["& ".concat(eN.Vp)]:{backgroundColor:"$accent"}}}},figcaption:{fontWeight:"700"}}}),eJ=e=>{let{type:t}=e;switch(t){case"Sound":return(0,i.jsx)(eN.JO.Audio,{});case"Image":default:return(0,i.jsx)(eN.JO.Image,{});case"Video":return(0,i.jsx)(eN.JO.Video,{})}};var eq=e=>{let{canvas:t,canvasIndex:n,isActive:o,thumbnail:a,type:r,handleChange:l}=e,s=(null==t?void 0:t.label)?J(t.label):(n+1).toString();return(0,i.jsx)(e_,{"aria-checked":o,"data-testid":"media-thumbnail","data-canvas":n,onClick:()=>l(t.id),value:t.id,children:(0,i.jsxs)("figure",{children:[(0,i.jsxs)("div",{children:[(null==a?void 0:a.id)&&(0,i.jsx)("img",{src:a.id,alt:s}),(0,i.jsx)(eB,{children:(0,i.jsxs)(eN.Vp,{isIcon:!0,"data-testid":"thumbnail-tag",children:[(0,i.jsx)(eG,{}),(0,i.jsx)(eN.JO,{"aria-label":r,children:(0,i.jsx)(eJ,{type:r})}),["Video","Sound"].includes(r)&&(0,i.jsx)(eW,{children:(0,N.rJ)(t.duration)})]})})]}),(0,i.jsx)("figcaption",{"data-testid":"fig-caption",children:t.label?(0,i.jsx)(ep.__,{label:t.label}):(n+1).toString()})]})})};let eZ=e=>e.body?e.body.type:"Image";var eU=e=>{let{items:t}=e,{t:n}=(0,ek.$G)(),r=(0,a.Cu)(),{activeCanvas:l,vault:s}=(0,a.D1)(),[d,c]=(0,o.useState)(""),[u,h]=(0,o.useState)([]),[m,p]=(0,o.useState)(0),g=o.useRef(null),f=e=>{l!==e&&r({type:"updateActiveCanvas",canvasId:e})};return(0,o.useEffect)(()=>{if(!u.length){let e=["Image","Sound","Video"];h(t.map(t=>(0,eI.g)(s,t,"painting",e)).filter(e=>e.annotations.length>0))}},[t,u.length,s]),(0,o.useEffect)(()=>{u.forEach((e,t)=>{(null==e?void 0:e.canvas)&&e.canvas.id===l&&p(t)})},[l,u]),(0,o.useEffect)(()=>{let e=document.querySelector('[data-canvas="'.concat(m,'"]'));if(e instanceof HTMLElement&&g.current){let t=e.offsetLeft-g.current.offsetWidth/2+e.offsetWidth/2;g.current.scrollTo({left:t,behavior:"smooth"})}},[m]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eO,{handleFilter:e=>c(e),handleCanvasToggle:e=>{let t=u[m+e];(null==t?void 0:t.canvas)&&f(t.canvas.id)},activeIndex:m,canvasLength:t.length}),(0,i.jsx)(eV,{"aria-label":n("media.selectItem"),"data-testid":"media","data-active-canvas":t[m].id,"data-canvas-length":t.length,"data-filter":d,ref:g,children:u.filter((e,t)=>{var n;if(!d)return!0;if(null===(n=e.canvas)||void 0===n||!n.label)return(t+1).toString().includes(d);{let t=J(e.canvas.label);if(Array.isArray(t))return t[0].toLowerCase().includes(d.toLowerCase())}}).map(e=>{var t,n;return(0,i.jsx)(eq,{canvas:e.canvas,canvasIndex:u.findIndex(t=>t===e),handleChange:f,isActive:l===(null==e?void 0:null===(t=e.canvas)||void 0===t?void 0:t.id),thumbnail:e$(s,e,200,200),type:eZ(e.annotations[0])},null==e?void 0:null===(n=e.canvas)||void 0===n?void 0:n.id)})})]})};let eY=(0,p.zo)("button",{position:"absolute",background:"none",border:"none",cursor:"zoom-in",margin:"0",padding:"0",width:"100%",height:"100%",transition:"$all","& img":{width:"100%",height:"100%",objectFit:"contain",color:"transparent",transition:"$all"},variants:{isMedia:{true:{cursor:"pointer"}}}});var eQ=n(3413);let eX=(0,p.zo)(eQ.c,{position:"absolute",width:"2rem",top:"1rem",right:"1rem",zIndex:100,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",transition:"$all",borderRadius:"50%",backgroundColor:"$accent",cursor:"pointer","&:hover, &:focus":{backgroundColor:"$accent !important"},variants:{isInteractive:{true:{"&:hover":{opacity:"1"}},false:{}},isMedia:{true:{cursor:"pointer !important"}}},compoundVariants:[{isInteractive:!1,isMedia:!0,css:{top:"50%",right:"50%",width:"4rem",height:"4rem",transform:"translate(50%,-50%)"}}]}),eK=(0,p.zo)("div",{position:"relative",display:"flex",flexDirection:"column",flexGrow:"1",flexShrink:"1",gap:"1rem",zIndex:"0",overflow:"hidden","&:hover":{["".concat(eX)]:{backgroundColor:"$accent"},["".concat(eY)]:{backgroundColor:"#6662"}}}),e0=(0,p.zo)("div",{width:"100%",height:"100%"});var e1=n(8807);let e2=(0,p.zo)("svg",{height:"19px",color:"$accent",fill:"$accent",stroke:"$accent",display:"flex",margin:"0.25rem 0.85rem"}),e4=(0,p.zo)(e1.xz,{fontSize:"1.25rem",fontWeight:"400",fontFamily:"inherit",alignSelf:"flex-start",flexGrow:"1",cursor:"pointer",transition:"$all",border:"1px solid #6663",boxShadow:"2px 2px 5px #0001",borderRadius:"3px",display:"flex",alignItems:"center",paddingLeft:"0.5rem",width:"100%","@sm":{fontSize:"1rem"}}),e3=(0,p.zo)(e1.VY,{borderRadius:"3px",boxShadow:"3px 3px 8px #0003",backgroundColor:"$secondary",marginTop:"2.25rem",marginLeft:"6px",paddingBottom:"0.25rem",maxHeight:"calc(61.8vh - 2.5rem) !important",borderTopLeftRadius:"0",border:"1px solid $secondaryMuted",maxWidth:"90vw"}),e5=(0,p.zo)(e1.ck,{display:"flex",alignItems:"center",fontFamily:"inherit",padding:"0.25rem 0.5rem",color:"$primary",fontWeight:"400",fontSize:"0.8333rem",cursor:"pointer",backgroundColor:"$secondary",width:"calc(100% - 1rem)","> span":{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},'&[data-state="checked"]':{fontWeight:"700",color:"$primary !important"},"&:hover":{color:"$accent"},img:{width:"31px",height:"31px",marginRight:"0.5rem",borderRadius:"3px"}}),e6=(0,p.zo)(e1.__,{color:"$primaryMuted",fontFamily:"inherit",fontSize:"0.85rem",padding:"0.5rem 1rem 0.5rem 0.5rem",display:"flex",alignItems:"center",marginBottom:"0.25rem",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",borderBottomRightRadius:"0",backgroundColor:"$secondaryMuted"}),e8=(0,p.zo)(e1.fC,{position:"relative",zIndex:"5",width:"100%"});var e7=e=>{let{direction:t,title:n}=e;return(0,i.jsxs)(e2,{xmlns:"http://www.w3.org/2000/svg",focusable:"false",viewBox:"0 0 512 512",role:"img",children:[(0,i.jsx)("title",{children:n}),"up"===t&&(0,i.jsx)(()=>(0,i.jsx)("path",{d:"M414 321.94L274.22 158.82a24 24 0 00-36.44 0L98 321.94c-13.34 15.57-2.28 39.62 18.22 39.62h279.6c20.5 0 31.56-24.05 18.18-39.62z"}),{}),"down"===t&&(0,i.jsx)(()=>(0,i.jsx)("path",{d:"M98 190.06l139.78 163.12a24 24 0 0036.44 0L414 190.06c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z"}),{})]})},e9=e=>{let{children:t,label:n,maxHeight:o,onValueChange:a,value:r}=e;return(0,i.jsxs)(e8,{onValueChange:a,value:r,children:[(0,i.jsxs)(e4,{"data-testid":"select-button",children:[(0,i.jsx)(e1.ki,{"data-testid":"select-button-value"}),(0,i.jsx)(e1.GV,{children:(0,i.jsx)(e7,{direction:"down",title:"select"})})]}),(0,i.jsx)(e1.ue,{children:(0,i.jsxs)(e3,{css:{maxHeight:"".concat(o," !important")},"data-testid":"select-content",children:[(0,i.jsx)(e1.Pn,{children:(0,i.jsx)(e7,{direction:"up",title:"scroll up for more"})}),(0,i.jsx)(e1.Q_,{children:(0,i.jsxs)(e1.DI,{children:[n&&(0,i.jsx)(e6,{children:(0,i.jsx)(ep.__,{"data-testid":"select-label",label:n})}),t]})}),(0,i.jsx)(e1.Jk,{children:(0,i.jsx)(e7,{direction:"down",title:"scroll down for more"})})]})})]})},te=e=>(0,i.jsxs)(e5,{...e,children:[e.thumbnail&&(0,i.jsx)(ep.pl,{thumbnail:e.thumbnail}),(0,i.jsx)(e1.S_,{children:(0,i.jsx)(ep.__,{label:e.label})}),(0,i.jsx)(e1.o6,{})]}),tt=n(1338),tn=e=>{let{isMedia:t,label:n,placeholderCanvas:o,setIsInteractive:r}=e,{vault:l}=(0,a.D1)(),s=(0,d.G)(l,o),c=s?s[0]:void 0,u=n?J(n):["placeholder image"];return(0,i.jsx)(eY,{onClick:()=>r(!0),isMedia:t,className:"clover-viewer-placeholder",children:(0,i.jsx)("img",{src:(null==c?void 0:c.id)||"",alt:u.join(),height:null==c?void 0:c.height,width:null==c?void 0:c.width})})},ti=n(3677);let to=(0,p.zo)("canvas",{position:"absolute",width:"100%",height:"100%",zIndex:"0"}),ta=o.forwardRef((e,t)=>{let n=o.useRef(null),a=(0,o.useCallback)(()=>{var e,i;if((null===(e=t.current)||void 0===e?void 0:e.currentTime)&&(null===(i=t.current)||void 0===i?void 0:i.currentTime)>0)return;let o=t.current;if(!o)return;let a=new AudioContext,r=a.createMediaElementSource(o),l=a.createAnalyser(),s=n.current;if(!s)return;s.width=o.offsetWidth,s.height=o.offsetHeight;let d=s.getContext("2d");r.connect(l),l.connect(a.destination),l.fftSize=256;let c=l.frequencyBinCount,u=new Uint8Array(c);setInterval(function(){!function(e,t,n,i,o,a){let r;let l=o/n*2.6,s=0;e.getByteFrequencyData(i),t.fillStyle="#000000",t.fillRect(0,0,o,a);for(let e=0;e{t&&t.current&&(t.current.onplay=a)},[a,t]),(0,i.jsx)(to,{ref:n,role:"presentation"})}),tr=(0,p.zo)("div",{position:"relative",backgroundColor:"$primaryAlt",display:"flex",flexGrow:"0",flexShrink:"1",height:"100%",zIndex:"1",video:{backgroundColor:"transparent",objectFit:"contain",width:"100%",height:"100%",position:"relative",zIndex:"1"}});var tl=e=>{let{resource:t,ignoreCaptionLabels:n}=e,o=J(t.label,"en");return Array.isArray(o)&&o.some(e=>n.includes(e))?null:(0,i.jsx)("track",{src:t.id,label:Array.isArray(o)?o[0]:o,srcLang:"en","data-testid":"player-track"},t.id)};let ts=["application/vnd.apple.mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];var td=e=>{let{allSources:t,annotationResources:n,painting:r}=e,[l,s]=o.useState(0),[c,u]=o.useState(),h=o.useRef(null),m=(null==r?void 0:r.type)==="Sound",{activeCanvas:p,configOptions:g,vault:f}=(0,a.D1)();return(0,o.useEffect)(()=>{if(!r.id||!h.current)return;if(null==h?void 0:h.current){let e=h.current;e.src=r.id,e.load()}if("m3u8"!==r.id.split(".").pop()&&r.format&&!ts.includes(r.format))return;let e=new ti.ZP({xhrSetup:function(e,t){e.withCredentials=!!g.withCredentials}});return e.attachMedia(h.current),e.on(ti.ZP.Events.MEDIA_ATTACHED,function(){e.loadSource(r.id)}),e.on(ti.ZP.Events.ERROR,function(t,n){if(n.fatal)switch(n.type){case ti.ZP.ErrorTypes.NETWORK_ERROR:console.error("fatal ".concat(t," network error encountered, try to recover")),e.startLoad();break;case ti.ZP.ErrorTypes.MEDIA_ERROR:console.error("fatal ".concat(t," media error encountered, try to recover")),e.recoverMediaError();break;default:e.destroy()}}),()=>{if(e&&h.current){let t=h.current;e.detachMedia(),e.destroy(),t.currentTime=0}}},[g.withCredentials,r.id]),(0,o.useEffect)(()=>{var e,t,n,i;let o=f.get(p),a=(null===(e=o.accompanyingCanvas)||void 0===e?void 0:e.id)?(0,d.G)(f,null===(t=o.accompanyingCanvas)||void 0===t?void 0:t.id):null,r=(null===(n=o.placeholderCanvas)||void 0===n?void 0:n.id)?(0,d.G)(f,null===(i=o.placeholderCanvas)||void 0===i?void 0:i.id):null;a&&r?0===l?u(r[0].id):u(a[0].id):(a&&u(a[0].id),r&&u(r[0].id))},[p,l,f]),(0,o.useEffect)(()=>{if(null==h?void 0:h.current){let e=h.current;return null==e||e.addEventListener("timeupdate",()=>s(e.currentTime)),()=>document.removeEventListener("timeupdate",()=>{})}},[]),(0,i.jsxs)(tr,{css:{backgroundColor:g.canvasBackgroundColor,maxHeight:g.canvasHeight,position:"relative"},"data-testid":"player-wrapper",className:"clover-viewer-player-wrapper",children:[(0,i.jsxs)("video",{id:"clover-iiif-video",ref:h,controls:!0,height:r.height,width:r.width,crossOrigin:"anonymous",poster:c,style:{maxHeight:g.canvasHeight,position:"relative",zIndex:"1"},children:[t.map(e=>(0,i.jsx)("source",{src:e.id,type:e.format},e.id)),(null==n?void 0:n.length)>0&&n.map(e=>{let t=[];return e.items.forEach(e=>{f.get(e.id).body.forEach(e=>{let n=f.get(e.id);t.push(n)})}),t.map(e=>(0,i.jsx)(tl,{resource:e,ignoreCaptionLabels:g.ignoreCaptionLabels||[]},e.id))}),"Sorry, your browser doesn't support embedded videos."]},r.id),m&&(0,i.jsx)(ta,{ref:h})]})};let tc=()=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-svg-title",focusable:"false",viewBox:"0 0 512 512",role:"img",children:[(0,i.jsx)("title",{id:"close-svg-title",children:"close"}),(0,i.jsx)("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})]}),tu=e=>{let{isMedia:t}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"open-svg-title",focusable:"false",viewBox:"0 0 512 512",role:"img",children:[(0,i.jsx)("title",{id:"open-svg-title",children:"open"}),t?(0,i.jsx)("path",{d:"M133 440a35.37 35.37 0 01-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0135.77.45l247.85 148.36a36 36 0 010 61l-247.89 148.4A35.5 35.5 0 01133 440z"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"m456.69,421.39l-94.09-94.09c22.65-30.16,34.88-66.86,34.84-104.58,0-96.34-78.38-174.72-174.72-174.72S48,126.38,48,222.72s78.38,174.72,174.72,174.72c37.72.04,74.42-12.19,104.58-34.84l94.09,94.09c10.29,9.2,26.1,8.32,35.3-1.98,8.48-9.49,8.48-23.83,0-33.32Zm-233.97-73.87c-68.89-.08-124.72-55.91-124.8-124.8h0c0-68.93,55.87-124.8,124.8-124.8s124.8,55.87,124.8,124.8-55.87,124.8-124.8,124.8Z"}),(0,i.jsx)("path",{d:"m279.5,197.76h-3.35s-28.47,0-28.47,0v-31.82c-.77-13.79-12.57-24.33-26.36-23.56-12.71.71-22.85,10.86-23.56,23.56v3.35h0v28.47h-31.82c-13.79.77-24.33,12.57-23.56,26.36.71,12.71,10.86,22.85,23.56,23.56h3.35s28.47,0,28.47,0v31.82c.77,13.79,12.57,24.33,26.36,23.56,12.71-.71,22.85-10.86,23.56-23.56v-3.35h0v-28.47h31.82c13.79-.77,24.33-12.57,23.56-26.36-.71-12.71-10.86-22.85-23.56-23.56Z"})]})]})};var th=e=>{let{handleToggle:t,isInteractive:n,isMedia:o}=e;return(0,i.jsx)(eX,{onClick:t,isInteractive:n,isMedia:o,"data-testid":"placeholder-toggle",children:n?(0,i.jsx)(tc,{}):(0,i.jsx)(tu,{isMedia:o})})},tm=e=>{var t,n,r,l,d;let{activeCanvas:c,annotationResources:u,isMedia:h,painting:m}=e,[p,g]=o.useState(0),[f,x]=o.useState(!1),{configOptions:v,customDisplays:b,openSeadragonViewer:j,vault:y,viewerId:w}=(0,a.D1)(),C=(0,a.Cu)(),S=y.get(c),k=null==S?void 0:null===(t=S.placeholderCanvas)||void 0===t?void 0:t.id,z=!!k,I=(null==m?void 0:m.length)>1,$=k&&!f&&!h,T="".concat(w,"-").concat((0,N.un)(c+p)),A=b.find(e=>{let t=!1,{canvasId:n,paintingFormat:i}=e.target;if(Array.isArray(n)&&n.length>0&&(t=n.includes(c)),Array.isArray(i)&&i.length>0){var o;let e=(null===(o=m[p])||void 0===o?void 0:o.format)||"";t=!!(e&&i.includes(e))}return t}),M=[];null===(r=u[0])||void 0===r||null===(n=r.items)||void 0===n||n.forEach(e=>{let t=y.get(e.id);M.push(t)}),(0,o.useEffect)(()=>{var e;M&&j&&(null===(e=v.annotationOverlays)||void 0===e?void 0:e.renderOverlays)&&((0,s.dH)(j,"annotation-overlay"),(0,s.zG)(j,S,v.annotationOverlays,M,"annotation-overlay"))},[S,M,j,v]);let E=null==A?void 0:null===(l=A.display)||void 0===l?void 0:l.component;return(0,i.jsxs)(eK,{className:"clover-viewer-painting",children:[(0,i.jsxs)(e0,{style:{backgroundColor:v.canvasBackgroundColor,height:"auto"===v.canvasHeight?"100%":v.canvasHeight},children:[k&&!h&&(0,i.jsx)(th,{handleToggle:()=>x(!f),isInteractive:f,isMedia:h}),$&&!h&&(0,i.jsx)(tn,{isMedia:h,label:null==S?void 0:S.label,placeholderCanvas:k,setIsInteractive:x}),!$&&!A&&(h?(0,i.jsx)(td,{allSources:m,painting:m[p],annotationResources:u}):m&&(0,i.jsx)(tt.default,{_cloverViewerHasPlaceholder:z,body:m[p],instanceId:T,openSeadragonCallback:e=>{e&&(null==j?void 0:j.id)!=="openseadragon-".concat(T)&&C({type:"updateOpenSeadragonViewer",openSeadragonViewer:e})},openSeadragonConfig:v.openSeadragon},T)),!$&&E&&(0,i.jsx)(E,{id:c,annotationBody:m[p],...null==A?void 0:A.display.componentProps})]}),I&&(0,i.jsx)(e9,{value:null===(d=m[p])||void 0===d?void 0:d.id,onValueChange:e=>{g(m.findIndex(t=>t.id===e))},maxHeight:"200px",children:null==m?void 0:m.map(e=>(0,i.jsx)(te,{value:null==e?void 0:e.id,label:null==e?void 0:e.label},null==e?void 0:e.id))})]})},tp=e=>{let{activeCanvas:t,annotationResources:n,searchServiceUrl:o,setContentSearchResource:r,contentSearchResource:l,isAudioVideo:s,items:d,painting:c}=e,{t:u}=(0,ek.$G)(),{isInformationOpen:h,configOptions:m}=(0,a.D1)(),{informationPanel:p}=m,y=(null==p?void 0:p.renderAbout)&&h,w=(null==p?void 0:p.renderAnnotation)&&n.length>0&&!p.open;return(0,i.jsxs)(f,{className:"clover-viewer-content","data-testid":"clover-viewer-content",children:[(0,i.jsxs)(x,{children:[(0,i.jsx)(tm,{activeCanvas:t,annotationResources:n,isMedia:s,painting:c}),y&&(0,i.jsx)(v,{children:(0,i.jsx)("span",{children:u("informationPanelToggle")})}),d.length>1&&(0,i.jsx)(g,{className:"clover-viewer-media-wrapper",children:(0,i.jsx)(eU,{items:d,activeItem:0})})]}),(y||w)&&(0,i.jsx)(j,{children:(0,i.jsx)(b,{children:(0,i.jsx)(ez,{activeCanvas:t,annotationResources:n,searchServiceUrl:o,setContentSearchResource:r,contentSearchResource:l})})})]})};let tg=(0,p.zo)(eN.J2.Trigger,{width:"30px",padding:"5px"}),tf=(0,p.zo)(eN.J2.Content,{display:"flex",flexDirection:"column",fontSize:"0.8333rem",border:"none",boxShadow:"2px 2px 5px #0003",zIndex:"2",button:{display:"flex",textDecoration:"none",marginBottom:"0.5em",color:"$accentAlt",cursor:"pointer",background:"$secondary",border:"none","&:last-child":{marginBottom:"0"}}}),tx=(0,p.zo)("span",{fontSize:"1.33rem",alignSelf:"flex-start",flexGrow:"0",flexShrink:"1",padding:"1rem","@sm":{fontSize:"1rem"},"&.visually-hidden":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}}),tv=(0,p.zo)("header",{display:"flex",backgroundColor:"transparent !important",justifyContent:"space-between",alignItems:"flex-start",width:"100%",["> ".concat(e8)]:{flexGrow:"1",flexShrink:"0"},form:{flexGrow:"0",flexShrink:"1"}}),tb=(0,p.zo)("div",{display:"flex",alignItems:"flex-end",justifyContent:"flex-end",padding:"1rem",flexShrink:"0",flexGrow:"1"});var tj=()=>{var e;let t=(0,a.Cu)(),{activeManifest:n,collection:o,configOptions:r,vault:l}=(0,a.D1)(),s=null==r?void 0:r.canvasHeight;return(0,i.jsx)("div",{style:{margin:"0.75rem"},children:(0,i.jsx)(e9,{label:o.label,maxHeight:s,value:n,onValueChange:e=>{t({type:"updateActiveManifest",manifestId:e}),t({type:"updateViewerId",viewerId:(0,F.Z)()})},children:null==o?void 0:null===(e=o.items)||void 0===e?void 0:e.map(e=>(0,i.jsx)(te,{value:e.id,thumbnail:(null==e?void 0:e.thumbnail)?l.get(null==e?void 0:e.thumbnail):void 0,label:e.label},e.id))})})};let ty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2500,{t:n}=(0,ek.$G)(),[i,a]=(0,o.useState)(""),r=(0,o.useCallback)(()=>{navigator.clipboard.writeText(e).then(()=>a(n("copySuccess")),()=>a(n("copyFailure")))},[e]);return(0,o.useEffect)(()=>{if(!i)return;let e=setTimeout(()=>a(""),t);return()=>clearTimeout(e)},[i]),[i,r]},tw=(0,p.zo)("span",{display:"flex",alignContent:"center",alignItems:"center",padding:"0.125rem 0.25rem 0",marginTop:"-0.125rem",marginLeft:"0.5rem",backgroundColor:"$accent",color:"$secondary",borderRadius:"3px",lineHeight:"1em"}),tC=e=>{let{status:t}=e;return t?(0,i.jsx)(tw,{"data-copy-status":t,children:t}):null};var tS=e=>{let{textPrompt:t,textToCopy:n}=e,[o,a]=ty(n);return(0,i.jsxs)("button",{onClick:a,children:[t," ",(0,i.jsx)(tC,{status:o})]})},tk=e=>{let{title:t}=e,n="#ed1d33",o="#2873ab";return(0,i.jsxs)("svg",{viewBox:"0 0 493.35999 441.33334",id:"iiif-logo",version:"1.1",children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("g",{transform:"matrix(1.3333333,0,0,-1.3333333,0,441.33333)",children:(0,i.jsxs)("g",{transform:"scale(0.1)",children:[(0,i.jsx)("path",{style:{fill:o},d:"M 65.2422,2178.75 775.242,1915 773.992,15 65.2422,276.25 v 1902.5"}),(0,i.jsx)("path",{style:{fill:o},d:"m 804.145,2640.09 c 81.441,-240.91 -26.473,-436.2 -241.04,-436.2 -214.558,0 -454.511,195.29 -535.9527,436.2 -81.4335,240.89 26.4805,436.18 241.0387,436.18 214.567,0 454.512,-195.29 535.954,-436.18"}),(0,i.jsx)("path",{style:{fill:n},d:"M 1678.58,2178.75 968.578,1915 969.828,15 1678.58,276.25 v 1902.5"}),(0,i.jsx)("path",{style:{fill:n},d:"m 935.082,2640.09 c -81.437,-240.91 26.477,-436.2 241.038,-436.2 214.56,0 454.51,195.29 535.96,436.2 81.43,240.89 -26.48,436.18 -241.04,436.18 -214.57,0 -454.52,-195.29 -535.958,-436.18"}),(0,i.jsx)("path",{style:{fill:o},d:"m 1860.24,2178.75 710,-263.75 -1.25,-1900 -708.75,261.25 v 1902.5"}),(0,i.jsx)("path",{style:{fill:o},d:"m 2603.74,2640.09 c 81.45,-240.91 -26.47,-436.2 -241.03,-436.2 -214.58,0 -454.52,195.29 -535.96,436.2 -81.44,240.89 26.48,436.18 241.03,436.18 214.57,0 454.51,-195.29 535.96,-436.18"}),(0,i.jsx)("path",{style:{fill:n},d:"m 3700.24,3310 v -652.5 c 0,0 -230,90 -257.5,-142.5 -2.5,-247.5 0,-336.25 0,-336.25 l 257.5,83.75 V 1690 l -258.61,-92.5 V 262.5 L 2735.24,0 v 2360 c 0,0 -15,850 965,950"})]})})]})},tz=n(4662);let tI=(0,p.zo)(tz.fC,{all:"unset",height:"2rem",width:"3.236rem",backgroundColor:"#6663",borderRadius:"9999px",position:"relative",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:focus":{boxShadow:"0 0 0 2px $secondaryAlt"},'&[data-state="checked"]':{backgroundColor:"$accent",boxShadow:"inset 2px 2px 5px #0003"}}),t$=(0,p.zo)(tz.bU,{display:"block",height:"calc(2rem - 12px)",width:"calc(2rem - 12px)",backgroundColor:"$secondary",borderRadius:"100%",boxShadow:"2px 2px 5px #0001",transition:"$all",transform:"translateX(6px)",willChange:"transform",'&[data-state="checked"]':{transform:"translateX(calc(1.236rem + 6px))"}}),tT=(0,p.zo)("label",{fontSize:"0.8333rem",fontWeight:"400",lineHeight:"1em",userSelect:"none",cursor:"pointer",paddingRight:"0.618rem"}),tA=(0,p.zo)("form",{display:"flex",flexShrink:"0",flexGrow:"1",alignItems:"center",marginLeft:"1.618rem"});var tM=()=>{var e;let{configOptions:t}=(0,a.D1)(),n=(0,a.Cu)(),{t:r}=(0,ek.$G)(),[l,s]=(0,o.useState)(null==t?void 0:null===(e=t.informationPanel)||void 0===e?void 0:e.open);return(0,o.useEffect)(()=>{n({type:"updateInformationOpen",isInformationOpen:l})},[l,n]),(0,i.jsxs)(tA,{children:[(0,i.jsx)(tT,{htmlFor:"information-toggle",css:l?{opacity:"1"}:{},children:r("informationPanelToggle")}),(0,i.jsx)(tI,{checked:l,onCheckedChange:()=>s(!l),id:"information-toggle","aria-label":r("informationPanelToggle"),name:"toggled?",children:(0,i.jsx)(t$,{})})]})};let tE=(0,p.zo)(eN.J2.Trigger,{width:"30px",padding:"5px",marginBottom:"auto"}),tR=(0,p.zo)(tf,{h3:{color:"$primaryAlt",fontSize:"$2",fontWeight:"700",margin:"$2 0"},button:{},"& ul li":{marginBottom:"$1"}});var tL=n(8622),tF=n(9219);function tH(e,t){let n=[];if(!e)return n;for(let i of e)if(i.id){let e=t.get(i.id);e&&n.push(e)}return n}function tP(e,t){return e.map(e=>{let{format:n,id:i,label:o}=e;return{format:n,id:function(e){let{vault:t}=(0,a.D1)();try{let n=e&&t.get(e);if(!n)throw Error("Vault entity ".concat(e," not found."));return(null==n?void 0:n["@id"])||(null==n?void 0:n.id)}catch(t){return console.error(t),e}}(i),label:(0,tF.M)(o)||t}})}var tD=()=>{let{allPages:e,individualPages:t}=function(){let e=function(){let{activeCanvas:e,activeManifest:t,vault:n}=(0,a.D1)(),[i,r]=(0,o.useState)({root:[],canvas:[]});return(0,o.useEffect)(()=>{let i=n.get(t),o=n.get(e),a=null==i?void 0:i.rendering,l=null==o?void 0:o.rendering;r({root:tH(a,n),canvas:tH(l,n)})},[e,t,n]),{...i}}();return{allPages:tP((null==e?void 0:e.root)||[],"Root Rendering Label"),individualPages:tP((null==e?void 0:e.canvas)||[],"Canvas Rendering Label")}}(),n=e.length>0||t.length>0,r=e=>{window.open(e,"_blank")};return n?(0,i.jsxs)(eN.J2,{children:[(0,i.jsx)(tE,{"data-testid":"download-button",children:(0,i.jsx)(tL.J,{children:(0,i.jsx)(tL.J.Download,{})})}),(0,i.jsxs)(tR,{"data-testid":"download-content",children:[t.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h3",{children:"Individual Pages"}),(0,i.jsx)("ul",{children:t.map(e=>{let{format:t,id:n,label:o}=e;return(0,i.jsx)("li",{children:(0,i.jsxs)("button",{onClick:()=>r(n),children:[o," (",t,")"]})},o)})})]}),e.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h3",{children:"All Pages"}),(0,i.jsx)("ul",{children:e.map(e=>{let{format:t,id:n,label:o}=e;return(0,i.jsx)("li",{children:(0,i.jsxs)("button",{onClick:()=>r(n),children:[o," (",t,")"]})},o)})})]})]})]}):null};let tO=e=>{let t=()=>!!window.matchMedia&&window.matchMedia(e).matches,[n,i]=(0,o.useState)(t);return(0,o.useEffect)(()=>{let e=()=>i(t);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),n};var tV=e=>{let{manifestId:t,manifestLabel:n}=e,{collection:o,configOptions:r}=(0,a.D1)(),{informationPanel:l,showDownload:s,showIIIFBadge:d,showTitle:c}=r,u=s||d||(null==l?void 0:l.renderToggle),h=tO(p.BC.sm),{t:m}=(0,ek.$G)();return(0,i.jsxs)(tv,{className:"clover-viewer-header",children:[(null==o?void 0:o.items)?(0,i.jsx)(tj,{}):(0,i.jsx)(tx,{className:c?"":"visually-hidden",children:c&&(0,i.jsx)(ep.__,{label:n,className:"label"})}),u&&(0,i.jsxs)(tb,{children:[s&&(0,i.jsx)(tD,{}),d&&(0,i.jsxs)(eN.J2,{children:[(0,i.jsx)(tg,{children:(0,i.jsx)(tk,{title:m("commonShare")})}),(0,i.jsxs)(tf,{children:[(null==o?void 0:o.items)&&(0,i.jsx)("button",{onClick:e=>{e.preventDefault(),window.open(o.id,"_blank")},children:m("shareCollectionJson")}),(0,i.jsx)("button",{onClick:e=>{e.preventDefault(),window.open(t,"_blank")},children:m("shareManifestJson")})," ",(null==o?void 0:o.items)&&(0,i.jsx)(tS,{textPrompt:m("shareCollectionCopy"),textToCopy:o.id}),(0,i.jsx)(tS,{textPrompt:m("shareManifestCopy"),textToCopy:t})]})]}),(null==l?void 0:l.renderToggle)&&!h&&(0,i.jsx)(tM,{})]})]})};let tN=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[t,n]=(0,o.useState)(e);return(0,o.useLayoutEffect)(()=>{if(!t)return;let e=document.documentElement.style.overflow;return document.documentElement.style.overflow="hidden",()=>{document.documentElement.style.overflow=e}},[t]),(0,o.useEffect)(()=>{t!==e&&n(e)},[e]),[t,n]};var tB=e=>{var t;let{manifest:n,theme:r,iiifContentSearchQuery:g}=e,f=(0,a.D1)(),x=(0,a.Cu)(),{activeCanvas:v,isInformationOpen:b,vault:j,contentSearchVault:w,configOptions:C,openSeadragonViewer:S}=f,k=(null==C?void 0:C.canvasHeight)&&["100%","auto"].includes(null==C?void 0:C.canvasHeight),[z,I]=(0,o.useState)(!1),[$,T]=(0,o.useState)(!1),[A,M]=(0,o.useState)([]),[E,R]=(0,o.useState)([]),[L,F]=(0,o.useState)(),[H,P]=tN(!1),D=tO(p.BC.sm),[O,V]=(0,o.useState)(),N=(0,o.useCallback)(e=>{x({type:"updateInformationOpen",isInformationOpen:e})},[x]);(0,o.useEffect)(()=>{var e;(null==C?void 0:null===(e=C.informationPanel)||void 0===e?void 0:e.open)&&N(!D)},[D,null==C?void 0:null===(t=C.informationPanel)||void 0===t?void 0:t.open,N]),(0,o.useEffect)(()=>{if(!D){P(!1);return}P(b)},[b,D,P]),(0,o.useEffect)(()=>{let e=(0,d.G)(j,v);e&&(T(["Sound","Video"].indexOf(e[0].type)>-1),M(e)),c(j,v).then(e=>{e.length>0&&x({type:"updateInformationOpen",isInformationOpen:!0}),R(e),I(0!==e.length)})},[v,E.length,j,x]);let B=n.service.some(e=>"SearchService2"===e.type);return(0,o.useEffect)(()=>{if(B){let e=n.service.find(e=>"SearchService2"===e.type);e&&V(e.id)}},[n,B]),(0,o.useEffect)(()=>{var e,t,n;O&&(null===(e=C.informationPanel)||void 0===e?void 0:e.renderContentSearch)!==!1&&u(w,O,null===(n=C.localeText)||void 0===n?void 0:null===(t=n.contentSearch)||void 0===t?void 0:t.tabLabel,g).then(e=>{F(e)})},[O]),(0,o.useEffect)(()=>{if(!S||!L)return;let e=j.get({id:v,type:"Canvas"});(0,s.dH)(S,"content-search-overlay"),(0,s.LW)(w,L,S,e,C)},[S,L]),(0,i.jsx)(h.SV,{FallbackComponent:m.Z,children:(0,i.jsx)(y,{className:"".concat(r," clover-viewer"),css:{background:null==C?void 0:C.background},"data-body-locked":H,"data-absolute-position":k,"data-information-panel":z,"data-information-panel-open":b,children:(0,i.jsxs)(l.fC,{open:b,onOpenChange:N,children:[(0,i.jsx)(tV,{manifestLabel:n.label,manifestId:n.id}),(0,i.jsx)(tp,{activeCanvas:v,painting:A,annotationResources:E,searchServiceUrl:O,setContentSearchResource:F,contentSearchResource:L,items:n.items,isAudioVideo:$})]})})})},tG=n(1028);let tW={ignoreCache:!1,headers:{Accept:"application/json, text/javascript, text/plain"},timeout:5e3,withCredentials:!1};function t_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{ok:!1,status:e.status,statusText:e.statusText,headers:e.getAllResponseHeaders(),data:t||e.statusText,json:()=>JSON.parse(t||e.statusText)}}var tJ=n(6864);let tq=e=>{let{canvasIdCallback:t,customTheme:n,iiifContent:r,options:l,iiifContentSearchQuery:s}=e,d=(0,a.Cu)(),{activeCanvas:c,activeManifest:u,isLoaded:h,vault:m}=(0,a.D1)(),[p,g]=(0,o.useState)(),[f,x]=(0,o.useState)(),v={};return(n&&(v=(0,tG.jG)("custom",n)),(0,o.useEffect)(()=>{t&&t(c)},[c,t]),(0,o.useEffect)(()=>{u&&m.load(u).then(e=>{x(e),d({type:"updateActiveCanvas",canvasId:(0,tJ.FO)(r,e)})}).catch(e=>{console.error("Manifest failed to load: ".concat(e))}).finally(()=>{d({type:"updateIsLoaded",isLoaded:!0})})},[r,u,d,m]),(0,o.useEffect)(()=>{d({type:"updateConfigOptions",configOptions:l});let e=(0,tJ.Vu)(r);m.load(e).then(e=>{g(e)}).catch(e=>{console.error("The IIIF resource ".concat(r," failed to load: ").concat(e))})},[d,r,l,m]),(0,o.useEffect)(()=>{if((null==p?void 0:p.type)==="Collection"){d({type:"updateCollection",collection:p});let e=(0,tJ.Mx)(r,p);e&&d({type:"updateActiveManifest",manifestId:e})}else(null==p?void 0:p.type)==="Manifest"&&d({type:"updateActiveManifest",manifestId:p.id})},[d,r,p]),h)?f&&f.items?0===f.items.length?(console.log("The IIIF manifest ".concat(r," does not contain canvases.")),(0,i.jsx)(i.Fragment,{})):(0,i.jsx)(tB,{manifest:f,theme:v,iiifContentSearchQuery:s},f.id):(console.log("The IIIF manifest ".concat(r," failed to load.")),(0,i.jsx)(i.Fragment,{})):(0,i.jsx)(i.Fragment,{children:"Loading"})};var tZ=e=>{var t,n,o;let{canvasIdCallback:l=()=>{},customDisplays:s=[],plugins:d=[],customTheme:c,iiifContent:u,id:h,manifestId:m,options:p,iiifContentSearchQuery:g}=e,f=u;h&&(f=h),m&&(f=m);let x=(0,a.as)(null==p?void 0:null===(n=p.informationPanel)||void 0===n?void 0:null===(t=n.vtt)||void 0===t?void 0:t.autoScroll);return(0,i.jsx)(a.MY,{initialState:{...a.W2,customDisplays:s,plugins:d,isAutoScrollEnabled:x.enabled,isInformationOpen:!!(null==p?void 0:null===(o=p.informationPanel)||void 0===o?void 0:o.open),vault:new r.j({customFetcher:e=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tW,n=t.headers||tW.headers;return new Promise((i,o)=>{let a=new XMLHttpRequest;a.open("get",e),a.withCredentials=t.withCredentials,n&&Object.keys(n).forEach(e=>a.setRequestHeader(e,n[e])),a.onload=()=>{i({ok:a.status>=200&&a.status<300,status:a.status,statusText:a.statusText,headers:a.getAllResponseHeaders(),data:a.responseText,json:()=>JSON.parse(a.responseText)})},a.onerror=()=>{o(t_(a,"Failed to make request."))},a.ontimeout=()=>{o(t_(a,"Request took longer than expected."))},a.send()})})(e,{withCredentials:null==p?void 0:p.withCredentials,headers:null==p?void 0:p.requestHeaders}).then(e=>JSON.parse(e.data))})},children:(0,i.jsx)(tq,{iiifContent:f,canvasIdCallback:l,customTheme:c,options:p,iiifContentSearchQuery:g})})}},9854:function(e,t,n){n.d(t,{g:function(){return i}});let i=(e,t,n,i)=>{let o={canvas:void 0,accompanyingCanvas:void 0,annotationPage:void 0,annotations:[]};if(o.canvas=e.get(t),o.canvas){var a,r;o.annotationPage=e.get(o.canvas.items[0]),o.accompanyingCanvas=(null===(a=o.canvas)||void 0===a?void 0:a.accompanyingCanvas)?e.get(null===(r=o.canvas)||void 0===r?void 0:r.accompanyingCanvas):void 0}if(o.annotationPage){let a=e.get(o.annotationPage.items).map(t=>({body:e.get(t.body[0].id),motivation:t.motivation,type:"Annotation"})),r=[];a.forEach(t=>{"Choice"===t.body.type?t.body.items.forEach(n=>r.push({...t,id:n.id,body:e.get(n.id)})):r.push(t)}),o.annotations=r.filter(o=>{if(o){if(!o.body||!o.motivation){console.error("Invalid annotation after Hyperion parsing: missing either 'body' or 'motivation'",o);return}let a=o.body;Array.isArray(a)&&(a=a[0]);let r=e.get(a.id);if(r)switch(n){case"painting":return o.target===t.id&&o.motivation&&"painting"===o.motivation[0]&&i.includes(r.type)&&(o.body=r),!!o;case"supplementing":return;default:throw Error("Invalid annotation motivation.")}}})}return o}},9822:function(e,t,n){n.d(t,{G:function(){return o}});var i=n(9854);let o=(e,t)=>{let n=(0,i.g)(e,{id:t,type:"Canvas"},"painting",["Image","Sound","Video"]);if(0!==n.annotations.length&&n.annotations&&n.annotations)return n.annotations.map(e=>null==e?void 0:e.body)}},2734:function(e,t,n){var i=n(310),o=n(9366),a=n(637),r=JSON.parse('{"commonClose":"Close","commonNext":"Next","commonPrevious":"Previous","commonSearch":"Search","commonSearchPlaceholder":"Search...","commonShare":"Share","commonViewAll":"View All","copyFailure":"Failed","copySuccess":"Copied","informationPanelTabs":"Select","informationPanelTabsAbout":"About","informationPanelTabsAnnotations":"Annotations","informationPanelTabsSearch":"Search","informationPanelToggle":"More Information","shareCollectionJson":"View Collection","shareCollectionCopy":"Copy Collection URL","shareManifestJson":"View Manifest","shareManifestCopy":"Copy Manifest URL"}');let l="clover",s=Object.fromEntries(Object.entries({en:r,pt:{}}).map(e=>{let[t,n]=e;return[t,{["".concat(l)]:n}]}));o.ZP.use(i.Z).use(a.Db).init({defaultNS:l,fallbackLng:"en",ns:[l],resources:{...s}})}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[947],{6051:function(e,t,n){n.d(t,{x:function(){return i}});let i=(0,n(4601).zo)("svg",{display:"inline-flex",variants:{isLarge:{true:{height:"4rem",width:"4rem"}},isMedium:{true:{height:"2rem",width:"2rem"}},isSmall:{true:{height:"1rem",width:"1rem"}}}})},5112:function(e,t,n){n.d(t,{J:function(){return a}});var i=n(2676);n(5271);var o=n(6051);let a=e=>(0,i.jsx)(o.x,{...e,"data-testid":"icon-svg",role:"img",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:e.children});a.Title=e=>{let{children:t}=e;return(0,i.jsx)("title",{children:t})},a.Add=()=>(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288M400 256H112"}),a.Audio=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M232 416a23.88 23.88 0 01-14.2-4.68 8.27 8.27 0 01-.66-.51L125.76 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.75l91.37-74.81a8.27 8.27 0 01.66-.51A24 24 0 01256 120v272a24 24 0 01-24 24zm-106.18-80zm-.27-159.86zM320 336a16 16 0 01-14.29-23.19c9.49-18.87 14.3-38 14.3-56.81 0-19.38-4.66-37.94-14.25-56.73a16 16 0 0128.5-14.54C346.19 208.12 352 231.44 352 256c0 23.86-6 47.81-17.7 71.19A16 16 0 01320 336z"}),(0,i.jsx)("path",{d:"M368 384a16 16 0 01-13.86-24C373.05 327.09 384 299.51 384 256c0-44.17-10.93-71.56-29.82-103.94a16 16 0 0127.64-16.12C402.92 172.11 416 204.81 416 256c0 50.43-13.06 83.29-34.13 120a16 16 0 01-13.87 8z"}),(0,i.jsx)("path",{d:"M416 432a16 16 0 01-13.39-24.74C429.85 365.47 448 323.76 448 256c0-66.5-18.18-108.62-45.49-151.39a16 16 0 1127-17.22C459.81 134.89 480 181.74 480 256c0 64.75-14.66 113.63-50.6 168.74A16 16 0 01416 432z"})]}),a.Close=()=>(0,i.jsx)("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}),a.Download=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M336 176h40a40 40 0 0140 40v208a40 40 0 01-40 40H136a40 40 0 01-40-40V216a40 40 0 0140-40h40",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M176 272l80 80 80-80M256 48v288"})]}),a.Image=()=>(0,i.jsx)("path",{d:"M416 64H96a64.07 64.07 0 00-64 64v256a64.07 64.07 0 0064 64h320a64.07 64.07 0 0064-64V128a64.07 64.07 0 00-64-64zm-80 64a48 48 0 11-48 48 48.05 48.05 0 0148-48zM96 416a32 32 0 01-32-32v-67.63l94.84-84.3a48.06 48.06 0 0165.8 1.9l64.95 64.81L172.37 416zm352-32a32 32 0 01-32 32H217.63l121.42-121.42a47.72 47.72 0 0161.64-.16L448 333.84z"}),a.Video=()=>(0,i.jsx)("path",{d:"M464 384.39a32 32 0 01-13-2.77 15.77 15.77 0 01-2.71-1.54l-82.71-58.22A32 32 0 01352 295.7v-79.4a32 32 0 0113.58-26.16l82.71-58.22a15.77 15.77 0 012.71-1.54 32 32 0 0145 29.24v192.76a32 32 0 01-32 32zM268 400H84a68.07 68.07 0 01-68-68V180a68.07 68.07 0 0168-68h184.48A67.6 67.6 0 01336 179.52V332a68.07 68.07 0 01-68 68z"})},2848:function(e,t,n){n.d(t,{Hz:function(){return d},bC:function(){return l},tr:function(){return c},uv:function(){return u},yP:function(){return s}});var i=n(3818),o=n(4601);let a=(0,o.F4)({"0%":{opacity:0,transform:"translateY(1rem)"},"100%":{opacity:1,transform:"translateY(0)"}}),r=(0,o.F4)({"0%":{opacity:0,transform:"translateY(1rem)"},"100%":{opacity:1,transform:"translateY(0)"}}),l=(0,o.zo)(i.Eh,{fill:"$secondaryAlt"}),s=(0,o.zo)(i.x8,{position:"absolute",right:"0",top:"0",padding:"0.5rem",margin:"0",cursor:"pointer",border:"none",background:"none",fill:"inherit","&:hover":{opacity:"0.75"}}),d=(0,o.zo)(i.VY,{border:"none",backgroundColor:"white",fill:"inhrerit",padding:"1rem 2rem 1rem 1rem",width:"auto",minWidth:"200px",maxWidth:"350px",borderRadius:"3px",boxShadow:"5px 5px 13px #0002",animationDuration:"0.3s",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",'&[data-side="top"]':{animationName:r},'&[data-side="bottom"]':{animationName:a},'&[data-align="end"]':{["& ".concat(l)]:{margin:"0 0.7rem"}}}),c=(0,o.zo)(i.xz,{display:"inline-flex",padding:"0.5rem 0",margin:"0 0.5rem 0 0",cursor:"pointer",border:"none",background:"none","> button, > span":{margin:"0"}}),u=(0,o.zo)(i.fC,{boxSizing:"content-box"})},5945:function(e,t,n){n.d(t,{JO:function(){return i.J},J2:function(){return r},Vp:function(){return s}});var i=n(5112),o=n(2676),a=n(2848);n(5271);let r=e=>{let{children:t}=e;return(0,o.jsx)(a.uv,{children:t})};r.Trigger=e=>(0,o.jsx)(a.tr,{...e,children:e.children}),r.Content=e=>(0,o.jsxs)(a.Hz,{...e,sideOffset:5,collisionPadding:21,children:[(0,o.jsx)(a.bC,{}),(0,o.jsx)(a.yP,{children:(0,o.jsx)(i.J,{isSmall:!0,children:(0,o.jsx)(i.J.Close,{})})}),e.children]});var l=n(6051);let s=(0,n(4601).zo)("div",{boxSizing:"border-box",display:"inline-flex",alignItems:"center",borderRadius:"5px",padding:"$1",marginBottom:"$2",marginRight:"$2",backgroundColor:"$lightGrey",color:"$richBlack50",textTransform:"uppercase",fontSize:"$2",objectFit:"contain",lineHeight:"1em !important","&:last-child":{marginRight:"0"},["".concat(l.x)]:{position:"absolute",left:"$1",height:"$3",width:"$3"},variants:{isIcon:{true:{position:"relative",paddingLeft:"$5"}}}})},2947:function(e,t,n){n.r(t),n.d(t,{default:function(){return tZ}});var i=n(2676);n(7178);var o=n(5271),a=n(2523),r=n(4340),l=n(634),s=n(4957),d=n(9452);let c=async(e,t)=>{let n=e.get({id:t,type:"Canvas"});if(!(null==n?void 0:n.annotations)||!n.annotations[0])return[];let i=e.get(n.annotations).filter(e=>!!e.items&&e),o=[];for(let t of i)if(t.items.length>0){let e=t.label||{none:["Annotations"]};o.push({...t,label:e})}else{let n={};try{n=await e.load(t.id)}catch(e){console.log(e)}if(n.items&&n.items.length>0){let e=n.label||{none:["Annotations"]};o.push({...n,label:e})}}return o},u=async(e,t,n,i)=>{let o;if(void 0==i||void 0==i.q)return{label:{none:[n]}};let a="".concat(t,"?q=").concat(i.q.trim());try{o=await e.load(a)}catch(e){return console.log("Could not load content search."),{}}return void 0==o.label&&(o.label={none:[n]}),o};var h=n(7467),m=n(8685),p=n(4601);let g=(0,p.zo)("div",{position:"relative",zIndex:"0"}),f=(0,p.zo)("div",{display:"flex",flexDirection:"row",flexGrow:"1",overflow:"hidden","@sm":{flexDirection:"column"}}),x=(0,p.zo)("div",{display:"flex",flexDirection:"column",flexGrow:"1",flexShrink:"1",width:"61.8%","@sm":{width:"100%"}}),v=(0,p.zo)(l.xz,{display:"none",border:"none",padding:"0",transition:"$all",opacity:"1",background:"#6663",margin:"1rem 0",borderRadius:"6px","&[data-information-panel='false']":{opacity:"0",marginTop:"-59px"},"@sm":{display:"flex","> span":{display:"flex",flexGrow:"1",fontSize:"0.8333em",justifyContent:"center",padding:"0.5rem",fontFamily:"inherit"}}}),b=(0,p.zo)(l.VY,{width:"100%",display:"flex"}),j=(0,p.zo)("aside",{display:"flex",flexGrow:"1",flexShrink:"0",width:"38.2%",maxHeight:"100%","@sm":{width:"100%"}}),y=(0,p.zo)("div",{display:"flex",flexDirection:"column",fontSmooth:"auto",webkitFontSmoothing:"antialiased",'&[data-absolute-position="true"]':{position:"absolute",width:"100%",height:"100%",zIndex:"0"},"> div":{display:"flex",flexDirection:"column",flexGrow:"1",justifyContent:"flex-start",height:"100%",maxHeight:"100%","@sm":{["& ".concat(f)]:{flexGrow:"1"},["& ".concat(x)]:{flexGrow:"0"}}},"@sm":{padding:"0"},"&[data-information-panel-open='true']":{"@sm":{position:"fixed",height:"100%",width:"100%",top:"0",left:"0",zIndex:"2500000000",["& ".concat(g)]:{display:"none"},["& ".concat(v)]:{margin:"1rem"},["& ".concat(b)]:{height:"100%"}}}});var w=n(2562);let C=(0,p.zo)(w.fC,{display:"flex",flexDirection:"column",width:"100%",height:"100%",flexGrow:"1",flexShrink:"0",position:"relative",zIndex:"1",maskImage:"linear-gradient(180deg, rgba(0, 0, 0, 1) calc(100% - 2rem), transparent 100%)","@sm":{marginTop:"0.5rem",boxShadow:"none"}}),S=(0,p.zo)(w.aV,{display:"flex",flexGrow:"0",margin:"0 1.618rem",borderBottom:"4px solid #6663","@sm":{margin:"0 1rem"}}),k=(0,p.zo)(w.xz,{display:"flex",position:"relative",padding:"0.5rem 1rem",background:"none",backgroundColor:"transparent",fontFamily:"inherit",border:"none",opacity:"0.7",fontSize:"1rem",marginRight:"1rem",lineHeight:"1rem",whiteSpace:"nowrap",cursor:"pointer",fontWeight:400,transition:"$all","&::after":{width:"0",height:"4px",content:"",position:"absolute",bottom:"-4px",left:"0",transition:"$all"},"&[data-state='active']":{opacity:"1",fontWeight:700,"&::after":{width:"100%",backgroundColor:"$accent"}}}),z=(0,p.zo)(w.VY,{display:"flex",flexGrow:"1",flexShrink:"0",position:"absolute",top:"0",left:"0","&[data-state='active']":{width:"100%",height:"calc(100% - 2rem)",padding:"1.618rem 0"}}),I=(0,p.zo)(e=>{let{handleScroll:t,children:n,className:o}=e;return(0,i.jsx)("div",{className:o,onScroll:t,children:n})},{position:"relative",height:"100%",width:"100%",overflowY:"scroll"}),$={position:"relative",cursor:"pointer",display:"flex",width:"100%",justifyContent:"space-between",textAlign:"left",margin:"0",padding:"0.5rem 1.618rem",fontFamily:"inherit",lineHeight:"1.25em",fontSize:"1rem",color:"inherit",border:"none",background:"none"},T=(0,p.zo)("button",{textAlign:"left","&:hover":{color:"$accent"}}),A=(0,p.zo)("div",{display:"flex",flexDirection:"column",width:"100%"}),M=(0,p.zo)("div",{...$}),E=(0,p.zo)("div",{"&:hover":{color:"$accent"}});var R=e=>{let{value:t,handleClick:n}=e;return(0,i.jsx)(T,{onClick:n,children:t})},L=e=>{let{value:t,handleClick:n}=e;return(0,i.jsx)(E,{dangerouslySetInnerHTML:{__html:t},onClick:n})},F=n(2950),H=()=>{function e(e){return e.map(e=>{let t=e.identifier||(0,F.Z)();return{...e,identifier:t}})}return{addIdentifiersToParsedCues:e,createNestedCues:function(t){let n=[],i=[];for(let a of e(t)){for(;i.length>0&&i[i.length-1].end<=a.start;)i.pop();if(i.length>0){var o;i[i.length-1].children||(i[i.length-1].children=[]),null===(o=i[i.length-1].children)||void 0===o||o.push(a),i.push(a)}else n.push(a),i.push(a)}return n},isChild:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some(t=>e.start>=t.start&&e.end<=t.end)},orderCuesByTime:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((e,t)=>e.start-t.start)}}},P=n(7743);let D=(0,p.F4)({from:{transform:"rotate(360deg)"},to:{transform:"rotate(0deg)"}}),O=(0,p.zo)(P.fC,{display:"flex",flexDirection:"column",width:"100%"}),V=(0,p.zo)(P.ck,{...$,"@sm":{padding:"0.5rem 1rem",fontSize:"0.8333rem"},"&::before":{content:"",width:"12px",height:"12px",borderRadius:"12px",position:"absolute",backgroundColor:"$primaryMuted",opacity:"0",left:"8px",marginTop:"3px",boxSizing:"content-box","@sm":{content:"unset"}},"&::after":{content:"",width:"4px",height:"6px",position:"absolute",backgroundColor:"$secondary",opacity:"0",clipPath:"polygon(100% 50%, 0 100%, 0 0)",left:"13px",marginTop:"6px",boxSizing:"content-box","@sm":{content:"unset"}},strong:{marginLeft:"1rem"},"&:hover":{color:"$accent","&::before":{backgroundColor:"$accent",opacity:"1"},"&::after":{content:"",width:"4px",height:"6px",position:"absolute",backgroundColor:"$secondary",clipPath:"polygon(100% 50%, 0 100%, 0 0)",opacity:"1"}},"&[aria-checked='true']":{backgroundColor:"#6663","&::before":{content:"",width:"6px",height:"6px",position:"absolute",backgroundColor:"transparent",border:"3px solid $accentMuted",borderRadius:"12px",left:"8px",marginTop:"4px",opacity:"1",animation:"1s linear infinite",animationName:D,boxSizing:"content-box","@sm":{content:"unset"}},"&::after":{content:"",width:"6px",height:"6px",position:"absolute",backgroundColor:"transparent",border:"3px solid $accent",clipPath:"polygon(100% 0, 100% 100%, 0 0)",borderRadius:"12px",left:"8px",marginTop:"4px",opacity:"1",animation:"1.5s linear infinite",animationName:D,boxSizing:"content-box","@sm":{content:"unset"}}}});var N=n(3699);let B=e=>{for(;e&&e!==document.body;){let t=window.getComputedStyle(e).overflowY;if("visible"!==t&&"hidden"!==t&&e.scrollHeight>e.clientHeight)return e;e=e.parentNode}return null};var G=e=>{var t,n;let{label:r,start:l,end:s}=e,d=(0,a.Cu)(),{configOptions:c,isAutoScrollEnabled:u,isUserScrolling:h}=(0,a.D1)(),m=null==c?void 0:null===(n=c.informationPanel)||void 0===n?void 0:null===(t=n.vtt)||void 0===t?void 0:t.autoScroll,[p,g]=(0,o.useState)(!1),f=(0,o.useRef)(null),x=document.getElementById("clover-iiif-video");return(0,o.useEffect)(()=>(null==x||x.addEventListener("timeupdate",()=>{let{currentTime:e}=x;g(l<=e&&edocument.removeEventListener("timeupdate",()=>{})),[s,l,x]),(0,o.useEffect)(()=>{if(u&&p&&f.current&&!h){let n=f.current;if(n&&n instanceof HTMLElement){let i=B(n);if(i&&i instanceof HTMLElement){var e,t;let o;switch(null==m?void 0:null===(e=m.settings)||void 0===e?void 0:e.block){case"center":let a=i.getBoundingClientRect();o=n.offsetTop+n.offsetHeight-Math.floor((a.bottom-a.top)/2);break;case"end":o=n.offsetTop+n.offsetHeight-(i.clientHeight-n.clientHeight)+2;break;default:o=n.offsetTop-2}t=()=>{var e;return i.scrollTo({top:o,left:0,behavior:null==m?void 0:null===(e=m.settings)||void 0===e?void 0:e.behavior})},d({type:"updateAutoScrolling",isAutoScrolling:!0}),t(),setTimeout(()=>d({type:"updateAutoScrolling",isAutoScrolling:!1}),750)}}}},[m,p,h,u,d]),(0,i.jsxs)(V,{ref:f,"aria-checked":p,"data-testid":"information-panel-cue",onClick:()=>{x&&(x.pause(),x.currentTime=l,x.play())},value:r,children:[r,(0,i.jsx)("strong",{children:(0,N.rJ)(l)})]})};let W=(0,p.zo)("ul",{listStyle:"none",paddingLeft:"1rem",position:"relative","&&:first-child":{paddingLeft:"0"},"& li ul":{["& ".concat(V)]:{backgroundColor:"unset","&::before":{content:"none"},"&::after":{content:"none"}}},"&:first-child":{margin:"0 0 1.618rem"}}),_=e=>{let{items:t}=e;return(0,i.jsx)(W,{children:t.map(e=>{let{text:t,start:n,end:o,children:a,identifier:r}=e;return(0,i.jsxs)("li",{children:[(0,i.jsx)(G,{label:t,start:n,end:o}),a&&(0,i.jsx)(_,{items:a})]},r)})})},J=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if(!e)return"";if(!e[t]){let t=Object.getOwnPropertyNames(e);if(t.length>0)return e[t[0]]}return e[t]};var q=n(3836),Z=e=>{let{label:t,vttUri:n}=e,[a,r]=o.useState([]),{createNestedCues:l,orderCuesByTime:s}=H(),[d,c]=o.useState();return(0,o.useEffect)(()=>{n&&fetch(n,{headers:{"Content-Type":"text/plain",Accept:"application/json"}}).then(e=>e.text()).then(e=>{r(l(s((0,q.parse)(e).cues)))}).catch(e=>{console.error(n,e.toString()),c(e)})},[n]),(0,i.jsxs)(O,{"data-testid":"annotation-item-vtt","aria-label":"".concat(J(t)),children:[d&&(0,i.jsxs)("div",{"data-testid":"error-message",children:["Network Error: ",d.toString()]}),(0,i.jsx)(_,{items:a})]})},U=e=>{let{caption:t,handleClick:n,imageUri:o}=e;return(0,i.jsxs)(T,{onClick:n,children:[(0,i.jsx)("img",{src:o,alt:"A visual annotation for ".concat(t)}),(0,i.jsx)("span",{children:t})]})},Y=e=>{var t,n;let{annotation:o}=e,{target:r}=o,{openSeadragonViewer:l,vault:d,activeCanvas:c,configOptions:u}=(0,a.D1)(),h=o.body.map(e=>d.get(e.id)),m=(null===(t=h.find(e=>e.format))||void 0===t?void 0:t.format)||"",p=(null===(n=h.find(e=>e.value))||void 0===n?void 0:n.value)||"",g=d.get({id:c,type:"Canvas"});function f(){var e;if(!r)return;let t=(null===(e=u.annotationOverlays)||void 0===e?void 0:e.zoomLevel)||1;(0,s.$H)(l,t,r,g)}return(0,i.jsx)(M,{children:function(){var e,t;switch(m){case"text/plain":return(0,i.jsx)(R,{value:p,handleClick:f});case"text/html":return(0,i.jsx)(L,{value:p,handleClick:f});case"text/vtt":return(0,i.jsx)(Z,{label:h[0].label,vttUri:h[0].id||""});case null===(e=m.match(/^image\//))||void 0===e?void 0:e.input:let n=(null===(t=h.find(e=>{var t;return!(null===(t=e.id)||void 0===t?void 0:t.includes("vault://"))}))||void 0===t?void 0:t.id)||"";return(0,i.jsx)(U,{caption:p,handleClick:f,imageUri:n});default:return(0,i.jsx)(R,{value:p,handleClick:f})}}()})},Q=e=>{var t;let{annotationPage:n}=e,{vault:o}=(0,a.D1)();if(!n||!n.items||(null===(t=n.items)||void 0===t?void 0:t.length)===0)return(0,i.jsx)(i.Fragment,{});let r=n.items.map(e=>o.get(e.id));return r?(0,i.jsx)(A,{"data-testid":"annotation-page",children:null==r?void 0:r.map(e=>(0,i.jsx)(Y,{annotation:e},e.id))}):(0,i.jsx)(i.Fragment,{})};let X=(0,p.zo)("button",{textAlign:"left","&:hover":{color:"$accent"}}),K=(0,p.zo)("li",{margin:"0.25rem 0"}),ee=(0,p.zo)("ol",{listStyleType:"auto",marginBottom:"1rem",listStylePosition:"inside"}),et=(0,p.zo)("div",{margin:"0.5rem 1.618rem"}),en=(0,p.zo)("div",{fontWeight:"bold"}),ei=(0,p.zo)("div",{marginBottom:"1rem"});var eo=e=>{let{value:t,handleClick:n,target:o,canvas:a}=e;return(0,i.jsx)(X,{onClick:n,"data-target":o,"data-canvas":a,children:t})},ea=e=>{var t,n,r;let l,d,{annotation:c,activeContentSearchTarget:u,setActiveContentSearchTarget:h}=e,m=(0,a.Cu)(),{openSeadragonViewer:p,vault:g,contentSearchVault:f,activeCanvas:x,configOptions:v,OSDImageLoaded:b}=(0,a.D1)(),j=g.get({id:x,type:"Canvas"}),y=(null===(t=c.body.map(e=>f.get(e.id)).find(e=>e.value))||void 0===t?void 0:t.value)||"";if(c.target&&"string"==typeof c.target&&(l=c.target),l){let e=l.split("#xywh");e.length>1&&(d=e[0])}let w=(null===(r=v.contentSearch)||void 0===r?void 0:null===(n=r.overlays)||void 0===n?void 0:n.zoomLevel)||1;(0,o.useEffect)(()=>{b&&p&&c.target&&c.target==u&&(0,s.$H)(p,w,l,j)},[p,b]);let C=JSON.stringify(l);return(0,i.jsx)(K,{children:(0,i.jsx)(eo,{target:C,canvas:d,value:y,handleClick:function(e){if(!p)return;let t=JSON.parse(e.target.dataset.target),n=e.target.dataset.canvas;x===n?(0,s.$H)(p,w,l,j):(m({type:"updateOSDImageLoaded",OSDImageLoaded:!1}),m({type:"updateActiveCanvas",canvasId:n}),h(t))}})})},er=e=>{var t,n,r;let{annotationPage:l}=e,{contentSearchVault:s,configOptions:d}=(0,a.D1)(),[c,u]=(0,o.useState)(),h=null===(t=d.contentSearch)||void 0===t?void 0:t.searchResultsLimit,m=null===(n=d.localeText)||void 0===n?void 0:n.contentSearch;return l&&l.items&&(null===(r=l.items)||void 0===r?void 0:r.length)!==0?(0,i.jsx)(i.Fragment,{children:Object.entries(function(e){let t={};return e.items.forEach(e=>{let n=s.get(e.id),i="";if(n.label){let e=J(n.label);e&&(i=e[0])}void 0==t[i]&&(t[i]=[]),t[i].push(n)}),t}(l)).map((e,t)=>{let[n,o]=e;return(0,i.jsxs)("div",{children:[(0,i.jsx)(en,{className:"content-search-results-title",children:n}),(0,i.jsx)(ee,{className:"content-search-results",children:(h?o.slice(0,h):o).map((e,t)=>(0,i.jsx)(ea,{annotation:e,activeContentSearchTarget:c,setActiveContentSearchTarget:u},t))}),function(e){if(h){let t=e.length-h;if(t>0)return(0,i.jsxs)(ei,{children:[t," ",null==m?void 0:m.moreResults]})}}(o)]},t)})}):(0,i.jsx)("p",{children:null==m?void 0:m.noSearchResults})},el=n(1290);let es=(0,p.zo)("div",{".content-search-form":{display:"flex",marginBottom:"1rem"},input:{padding:".25rem",marginRight:"1rem"}}),ed=(0,p.zo)("button",{display:"flex",background:"none",border:"none",width:"2rem",height:"2rem",padding:"0",margin:"0",fontWeight:"700",borderRadius:"2rem",backgroundColor:"$accent",color:"$secondary",cursor:"pointer",boxSizing:"content-box",transition:"$all",svg:{height:"60%",width:"60%",padding:"20%",fill:"$secondary",stroke:"$secondary",opacity:"1",filter:"drop-shadow(5px 5px 5px #000D)",boxSizing:"inherit",transition:"$all"},"&:disabled":{backgroundColor:"transparent",boxShadow:"none",svg:{opacity:"0.25"}}});var ec=e=>{var t;let{searchServiceUrl:n,setContentSearchResource:r,setLoading:l}=e,[s,d]=(0,o.useState)(),{contentSearchVault:c,openSeadragonViewer:h,configOptions:m}=(0,a.D1)(),p=null===(t=m.localeText)||void 0===t?void 0:t.contentSearch;async function g(e){e.preventDefault();let t=null==p?void 0:p.tabLabel;if(h&&n){if(!s||""===s.trim()){r({label:{none:[t]}});return}l(!0),u(c,n,t,{q:s}).then(e=>{r(e),l(!1)})}}return(0,i.jsx)(es,{children:(0,i.jsxs)(el.fC,{onSubmit:g,className:"content-search-form",children:[(0,i.jsx)(el.gN,{className:"FormField",name:"searchTerms",onChange:e=>{e.preventDefault(),d(e.target.value)},children:(0,i.jsx)(el.oT,{placeholder:null==p?void 0:p.formPlaceholder})}),(0,i.jsx)(el.k4,{asChild:!0,children:(0,i.jsx)(ed,{type:"submit",children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:"Search"}),(0,i.jsx)("path",{d:"M456.69 421.39L362.6 327.3a173.81 173.81 0 0034.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 00327.3 362.6l94.09 94.09a25 25 0 0035.3-35.3zM97.92 222.72a124.8 124.8 0 11124.8 124.8 124.95 124.95 0 01-124.8-124.8z"})]})})})]})})},eu=e=>{let{searchServiceUrl:t,setContentSearchResource:n,activeCanvas:a,annotationPage:r}=e,[l,s]=(0,o.useState)(!1);return(0,i.jsxs)(et,{children:[(0,i.jsx)(ec,{searchServiceUrl:t,setContentSearchResource:n,activeCanvas:a,setLoading:s}),!l&&(0,i.jsx)(er,{annotationPage:r}),l&&(0,i.jsx)("span",{children:"Loading..."})]})};let eh=(0,p.zo)("div",{padding:" 0 1.618rem 2rem",display:"flex",flexDirection:"column",overflow:"scroll",position:"absolute",fontWeight:"400",fontSize:"1rem",zIndex:"0",img:{maxWidth:"100px",maxHeight:"100px",objectFit:"contain",color:"transparent",margin:"0 0 1rem",borderRadius:"3px",backgroundColor:"$secondaryMuted"},video:{display:"none"},"a, a:visited":{color:"$accent"},p:{fontSize:"1rem",lineHeight:"1.45em",margin:"0"},dl:{margin:"0",dt:{fontWeight:"700",margin:"1rem 0 0.25rem"},dd:{margin:"0"}},".manifest-property-title":{fontWeight:"700",margin:"1rem 0 0.25rem"},"ul, ol":{padding:"0",margin:"0",li:{fontSize:"1rem",lineHeight:"1.45em",listStyle:"none",margin:"0.25rem 0 0.25rem"}}}),em=(0,p.zo)("div",{position:"relative",width:"100%",height:"100%",zIndex:"0"});var ep=n(4234),eg=e=>{let{homepage:t}=e;return(null==t?void 0:t.length)===0?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"manifest-property-title",children:"Homepage"}),(0,i.jsx)(ep.bw,{homepage:t})]})},ef=e=>{let{id:t,htmlLabel:n,parent:o="manifest"}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"manifest-property-title",children:n}),(0,i.jsx)("a",{href:t,target:"_blank",id:"iiif-".concat(o,"-id"),children:t})]})},ex=e=>{let{metadata:t,parent:n="manifest"}=e;return t?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ep.SF,{metadata:t,id:"iiif-".concat(n,"-metadata")})}):(0,i.jsx)(i.Fragment,{})},ev=e=>{let{rendering:t}=e;return(null==t?void 0:t.length)===0?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"manifest-property-title",children:"Alternate formats"}),(0,i.jsx)(ep.Oy,{rendering:t})]})},eb=e=>{let{requiredStatement:t,parent:n="manifest"}=e;return t?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ep.bT,{requiredStatement:t,id:"iiif-".concat(n,"-required-statement")})}):(0,i.jsx)(i.Fragment,{})},ej=e=>{let{rights:t}=e;return t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"manifest-property-title",children:"Rights"}),(0,i.jsx)("a",{href:t,target:"_blank",children:t})]}):(0,i.jsx)(i.Fragment,{})},ey=e=>{let{seeAlso:t}=e;return(null==t?void 0:t.length)===0?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"manifest-property-title",children:"See Also"}),(0,i.jsx)(ep.QZ,{seeAlso:t})]})},ew=e=>{let{summary:t,parent:n="manifest"}=e;return t?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ep.ER,{summary:t,as:"p",id:"iiif-".concat(n,"-summary")})}):(0,i.jsx)(i.Fragment,{})},eC=e=>{let{label:t,thumbnail:n}=e;return(null==n?void 0:n.length)===0?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ep.pl,{altAsLabel:t||{none:["resource"]},thumbnail:n,style:{backgroundColor:"#6663",objectFit:"cover"}})})},eS=()=>{let{activeManifest:e,vault:t}=(0,a.D1)(),[n,r]=(0,o.useState)(),[l,s]=(0,o.useState)([]),[d,c]=(0,o.useState)([]),[u,h]=(0,o.useState)([]),[m,p]=(0,o.useState)([]);return((0,o.useEffect)(()=>{var n,i,o,a;let l=t.get(e);r(l),(null===(n=l.homepage)||void 0===n?void 0:n.length)>0&&s(t.get(l.homepage)),(null===(i=l.seeAlso)||void 0===i?void 0:i.length)>0&&c(t.get(l.seeAlso)),(null===(o=l.rendering)||void 0===o?void 0:o.length)>0&&h(t.get(l.rendering)),(null===(a=l.thumbnail)||void 0===a?void 0:a.length)>0&&p(t.get(l.thumbnail))},[e,t]),n)?(0,i.jsx)(em,{children:(0,i.jsxs)(eh,{children:[(0,i.jsx)(eC,{thumbnail:m,label:n.label}),(0,i.jsx)(ew,{summary:n.summary}),(0,i.jsx)(ex,{metadata:n.metadata}),(0,i.jsx)(eb,{requiredStatement:n.requiredStatement}),(0,i.jsx)(ej,{rights:n.rights}),(0,i.jsx)(eg,{homepage:l}),(0,i.jsx)(ey,{seeAlso:d}),(0,i.jsx)(ev,{rendering:u}),(0,i.jsx)(ef,{id:n.id,htmlLabel:"IIIF Manifest"})]})}):(0,i.jsx)(i.Fragment,{})},ek=n(1795),ez=e=>{let{activeCanvas:t,annotationResources:n,searchServiceUrl:r,setContentSearchResource:l,contentSearchResource:s}=e,{t:d}=(0,ek.$G)(),c=(0,a.Cu)(),{isAutoScrolling:u,isUserScrolling:p,vault:g,configOptions:f,plugins:x}=(0,a.D1)(),{informationPanel:v}=f,[b,j]=(0,o.useState)(),y=null==v?void 0:v.renderAbout,w=null==v?void 0:v.renderAnnotation,$=g.get({id:t,type:"Canvas"}),T=null==v?void 0:v.renderContentSearch,{pluginsWithInfoPanel:A}=function(e){let t=[];return e.forEach(e=>{var n;(null===(n=e.informationPanel)||void 0===n?void 0:n.component)&&t.push(e)}),{pluginsWithInfoPanel:t}}(x);return(0,o.useEffect)(()=>{if(!b){if(null==v?void 0:v.defaultTab){let e=["manifest-about","manifest-content-search"];$.annotations.length>0&&$.annotations.forEach(t=>e.push(t.id)),e.includes(null==v?void 0:v.defaultTab)?j(v.defaultTab):j("manifest-about")}else y?j("manifest-about"):T?j("manifest-content-search"):n&&(null==n?void 0:n.length)>0?j(n[0].id):x.length>0&&j(x[0].id)}},[null==v?void 0:v.defaultTab,t,b,y,T,n,s,null==$?void 0:$.annotations,x]),(0,i.jsxs)(C,{"data-testid":"information-panel",defaultValue:b,onValueChange:e=>{j(e)},orientation:"horizontal",value:b,className:"clover-viewer-information-panel",children:[(0,i.jsxs)(S,{"aria-label":d("informationPanelTabs"),"data-testid":"information-panel-list",children:[y&&(0,i.jsx)(k,{value:"manifest-about",children:d("informationPanelTabsAbout")}),T&&s&&(0,i.jsx)(k,{value:"manifest-content-search",children:(0,i.jsx)(ep.__,{label:s.label})}),w&&n&&n.map((e,t)=>(0,i.jsx)(k,{value:e.id,children:(0,i.jsx)(ep.__,{label:e.label})},t)),A&&A.map((e,t)=>{var n;return(0,i.jsx)(k,{value:e.id,children:(0,i.jsx)(ep.__,{label:null===(n=e.informationPanel)||void 0===n?void 0:n.label})},t)})]}),(0,i.jsxs)(I,{handleScroll:function(){if(!u){clearTimeout(p);let e=setTimeout(()=>{c({type:"updateUserScrolling",isUserScrolling:void 0})},1500);c({type:"updateUserScrolling",isUserScrolling:e})}},children:[y&&(0,i.jsx)(z,{value:"manifest-about",children:(0,i.jsx)(eS,{})}),T&&s&&(0,i.jsx)(z,{value:"manifest-content-search",children:(0,i.jsx)(eu,{searchServiceUrl:r,setContentSearchResource:l,activeCanvas:t,annotationPage:s})}),w&&n&&n.map(e=>(0,i.jsx)(z,{value:e.id,children:(0,i.jsx)(Q,{annotationPage:e})},e.id)),A&&A.map((e,t)=>(function(e,t){var n,o;let r=null==e?void 0:null===(n=e.informationPanel)||void 0===n?void 0:n.component;return void 0===r?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(z,{value:e.id,children:(0,i.jsx)(h.SV,{FallbackComponent:m.Z,children:(0,i.jsx)(r,{...null==e?void 0:null===(o=e.informationPanel)||void 0===o?void 0:o.componentProps,canvas:$,useViewerDispatch:a.Cu,useViewerState:a.D1})})},t)})(e,t))]})]})},eI=n(5162);let e$=(e,t,n,i)=>{let o=[];if(t.canvas&&t.canvas.thumbnail.length>0){let n=e.get(t.canvas.thumbnail[0]);o.push(n)}if(t.annotations[0]){if(t.annotations[0].thumbnail&&t.annotations[0].thumbnail.length>0){let n=e.get(t.annotations[0].thumbnail[0]);o.push(n)}if(!t.annotations[0].body)return;let n=t.annotations[0].body;"Image"===n.type&&o.push(n)}if(0!==o.length)return{id:o[0].id,format:o[0].format,type:o[0].type,width:n,height:i}},eT=(0,p.zo)("div",{position:"absolute",right:"1rem",top:"1rem",display:"flex",justifyContent:"flex-end",zIndex:"1"}),eA=(0,p.zo)("input",{flexGrow:"1",border:"none",backgroundColor:"$secondaryMuted",color:"$primary",marginRight:"1rem",height:"2rem",padding:"0 1rem",borderRadius:"2rem",fontFamily:"inherit",fontSize:"1rem",lineHeight:"1rem",boxShadow:"inset 1px 1px 2px #0003","&::placeholder":{color:"$primaryMuted"}}),eM=(0,p.zo)("button",{display:"flex",background:"none",border:"none",width:"2rem !important",height:"2rem !important",padding:"0",margin:"0",fontWeight:"700",borderRadius:"2rem",backgroundColor:"$accent",color:"$secondary",cursor:"pointer",boxSizing:"content-box !important",transition:"$all",svg:{height:"60%",width:"60%",padding:"20%",fill:"$secondary",stroke:"$secondary",opacity:"1",filter:"drop-shadow(5px 5px 5px #000D)",boxSizing:"inherit",transition:"$all"},"&:disabled":{backgroundColor:"transparent",boxShadow:"none",svg:{opacity:"0.25"}}}),eE=(0,p.zo)("div",{display:"flex",marginRight:"0.618rem",backgroundColor:"$accentAlt",borderRadius:"2rem",boxShadow:"5px 5px 5px #0003",color:"$secondary",alignItems:"center","> span":{display:"flex",margin:"0 0.5rem",fontSize:"0.7222rem"}}),eR=(0,p.zo)("div",{display:"flex",position:"relative",zIndex:"1",width:"100%",padding:"0",transition:"$all",variants:{isToggle:{true:{paddingTop:"2.618rem",["& ".concat(eT)]:{width:"calc(100% - 2rem)","@sm":{width:"calc(100% - 2rem)"}}}}}});var eL=(e,t)=>{(0,o.useEffect)(()=>{function n(n){n.key===e&&t()}return window.addEventListener("keyup",n),()=>window.removeEventListener("keyup",n)},[])};let eF=e=>{let{title:t}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M244 400L100 256l144-144M120 256h292"})]})},eH=e=>{let{title:t}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M268 112l144 144-144 144M392 256H100"})]})},eP=e=>{let{title:t}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})]})},eD=e=>{let{title:t}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{d:"M456.69 421.39L362.6 327.3a173.81 173.81 0 0034.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 00327.3 362.6l94.09 94.09a25 25 0 0035.3-35.3zM97.92 222.72a124.8 124.8 0 11124.8 124.8 124.95 124.95 0 01-124.8-124.8z"})]})};var eO=e=>{let{handleCanvasToggle:t,handleFilter:n,activeIndex:a,canvasLength:r}=e,[l,s]=(0,o.useState)(!1),[d,c]=(0,o.useState)(!1),[u,h]=(0,o.useState)(!1),{t:m}=(0,ek.$G)();return(0,o.useEffect)(()=>{0===a?h(!0):h(!1),a===r-1?c(!0):c(!1)},[a,r]),eL("Escape",()=>{s(!1),n("")}),(0,i.jsx)(eR,{isToggle:l,children:(0,i.jsxs)(eT,{children:[l&&(0,i.jsx)(eA,{autoFocus:!0,onChange:e=>n(e.target.value),placeholder:m("commonSearchPlaceholder")}),!l&&(0,i.jsxs)(eE,{children:[(0,i.jsx)(eM,{onClick:()=>t(-1),disabled:u,type:"button",children:(0,i.jsx)(eF,{title:m("commonPrevious")})}),(0,i.jsxs)("span",{children:[a+1," of ",r]}),(0,i.jsx)(eM,{onClick:()=>t(1),disabled:d,type:"button",children:(0,i.jsx)(eH,{title:m("commonNext")})})]}),(0,i.jsx)(eM,{onClick:()=>{s(e=>!e),n("")},type:"button",children:l?(0,i.jsx)(eP,{title:m("commonClose")}):(0,i.jsx)(eD,{title:m("commonSearch")})})]})})};let eV=(0,p.zo)(P.fC,{display:"flex",flexDirection:"row",flexGrow:"1",padding:"1.618rem",overflowX:"scroll",position:"relative",zIndex:"0"});var eN=n(5945);let eB=(0,p.zo)("span",{display:"flex"}),eG=(0,p.zo)("span",{display:"flex",width:"1.2111rem",height:"0.7222rem"}),eW=(0,p.zo)("span",{display:"inline-flex",marginLeft:"5px",marginBottom:"-1px"}),e_=(0,p.zo)(P.ck,{display:"flex",flexShrink:"0",margin:"0 1.618rem 0 0",padding:"0",cursor:"pointer",background:"none",border:"none",fontFamily:"inherit",lineHeight:"1.25em",fontSize:"1rem",textAlign:"left","&:last-child":{marginRight:"1rem"},figure:{margin:"0",width:"161.8px","> div":{position:"relative",display:"flex",backgroundColor:"$secondaryAlt",width:"inherit",height:"100px",overflow:"hidden",borderRadius:"3px",transition:"$all",img:{width:"100%",height:"100%",objectFit:"cover",filter:"blur(0)",transform:"scale3d(1, 1, 1)",transition:"$all",color:"transparent"},["& ".concat(eB)]:{position:"absolute",right:"0",bottom:"0",["& ".concat(eN.Vp)]:{margin:"0",paddingLeft:"0",fontSize:"0.7222rem",backgroundColor:"#000d",color:"$secondary",fill:"$secondary",borderBottomLeftRadius:"0",borderTopRightRadius:"0"}}},figcaption:{marginTop:"0.5rem",fontWeight:"400",fontSize:"0.8333rem",display:"-webkit-box",overflow:"hidden",MozBoxOrient:"vertical",WebkitBoxOrient:"vertical",WebkitLineClamp:"5","@sm":{fontSize:"0.8333rem"}}},"&[aria-checked='true']":{figure:{"> div":{backgroundColor:"$primaryAlt","&::before":{position:"absolute",zIndex:"1",color:"$secondaryMuted",content:"Active Item",textTransform:"uppercase",fontWeight:"700",fontSize:"0.6111rem",letterSpacing:"0.03rem",display:"flex",width:"100%",height:"100%",flexDirection:"column",justifyContent:"center",textAlign:"center",textShadow:"5px 5px 5px #0003"},img:{opacity:"0.3",transform:"scale3d(1.1, 1.1, 1.1)",filter:"blur(2px)"},["& ".concat(eB)]:{["& ".concat(eN.Vp)]:{backgroundColor:"$accent"}}}},figcaption:{fontWeight:"700"}}}),eJ=e=>{let{type:t}=e;switch(t){case"Sound":return(0,i.jsx)(eN.JO.Audio,{});case"Image":default:return(0,i.jsx)(eN.JO.Image,{});case"Video":return(0,i.jsx)(eN.JO.Video,{})}};var eq=e=>{let{canvas:t,canvasIndex:n,isActive:o,thumbnail:a,type:r,handleChange:l}=e,s=(null==t?void 0:t.label)?J(t.label):(n+1).toString();return(0,i.jsx)(e_,{"aria-checked":o,"data-testid":"media-thumbnail","data-canvas":n,onClick:()=>l(t.id),value:t.id,children:(0,i.jsxs)("figure",{children:[(0,i.jsxs)("div",{children:[(null==a?void 0:a.id)&&(0,i.jsx)("img",{src:a.id,alt:s}),(0,i.jsx)(eB,{children:(0,i.jsxs)(eN.Vp,{isIcon:!0,"data-testid":"thumbnail-tag",children:[(0,i.jsx)(eG,{}),(0,i.jsx)(eN.JO,{"aria-label":r,children:(0,i.jsx)(eJ,{type:r})}),["Video","Sound"].includes(r)&&(0,i.jsx)(eW,{children:(0,N.rJ)(t.duration)})]})})]}),(0,i.jsx)("figcaption",{"data-testid":"fig-caption",children:t.label?(0,i.jsx)(ep.__,{label:t.label}):(n+1).toString()})]})})};let eZ=e=>e.body?e.body.type:"Image";var eU=e=>{let{items:t}=e,{t:n}=(0,ek.$G)(),r=(0,a.Cu)(),{activeCanvas:l,vault:s}=(0,a.D1)(),[d,c]=(0,o.useState)(""),[u,h]=(0,o.useState)([]),[m,p]=(0,o.useState)(0),g=o.useRef(null),f=e=>{l!==e&&r({type:"updateActiveCanvas",canvasId:e})};return(0,o.useEffect)(()=>{if(!u.length){let e=["Image","Sound","Video"];h(t.map(t=>(0,eI.g)(s,t,"painting",e)).filter(e=>e.annotations.length>0))}},[t,u.length,s]),(0,o.useEffect)(()=>{u.forEach((e,t)=>{(null==e?void 0:e.canvas)&&e.canvas.id===l&&p(t)})},[l,u]),(0,o.useEffect)(()=>{let e=document.querySelector('[data-canvas="'.concat(m,'"]'));if(e instanceof HTMLElement&&g.current){let t=e.offsetLeft-g.current.offsetWidth/2+e.offsetWidth/2;g.current.scrollTo({left:t,behavior:"smooth"})}},[m]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eO,{handleFilter:e=>c(e),handleCanvasToggle:e=>{let t=u[m+e];(null==t?void 0:t.canvas)&&f(t.canvas.id)},activeIndex:m,canvasLength:t.length}),(0,i.jsx)(eV,{"aria-label":n("media.selectItem"),"data-testid":"media","data-active-canvas":t[m].id,"data-canvas-length":t.length,"data-filter":d,ref:g,children:u.filter((e,t)=>{var n;if(!d)return!0;if(null===(n=e.canvas)||void 0===n||!n.label)return(t+1).toString().includes(d);{let t=J(e.canvas.label);if(Array.isArray(t))return t[0].toLowerCase().includes(d.toLowerCase())}}).map(e=>{var t,n;return(0,i.jsx)(eq,{canvas:e.canvas,canvasIndex:u.findIndex(t=>t===e),handleChange:f,isActive:l===(null==e?void 0:null===(t=e.canvas)||void 0===t?void 0:t.id),thumbnail:e$(s,e,200,200),type:eZ(e.annotations[0])},null==e?void 0:null===(n=e.canvas)||void 0===n?void 0:n.id)})})]})};let eY=(0,p.zo)("button",{position:"absolute",background:"none",border:"none",cursor:"zoom-in",margin:"0",padding:"0",width:"100%",height:"100%",transition:"$all","& img":{width:"100%",height:"100%",objectFit:"contain",color:"transparent",transition:"$all"},variants:{isMedia:{true:{cursor:"pointer"}}}});var eQ=n(7304);let eX=(0,p.zo)(eQ.c,{position:"absolute",width:"2rem",top:"1rem",right:"1rem",zIndex:100,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",transition:"$all",borderRadius:"50%",backgroundColor:"$accent",cursor:"pointer","&:hover, &:focus":{backgroundColor:"$accent !important"},variants:{isInteractive:{true:{"&:hover":{opacity:"1"}},false:{}},isMedia:{true:{cursor:"pointer !important"}}},compoundVariants:[{isInteractive:!1,isMedia:!0,css:{top:"50%",right:"50%",width:"4rem",height:"4rem",transform:"translate(50%,-50%)"}}]}),eK=(0,p.zo)("div",{position:"relative",display:"flex",flexDirection:"column",flexGrow:"1",flexShrink:"1",gap:"1rem",zIndex:"0",overflow:"hidden","&:hover":{["".concat(eX)]:{backgroundColor:"$accent"},["".concat(eY)]:{backgroundColor:"#6662"}}}),e0=(0,p.zo)("div",{width:"100%",height:"100%"});var e1=n(6921);let e2=(0,p.zo)("svg",{height:"19px",color:"$accent",fill:"$accent",stroke:"$accent",display:"flex",margin:"0.25rem 0.85rem"}),e4=(0,p.zo)(e1.xz,{fontSize:"1.25rem",fontWeight:"400",fontFamily:"inherit",alignSelf:"flex-start",flexGrow:"1",cursor:"pointer",transition:"$all",border:"1px solid #6663",boxShadow:"2px 2px 5px #0001",borderRadius:"3px",display:"flex",alignItems:"center",paddingLeft:"0.5rem",width:"100%","@sm":{fontSize:"1rem"}}),e3=(0,p.zo)(e1.VY,{borderRadius:"3px",boxShadow:"3px 3px 8px #0003",backgroundColor:"$secondary",marginTop:"2.25rem",marginLeft:"6px",paddingBottom:"0.25rem",maxHeight:"calc(61.8vh - 2.5rem) !important",borderTopLeftRadius:"0",border:"1px solid $secondaryMuted",maxWidth:"90vw"}),e5=(0,p.zo)(e1.ck,{display:"flex",alignItems:"center",fontFamily:"inherit",padding:"0.25rem 0.5rem",color:"$primary",fontWeight:"400",fontSize:"0.8333rem",cursor:"pointer",backgroundColor:"$secondary",width:"calc(100% - 1rem)","> span":{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},'&[data-state="checked"]':{fontWeight:"700",color:"$primary !important"},"&:hover":{color:"$accent"},img:{width:"31px",height:"31px",marginRight:"0.5rem",borderRadius:"3px"}}),e6=(0,p.zo)(e1.__,{color:"$primaryMuted",fontFamily:"inherit",fontSize:"0.85rem",padding:"0.5rem 1rem 0.5rem 0.5rem",display:"flex",alignItems:"center",marginBottom:"0.25rem",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",borderBottomRightRadius:"0",backgroundColor:"$secondaryMuted"}),e8=(0,p.zo)(e1.fC,{position:"relative",zIndex:"5",width:"100%"});var e7=e=>{let{direction:t,title:n}=e;return(0,i.jsxs)(e2,{xmlns:"http://www.w3.org/2000/svg",focusable:"false",viewBox:"0 0 512 512",role:"img",children:[(0,i.jsx)("title",{children:n}),"up"===t&&(0,i.jsx)(()=>(0,i.jsx)("path",{d:"M414 321.94L274.22 158.82a24 24 0 00-36.44 0L98 321.94c-13.34 15.57-2.28 39.62 18.22 39.62h279.6c20.5 0 31.56-24.05 18.18-39.62z"}),{}),"down"===t&&(0,i.jsx)(()=>(0,i.jsx)("path",{d:"M98 190.06l139.78 163.12a24 24 0 0036.44 0L414 190.06c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z"}),{})]})},e9=e=>{let{children:t,label:n,maxHeight:o,onValueChange:a,value:r}=e;return(0,i.jsxs)(e8,{onValueChange:a,value:r,children:[(0,i.jsxs)(e4,{"data-testid":"select-button",children:[(0,i.jsx)(e1.ki,{"data-testid":"select-button-value"}),(0,i.jsx)(e1.GV,{children:(0,i.jsx)(e7,{direction:"down",title:"select"})})]}),(0,i.jsx)(e1.ue,{children:(0,i.jsxs)(e3,{css:{maxHeight:"".concat(o," !important")},"data-testid":"select-content",children:[(0,i.jsx)(e1.Pn,{children:(0,i.jsx)(e7,{direction:"up",title:"scroll up for more"})}),(0,i.jsx)(e1.Q_,{children:(0,i.jsxs)(e1.DI,{children:[n&&(0,i.jsx)(e6,{children:(0,i.jsx)(ep.__,{"data-testid":"select-label",label:n})}),t]})}),(0,i.jsx)(e1.Jk,{children:(0,i.jsx)(e7,{direction:"down",title:"scroll down for more"})})]})})]})},te=e=>(0,i.jsxs)(e5,{...e,children:[e.thumbnail&&(0,i.jsx)(ep.pl,{thumbnail:e.thumbnail}),(0,i.jsx)(e1.S_,{children:(0,i.jsx)(ep.__,{label:e.label})}),(0,i.jsx)(e1.o6,{})]}),tt=n(4565),tn=e=>{let{isMedia:t,label:n,placeholderCanvas:o,setIsInteractive:r}=e,{vault:l}=(0,a.D1)(),s=(0,d.G)(l,o),c=s?s[0]:void 0,u=n?J(n):["placeholder image"];return(0,i.jsx)(eY,{onClick:()=>r(!0),isMedia:t,className:"clover-viewer-placeholder",children:(0,i.jsx)("img",{src:(null==c?void 0:c.id)||"",alt:u.join(),height:null==c?void 0:c.height,width:null==c?void 0:c.width})})},ti=n(3677);let to=(0,p.zo)("canvas",{position:"absolute",width:"100%",height:"100%",zIndex:"0"}),ta=o.forwardRef((e,t)=>{let n=o.useRef(null),a=(0,o.useCallback)(()=>{var e,i;if((null===(e=t.current)||void 0===e?void 0:e.currentTime)&&(null===(i=t.current)||void 0===i?void 0:i.currentTime)>0)return;let o=t.current;if(!o)return;let a=new AudioContext,r=a.createMediaElementSource(o),l=a.createAnalyser(),s=n.current;if(!s)return;s.width=o.offsetWidth,s.height=o.offsetHeight;let d=s.getContext("2d");r.connect(l),l.connect(a.destination),l.fftSize=256;let c=l.frequencyBinCount,u=new Uint8Array(c);setInterval(function(){!function(e,t,n,i,o,a){let r;let l=o/n*2.6,s=0;e.getByteFrequencyData(i),t.fillStyle="#000000",t.fillRect(0,0,o,a);for(let e=0;e{t&&t.current&&(t.current.onplay=a)},[a,t]),(0,i.jsx)(to,{ref:n,role:"presentation"})}),tr=(0,p.zo)("div",{position:"relative",backgroundColor:"$primaryAlt",display:"flex",flexGrow:"0",flexShrink:"1",height:"100%",zIndex:"1",video:{backgroundColor:"transparent",objectFit:"contain",width:"100%",height:"100%",position:"relative",zIndex:"1"}});var tl=e=>{let{resource:t,ignoreCaptionLabels:n}=e,o=J(t.label,"en");return Array.isArray(o)&&o.some(e=>n.includes(e))?null:(0,i.jsx)("track",{src:t.id,label:Array.isArray(o)?o[0]:o,srcLang:"en","data-testid":"player-track"},t.id)};let ts=["application/vnd.apple.mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];var td=e=>{let{allSources:t,annotationResources:n,painting:r}=e,[l,s]=o.useState(0),[c,u]=o.useState(),h=o.useRef(null),m=(null==r?void 0:r.type)==="Sound",{activeCanvas:p,configOptions:g,vault:f}=(0,a.D1)();return(0,o.useEffect)(()=>{if(!r.id||!h.current)return;if(null==h?void 0:h.current){let e=h.current;e.src=r.id,e.load()}if("m3u8"!==r.id.split(".").pop()&&r.format&&!ts.includes(r.format))return;let e=new ti.ZP({xhrSetup:function(e,t){e.withCredentials=!!g.withCredentials}});return e.attachMedia(h.current),e.on(ti.ZP.Events.MEDIA_ATTACHED,function(){e.loadSource(r.id)}),e.on(ti.ZP.Events.ERROR,function(t,n){if(n.fatal)switch(n.type){case ti.ZP.ErrorTypes.NETWORK_ERROR:console.error("fatal ".concat(t," network error encountered, try to recover")),e.startLoad();break;case ti.ZP.ErrorTypes.MEDIA_ERROR:console.error("fatal ".concat(t," media error encountered, try to recover")),e.recoverMediaError();break;default:e.destroy()}}),()=>{if(e&&h.current){let t=h.current;e.detachMedia(),e.destroy(),t.currentTime=0}}},[g.withCredentials,r.id]),(0,o.useEffect)(()=>{var e,t,n,i;let o=f.get(p),a=(null===(e=o.accompanyingCanvas)||void 0===e?void 0:e.id)?(0,d.G)(f,null===(t=o.accompanyingCanvas)||void 0===t?void 0:t.id):null,r=(null===(n=o.placeholderCanvas)||void 0===n?void 0:n.id)?(0,d.G)(f,null===(i=o.placeholderCanvas)||void 0===i?void 0:i.id):null;a&&r?0===l?u(r[0].id):u(a[0].id):(a&&u(a[0].id),r&&u(r[0].id))},[p,l,f]),(0,o.useEffect)(()=>{if(null==h?void 0:h.current){let e=h.current;return null==e||e.addEventListener("timeupdate",()=>s(e.currentTime)),()=>document.removeEventListener("timeupdate",()=>{})}},[]),(0,i.jsxs)(tr,{css:{backgroundColor:g.canvasBackgroundColor,maxHeight:g.canvasHeight,position:"relative"},"data-testid":"player-wrapper",className:"clover-viewer-player-wrapper",children:[(0,i.jsxs)("video",{id:"clover-iiif-video",ref:h,controls:!0,height:r.height,width:r.width,crossOrigin:"anonymous",poster:c,style:{maxHeight:g.canvasHeight,position:"relative",zIndex:"1"},children:[t.map(e=>(0,i.jsx)("source",{src:e.id,type:e.format},e.id)),(null==n?void 0:n.length)>0&&n.map(e=>{let t=[];return e.items.forEach(e=>{f.get(e.id).body.forEach(e=>{let n=f.get(e.id);t.push(n)})}),t.map(e=>(0,i.jsx)(tl,{resource:e,ignoreCaptionLabels:g.ignoreCaptionLabels||[]},e.id))}),"Sorry, your browser doesn't support embedded videos."]},r.id),m&&(0,i.jsx)(ta,{ref:h})]})};let tc=()=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-svg-title",focusable:"false",viewBox:"0 0 512 512",role:"img",children:[(0,i.jsx)("title",{id:"close-svg-title",children:"close"}),(0,i.jsx)("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})]}),tu=e=>{let{isMedia:t}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"open-svg-title",focusable:"false",viewBox:"0 0 512 512",role:"img",children:[(0,i.jsx)("title",{id:"open-svg-title",children:"open"}),t?(0,i.jsx)("path",{d:"M133 440a35.37 35.37 0 01-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0135.77.45l247.85 148.36a36 36 0 010 61l-247.89 148.4A35.5 35.5 0 01133 440z"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"m456.69,421.39l-94.09-94.09c22.65-30.16,34.88-66.86,34.84-104.58,0-96.34-78.38-174.72-174.72-174.72S48,126.38,48,222.72s78.38,174.72,174.72,174.72c37.72.04,74.42-12.19,104.58-34.84l94.09,94.09c10.29,9.2,26.1,8.32,35.3-1.98,8.48-9.49,8.48-23.83,0-33.32Zm-233.97-73.87c-68.89-.08-124.72-55.91-124.8-124.8h0c0-68.93,55.87-124.8,124.8-124.8s124.8,55.87,124.8,124.8-55.87,124.8-124.8,124.8Z"}),(0,i.jsx)("path",{d:"m279.5,197.76h-3.35s-28.47,0-28.47,0v-31.82c-.77-13.79-12.57-24.33-26.36-23.56-12.71.71-22.85,10.86-23.56,23.56v3.35h0v28.47h-31.82c-13.79.77-24.33,12.57-23.56,26.36.71,12.71,10.86,22.85,23.56,23.56h3.35s28.47,0,28.47,0v31.82c.77,13.79,12.57,24.33,26.36,23.56,12.71-.71,22.85-10.86,23.56-23.56v-3.35h0v-28.47h31.82c13.79-.77,24.33-12.57,23.56-26.36-.71-12.71-10.86-22.85-23.56-23.56Z"})]})]})};var th=e=>{let{handleToggle:t,isInteractive:n,isMedia:o}=e;return(0,i.jsx)(eX,{onClick:t,isInteractive:n,isMedia:o,"data-testid":"placeholder-toggle",children:n?(0,i.jsx)(tc,{}):(0,i.jsx)(tu,{isMedia:o})})},tm=e=>{var t,n,r,l,d;let{activeCanvas:c,annotationResources:u,isMedia:h,painting:m}=e,[p,g]=o.useState(0),[f,x]=o.useState(!1),{configOptions:v,customDisplays:b,openSeadragonViewer:j,vault:y,viewerId:w}=(0,a.D1)(),C=(0,a.Cu)(),S=y.get(c),k=null==S?void 0:null===(t=S.placeholderCanvas)||void 0===t?void 0:t.id,z=!!k,I=(null==m?void 0:m.length)>1,$=k&&!f&&!h,T="".concat(w,"-").concat((0,N.un)(c+p)),A=b.find(e=>{let t=!1,{canvasId:n,paintingFormat:i}=e.target;if(Array.isArray(n)&&n.length>0&&(t=n.includes(c)),Array.isArray(i)&&i.length>0){var o;let e=(null===(o=m[p])||void 0===o?void 0:o.format)||"";t=!!(e&&i.includes(e))}return t}),M=[];null===(r=u[0])||void 0===r||null===(n=r.items)||void 0===n||n.forEach(e=>{let t=y.get(e.id);M.push(t)}),(0,o.useEffect)(()=>{var e;M&&j&&(null===(e=v.annotationOverlays)||void 0===e?void 0:e.renderOverlays)&&((0,s.dH)(j,"annotation-overlay"),(0,s.zG)(j,S,v.annotationOverlays,M,"annotation-overlay"))},[S,M,j,v]);let E=null==A?void 0:null===(l=A.display)||void 0===l?void 0:l.component;return(0,i.jsxs)(eK,{className:"clover-viewer-painting",children:[(0,i.jsxs)(e0,{style:{backgroundColor:v.canvasBackgroundColor,height:"auto"===v.canvasHeight?"100%":v.canvasHeight},children:[k&&!h&&(0,i.jsx)(th,{handleToggle:()=>x(!f),isInteractive:f,isMedia:h}),$&&!h&&(0,i.jsx)(tn,{isMedia:h,label:null==S?void 0:S.label,placeholderCanvas:k,setIsInteractive:x}),!$&&!A&&(h?(0,i.jsx)(td,{allSources:m,painting:m[p],annotationResources:u}):m&&(0,i.jsx)(tt.default,{_cloverViewerHasPlaceholder:z,body:m[p],instanceId:T,openSeadragonCallback:e=>{e&&(null==j?void 0:j.id)!=="openseadragon-".concat(T)&&C({type:"updateOpenSeadragonViewer",openSeadragonViewer:e})},openSeadragonConfig:v.openSeadragon},T)),!$&&E&&(0,i.jsx)(E,{id:c,annotationBody:m[p],...null==A?void 0:A.display.componentProps})]}),I&&(0,i.jsx)(e9,{value:null===(d=m[p])||void 0===d?void 0:d.id,onValueChange:e=>{g(m.findIndex(t=>t.id===e))},maxHeight:"200px",children:null==m?void 0:m.map(e=>(0,i.jsx)(te,{value:null==e?void 0:e.id,label:null==e?void 0:e.label},null==e?void 0:e.id))})]})},tp=e=>{let{activeCanvas:t,annotationResources:n,searchServiceUrl:o,setContentSearchResource:r,contentSearchResource:l,isAudioVideo:s,items:d,painting:c}=e,{t:u}=(0,ek.$G)(),{isInformationOpen:h,configOptions:m}=(0,a.D1)(),{informationPanel:p}=m,y=(null==p?void 0:p.renderAbout)&&h,w=(null==p?void 0:p.renderAnnotation)&&n.length>0&&!p.open;return(0,i.jsxs)(f,{className:"clover-viewer-content","data-testid":"clover-viewer-content",children:[(0,i.jsxs)(x,{children:[(0,i.jsx)(tm,{activeCanvas:t,annotationResources:n,isMedia:s,painting:c}),y&&(0,i.jsx)(v,{children:(0,i.jsx)("span",{children:u("informationPanelToggle")})}),d.length>1&&(0,i.jsx)(g,{className:"clover-viewer-media-wrapper",children:(0,i.jsx)(eU,{items:d,activeItem:0})})]}),(y||w)&&(0,i.jsx)(j,{children:(0,i.jsx)(b,{children:(0,i.jsx)(ez,{activeCanvas:t,annotationResources:n,searchServiceUrl:o,setContentSearchResource:r,contentSearchResource:l})})})]})};let tg=(0,p.zo)(eN.J2.Trigger,{width:"30px",padding:"5px"}),tf=(0,p.zo)(eN.J2.Content,{display:"flex",flexDirection:"column",fontSize:"0.8333rem",border:"none",boxShadow:"2px 2px 5px #0003",zIndex:"2",button:{display:"flex",textDecoration:"none",marginBottom:"0.5em",color:"$accentAlt",cursor:"pointer",background:"$secondary",border:"none","&:last-child":{marginBottom:"0"}}}),tx=(0,p.zo)("span",{fontSize:"1.33rem",alignSelf:"flex-start",flexGrow:"0",flexShrink:"1",padding:"1rem","@sm":{fontSize:"1rem"},"&.visually-hidden":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}}),tv=(0,p.zo)("header",{display:"flex",backgroundColor:"transparent !important",justifyContent:"space-between",alignItems:"flex-start",width:"100%",["> ".concat(e8)]:{flexGrow:"1",flexShrink:"0"},form:{flexGrow:"0",flexShrink:"1"}}),tb=(0,p.zo)("div",{display:"flex",alignItems:"flex-end",justifyContent:"flex-end",padding:"1rem",flexShrink:"0",flexGrow:"1"});var tj=()=>{var e;let t=(0,a.Cu)(),{activeManifest:n,collection:o,configOptions:r,vault:l}=(0,a.D1)(),s=null==r?void 0:r.canvasHeight;return(0,i.jsx)("div",{style:{margin:"0.75rem"},children:(0,i.jsx)(e9,{label:o.label,maxHeight:s,value:n,onValueChange:e=>{t({type:"updateActiveManifest",manifestId:e}),t({type:"updateViewerId",viewerId:(0,F.Z)()})},children:null==o?void 0:null===(e=o.items)||void 0===e?void 0:e.map(e=>(0,i.jsx)(te,{value:e.id,thumbnail:(null==e?void 0:e.thumbnail)?l.get(null==e?void 0:e.thumbnail):void 0,label:e.label},e.id))})})};let ty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2500,{t:n}=(0,ek.$G)(),[i,a]=(0,o.useState)(""),r=(0,o.useCallback)(()=>{navigator.clipboard.writeText(e).then(()=>a(n("copySuccess")),()=>a(n("copyFailure")))},[e]);return(0,o.useEffect)(()=>{if(!i)return;let e=setTimeout(()=>a(""),t);return()=>clearTimeout(e)},[i]),[i,r]},tw=(0,p.zo)("span",{display:"flex",alignContent:"center",alignItems:"center",padding:"0.125rem 0.25rem 0",marginTop:"-0.125rem",marginLeft:"0.5rem",backgroundColor:"$accent",color:"$secondary",borderRadius:"3px",lineHeight:"1em"}),tC=e=>{let{status:t}=e;return t?(0,i.jsx)(tw,{"data-copy-status":t,children:t}):null};var tS=e=>{let{textPrompt:t,textToCopy:n}=e,[o,a]=ty(n);return(0,i.jsxs)("button",{onClick:a,children:[t," ",(0,i.jsx)(tC,{status:o})]})},tk=e=>{let{title:t}=e,n="#ed1d33",o="#2873ab";return(0,i.jsxs)("svg",{viewBox:"0 0 493.35999 441.33334",id:"iiif-logo",version:"1.1",children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("g",{transform:"matrix(1.3333333,0,0,-1.3333333,0,441.33333)",children:(0,i.jsxs)("g",{transform:"scale(0.1)",children:[(0,i.jsx)("path",{style:{fill:o},d:"M 65.2422,2178.75 775.242,1915 773.992,15 65.2422,276.25 v 1902.5"}),(0,i.jsx)("path",{style:{fill:o},d:"m 804.145,2640.09 c 81.441,-240.91 -26.473,-436.2 -241.04,-436.2 -214.558,0 -454.511,195.29 -535.9527,436.2 -81.4335,240.89 26.4805,436.18 241.0387,436.18 214.567,0 454.512,-195.29 535.954,-436.18"}),(0,i.jsx)("path",{style:{fill:n},d:"M 1678.58,2178.75 968.578,1915 969.828,15 1678.58,276.25 v 1902.5"}),(0,i.jsx)("path",{style:{fill:n},d:"m 935.082,2640.09 c -81.437,-240.91 26.477,-436.2 241.038,-436.2 214.56,0 454.51,195.29 535.96,436.2 81.43,240.89 -26.48,436.18 -241.04,436.18 -214.57,0 -454.52,-195.29 -535.958,-436.18"}),(0,i.jsx)("path",{style:{fill:o},d:"m 1860.24,2178.75 710,-263.75 -1.25,-1900 -708.75,261.25 v 1902.5"}),(0,i.jsx)("path",{style:{fill:o},d:"m 2603.74,2640.09 c 81.45,-240.91 -26.47,-436.2 -241.03,-436.2 -214.58,0 -454.52,195.29 -535.96,436.2 -81.44,240.89 26.48,436.18 241.03,436.18 214.57,0 454.51,-195.29 535.96,-436.18"}),(0,i.jsx)("path",{style:{fill:n},d:"m 3700.24,3310 v -652.5 c 0,0 -230,90 -257.5,-142.5 -2.5,-247.5 0,-336.25 0,-336.25 l 257.5,83.75 V 1690 l -258.61,-92.5 V 262.5 L 2735.24,0 v 2360 c 0,0 -15,850 965,950"})]})})]})},tz=n(5836);let tI=(0,p.zo)(tz.fC,{all:"unset",height:"2rem",width:"3.236rem",backgroundColor:"#6663",borderRadius:"9999px",position:"relative",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:focus":{boxShadow:"0 0 0 2px $secondaryAlt"},'&[data-state="checked"]':{backgroundColor:"$accent",boxShadow:"inset 2px 2px 5px #0003"}}),t$=(0,p.zo)(tz.bU,{display:"block",height:"calc(2rem - 12px)",width:"calc(2rem - 12px)",backgroundColor:"$secondary",borderRadius:"100%",boxShadow:"2px 2px 5px #0001",transition:"$all",transform:"translateX(6px)",willChange:"transform",'&[data-state="checked"]':{transform:"translateX(calc(1.236rem + 6px))"}}),tT=(0,p.zo)("label",{fontSize:"0.8333rem",fontWeight:"400",lineHeight:"1em",userSelect:"none",cursor:"pointer",paddingRight:"0.618rem"}),tA=(0,p.zo)("form",{display:"flex",flexShrink:"0",flexGrow:"1",alignItems:"center",marginLeft:"1.618rem"});var tM=()=>{var e;let{configOptions:t}=(0,a.D1)(),n=(0,a.Cu)(),{t:r}=(0,ek.$G)(),[l,s]=(0,o.useState)(null==t?void 0:null===(e=t.informationPanel)||void 0===e?void 0:e.open);return(0,o.useEffect)(()=>{n({type:"updateInformationOpen",isInformationOpen:l})},[l,n]),(0,i.jsxs)(tA,{children:[(0,i.jsx)(tT,{htmlFor:"information-toggle",css:l?{opacity:"1"}:{},children:r("informationPanelToggle")}),(0,i.jsx)(tI,{checked:l,onCheckedChange:()=>s(!l),id:"information-toggle","aria-label":r("informationPanelToggle"),name:"toggled?",children:(0,i.jsx)(t$,{})})]})};let tE=(0,p.zo)(eN.J2.Trigger,{width:"30px",padding:"5px",marginBottom:"auto"}),tR=(0,p.zo)(tf,{h3:{color:"$primaryAlt",fontSize:"$2",fontWeight:"700",margin:"$2 0"},button:{},"& ul li":{marginBottom:"$1"}});var tL=n(5112),tF=n(323);function tH(e,t){let n=[];if(!e)return n;for(let i of e)if(i.id){let e=t.get(i.id);e&&n.push(e)}return n}function tP(e,t){return e.map(e=>{let{format:n,id:i,label:o}=e;return{format:n,id:function(e){let{vault:t}=(0,a.D1)();try{let n=e&&t.get(e);if(!n)throw Error("Vault entity ".concat(e," not found."));return(null==n?void 0:n["@id"])||(null==n?void 0:n.id)}catch(t){return console.error(t),e}}(i),label:(0,tF.M)(o)||t}})}var tD=()=>{let{allPages:e,individualPages:t}=function(){let e=function(){let{activeCanvas:e,activeManifest:t,vault:n}=(0,a.D1)(),[i,r]=(0,o.useState)({root:[],canvas:[]});return(0,o.useEffect)(()=>{let i=n.get(t),o=n.get(e),a=null==i?void 0:i.rendering,l=null==o?void 0:o.rendering;r({root:tH(a,n),canvas:tH(l,n)})},[e,t,n]),{...i}}();return{allPages:tP((null==e?void 0:e.root)||[],"Root Rendering Label"),individualPages:tP((null==e?void 0:e.canvas)||[],"Canvas Rendering Label")}}(),n=e.length>0||t.length>0,r=e=>{window.open(e,"_blank")};return n?(0,i.jsxs)(eN.J2,{children:[(0,i.jsx)(tE,{"data-testid":"download-button",children:(0,i.jsx)(tL.J,{children:(0,i.jsx)(tL.J.Download,{})})}),(0,i.jsxs)(tR,{"data-testid":"download-content",children:[t.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h3",{children:"Individual Pages"}),(0,i.jsx)("ul",{children:t.map(e=>{let{format:t,id:n,label:o}=e;return(0,i.jsx)("li",{children:(0,i.jsxs)("button",{onClick:()=>r(n),children:[o," (",t,")"]})},o)})})]}),e.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h3",{children:"All Pages"}),(0,i.jsx)("ul",{children:e.map(e=>{let{format:t,id:n,label:o}=e;return(0,i.jsx)("li",{children:(0,i.jsxs)("button",{onClick:()=>r(n),children:[o," (",t,")"]})},o)})})]})]})]}):null};let tO=e=>{let t=()=>!!window.matchMedia&&window.matchMedia(e).matches,[n,i]=(0,o.useState)(t);return(0,o.useEffect)(()=>{let e=()=>i(t);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),n};var tV=e=>{let{manifestId:t,manifestLabel:n}=e,{collection:o,configOptions:r}=(0,a.D1)(),{informationPanel:l,showDownload:s,showIIIFBadge:d,showTitle:c}=r,u=s||d||(null==l?void 0:l.renderToggle),h=tO(p.BC.sm),{t:m}=(0,ek.$G)();return(0,i.jsxs)(tv,{className:"clover-viewer-header",children:[(null==o?void 0:o.items)?(0,i.jsx)(tj,{}):(0,i.jsx)(tx,{className:c?"":"visually-hidden",children:c&&(0,i.jsx)(ep.__,{label:n,className:"label"})}),u&&(0,i.jsxs)(tb,{children:[s&&(0,i.jsx)(tD,{}),d&&(0,i.jsxs)(eN.J2,{children:[(0,i.jsx)(tg,{children:(0,i.jsx)(tk,{title:m("commonShare")})}),(0,i.jsxs)(tf,{children:[(null==o?void 0:o.items)&&(0,i.jsx)("button",{onClick:e=>{e.preventDefault(),window.open(o.id,"_blank")},children:m("shareCollectionJson")}),(0,i.jsx)("button",{onClick:e=>{e.preventDefault(),window.open(t,"_blank")},children:m("shareManifestJson")})," ",(null==o?void 0:o.items)&&(0,i.jsx)(tS,{textPrompt:m("shareCollectionCopy"),textToCopy:o.id}),(0,i.jsx)(tS,{textPrompt:m("shareManifestCopy"),textToCopy:t})]})]}),(null==l?void 0:l.renderToggle)&&!h&&(0,i.jsx)(tM,{})]})]})};let tN=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[t,n]=(0,o.useState)(e);return(0,o.useLayoutEffect)(()=>{if(!t)return;let e=document.documentElement.style.overflow;return document.documentElement.style.overflow="hidden",()=>{document.documentElement.style.overflow=e}},[t]),(0,o.useEffect)(()=>{t!==e&&n(e)},[e]),[t,n]};var tB=e=>{var t;let{manifest:n,theme:r,iiifContentSearchQuery:g}=e,f=(0,a.D1)(),x=(0,a.Cu)(),{activeCanvas:v,isInformationOpen:b,vault:j,contentSearchVault:w,configOptions:C,openSeadragonViewer:S}=f,k=(null==C?void 0:C.canvasHeight)&&["100%","auto"].includes(null==C?void 0:C.canvasHeight),[z,I]=(0,o.useState)(!1),[$,T]=(0,o.useState)(!1),[A,M]=(0,o.useState)([]),[E,R]=(0,o.useState)([]),[L,F]=(0,o.useState)(),[H,P]=tN(!1),D=tO(p.BC.sm),[O,V]=(0,o.useState)(),N=(0,o.useCallback)(e=>{x({type:"updateInformationOpen",isInformationOpen:e})},[x]);(0,o.useEffect)(()=>{var e;(null==C?void 0:null===(e=C.informationPanel)||void 0===e?void 0:e.open)&&N(!D)},[D,null==C?void 0:null===(t=C.informationPanel)||void 0===t?void 0:t.open,N]),(0,o.useEffect)(()=>{if(!D){P(!1);return}P(b)},[b,D,P]),(0,o.useEffect)(()=>{let e=(0,d.G)(j,v);e&&(T(["Sound","Video"].indexOf(e[0].type)>-1),M(e)),c(j,v).then(e=>{e.length>0&&x({type:"updateInformationOpen",isInformationOpen:!0}),R(e),I(0!==e.length)})},[v,E.length,j,x]);let B=n.service.some(e=>"SearchService2"===e.type);return(0,o.useEffect)(()=>{if(B){let e=n.service.find(e=>"SearchService2"===e.type);e&&V(e.id)}},[n,B]),(0,o.useEffect)(()=>{var e,t,n;O&&(null===(e=C.informationPanel)||void 0===e?void 0:e.renderContentSearch)!==!1&&u(w,O,null===(n=C.localeText)||void 0===n?void 0:null===(t=n.contentSearch)||void 0===t?void 0:t.tabLabel,g).then(e=>{F(e)})},[O]),(0,o.useEffect)(()=>{if(!S||!L)return;let e=j.get({id:v,type:"Canvas"});(0,s.dH)(S,"content-search-overlay"),(0,s.LW)(w,L,S,e,C)},[S,L]),(0,i.jsx)(h.SV,{FallbackComponent:m.Z,children:(0,i.jsx)(y,{className:"".concat(r," clover-viewer"),css:{background:null==C?void 0:C.background},"data-body-locked":H,"data-absolute-position":k,"data-information-panel":z,"data-information-panel-open":b,children:(0,i.jsxs)(l.fC,{open:b,onOpenChange:N,children:[(0,i.jsx)(tV,{manifestLabel:n.label,manifestId:n.id}),(0,i.jsx)(tp,{activeCanvas:v,painting:A,annotationResources:E,searchServiceUrl:O,setContentSearchResource:F,contentSearchResource:L,items:n.items,isAudioVideo:$})]})})})},tG=n(1028);let tW={ignoreCache:!1,headers:{Accept:"application/json, text/javascript, text/plain"},timeout:5e3,withCredentials:!1};function t_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{ok:!1,status:e.status,statusText:e.statusText,headers:e.getAllResponseHeaders(),data:t||e.statusText,json:()=>JSON.parse(t||e.statusText)}}var tJ=n(9092);let tq=e=>{let{canvasIdCallback:t,customTheme:n,iiifContent:r,options:l,iiifContentSearchQuery:s}=e,d=(0,a.Cu)(),{activeCanvas:c,activeManifest:u,isLoaded:h,vault:m}=(0,a.D1)(),[p,g]=(0,o.useState)(),[f,x]=(0,o.useState)(),v={};return(n&&(v=(0,tG.jG)("custom",n)),(0,o.useEffect)(()=>{t&&t(c)},[c,t]),(0,o.useEffect)(()=>{u&&m.load(u).then(e=>{x(e),d({type:"updateActiveCanvas",canvasId:(0,tJ.FO)(r,e)})}).catch(e=>{console.error("Manifest failed to load: ".concat(e))}).finally(()=>{d({type:"updateIsLoaded",isLoaded:!0})})},[r,u,d,m]),(0,o.useEffect)(()=>{d({type:"updateConfigOptions",configOptions:l});let e=(0,tJ.Vu)(r);m.load(e).then(e=>{g(e)}).catch(e=>{console.error("The IIIF resource ".concat(r," failed to load: ").concat(e))})},[d,r,l,m]),(0,o.useEffect)(()=>{if((null==p?void 0:p.type)==="Collection"){d({type:"updateCollection",collection:p});let e=(0,tJ.Mx)(r,p);e&&d({type:"updateActiveManifest",manifestId:e})}else(null==p?void 0:p.type)==="Manifest"&&d({type:"updateActiveManifest",manifestId:p.id})},[d,r,p]),h)?f&&f.items?0===f.items.length?(console.log("The IIIF manifest ".concat(r," does not contain canvases.")),(0,i.jsx)(i.Fragment,{})):(0,i.jsx)(tB,{manifest:f,theme:v,iiifContentSearchQuery:s},f.id):(console.log("The IIIF manifest ".concat(r," failed to load.")),(0,i.jsx)(i.Fragment,{})):(0,i.jsx)(i.Fragment,{children:"Loading"})};var tZ=e=>{var t,n,o;let{canvasIdCallback:l=()=>{},customDisplays:s=[],plugins:d=[],customTheme:c,iiifContent:u,id:h,manifestId:m,options:p,iiifContentSearchQuery:g}=e,f=u;h&&(f=h),m&&(f=m);let x=(0,a.as)(null==p?void 0:null===(n=p.informationPanel)||void 0===n?void 0:null===(t=n.vtt)||void 0===t?void 0:t.autoScroll);return(0,i.jsx)(a.MY,{initialState:{...a.W2,customDisplays:s,plugins:d,isAutoScrollEnabled:x.enabled,isInformationOpen:!!(null==p?void 0:null===(o=p.informationPanel)||void 0===o?void 0:o.open),vault:new r.j({customFetcher:e=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tW,n=t.headers||tW.headers;return new Promise((i,o)=>{let a=new XMLHttpRequest;a.open("get",e),a.withCredentials=t.withCredentials,n&&Object.keys(n).forEach(e=>a.setRequestHeader(e,n[e])),a.onload=()=>{i({ok:a.status>=200&&a.status<300,status:a.status,statusText:a.statusText,headers:a.getAllResponseHeaders(),data:a.responseText,json:()=>JSON.parse(a.responseText)})},a.onerror=()=>{o(t_(a,"Failed to make request."))},a.ontimeout=()=>{o(t_(a,"Request took longer than expected."))},a.send()})})(e,{withCredentials:null==p?void 0:p.withCredentials,headers:null==p?void 0:p.requestHeaders}).then(e=>JSON.parse(e.data))})},children:(0,i.jsx)(tq,{iiifContent:f,canvasIdCallback:l,customTheme:c,options:p,iiifContentSearchQuery:g})})}},5162:function(e,t,n){n.d(t,{g:function(){return i}});let i=(e,t,n,i)=>{let o={canvas:void 0,accompanyingCanvas:void 0,annotationPage:void 0,annotations:[]};if(o.canvas=e.get(t),o.canvas){var a,r;o.annotationPage=e.get(o.canvas.items[0]),o.accompanyingCanvas=(null===(a=o.canvas)||void 0===a?void 0:a.accompanyingCanvas)?e.get(null===(r=o.canvas)||void 0===r?void 0:r.accompanyingCanvas):void 0}if(o.annotationPage){let a=e.get(o.annotationPage.items).map(t=>({body:e.get(t.body[0].id),motivation:t.motivation,type:"Annotation"})),r=[];a.forEach(t=>{"Choice"===t.body.type?t.body.items.forEach(n=>r.push({...t,id:n.id,body:e.get(n.id)})):r.push(t)}),o.annotations=r.filter(o=>{if(o){if(!o.body||!o.motivation){console.error("Invalid annotation after Hyperion parsing: missing either 'body' or 'motivation'",o);return}let a=o.body;Array.isArray(a)&&(a=a[0]);let r=e.get(a.id);if(r)switch(n){case"painting":return o.target===t.id&&o.motivation&&"painting"===o.motivation[0]&&i.includes(r.type)&&(o.body=r),!!o;case"supplementing":return;default:throw Error("Invalid annotation motivation.")}}})}return o}},9452:function(e,t,n){n.d(t,{G:function(){return o}});var i=n(5162);let o=(e,t)=>{let n=(0,i.g)(e,{id:t,type:"Canvas"},"painting",["Image","Sound","Video"]);if(0!==n.annotations.length&&n.annotations&&n.annotations)return n.annotations.map(e=>null==e?void 0:e.body)}},7178:function(e,t,n){var i=n(8289),o=n(9366),a=n(1795),r=JSON.parse('{"commonClose":"Close","commonNext":"Next","commonPrevious":"Previous","commonSearch":"Search","commonSearchPlaceholder":"Search...","commonShare":"Share","commonViewAll":"View All","copyFailure":"Failed","copySuccess":"Copied","informationPanelTabs":"Select","informationPanelTabsAbout":"About","informationPanelTabsAnnotations":"Annotations","informationPanelTabsSearch":"Search","informationPanelToggle":"More Information","shareCollectionJson":"View Collection","shareCollectionCopy":"Copy Collection URL","shareManifestJson":"View Manifest","shareManifestCopy":"Copy Manifest URL"}');let l="clover",s=Object.fromEntries(Object.entries({en:r,pt:{}}).map(e=>{let[t,n]=e;return[t,{["".concat(l)]:n}]}));o.ZP.use(i.Z).use(a.Db).init({defaultNS:l,fallbackLng:"en",ns:[l],resources:{...s}})}}]); \ No newline at end of file diff --git a/_next/static/chunks/991.5038083d38cc2ac5.js b/_next/static/chunks/991.5038083d38cc2ac5.js deleted file mode 100644 index ba8195eb6..000000000 --- a/_next/static/chunks/991.5038083d38cc2ac5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[991],{6991:function(e,t,n){n.r(t),n.d(t,{default:function(){return eg}});var i=n(2676),a=n(5271);let r={activeLanguages:void 0,annotations:[],manifest:void 0,options:{offset:0,figure:{display:"image-viewer",aspectRatio:100/61.8,width:"38.2%"},language:{defaultLanguages:void 0,enabled:!1,options:[]}},searchActiveMatch:void 0,searchMatches:void 0,searchString:void 0,vault:new(n(4340)).j};function o(e,t){switch(t.type){case"updateAnnotations":return{...e,annotations:t.payload};case"updateActiveLanguages":return{...e,activeLanguages:t.payload};case"updateSearchActiveMatch":return{...e,searchActiveMatch:t.payload};case"updateSearchMatches":return{...e,searchMatches:t.payload};case"updateSearchString":return{...e,searchString:t.payload};default:return e}}let l=(0,a.createContext)({dispatch:()=>null,state:r}),s=e=>{var t;let{children:n,manifest:s}=e,d={...r.options,...e.options},c=(null===(t=d.language)||void 0===t?void 0:t.defaultLanguages)||[],[u,p]=(0,a.useReducer)(o,{...r,activeLanguages:c,options:d});return(0,i.jsx)(l.Provider,{value:{state:{...u,manifest:s,options:d},dispatch:p},children:n})};var d=n(4384),c=n(8158);let u=(0,c.zo)("div",{display:"flex",flexDirection:"row",alignItems:"center",background:"$primary",filter:"drop-shadow(2px 2px 5px #0002)",borderRadius:"2rem"}),p=(0,c.zo)("div",{position:"absolute",zIndex:10,overflow:"hidden",height:"2rem",justifyContent:"space-between"}),h=(0,c.zo)("header",{fontSize:"1",paddingBottom:"1.618rem",position:"relative",display:"flex",justifyContent:"space-between",zIndex:2,".clover-scroll-header-label":{fontWeight:"400",fontSize:"1.25rem"}}),g=(0,c.zo)("section",{margin:"0",gap:"1rem",position:"relative",zIndex:0});var x=n(757),m=n(4868);let f=(0,c.zo)("div",{width:"2rem",height:"2rem",["".concat(m.tr)]:{background:"$primary",width:"inherit",height:"inherit",display:"flex",justifyContent:"center",borderRadius:"2rem",padding:"0",justifyItems:"center",flexDirection:"column",alignItems:"center","&:hover":{background:"$accent"},svg:{fill:"$secondary"}},["".concat(m.Hz)]:{"> label":{fontSize:"0.8333rem",display:"flex",marginBottom:"0.5rem"}}}),v=(0,c.zo)("div",{width:"1rem",height:"1rem",borderRadius:"3px",backgroundColor:"$secondaryMuted",border:"1px solid $secondaryAlt",display:"inline-flex",fontSize:"0.7222rem",alignContent:"center",justifyContent:"center",textAlign:"center",flexDirection:"column"}),b=(0,c.zo)(x.z$,{marginTop:"-1px"}),y=(0,c.zo)(x.fC,{display:"flex",alignContent:"center",alignItems:"center",gap:"0.5rem",backgroundColor:"transparent",border:"none",fontFamily:"inherit",fontSize:"1rem",marginTop:"0.25rem","&[data-state='checked']":{["".concat(v)]:{backgroundColor:"$accent",borderColor:"$accent",color:"$secondary"}}});var j=e=>{var t;let{lang:n,isChecked:r}=e,{state:o,dispatch:s}=(0,a.useContext)(l),{activeLanguages:d,options:c}=o,{language:u}=c,p=((null==u?void 0:null===(t=u.options)||void 0===t?void 0:t.find(e=>Object.keys(e)[0]===n))||n)[n]||n;return(0,i.jsxs)(y,{checked:r,onCheckedChange:e=>{s({type:"updateActiveLanguages",payload:e&&void 0!==d?[...d,n]:null==d?void 0:d.filter(e=>e!==n)})},children:[(0,i.jsx)(v,{children:(0,i.jsx)(b,{children:"✓"})}),p]})},w=n(8855),z=n(5323);let C=e=>{let{title:t,style:n={}}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:n,children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{d:"m455.77,49.65c-.53-.94-1.53-1.52-2.61-1.52h-1.46c-.9,0-1.76.41-2.33,1.11-7.48,9.2-14.92,20.42-22.14,33.34-.49.87-.51,1.93-.05,2.82,14.51,28.46,28.67,57.32,28.8,70.41-.1.12-.38.35-.96.57-.05.02-.1.04-.15.06-11.86,5.21-25.25,8.74-37.93,11.77-35.75,8.37-68.11,12.45-98.93,12.45-37.86,0-69.49-6.59-91.47-19.05-24.29-13.77-36.6-34.28-36.6-60.96,0-12.24,2.79-26.82,8.29-43.33.49-1.48-.23-3.1-1.67-3.71l-11.65-4.95c-1.43-.61-3.09-.02-3.82,1.35-11.8,22.23-17.54,45.74-17.54,71.9,0,35.09,14.3,62.03,42.49,80.08,24.82,15.89,60.52,24.29,103.24,24.29,57.18,0,132.5-18.87,159.14-35.1.42-.25.77-.61,1.02-1.03,8.99-15.08,15.86-28.36,15.86-50.18,0-35.58-22.59-78.13-29.52-90.32Z"}),(0,i.jsx)("path",{d:"m321.24,273.28c-1.26-.92-3.01-.72-4.03.45-8.38,9.62-16.7,20.51-23.73,29.88-.95,1.27-.75,3.06.46,4.09,2.19,1.86,4.38,3.71,6.55,5.54,9.53,8.05,18.54,15.66,27.7,24.35.58.55,1.32.82,2.06.82.69,0,1.38-.24,1.95-.72,9.71-8.28,17.81-17.85,24.79-29.26.71-1.16.55-2.65-.39-3.63-11.73-12.33-23.62-22.94-35.36-31.52Z"}),(0,i.jsx)("path",{d:"m256.38,433.6l-90-218c-4.64-11.23-17.5-16.58-28.73-11.94-5.41,2.23-9.71,6.53-11.94,11.94l-90,218c-4.69,11.21.59,24.1,11.8,28.79,11.21,4.69,24.1-.59,28.79-11.8.03-.07.06-.14.08-.2l18.33-44.39h102.67l18.33,44.39c3.4,8.24,11.43,13.61,20.34,13.61,12.15,0,21.99-9.86,21.99-22.01,0-2.88-.57-5.73-1.67-8.39h0Zm-143.5-71.6l33.17-80.35,33.17,80.35h-66.34Z"})]})};var k=()=>{let{state:e}=(0,a.useContext)(l),{activeLanguages:t,annotations:n}=e,r=n?(0,z.k)(n):[];return(0,i.jsx)(f,{children:(0,i.jsxs)(w.J2,{children:[(0,i.jsx)(w.J2.Trigger,{children:(0,i.jsx)(C,{title:"language",style:{width:"18px",height:"18px"}})}),(0,i.jsxs)(w.J2.Content,{children:[(0,i.jsx)("label",{children:"Language"}),r.map(e=>(0,i.jsx)(j,{isChecked:null==t?void 0:t.includes(e),lang:e},e))]})]})})},S=n(1390);let L="255, 197, 32";(0,c.zo)("span",{fontWeight:"700"}),(0,c.zo)("div",{display:"flex",gap:"0.25rem"});let E=(0,c.zo)("div",{fontSize:"0.9rem !important",color:"$secondaryAlt",margin:"0 0.5em"});(0,c.zo)("div",{display:"flex",flexDirection:"column",button:{backgroundColor:"#6660",opacity:"0.7",transition:"$all",padding:"0.5rem 0.618rem",fontSize:"0.9rem",lineHeight:"1.1rem",textAlign:"left",borderRadius:"2rem",border:"1px solid #6662",display:"flex",flexDirection:"column",gap:"0.25rem","&:hover":{opacity:"1",boxShadow:"5px 5px 13px #6662"},"&[data-result=true]":{backgroundColor:"rgba(".concat(L,", 0.2)"),borderColor:"rgba(".concat(L,", 0.2)"),opacity:"1","&:hover":{backgroundColor:"rgba(".concat(L,", 0.2)")}}}});let I=(0,c.zo)("input",{margin:"0",background:"none",zIndex:"2",justifyContent:"center",display:"flex",alignItems:"center",fontSize:"1rem",fontFamily:"inherit",outline:"none !important",border:"none !important",color:"$secondary",cursor:"pointer",boxSizing:"content-box !important",flexGrow:"0",width:"2rem"}),M=(0,c.zo)("button",{position:"absolute",zIndex:"3",border:"none",background:"transparent",color:"$secondary !important",fill:"$secondary !important",stroke:"$secondary !important",transition:"$all",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:"column",borderRadius:"2rem",height:"2rem",width:"2rem",svg:{color:"inherit",fill:"inherit",stroke:"inherit"}}),$=(0,c.zo)("button",{opacity:"1",alignSelf:"center",margin:"0 0.25rem",fill:"$secondary",flexShrink:"0",border:"none",background:"transparent",display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:"column",borderRadius:"2rem",height:"2rem",width:"2rem",svg:{color:"inherit",fill:"inherit"},'&[aria-disabled="true"]':{opacity:"0",display:"none"}}),A=(0,c.zo)("form",{display:"flex",justifyContent:"space-between",transition:"$all",flexGrow:"1",height:"2rem",variants:{isPanelExpanded:{true:{["".concat(M)]:{marginLeft:"0",cursor:"text"},["".concat(I)]:{width:"100%",padding:"0 1rem 0 2rem",cursor:"text"}},false:{"&:hover":{backgroundColor:"$accent !important",borderRadius:"2rem"},["".concat(M)]:{cursor:"pointer"},["".concat(I)]:{cursor:"pointer","&::placeholder":{color:"transparent !important"}}}}}}),R=(0,c.zo)("div",{display:"flex",alignItems:"center",gap:"0.25rem","&[data-active=true]":{paddingRight:"0.5rem"},button:{fontSize:"0.9em",fill:"$secondary",color:"$secondary",stroke:"$secondary",backgroundColor:"transparent",border:"none",svg:{fill:"inherit",color:"inherit",stroke:"inherit",width:"1.25em"}}});var D=e=>{let{activeIndex:t,searchString:n,total:a}=e,r=0===a?(0,i.jsxs)(i.Fragment,{children:["No results for ",(0,i.jsx)("strong",{children:n})]}):(0,i.jsxs)(i.Fragment,{children:[t+1," of ",a," results for ",(0,i.jsx)("strong",{children:n})]});return(0,i.jsx)(E,{children:r})};let P=e=>{let{title:t,style:n={}}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:n,children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"45",d:"M244 400L100 256l144-144M120 256h292"})]})},B={charset:"latin:extra, arabic:extra, cyrillic:extra, cjk:extra",optimize:!0,tokenize:"full",resolution:9,document:{id:"id",index:"content"}};var F=()=>{let[e,t]=(0,a.useState)(0),{dispatch:n,state:r}=(0,a.useContext)(l),{activeLanguages:o,annotations:s,searchString:d=""}=r,c=new S.Z.Document(B),u=[];null==s||s.forEach(e=>{var t;null==e||null===(t=e.body)||void 0===t||t.forEach(e=>{var t;if(!(null==o?void 0:o.includes(String(e.language))))return;let n=null==e?void 0:null===(t=e.value)||void 0===t?void 0:t.replace(/\n/g,"");u.push(null==e?void 0:e.id),c.add({id:null==e?void 0:e.id,content:n})})});let p=function(e,t){let n=RegExp(t,"gi"),i={total:0,matches:[]};return e.forEach(e=>{let t;let a=e.body.id,r=e.body.value,o=[],l=0;for(console.log(t);null!==(t=n.exec(r));)l++,o.push("".concat(a,"/").concat(l));l>0&&(i.total+=l,i.matches.push({[a]:o}))}),i}((null==c?void 0:c.search(d).reduce((e,t)=>[...new Set([...e,...t.result])],[])).map(e=>null==s?void 0:s.filter(t=>t.body.find(t=>t.id===e)).map(t=>{let n=t.body.findIndex(t=>t.id===e);return{...t,body:t.body[n]}}).shift()),d),h=p.matches.flatMap(e=>Object.values(e).flat());return(0,a.useEffect)(()=>{t(0),n({type:"updateSearchMatches",payload:p}),n({type:"updateSearchActiveMatch",payload:void 0})},[d]),(0,a.useEffect)(()=>{n({type:"updateSearchActiveMatch",payload:h[e]})},[e,d]),(0,i.jsxs)(R,{"data-active":!!d,children:[d&&(0,i.jsx)(D,{activeIndex:e,searchString:d,total:p.total}),(null==p?void 0:p.total)!==0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{onClick:()=>t(e=>e>0?e-1:h.length-1),children:(0,i.jsx)(P,{title:"previous",style:{transform:"rotate(90deg)"}})}),(0,i.jsx)("button",{onClick:()=>t(e=>e(0,i.jsxs)("svg",{style:{width:"16px",height:"16px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:"search"}),(0,i.jsx)("path",{d:"M456.69 421.39L362.6 327.3a173.81 173.81 0 0034.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 00327.3 362.6l94.09 94.09a25 25 0 0035.3-35.3zM97.92 222.72a124.8 124.8 0 11124.8 124.8 124.95 124.95 0 01-124.8-124.8z"})]}),T=()=>(0,i.jsxs)("svg",{style:{width:"16px",height:"16px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,i.jsx)("title",{children:"close"}),(0,i.jsx)("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})]});var W=e=>{let{togglePanel:t,isPanelExpanded:n}=e,{dispatch:r,state:o}=(0,a.useContext)(l),{searchString:s}=o,d=(0,a.useRef)(null),c=()=>d.current===document.activeElement&&t(!0),u=()=>{var e;null===(e=d.current)||void 0===e||e.blur(),p(),t(!1),r({payload:"",type:"updateSearchString"}),r({payload:void 0,type:"updateSearchActiveMatch"})},p=()=>{d.current&&(d.current.value="")},h=e=>{"Escape"===e.key&&(e.preventDefault(),u())};return(0,a.useEffect)(()=>{var e;return null===(e=document)||void 0===e||e.addEventListener("keydown",h),()=>{var e;null===(e=document)||void 0===e||e.removeEventListener("keydown",h)}},[]),(0,a.useEffect)(()=>{if(null==d?void 0:d.current)return d.current.addEventListener("focus",c),d.current.addEventListener("blur",c),()=>{d.current&&(d.current.removeEventListener("focus",c),d.current.removeEventListener("blur",c))}},[]),(0,i.jsxs)(A,{id:"scroll-search",autoComplete:"off",isPanelExpanded:n,"data-testid":"scroll-panel-search-form",children:[(0,i.jsx)(M,{onClick:e=>{var t;e.preventDefault(),null==d||null===(t=d.current)||void 0===t||t.focus()},children:(0,i.jsx)(H,{})}),(0,i.jsx)(I,{ref:d,name:"clover-search",type:"text",placeholder:"Search...",defaultValue:s,onChange:e=>{var t;r({payload:null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.value,type:"updateSearchString"})}}),(0,i.jsx)($,{"aria-disabled":!n,"aria-label":"Close search panel",onClick:e=>{e.preventDefault(),u()},disabled:!n,children:(0,i.jsx)(T,{})})]})};let V=(0,c.zo)("div",{display:"flex",position:"relative",zIndex:"1",maxWidth:"100%",transition:"$all",variants:{isPanelExpanded:{true:{zIndex:1,opacity:1,transform:"translateX(0)"},false:{zIndex:-1,opacity:0,transform:"translateX(-2.618rem)",transitionDelay:"0",transition:"none"}}}});var _=e=>{let{width:t,isFixed:n}=e,r=(0,a.useRef)(null),[o,s]=a.useState(!1),{state:d}=(0,a.useContext)(l),{options:c}=d,{offset:h,language:g}=c,x=null==g?void 0:g.enabled,m=x?4.5:2;return(0,i.jsxs)(p,{ref:r,"data-testid":"scroll-panel",style:{display:o?"unset":"inline-flex",left:o?"unset":n?"unset":"calc(".concat(t,"px - ").concat(m,"rem)"),marginLeft:o?"-".concat(t,"px"):n?"-".concat(m,"rem"):"unset",width:o?t:"".concat(m,"rem"),...n?{position:"fixed",top:n?h:0}:{}},children:[!o&&x&&(0,i.jsx)(k,{}),(0,i.jsxs)(u,{children:[(0,i.jsx)(W,{togglePanel:function(e){s(e)},isPanelExpanded:o}),(0,i.jsx)(V,{"data-testid":"scroll-panel-results","data-panel-expanded":o,isPanelExpanded:o,children:o&&(0,i.jsx)(F,{})})]})]})},J=e=>{let{label:t}=e,{state:n}=(0,a.useContext)(l),{options:r}=n,{offset:o}=r,s=(0,a.useRef)(null),[c,u]=(0,a.useState)(0),[p,g]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=s.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e)t.contentRect&&u(t.contentRect.width)});return t.observe(e),()=>{t.disconnect()}},[]),(0,a.useEffect)(()=>{let e=()=>{let e=s.current;e&&(e.getBoundingClientRect().top<=o?g(!0):g(!1))};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,i.jsxs)(h,{ref:s,children:[(0,i.jsx)(d.__,{label:t,className:"clover-scroll-header-label"}),(0,i.jsx)("div",{children:(0,i.jsx)(_,{width:c,isFixed:p})})]})};let N=(0,c.zo)("article",{transition:"all 0.382s ease-in-out",display:"flex",flexDirection:"row",flexWrap:"nowrap",gap:"2.618rem"}),O=(0,c.zo)("div",{transition:"$all",flexShrink:0}),G=(0,c.zo)("div",{display:"flex",flexGrow:1,flexDirection:"column",justifyContent:"flex-start","> div":{display:"flex",flexDirection:"row",gap:"2.618rem","> div":{width:"calc(100% / var(--num-items))",boxSizing:"border-box"}}}),Z=(0,c.zo)("hr",{margin:"0",borderColor:"transparent",height:"1.618rem",position:"relative",width:"61.8%",zIndex:0,marginLeft:"38.2%",display:"flex",justifyContent:"flex-end","&::before":{content:"attr(aria-label)",position:"absolute",right:"1.618rem",bottom:"0",zIndex:1,display:"flex",fontSize:"0.7222rem",fontWeight:"400",lineHeight:"1rem",background:"inherit",opacity:.7},"&::after":{content:"",width:"calc(100% - 2.618em)",position:"absolute",zIndex:0,height:"1px",background:"#6662"}}),Y=(0,c.zo)("div",{display:"flex",flexDirection:"column",gap:"2.618rem","&[data-figures-visible='true']":{["& ".concat(O)]:{opacity:1,zIndex:0,transform:"translateX(0)"}}});var X=n(1675);let q=(0,c.zo)(X.o,{}),K=(0,c.zo)("figure",{figcaption:{display:"flex",flexDirection:"column",margin:"1.618rem 0 0",opacity:.9,gap:"0.382rem",em:{fontSize:"0.9em",fontStyle:"normal",opacity:.7}}});var Q=e=>{let{canvas:t,canvasInfo:{current:n,total:a}}=e;return(0,i.jsxs)("figcaption",{children:[(0,i.jsxs)("em",{children:[n," / ",a]}),(null==t?void 0:t.label)&&(0,i.jsx)(d.__,{label:null==t?void 0:t.label}),(null==t?void 0:t.summary)&&(0,i.jsx)(d.ER,{summary:null==t?void 0:t.summary,as:"p"})]})},U=n(1338);let ee=(0,c.zo)("div",{width:"100%",height:"100%",background:"#6662",backgroundSize:"contain",color:"white",position:"relative",zIndex:"1",overflow:"hidden"});var et=a.memo(e=>{let{body:t,label:n}=e;return(0,i.jsx)(ee,{"data-testid":"scroll-figure-image",children:(0,i.jsx)(U.default,{body:t,openSeadragonConfig:{showNavigator:!1,showHomeControl:!1},...n&&{label:n}})})}),en=a.memo(e=>{let{body:t,label:n}=e;return(0,i.jsx)(ee,{"data-testid":"scroll-figure-thumbnail",children:(0,i.jsx)(d.pl,{thumbnail:[t],style:{width:"100%",height:"100%",objectFit:"contain",objectPosition:"center"},altAsLabel:n})})}),ei=n(9822),ea=e=>{let{canvas:t,canvasInfo:n}=e,{state:o}=(0,a.useContext)(l),{vault:s,options:d}=o,{figure:c}=d,u=c.display?c.display:r.options.figure.display,p=c.aspectRatio?c.aspectRatio:r.options.figure.aspectRatio,h=(0,ei.G)(s,t.id);return h?(0,i.jsxs)(K,{children:[null==h?void 0:h.map(e=>(0,i.jsxs)(q,{ratio:p,children:["thumbnail"===u&&(0,i.jsx)(en,{body:e,label:null==t?void 0:t.label}),"image-viewer"===u&&(0,i.jsx)(et,{label:null==t?void 0:t.label,body:e})]},null==e?void 0:e.id)),(0,i.jsx)(Q,{canvas:t,canvasInfo:n})]}):null};let er="255, 197, 32",eo=(0,c.zo)("div",{opacity:"1","&[dir=rtl]":{textAlign:"right"},"&[data-active-language=false]":{opacity:"0",width:"0",height:"0"},ul:{padding:"1rem"},li:{listStyleType:"disc",li:{listStyleType:"circle"}},"span.clover-scroll-highlight":{position:"relative",fontWeight:"bold","&.active":{"&::before":{top:"0",position:"absolute",display:"inline",content:"",width:"calc(100% + 4px)",height:"calc(100% + 2px) ",marginLeft:"-2px",borderRadius:"3px",border:"1px solid rgba(".concat(er,", 0.2)"),borderBottom:"1px solid rgba(".concat(er,", 0.618)"),boxShadow:"1px 1px 1px #6661"},"&::after":{left:"0",top:"0",position:"absolute",display:"inline",content:"",width:"calc(100% + 4px)",height:"calc(100% + 2px) ",marginLeft:"-2px",marginTop:"-1px",borderRadius:"3px",backgroundColor:"rgba(".concat(er,", 0.2)"),zIndex:-1}},"&::before":{top:"0",position:"absolute",display:"inline",content:"",width:"calc(100% + 4px)",height:"calc(100% + 2px) ",marginLeft:"-2px",borderRadius:"3px",border:"1px solid #6663",borderBottom:"1px solid #6664",boxShadow:"1px 1px 1px #6661"},"&::after":{left:"0",top:"0",position:"absolute",display:"inline",content:"",width:"calc(100% + 4px)",height:"calc(100% + 2px) ",marginLeft:"-2px",marginTop:"-1px",borderRadius:"3px",backgroundColor:"#6661",zIndex:-1}}}),el=e=>{let{searchString:t="",content:n,stringLength:i=150}=e,a=n.toLowerCase().indexOf(t.toLowerCase());if(-1!==a){let e=Math.max(0,a-i/2),r=Math.min(n.length,a+t.length+i/2);if(e>0){let t=n.lastIndexOf(" ",e+1);e=t>0?t+1:e}if(r-1?e:r}n=(e>0?"... ":"")+n.substring(e,r)+(r{let t,{body:n,numItems:r=1,stringLength:o,type:s="content"}=e,{state:d}=(0,a.useContext)(l),{activeLanguages:c,searchActiveMatch:u,searchString:p}=d,h=String(n.value);"snippet"==s&&(h=el({searchString:p,content:h,stringLength:o}));let g=(0,es.Z)(h);if("text/plain"===n.format&&(t=null==h?void 0:h.replace(/\n/g,"
")),"text/markdown"===n.format&&(t=null==g?void 0:g.html),"text/html"===n.format&&(t=h),String(p)&&t){let e=1,i=RegExp("(".concat(p,")"),"gi");t=null==t?void 0:t.replace(i,t=>{let i="".concat(n.id,"/").concat(e),a=u===i;return e+=1,'').concat(t,"")})}let x=[n.id,s].join("-"),m=["ar"].includes(String(n.language)),f=String(n.language);return((0,a.useEffect)(()=>{if(u){let e=document.querySelector('[data-index="'.concat(u,'"]'));e&&e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}},[u]),t)?(0,i.jsx)(eo,{dangerouslySetInnerHTML:{__html:t},"data-active-language":null==c?void 0:c.includes(f),"data-body-id":x,"data-testid":"scroll-item-body",style:{"--num-items":r},id:x,dir:m?"rtl":"ltr",css:{fontSize:m?"1.3em":"1em"},lang:f}):null},ec=a.memo(e=>{var t;let{hasItemBreak:n,isLastItem:o,item:s,itemCount:d,itemNumber:c}=e,{state:u}=a.useContext(l),{activeLanguages:p,annotations:h,vault:g,options:x}=u,{figure:m}=x,f=null==g?void 0:g.get(s),v=null==p?void 0:p.length,b=null==h?void 0:null===(t=h.filter(e=>{var t,n;return(null===(n=e.target)||void 0===n?void 0:null===(t=n.source)||void 0===t?void 0:t.id)===s.id}))||void 0===t?void 0:t.map(e=>null==e?void 0:e.body.map((e,t)=>(0,i.jsx)(ed,{body:e,numItems:v},t)));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(N,{"data-page-break":n,"data-page-number":c,"data-last-item":o,children:[(0,i.jsx)(O,{css:{width:m.width?m.width:r.options.figure.width},"data-width":m.width,children:f&&(0,i.jsx)(ea,{canvas:f,canvasInfo:{current:c,total:d}})}),(0,i.jsx)(G,{children:(0,i.jsx)("div",{children:(null==b?void 0:b.length)?b:(0,i.jsx)("p",{children:"[Blank]"})})})]}),n&&(0,i.jsx)(Z,{"aria-label":"Page Break"})]})}),eu=e=>{let{items:t}=e;return(0,i.jsx)(Y,{children:t.map((e,n)=>{let a=n+1,r=a===t.length;return(0,i.jsx)(ec,{item:e,hasItemBreak:a{let[n,i]=(0,a.useState)([]);return(0,a.useEffect)(()=>{if(!t)return;let n=[];null==e||e.forEach(e=>{var i;let a=t.get(e);null==a||null===(i=a.annotations)||void 0===i||i.forEach(e=>{var i;let a=t.get(e);null==a||null===(i=a.items)||void 0===i||i.forEach(e=>{let i=t.get(e);if(i){var a;n.push({...i,body:null==i?void 0:null===(a=i.body)||void 0===a?void 0:a.map(e=>t.get(e))})}})})}),i(n.reduce((e,t)=>(e.some(e=>e.id===t.id)||e.push(t),e),[]))},[e,t]),n};let eh=e=>{let{iiifContent:t}=e,[n,r]=(0,a.useState)(),{state:o,dispatch:s}=(0,a.useContext)(l),{options:d,vault:c}=o,u=ep(null==n?void 0:n.items,c);return((0,a.useEffect)(()=>{c&&c.load(t).then(e=>e&&r(e)).catch(e=>console.error("Manifest ".concat(t," failed to load: ").concat(e)))},[t]),(0,a.useEffect)(()=>{var e;let t=(null==d?void 0:null===(e=d.language)||void 0===e?void 0:e.defaultLanguages)||(0,z.k)(u);console.log(u),s({type:"updateAnnotations",payload:u}),s({type:"updateActiveLanguages",payload:t})},[u]),n)?(0,i.jsx)(g,{children:n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(J,{label:null==n?void 0:n.label}),(0,i.jsx)(eu,{items:n.items})]})}):null};var eg=e=>{let{iiifContent:t,options:n}=e;return(0,i.jsx)(s,{options:n,children:(0,i.jsx)(eh,{iiifContent:t})})}},7097:function(e,t,n){n.d(t,{x:function(){return i}});let i=(0,n(8158).zo)("svg",{display:"inline-flex",variants:{isLarge:{true:{height:"4rem",width:"4rem"}},isMedium:{true:{height:"2rem",width:"2rem"}},isSmall:{true:{height:"1rem",width:"1rem"}}}})},8622:function(e,t,n){n.d(t,{J:function(){return r}});var i=n(2676);n(5271);var a=n(7097);let r=e=>(0,i.jsx)(a.x,{...e,"data-testid":"icon-svg",role:"img",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:e.children});r.Title=e=>{let{children:t}=e;return(0,i.jsx)("title",{children:t})},r.Add=()=>(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288M400 256H112"}),r.Audio=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M232 416a23.88 23.88 0 01-14.2-4.68 8.27 8.27 0 01-.66-.51L125.76 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.75l91.37-74.81a8.27 8.27 0 01.66-.51A24 24 0 01256 120v272a24 24 0 01-24 24zm-106.18-80zm-.27-159.86zM320 336a16 16 0 01-14.29-23.19c9.49-18.87 14.3-38 14.3-56.81 0-19.38-4.66-37.94-14.25-56.73a16 16 0 0128.5-14.54C346.19 208.12 352 231.44 352 256c0 23.86-6 47.81-17.7 71.19A16 16 0 01320 336z"}),(0,i.jsx)("path",{d:"M368 384a16 16 0 01-13.86-24C373.05 327.09 384 299.51 384 256c0-44.17-10.93-71.56-29.82-103.94a16 16 0 0127.64-16.12C402.92 172.11 416 204.81 416 256c0 50.43-13.06 83.29-34.13 120a16 16 0 01-13.87 8z"}),(0,i.jsx)("path",{d:"M416 432a16 16 0 01-13.39-24.74C429.85 365.47 448 323.76 448 256c0-66.5-18.18-108.62-45.49-151.39a16 16 0 1127-17.22C459.81 134.89 480 181.74 480 256c0 64.75-14.66 113.63-50.6 168.74A16 16 0 01416 432z"})]}),r.Close=()=>(0,i.jsx)("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}),r.Download=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M336 176h40a40 40 0 0140 40v208a40 40 0 01-40 40H136a40 40 0 01-40-40V216a40 40 0 0140-40h40",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}),(0,i.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M176 272l80 80 80-80M256 48v288"})]}),r.Image=()=>(0,i.jsx)("path",{d:"M416 64H96a64.07 64.07 0 00-64 64v256a64.07 64.07 0 0064 64h320a64.07 64.07 0 0064-64V128a64.07 64.07 0 00-64-64zm-80 64a48 48 0 11-48 48 48.05 48.05 0 0148-48zM96 416a32 32 0 01-32-32v-67.63l94.84-84.3a48.06 48.06 0 0165.8 1.9l64.95 64.81L172.37 416zm352-32a32 32 0 01-32 32H217.63l121.42-121.42a47.72 47.72 0 0161.64-.16L448 333.84z"}),r.Video=()=>(0,i.jsx)("path",{d:"M464 384.39a32 32 0 01-13-2.77 15.77 15.77 0 01-2.71-1.54l-82.71-58.22A32 32 0 01352 295.7v-79.4a32 32 0 0113.58-26.16l82.71-58.22a15.77 15.77 0 012.71-1.54 32 32 0 0145 29.24v192.76a32 32 0 01-32 32zM268 400H84a68.07 68.07 0 01-68-68V180a68.07 68.07 0 0168-68h184.48A67.6 67.6 0 01336 179.52V332a68.07 68.07 0 01-68 68z"})},4868:function(e,t,n){n.d(t,{Hz:function(){return d},bC:function(){return l},tr:function(){return c},uv:function(){return u},yP:function(){return s}});var i=n(9454),a=n(8158);let r=(0,a.F4)({"0%":{opacity:0,transform:"translateY(1rem)"},"100%":{opacity:1,transform:"translateY(0)"}}),o=(0,a.F4)({"0%":{opacity:0,transform:"translateY(1rem)"},"100%":{opacity:1,transform:"translateY(0)"}}),l=(0,a.zo)(i.Eh,{fill:"$secondaryAlt"}),s=(0,a.zo)(i.x8,{position:"absolute",right:"0",top:"0",padding:"0.5rem",margin:"0",cursor:"pointer",border:"none",background:"none",fill:"inherit","&:hover":{opacity:"0.75"}}),d=(0,a.zo)(i.VY,{border:"none",backgroundColor:"white",fill:"inhrerit",padding:"1rem 2rem 1rem 1rem",width:"auto",minWidth:"200px",maxWidth:"350px",borderRadius:"3px",boxShadow:"5px 5px 13px #0002",animationDuration:"0.3s",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",'&[data-side="top"]':{animationName:o},'&[data-side="bottom"]':{animationName:r},'&[data-align="end"]':{["& ".concat(l)]:{margin:"0 0.7rem"}}}),c=(0,a.zo)(i.xz,{display:"inline-flex",padding:"0.5rem 0",margin:"0 0.5rem 0 0",cursor:"pointer",border:"none",background:"none","> button, > span":{margin:"0"}}),u=(0,a.zo)(i.fC,{boxSizing:"content-box"})},8855:function(e,t,n){n.d(t,{JO:function(){return i.J},J2:function(){return o},Vp:function(){return s}});var i=n(8622),a=n(2676),r=n(4868);n(5271);let o=e=>{let{children:t}=e;return(0,a.jsx)(r.uv,{children:t})};o.Trigger=e=>(0,a.jsx)(r.tr,{...e,children:e.children}),o.Content=e=>(0,a.jsxs)(r.Hz,{...e,sideOffset:5,collisionPadding:21,children:[(0,a.jsx)(r.bC,{}),(0,a.jsx)(r.yP,{children:(0,a.jsx)(i.J,{isSmall:!0,children:(0,a.jsx)(i.J.Close,{})})}),e.children]});var l=n(7097);let s=(0,n(8158).zo)("div",{boxSizing:"border-box",display:"inline-flex",alignItems:"center",borderRadius:"5px",padding:"$1",marginBottom:"$2",marginRight:"$2",backgroundColor:"$lightGrey",color:"$richBlack50",textTransform:"uppercase",fontSize:"$2",objectFit:"contain",lineHeight:"1em !important","&:last-child":{marginRight:"0"},["".concat(l.x)]:{position:"absolute",left:"$1",height:"$3",width:"$3"},variants:{isIcon:{true:{position:"relative",paddingLeft:"$5"}}}})},9854:function(e,t,n){n.d(t,{g:function(){return i}});let i=(e,t,n,i)=>{let a={canvas:void 0,accompanyingCanvas:void 0,annotationPage:void 0,annotations:[]};if(a.canvas=e.get(t),a.canvas){var r,o;a.annotationPage=e.get(a.canvas.items[0]),a.accompanyingCanvas=(null===(r=a.canvas)||void 0===r?void 0:r.accompanyingCanvas)?e.get(null===(o=a.canvas)||void 0===o?void 0:o.accompanyingCanvas):void 0}if(a.annotationPage){let r=e.get(a.annotationPage.items).map(t=>({body:e.get(t.body[0].id),motivation:t.motivation,type:"Annotation"})),o=[];r.forEach(t=>{"Choice"===t.body.type?t.body.items.forEach(n=>o.push({...t,id:n.id,body:e.get(n.id)})):o.push(t)}),a.annotations=o.filter(a=>{if(a){if(!a.body||!a.motivation){console.error("Invalid annotation after Hyperion parsing: missing either 'body' or 'motivation'",a);return}let r=a.body;Array.isArray(r)&&(r=r[0]);let o=e.get(r.id);if(o)switch(n){case"painting":return a.target===t.id&&a.motivation&&"painting"===a.motivation[0]&&i.includes(o.type)&&(a.body=o),!!a;case"supplementing":return;default:throw Error("Invalid annotation motivation.")}}})}return a}},9822:function(e,t,n){n.d(t,{G:function(){return a}});var i=n(9854);let a=(e,t)=>{let n=(0,i.g)(e,{id:t,type:"Canvas"},"painting",["Image","Sound","Video"]);if(0!==n.annotations.length&&n.annotations&&n.annotations)return n.annotations.map(e=>null==e?void 0:e.body)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/992.157e6798e51324d1.js b/_next/static/chunks/992.157e6798e51324d1.js deleted file mode 100644 index 3537aa406..000000000 --- a/_next/static/chunks/992.157e6798e51324d1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[992],{9219:function(t,n,r){r.d(n,{M:function(){return u},Y:function(){return e}});let e=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";if(!t)return null;if("string"==typeof t)return[t];if(!t[n]){let n=Object.getOwnPropertyNames(t);if(n.length>0)return t[n[0]]}return t[n]&&Array.isArray(t[n])?t[n]:null},u=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ",u=e(t,n);return Array.isArray(u)?u.join("".concat(r)):u}},1644:function(t,n,r){r.d(n,{KT:function(){return c},RH:function(){return i},rJ:function(){return u},un:function(){return o}});let e=t=>{let n=t.toString().split(":"),r=Math.ceil(parseInt(n[0])),e=Math.ceil(parseInt(n[1])),u=a(Math.ceil(parseInt(n[2])),2),i=0!==r&&e<10?(e+"").padStart(2,"0"):e,o="".concat(i,":").concat(u);return 0!==r&&(o="".concat(r,":").concat(o)),o},u=t=>e(new Date(1e3*t).toISOString().substr(11,8)),i=(t,n)=>{if("object"!=typeof t||null===t)return n;for(let r in n)"object"!=typeof n[r]||null===n[r]||Array.isArray(n[r])?t[r]=n[r]:(t[r]||(t[r]={}),t[r]=i(t[r],n[r]));return t},o=t=>t.split("").reduce(function(t,n){return(t=(t<<5)-t+n.charCodeAt(0))&t},0),c=(t,n)=>Object.hasOwn(t,n)?t[n].toString():void 0,a=(t,n)=>String(t).padStart(n,"0")}}]); \ No newline at end of file diff --git a/_next/static/chunks/framework-d6eed9637a0a98bd.js b/_next/static/chunks/framework-861465232b9a69c0.js similarity index 99% rename from _next/static/chunks/framework-d6eed9637a0a98bd.js rename to _next/static/chunks/framework-861465232b9a69c0.js index 2144c3dd3..5653775b0 100644 --- a/_next/static/chunks/framework-d6eed9637a0a98bd.js +++ b/_next/static/chunks/framework-861465232b9a69c0.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{8161:function(e,t,n){var r=n(5271);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n