@uniweb/runtime 0.9.6 → 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/_importmap/@uniweb-core.js +0 -1
- package/dist/app/_importmap/react-dom-server.js +0 -1
- package/dist/app/_importmap/react-dom.js +0 -1
- package/dist/app/_importmap/react-jsx-dev-runtime.js +0 -1
- package/dist/app/_importmap/react-jsx-runtime.js +0 -1
- package/dist/app/_importmap/react.js +0 -1
- package/dist/app/assets/_commonjsHelpers-CqkleIqs.js +0 -1
- package/dist/app/assets/_importmap_react-CrAkajDz.js +0 -1
- package/dist/app/assets/core-BI26Dvfl.js +0 -1
- package/dist/app/assets/index-CxUeIbEw.js +0 -1
- package/dist/app/assets/{index-C-EVgXSD.js → index-Dfiy0YWz.js} +1 -2
- package/dist/app/assets/index-VvOM7xKK.js +0 -1
- package/dist/app/assets/jsx-runtime-0PlsXv6K.js +0 -1
- package/dist/app/index.html +1 -1
- package/dist/app/manifest.json +2 -2
- package/package.json +2 -2
- package/src/foundation-loader.js +19 -15
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{B as s,D as t,b as l,e as r,E as i,F as o,O as c,P as h,T as m,U as n,W as u,f as D,j as b,c as g,d as U,k as v,l as S,h as d,o as L,a as R,p as y,q as P,m as W,t as f,u as w,v as A,w as F,x as T,r as k,s as p,y as q}from"../assets/core-BI26Dvfl.js";export{s as Block,t as DATA_DIR,l as DATA_URL_PREFIX,r as DataStore,i as EntityStore,o as FetcherDispatcher,c as ObservableState,h as Page,m as Theme,n as Uniweb,u as Website,D as collectionDataUrl,b as collectionNameFromUrl,g as createUniweb,U as deriveCacheKey,v as evaluateWhere,S as getUniweb,d as hasDarkScheme,L as isDataUrl,R as isRichSchema,y as isWildcardLanguages,P as listRequestStyleNames,W as matchWhere,f as normalizeLanguageList,w as normalizeSchema,A as recordDataUrl,F as resolveDefaultLocale,T as resolvePublishableLocales,k as resolveRequestStyle,p as substitutePlaceholders,q as validateLanguageConfig};
|
|
2
|
-
//# sourceMappingURL=@uniweb-core.js.map
|
|
@@ -51,4 +51,3 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
51
51
|
`+n;break n}t=ye(t+(e?" ["+e+"]":""))}return t}}switch(n){case $e:return ye("SuspenseList");case $l:return ye("Suspense")}return""}function rl(n,e){return(500<e.byteSize||Tr(e.contentState))&&e.contentPreamble===null}function wr(n){if(typeof n=="object"&&n!==null&&typeof n.environmentName=="string"){var e=n.environmentName;n=[n].slice(0),typeof n[0]=="string"?n.splice(0,1,"%c%s%c "+n[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+e+" ",""):n.splice(0,0,"%c%s%c","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+e+" ",""),n.unshift(console),e=Et.apply(console.error,n),e()}else console.error(n);return null}function ze(n,e,t,a,f,h,d,b,g,y,T){var R=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=n,this.renderState=e,this.rootFormatContext=t,this.progressiveChunkSize=a===void 0?12800:a,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=R,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=f===void 0?wr:f,this.onPostpone=y===void 0?F:y,this.onAllReady=h===void 0?F:h,this.onShellReady=d===void 0?F:d,this.onShellError=b===void 0?F:b,this.onFatalError=g===void 0?F:g,this.formState=T===void 0?null:T}function He(n,e,t,a,f,h,d,b,g,y,T,R){return e=new ze(e,t,a,f,h,d,b,g,y,T,R),t=tl(e,0,null,a,!1,!1),t.parentFlushed=!0,n=Jl(e,null,n,-1,null,t,null,null,e.abortableTasks,null,a,null,o,null,null),Ql(n),e.pingedTasks.push(n),e}function Cr(n,e,t,a,f,h,d,b,g,y,T){return n=He(n,e,t,a,f,h,d,b,g,y,T,void 0),n.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},n}function Rl(n,e,t,a,f,h,d,b,g){return t=new ze(e.resumableState,t,e.rootFormatContext,e.progressiveChunkSize,a,f,h,d,b,g,null),t.nextSegmentId=e.nextSegmentId,typeof e.replaySlots=="number"?(a=tl(t,0,null,e.rootFormatContext,!1,!1),a.parentFlushed=!0,n=Jl(t,null,n,-1,null,a,null,null,t.abortableTasks,null,e.rootFormatContext,null,o,null,null),Ql(n),t.pingedTasks.push(n),t):(n=Ct(t,null,{nodes:e.replayNodes,slots:e.replaySlots,pendingTasks:0},n,-1,null,null,t.abortableTasks,null,e.rootFormatContext,null,o,null,null),Ql(n),t.pingedTasks.push(n),t)}function _i(n,e,t,a,f,h,d,b,g){return n=Rl(n,e,t,a,f,h,d,b,g),n.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},n}var yn=null;function Zl(n,e){n.pingedTasks.push(e),n.pingedTasks.length===1&&(n.flushScheduled=n.destination!==null,n.trackedPostpones!==null||n.status===10?Yr(function(){return Ni(n)}):Qt(function(){return Ni(n)}))}function We(n,e,t,a,f){return t={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:e,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:ue(),fallbackState:ue(),contentPreamble:a,fallbackPreamble:f,trackedContentKeyPath:null,trackedFallbackNode:null},e!==null&&(e.pendingTasks++,a=e.boundaries,a!==null&&(n.allPendingTasks++,t.pendingTasks++,a.push(t)),n=e.inheritedHoistables,n!==null&&de(t.contentState,n)),t}function Jl(n,e,t,a,f,h,d,b,g,y,T,R,A,_,X){n.allPendingTasks++,f===null?n.pendingRootTasks++:f.pendingTasks++,_!==null&&_.pendingTasks++;var W={replay:null,node:t,childIndex:a,ping:function(){return Zl(n,W)},blockedBoundary:f,blockedSegment:h,blockedPreamble:d,hoistableState:b,abortSet:g,keyPath:y,formatContext:T,context:R,treeContext:A,row:_,componentStack:X,thenableState:e};return g.add(W),W}function Ct(n,e,t,a,f,h,d,b,g,y,T,R,A,_){n.allPendingTasks++,h===null?n.pendingRootTasks++:h.pendingTasks++,A!==null&&A.pendingTasks++,t.pendingTasks++;var X={replay:t,node:a,childIndex:f,ping:function(){return Zl(n,X)},blockedBoundary:h,blockedSegment:null,blockedPreamble:null,hoistableState:d,abortSet:b,keyPath:g,formatContext:y,context:T,treeContext:R,row:A,componentStack:_,thenableState:e};return b.add(X),X}function tl(n,e,t,a,f,h){return{status:0,parentFlushed:!1,id:-1,index:e,chunks:[],children:[],preambleChildren:[],parentFormatContext:a,boundary:t,lastPushedText:f,textEmbedded:h}}function Ql(n){var e=n.node;typeof e=="object"&&e!==null&&e.$$typeof===Dt&&(n.componentStack={parent:n.componentStack,type:e.type})}function Te(n){return n===null?null:{parent:n.parent,type:"Suspense Fallback"}}function il(n){var e={};return n&&Object.defineProperty(e,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var t="",a=n;do t+=Ii(a.type),a=a.parent;while(a);var f=t}catch(h){f=`
|
|
52
52
|
Error generating stack: `+h.message+`
|
|
53
53
|
`+h.stack}return Object.defineProperty(e,"componentStack",{value:f}),f}}),e}function Pn(n,e,t){if(n=n.onError,e=n(e,t),e==null||typeof e=="string")return e}function Ue(n,e){var t=n.onShellError,a=n.onFatalError;t(e),a(e),n.destination!==null?(n.status=14,Kt(n.destination,e)):(n.status=13,n.fatalError=e)}function On(n,e){ki(n,e.next,e.hoistables)}function ki(n,e,t){for(;e!==null;){t!==null&&(de(e.hoistables,t),e.inheritedHoistables=t);var a=e.boundaries;if(a!==null){e.boundaries=null;for(var f=0;f<a.length;f++){var h=a[f];t!==null&&de(h.contentState,t),jn(n,h,null,null)}}if(e.pendingTasks--,0<e.pendingTasks)break;t=e.hoistables,e=e.next}}function Fr(n,e){var t=e.boundaries;if(t!==null&&e.pendingTasks===t.length){for(var a=!0,f=0;f<t.length;f++){var h=t[f];if(h.pendingTasks!==1||h.parentFlushed||rl(n,h)){a=!1;break}}a&&ki(n,e,e.hoistables)}}function Sr(n){var e={pendingTasks:1,boundaries:null,hoistables:ue(),inheritedHoistables:null,together:!1,next:null};return n!==null&&0<n.pendingTasks&&(e.pendingTasks++,e.boundaries=[],n.next=e),e}function Wa(n,e,t,a,f){var h=e.keyPath,d=e.treeContext,b=e.row;e.keyPath=t,t=a.length;var g=null;if(e.replay!==null){var y=e.replay.slots;if(y!==null&&typeof y=="object")for(var T=0;T<t;T++){var R=f!=="backwards"&&f!=="unstable_legacy-backwards"?T:t-1-T,A=a[R];e.row=g=Sr(g),e.treeContext=s(d,t,R);var _=y[R];typeof _=="number"?(Vl(n,e,_,A,R),delete y[R]):dn(n,e,A,R),--g.pendingTasks===0&&On(n,g)}else for(y=0;y<t;y++)T=f!=="backwards"&&f!=="unstable_legacy-backwards"?y:t-1-y,R=a[T],e.row=g=Sr(g),e.treeContext=s(d,t,T),dn(n,e,R,T),--g.pendingTasks===0&&On(n,g)}else if(f!=="backwards"&&f!=="unstable_legacy-backwards")for(f=0;f<t;f++)y=a[f],e.row=g=Sr(g),e.treeContext=s(d,t,f),dn(n,e,y,f),--g.pendingTasks===0&&On(n,g);else{for(f=e.blockedSegment,y=f.children.length,T=f.chunks.length,R=t-1;0<=R;R--){A=a[R],e.row=g=Sr(g),e.treeContext=s(d,t,R),_=tl(n,T,null,e.formatContext,R===0?f.lastPushedText:!0,!0),f.children.splice(y,0,_),e.blockedSegment=_;try{dn(n,e,A,R),_.lastPushedText&&_.textEmbedded&&_.chunks.push(hl),_.status=1,Cl(n,e.blockedBoundary,_),--g.pendingTasks===0&&On(n,g)}catch(X){throw _.status=n.status===12?3:4,X}}e.blockedSegment=f,f.lastPushedText=!1}b!==null&&g!==null&&0<g.pendingTasks&&(b.pendingTasks++,g.next=b),e.treeContext=d,e.row=b,e.keyPath=h}function Ua(n,e,t,a,f,h){var d=e.thenableState;for(e.thenableState=null,H={},rn=e,cn=n,Z=t,q=qn=0,gn=-1,bn=0,tn=d,n=a(f,h);J;)J=!1,q=qn=0,gn=-1,bn=0,ge+=1,G=null,n=a(f,h);return el(),n}function wl(n,e,t,a,f,h,d){var b=!1;if(h!==0&&n.formState!==null){var g=e.blockedSegment;if(g!==null){b=!0,g=g.chunks;for(var y=0;y<h;y++)y===d?g.push(au):g.push(ar)}}h=e.keyPath,e.keyPath=t,f?(t=e.treeContext,e.treeContext=s(t,1,0),dn(n,e,a,-1),e.treeContext=t):b?dn(n,e,a,-1):An(n,e,a,-1),e.keyPath=h}function Ee(n,e,t,a,f,h){if(typeof a=="function")if(a.prototype&&a.prototype.isReactComponent){var d=f;if("ref"in f){d={};for(var b in f)b!=="ref"&&(d[b]=f[b])}var g=a.defaultProps;if(g){d===f&&(d=Wn({},d,f));for(var y in g)d[y]===void 0&&(d[y]=g[y])}f=d,d=Da,g=a.contextType,typeof g=="object"&&g!==null&&(d=g._currentValue),d=new a(f,d);var T=d.state!==void 0?d.state:null;if(d.updater=c,d.props=f,d.state=T,g={queue:[],replace:!1},d._reactInternals=g,h=a.contextType,d.context=typeof h=="object"&&h!==null?h._currentValue:Da,h=a.getDerivedStateFromProps,typeof h=="function"&&(h=h(f,T),T=h==null?T:Wn({},T,h),d.state=T),typeof a.getDerivedStateFromProps!="function"&&typeof d.getSnapshotBeforeUpdate!="function"&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function"))if(a=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),a!==d.state&&c.enqueueReplaceState(d,d.state,null),g.queue!==null&&0<g.queue.length)if(a=g.queue,h=g.replace,g.queue=null,g.replace=!1,h&&a.length===1)d.state=a[0];else{for(g=h?a[0]:d.state,T=!0,h=h?1:0;h<a.length;h++)y=a[h],y=typeof y=="function"?y.call(d,g,f,void 0):y,y!=null&&(T?(T=!1,g=Wn({},g,y)):Wn(g,y));d.state=g}else g.queue=null;if(a=d.render(),n.status===12)throw null;f=e.keyPath,e.keyPath=t,An(n,e,a,-1),e.keyPath=f}else{if(a=Ua(n,e,t,a,f,void 0),n.status===12)throw null;wl(n,e,t,a,qn!==0,q,gn)}else if(typeof a=="string")if(d=e.blockedSegment,d===null)d=f.children,g=e.formatContext,T=e.keyPath,e.formatContext=Ll(g,a,f),e.keyPath=t,dn(n,e,d,-1),e.formatContext=g,e.keyPath=T;else{if(T=nt(d.chunks,a,f,n.resumableState,n.renderState,e.blockedPreamble,e.hoistableState,e.formatContext,d.lastPushedText),d.lastPushedText=!1,g=e.formatContext,h=e.keyPath,e.keyPath=t,(e.formatContext=Ll(g,a,f)).insertionMode===3){t=tl(n,0,null,e.formatContext,!1,!1),d.preambleChildren.push(t),e.blockedSegment=t;try{t.status=6,dn(n,e,T,-1),t.lastPushedText&&t.textEmbedded&&t.chunks.push(hl),t.status=1,Cl(n,e.blockedBoundary,t)}finally{e.blockedSegment=d}}else dn(n,e,T,-1);e.formatContext=g,e.keyPath=h;n:{switch(e=d.chunks,n=n.resumableState,a){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break n;case"body":if(1>=g.insertionMode){n.hasBody=!0;break n}break;case"html":if(g.insertionMode===0){n.hasHtml=!0;break n}break;case"head":if(1>=g.insertionMode)break n}e.push(Dl(a))}d.lastPushedText=!1}else{switch(a){case $a:case Wt:case Ut:case Ht:a=e.keyPath,e.keyPath=t,An(n,e,f.children,-1),e.keyPath=a;return;case Gt:a=e.blockedSegment,a===null?f.mode!=="hidden"&&(a=e.keyPath,e.keyPath=t,dn(n,e,f.children,-1),e.keyPath=a):f.mode!=="hidden"&&(a.chunks.push(ie),a.lastPushedText=!1,d=e.keyPath,e.keyPath=t,dn(n,e,f.children,-1),e.keyPath=d,a.chunks.push(lt),a.lastPushedText=!1);return;case $e:n:{if(a=f.children,f=f.revealOrder,f==="forwards"||f==="backwards"||f==="unstable_legacy-backwards"){if(le(a)){Wa(n,e,t,a,f);break n}if((d=Zt(a))&&(d=d.call(a))){if(g=d.next(),!g.done){do g=d.next();while(!g.done);Wa(n,e,t,a,f)}break n}}f==="together"?(f=e.keyPath,d=e.row,g=e.row=Sr(null),g.boundaries=[],g.together=!0,e.keyPath=t,An(n,e,a,-1),--g.pendingTasks===0&&On(n,g),e.keyPath=f,e.row=d,d!==null&&0<g.pendingTasks&&(d.pendingTasks++,g.next=d)):(f=e.keyPath,e.keyPath=t,An(n,e,a,-1),e.keyPath=f)}return;case lu:case ja:throw Error(S(343));case $l:n:if(e.replay!==null){a=e.keyPath,d=e.formatContext,g=e.row,e.keyPath=t,e.formatContext=lr(n.resumableState,d),e.row=null,t=f.children;try{dn(n,e,t,-1)}finally{e.keyPath=a,e.formatContext=d,e.row=g}}else{a=e.keyPath,h=e.formatContext;var R=e.row;y=e.blockedBoundary,b=e.blockedPreamble;var A=e.hoistableState,_=e.blockedSegment,X=f.fallback;f=f.children;var W=new Set,U=2>e.formatContext.insertionMode?We(n,e.row,W,an(),an()):We(n,e.row,W,null,null);n.trackedPostpones!==null&&(U.trackedContentKeyPath=t);var en=tl(n,_.chunks.length,U,e.formatContext,!1,!1);_.children.push(en),_.lastPushedText=!1;var p=tl(n,0,null,e.formatContext,!1,!1);if(p.parentFlushed=!0,n.trackedPostpones!==null){d=e.componentStack,g=[t[0],"Suspense Fallback",t[2]],T=[g[1],g[2],[],null],n.trackedPostpones.workingMap.set(g,T),U.trackedFallbackNode=T,e.blockedSegment=en,e.blockedPreamble=U.fallbackPreamble,e.keyPath=g,e.formatContext=Vr(n.resumableState,h),e.componentStack=Te(d),en.status=6;try{dn(n,e,X,-1),en.lastPushedText&&en.textEmbedded&&en.chunks.push(hl),en.status=1,Cl(n,y,en)}catch(Mn){throw en.status=n.status===12?3:4,Mn}finally{e.blockedSegment=_,e.blockedPreamble=b,e.keyPath=a,e.formatContext=h}e=Jl(n,null,f,-1,U,p,U.contentPreamble,U.contentState,e.abortSet,t,lr(n.resumableState,e.formatContext),e.context,e.treeContext,null,d),Ql(e),n.pingedTasks.push(e)}else{e.blockedBoundary=U,e.blockedPreamble=U.contentPreamble,e.hoistableState=U.contentState,e.blockedSegment=p,e.keyPath=t,e.formatContext=lr(n.resumableState,h),e.row=null,p.status=6;try{if(dn(n,e,f,-1),p.lastPushedText&&p.textEmbedded&&p.chunks.push(hl),p.status=1,Cl(n,U,p),Mr(U,p),U.pendingTasks===0&&U.status===0){if(U.status=1,!rl(n,U)){R!==null&&--R.pendingTasks===0&&On(n,R),n.pendingRootTasks===0&&e.blockedPreamble&&Fl(n);break n}}else R!==null&&R.together&&Fr(n,R)}catch(Mn){U.status=4,n.status===12?(p.status=3,d=n.fatalError):(p.status=4,d=Mn),g=il(e.componentStack),T=Pn(n,d,g),U.errorDigest=T,Oi(n,U)}finally{e.blockedBoundary=y,e.blockedPreamble=b,e.hoistableState=A,e.blockedSegment=_,e.keyPath=a,e.formatContext=h,e.row=R}e=Jl(n,null,X,-1,y,en,U.fallbackPreamble,U.fallbackState,W,[t[0],"Suspense Fallback",t[2]],Vr(n.resumableState,e.formatContext),e.context,e.treeContext,e.row,Te(e.componentStack)),Ql(e),n.pingedTasks.push(e)}}return}if(typeof a=="object"&&a!==null)switch(a.$$typeof){case je:if("ref"in f)for(_ in d={},f)_!=="ref"&&(d[_]=f[_]);else d=f;a=Ua(n,e,t,a.render,d,h),wl(n,e,t,a,qn!==0,q,gn);return;case nr:Ee(n,e,t,a.type,f,h);return;case jl:if(g=f.children,d=e.keyPath,f=f.value,T=a._currentValue,a._currentValue=f,h=gl,gl=a={parent:h,depth:h===null?0:h.depth+1,context:a,parentValue:T,value:f},e.context=a,e.keyPath=t,An(n,e,g,-1),n=gl,n===null)throw Error(S(403));n.context._currentValue=n.parentValue,n=gl=n.parent,e.context=n,e.keyPath=d;return;case Yt:f=f.children,a=f(a._context._currentValue),f=e.keyPath,e.keyPath=t,An(n,e,a,-1),e.keyPath=f;return;case ne:if(d=a._init,a=d(a._payload),n.status===12)throw null;Ee(n,e,t,a,f,h);return}throw Error(S(130,a==null?a:typeof a,""))}}function Vl(n,e,t,a,f){var h=e.replay,d=e.blockedBoundary,b=tl(n,0,null,e.formatContext,!1,!1);b.id=t,b.parentFlushed=!0;try{e.replay=null,e.blockedSegment=b,dn(n,e,a,f),b.status=1,Cl(n,d,b),d===null?n.completedRootSegment=b:(Mr(d,b),d.parentFlushed&&n.partialBoundaries.push(d))}finally{e.replay=h,e.blockedSegment=null}}function An(n,e,t,a){e.replay!==null&&typeof e.replay.slots=="number"?Vl(n,e,e.replay.slots,t,a):(e.node=t,e.childIndex=a,t=e.componentStack,Ql(e),Ye(n,e),e.componentStack=t)}function Ye(n,e){var t=e.node,a=e.childIndex;if(t!==null){if(typeof t=="object"){switch(t.$$typeof){case Dt:var f=t.type,h=t.key,d=t.props;t=d.ref;var b=t!==void 0?t:null,g=xt(f),y=h??(a===-1?0:a);if(h=[e.keyPath,g,y],e.replay!==null)n:{var T=e.replay;for(a=T.nodes,t=0;t<a.length;t++){var R=a[t];if(y===R[1]){if(R.length===4){if(g!==null&&g!==R[0])throw Error(S(490,R[0],g));var A=R[2];g=R[3],y=e.node,e.replay={nodes:A,slots:g,pendingTasks:1};try{if(Ee(n,e,h,f,d,b),e.replay.pendingTasks===1&&0<e.replay.nodes.length)throw Error(S(488));e.replay.pendingTasks--}catch(L){if(typeof L=="object"&&L!==null&&(L===M||typeof L.then=="function"))throw e.node===y?e.replay=T:a.splice(t,1),L;e.replay.pendingTasks--,d=il(e.componentStack),h=n,n=e.blockedBoundary,f=L,d=Pn(h,f,d),Xe(h,n,A,g,f,d)}e.replay=T}else{if(f!==$l)throw Error(S(490,"Suspense",xt(f)||"Unknown"));l:{T=void 0,f=R[5],b=R[2],g=R[3],y=R[4]===null?[]:R[4][2],R=R[4]===null?null:R[4][3];var _=e.keyPath,X=e.formatContext,W=e.row,U=e.replay,en=e.blockedBoundary,p=e.hoistableState,Mn=d.children,Yn=d.fallback,ul=new Set;d=2>e.formatContext.insertionMode?We(n,e.row,ul,an(),an()):We(n,e.row,ul,null,null),d.parentFlushed=!0,d.rootSegmentID=f,e.blockedBoundary=d,e.hoistableState=d.contentState,e.keyPath=h,e.formatContext=lr(n.resumableState,X),e.row=null,e.replay={nodes:b,slots:g,pendingTasks:1};try{if(dn(n,e,Mn,-1),e.replay.pendingTasks===1&&0<e.replay.nodes.length)throw Error(S(488));if(e.replay.pendingTasks--,d.pendingTasks===0&&d.status===0){d.status=1,n.completedBoundaries.push(d);break l}}catch(L){d.status=4,A=il(e.componentStack),T=Pn(n,L,A),d.errorDigest=T,e.replay.pendingTasks--,n.clientRenderedBoundaries.push(d)}finally{e.blockedBoundary=en,e.hoistableState=p,e.replay=U,e.keyPath=_,e.formatContext=X,e.row=W}A=Ct(n,null,{nodes:y,slots:R,pendingTasks:0},Yn,-1,en,d.fallbackState,ul,[h[0],"Suspense Fallback",h[2]],Vr(n.resumableState,e.formatContext),e.context,e.treeContext,e.row,Te(e.componentStack)),Ql(A),n.pingedTasks.push(A)}}a.splice(t,1);break n}}}else Ee(n,e,h,f,d,b);return;case zt:throw Error(S(257));case ne:if(A=t._init,t=A(t._payload),n.status===12)throw null;An(n,e,t,a);return}if(le(t)){Ge(n,e,t,a);return}if((A=Zt(t))&&(A=A.call(t))){if(t=A.next(),!t.done){d=[];do d.push(t.value),t=A.next();while(!t.done);Ge(n,e,d,a)}return}if(typeof t.then=="function")return e.thenableState=null,An(n,e,Ai(t),a);if(t.$$typeof===jl)return An(n,e,t._currentValue,a);throw a=Object.prototype.toString.call(t),Error(S(31,a==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":a))}typeof t=="string"?(a=e.blockedSegment,a!==null&&(a.lastPushedText=da(a.chunks,t,n.renderState,a.lastPushedText))):(typeof t=="number"||typeof t=="bigint")&&(a=e.blockedSegment,a!==null&&(a.lastPushedText=da(a.chunks,""+t,n.renderState,a.lastPushedText)))}}function Ge(n,e,t,a){var f=e.keyPath;if(a!==-1&&(e.keyPath=[e.keyPath,"Fragment",a],e.replay!==null)){for(var h=e.replay,d=h.nodes,b=0;b<d.length;b++){var g=d[b];if(g[1]===a){a=g[2],g=g[3],e.replay={nodes:a,slots:g,pendingTasks:1};try{if(Ge(n,e,t,-1),e.replay.pendingTasks===1&&0<e.replay.nodes.length)throw Error(S(488));e.replay.pendingTasks--}catch(R){if(typeof R=="object"&&R!==null&&(R===M||typeof R.then=="function"))throw R;e.replay.pendingTasks--,t=il(e.componentStack);var y=e.blockedBoundary,T=R;t=Pn(n,T,t),Xe(n,y,a,g,T,t)}e.replay=h,d.splice(b,1);break}}e.keyPath=f;return}if(h=e.treeContext,d=t.length,e.replay!==null&&(b=e.replay.slots,b!==null&&typeof b=="object")){for(a=0;a<d;a++)g=t[a],e.treeContext=s(h,d,a),y=b[a],typeof y=="number"?(Vl(n,e,y,g,a),delete b[a]):dn(n,e,g,a);e.treeContext=h,e.keyPath=f;return}for(b=0;b<d;b++)a=t[b],e.treeContext=s(h,d,b),dn(n,e,a,b);e.treeContext=h,e.keyPath=f}function Ft(n,e,t){if(t.status=5,t.rootSegmentID=n.nextSegmentId++,n=t.trackedContentKeyPath,n===null)throw Error(S(486));var a=t.trackedFallbackNode,f=[],h=e.workingMap.get(n);return h===void 0?(t=[n[1],n[2],f,null,a,t.rootSegmentID],e.workingMap.set(n,t),It(t,n[0],e),t):(h[4]=a,h[5]=t.rootSegmentID,h)}function St(n,e,t,a){a.status=5;var f=t.keyPath,h=t.blockedBoundary;if(h===null)a.id=n.nextSegmentId++,e.rootSlots=a.id,n.completedRootSegment!==null&&(n.completedRootSegment.status=5);else{if(h!==null&&h.status===0){var d=Ft(n,e,h);if(h.trackedContentKeyPath===f&&t.childIndex===-1){a.id===-1&&(a.id=a.parentFlushed?h.rootSegmentID:n.nextSegmentId++),d[3]=a.id;return}}if(a.id===-1&&(a.id=a.parentFlushed&&h!==null?h.rootSegmentID:n.nextSegmentId++),t.childIndex===-1)f===null?e.rootSlots=a.id:(t=e.workingMap.get(f),t===void 0?(t=[f[1],f[2],[],a.id],It(t,f[0],e)):t[3]=a.id);else{if(f===null){if(n=e.rootSlots,n===null)n=e.rootSlots={};else if(typeof n=="number")throw Error(S(491))}else if(h=e.workingMap,d=h.get(f),d===void 0)n={},d=[f[1],f[2],[],n],h.set(f,d),It(d,f[0],e);else if(n=d[3],n===null)n=d[3]={};else if(typeof n=="number")throw Error(S(491));n[t.childIndex]=a.id}}}function Oi(n,e){n=n.trackedPostpones,n!==null&&(e=e.trackedContentKeyPath,e!==null&&(e=n.workingMap.get(e),e!==void 0&&(e.length=4,e[2]=[],e[3]=null)))}function Pt(n,e,t){return Ct(n,t,e.replay,e.node,e.childIndex,e.blockedBoundary,e.hoistableState,e.abortSet,e.keyPath,e.formatContext,e.context,e.treeContext,e.row,e.componentStack)}function Li(n,e,t){var a=e.blockedSegment,f=tl(n,a.chunks.length,null,e.formatContext,a.lastPushedText,!0);return a.children.push(f),a.lastPushedText=!1,Jl(n,t,e.node,e.childIndex,e.blockedBoundary,f,e.blockedPreamble,e.hoistableState,e.abortSet,e.keyPath,e.formatContext,e.context,e.treeContext,e.row,e.componentStack)}function dn(n,e,t,a){var f=e.formatContext,h=e.context,d=e.keyPath,b=e.treeContext,g=e.componentStack,y=e.blockedSegment;if(y===null){y=e.replay;try{return An(n,e,t,a)}catch(A){if(el(),t=A===M?D():A,n.status!==12&&typeof t=="object"&&t!==null){if(typeof t.then=="function"){a=A===M?kn():null,n=Pt(n,e,a).ping,t.then(n,n),e.formatContext=f,e.context=h,e.keyPath=d,e.treeContext=b,e.componentStack=g,e.replay=y,u(h);return}if(t.message==="Maximum call stack size exceeded"){t=A===M?kn():null,t=Pt(n,e,t),n.pingedTasks.push(t),e.formatContext=f,e.context=h,e.keyPath=d,e.treeContext=b,e.componentStack=g,e.replay=y,u(h);return}}}}else{var T=y.children.length,R=y.chunks.length;try{return An(n,e,t,a)}catch(A){if(el(),y.children.length=T,y.chunks.length=R,t=A===M?D():A,n.status!==12&&typeof t=="object"&&t!==null){if(typeof t.then=="function"){y=t,t=A===M?kn():null,n=Li(n,e,t).ping,y.then(n,n),e.formatContext=f,e.context=h,e.keyPath=d,e.treeContext=b,e.componentStack=g,u(h);return}if(t.message==="Maximum call stack size exceeded"){y=A===M?kn():null,y=Li(n,e,y),n.pingedTasks.push(y),e.formatContext=f,e.context=h,e.keyPath=d,e.treeContext=b,e.componentStack=g,u(h);return}}}}throw e.formatContext=f,e.context=h,e.keyPath=d,e.treeContext=b,u(h),t}function At(n){var e=n.blockedBoundary,t=n.blockedSegment;t!==null&&(t.status=3,jn(this,e,n.row,t))}function Xe(n,e,t,a,f,h){for(var d=0;d<t.length;d++){var b=t[d];if(b.length===4)Xe(n,e,b[2],b[3],f,h);else{b=b[5];var g=n,y=h,T=We(g,null,new Set,null,null);T.parentFlushed=!0,T.rootSegmentID=b,T.status=4,T.errorDigest=y,T.parentFlushed&&g.clientRenderedBoundaries.push(T)}}if(t.length=0,a!==null){if(e===null)throw Error(S(487));if(e.status!==4&&(e.status=4,e.errorDigest=h,e.parentFlushed&&n.clientRenderedBoundaries.push(e)),typeof a=="object")for(var R in a)delete a[R]}}function Ze(n,e,t){var a=n.blockedBoundary,f=n.blockedSegment;if(f!==null){if(f.status===6)return;f.status=3}var h=il(n.componentStack);if(a===null){if(e.status!==13&&e.status!==14){if(a=n.replay,a===null){e.trackedPostpones!==null&&f!==null?(a=e.trackedPostpones,Pn(e,t,h),St(e,a,n,f),jn(e,null,n.row,f)):(Pn(e,t,h),Ue(e,t));return}a.pendingTasks--,a.pendingTasks===0&&0<a.nodes.length&&(f=Pn(e,t,h),Xe(e,null,a.nodes,a.slots,t,f)),e.pendingRootTasks--,e.pendingRootTasks===0&&Mt(e)}}else{var d=e.trackedPostpones;if(a.status!==4){if(d!==null&&f!==null)return Pn(e,t,h),St(e,d,n,f),a.fallbackAbortableTasks.forEach(function(b){return Ze(b,e,t)}),a.fallbackAbortableTasks.clear(),jn(e,a,n.row,f);a.status=4,f=Pn(e,t,h),a.status=4,a.errorDigest=f,Oi(e,a),a.parentFlushed&&e.clientRenderedBoundaries.push(a)}a.pendingTasks--,f=a.row,f!==null&&--f.pendingTasks===0&&On(e,f),a.fallbackAbortableTasks.forEach(function(b){return Ze(b,e,t)}),a.fallbackAbortableTasks.clear()}n=n.row,n!==null&&--n.pendingTasks===0&&On(e,n),e.allPendingTasks--,e.allPendingTasks===0&&Ar(e)}function Pr(n,e){try{var t=n.renderState,a=t.onHeaders;if(a){var f=t.headers;if(f){t.headers=null;var h=f.preconnects;if(f.fontPreloads&&(h&&(h+=", "),h+=f.fontPreloads),f.highImagePreloads&&(h&&(h+=", "),h+=f.highImagePreloads),!e){var d=t.styles.values(),b=d.next();n:for(;0<f.remainingCapacity&&!b.done;b=d.next())for(var g=b.value.sheets.values(),y=g.next();0<f.remainingCapacity&&!y.done;y=g.next()){var T=y.value,R=T.props,A=R.href,_=T.props,X=yr(_.href,"style",{crossOrigin:_.crossOrigin,integrity:_.integrity,nonce:_.nonce,type:_.type,fetchPriority:_.fetchPriority,referrerPolicy:_.referrerPolicy,media:_.media});if(0<=(f.remainingCapacity-=X.length+2))t.resets.style[A]=Jn,h&&(h+=", "),h+=X,t.resets.style[A]=typeof R.crossOrigin=="string"||typeof R.integrity=="string"?[R.crossOrigin,R.integrity]:Jn;else break n}}a(h?{Link:h}:{})}}}catch(W){Pn(n,W,{})}}function Mt(n){n.trackedPostpones===null&&Pr(n,!0),n.trackedPostpones===null&&Fl(n),n.onShellError=F,n=n.onShellReady,n()}function Ar(n){Pr(n,n.trackedPostpones===null?!0:n.completedRootSegment===null||n.completedRootSegment.status!==5),Fl(n),n=n.onAllReady,n()}function Mr(n,e){if(e.chunks.length===0&&e.children.length===1&&e.children[0].boundary===null&&e.children[0].id===-1){var t=e.children[0];t.id=e.id,t.parentFlushed=!0,t.status!==1&&t.status!==3&&t.status!==4||Mr(n,t)}else n.completedSegments.push(e)}function Cl(n,e,t){if(Fe!==null){t=t.chunks;for(var a=0,f=0;f<t.length;f++)a+=t[f].byteLength;e===null?n.byteSize+=a:e.byteSize+=a}}function jn(n,e,t,a){if(t!==null&&(--t.pendingTasks===0?On(n,t):t.together&&Fr(n,t)),n.allPendingTasks--,e===null){if(a!==null&&a.parentFlushed){if(n.completedRootSegment!==null)throw Error(S(389));n.completedRootSegment=a}n.pendingRootTasks--,n.pendingRootTasks===0&&Mt(n)}else if(e.pendingTasks--,e.status!==4)if(e.pendingTasks===0){if(e.status===0&&(e.status=1),a!==null&&a.parentFlushed&&(a.status===1||a.status===3)&&Mr(e,a),e.parentFlushed&&n.completedBoundaries.push(e),e.status===1)t=e.row,t!==null&&de(t.hoistables,e.contentState),rl(n,e)||(e.fallbackAbortableTasks.forEach(At,n),e.fallbackAbortableTasks.clear(),t!==null&&--t.pendingTasks===0&&On(n,t)),n.pendingRootTasks===0&&n.trackedPostpones===null&&e.contentPreamble!==null&&Fl(n);else if(e.status===5&&(e=e.row,e!==null)){if(n.trackedPostpones!==null){t=n.trackedPostpones;var f=e.next;if(f!==null&&(a=f.boundaries,a!==null))for(f.boundaries=null,f=0;f<a.length;f++){var h=a[f];Ft(n,t,h),jn(n,h,null,null)}}--e.pendingTasks===0&&On(n,e)}}else a===null||!a.parentFlushed||a.status!==1&&a.status!==3||(Mr(e,a),e.completedSegments.length===1&&e.parentFlushed&&n.partialBoundaries.push(e)),e=e.row,e!==null&&e.together&&Fr(n,e);n.allPendingTasks===0&&Ar(n)}function Ni(n){if(n.status!==14&&n.status!==13){var e=gl,t=Ol.H;Ol.H=Mi;var a=Ol.A;Ol.A=Ha;var f=yn;yn=n;var h=Rr;Rr=n.resumableState;try{var d=n.pingedTasks,b;for(b=0;b<d.length;b++){var g=d[b],y=n,T=g.blockedSegment;if(T===null){var R=y;if(g.replay.pendingTasks!==0){u(g.context);try{if(typeof g.replay.slots=="number"?Vl(R,g,g.replay.slots,g.node,g.childIndex):Ye(R,g),g.replay.pendingTasks===1&&0<g.replay.nodes.length)throw Error(S(488));g.replay.pendingTasks--,g.abortSet.delete(g),jn(R,g.blockedBoundary,g.row,null)}catch(In){el();var A=In===M?D():In;if(typeof A=="object"&&A!==null&&typeof A.then=="function"){var _=g.ping;A.then(_,_),g.thenableState=In===M?kn():null}else{g.replay.pendingTasks--,g.abortSet.delete(g);var X=il(g.componentStack);y=void 0;var W=R,U=g.blockedBoundary,en=R.status===12?R.fatalError:A,p=g.replay.nodes,Mn=g.replay.slots;y=Pn(W,en,X),Xe(W,U,p,Mn,en,y),R.pendingRootTasks--,R.pendingRootTasks===0&&Mt(R),R.allPendingTasks--,R.allPendingTasks===0&&Ar(R)}}}}else if(R=void 0,W=T,W.status===0){W.status=6,u(g.context);var Yn=W.children.length,ul=W.chunks.length;try{Ye(y,g),W.lastPushedText&&W.textEmbedded&&W.chunks.push(hl),g.abortSet.delete(g),W.status=1,Cl(y,g.blockedBoundary,W),jn(y,g.blockedBoundary,g.row,W)}catch(In){el(),W.children.length=Yn,W.chunks.length=ul;var L=In===M?D():y.status===12?y.fatalError:In;if(y.status===12&&y.trackedPostpones!==null){var Ln=y.trackedPostpones,hn=il(g.componentStack);g.abortSet.delete(g),Pn(y,L,hn),St(y,Ln,g,W),jn(y,g.blockedBoundary,g.row,W)}else if(typeof L=="object"&&L!==null&&typeof L.then=="function"){W.status=0,g.thenableState=In===M?kn():null;var zn=g.ping;L.then(zn,zn)}else{var Il=il(g.componentStack);g.abortSet.delete(g),W.status=4;var on=g.blockedBoundary,ql=g.row;if(ql!==null&&--ql.pendingTasks===0&&On(y,ql),y.allPendingTasks--,R=Pn(y,L,Il),on===null)Ue(y,L);else if(on.pendingTasks--,on.status!==4){on.status=4,on.errorDigest=R,Oi(y,on);var bl=on.row;bl!==null&&--bl.pendingTasks===0&&On(y,bl),on.parentFlushed&&y.clientRenderedBoundaries.push(on),y.pendingRootTasks===0&&y.trackedPostpones===null&&on.contentPreamble!==null&&Fl(y)}y.allPendingTasks===0&&Ar(y)}}}}d.splice(0,b),n.destination!==null&&Ir(n,n.destination)}catch(In){Pn(n,In,{}),Ue(n,In)}finally{Rr=h,Ol.H=t,Ol.A=a,t===Mi&&u(e),yn=f}}}function Kl(n,e,t){e.preambleChildren.length&&t.push(e.preambleChildren);for(var a=!1,f=0;f<e.children.length;f++)a=Bi(n,e.children[f],t)||a;return a}function Bi(n,e,t){var a=e.boundary;if(a===null)return Kl(n,e,t);var f=a.contentPreamble,h=a.fallbackPreamble;if(f===null||h===null)return!1;switch(a.status){case 1:if(fi(n.renderState,f),n.byteSize+=a.byteSize,e=a.completedSegments[0],!e)throw Error(S(391));return Kl(n,e,t);case 5:if(n.trackedPostpones!==null)return!0;case 4:if(e.status===1)return fi(n.renderState,h),Kl(n,e,t);default:return!0}}function Fl(n){if(n.completedRootSegment&&n.completedPreambleSegments===null){var e=[],t=n.byteSize,a=Bi(n,n.completedRootSegment,e),f=n.renderState.preamble;a===!1||f.headChunks&&f.bodyChunks?n.completedPreambleSegments=e:n.byteSize=t}}function xe(n,e,t,a){switch(t.parentFlushed=!0,t.status){case 0:t.id=n.nextSegmentId++;case 5:return a=t.id,t.lastPushedText=!1,t.textEmbedded=!1,n=n.renderState,C(e,Ra),C(e,n.placeholderPrefix),n=I(a.toString(16)),C(e,n),k(e,hu);case 1:t.status=2;var f=!0,h=t.chunks,d=0;t=t.children;for(var b=0;b<t.length;b++){for(f=t[b];d<f.index;d++)C(e,h[d]);f=Je(n,e,f,a)}for(;d<h.length-1;d++)C(e,h[d]);return d<h.length&&(f=k(e,h[d])),f;case 3:return!0;default:throw Error(S(390))}}var Sl=0;function Je(n,e,t,a){var f=t.boundary;if(f===null)return xe(n,e,t,a);if(f.parentFlushed=!0,f.status===4){var h=f.row;h!==null&&--h.pendingTasks===0&&On(n,h),f=f.errorDigest,k(e,Bn),C(e,gu),f&&(C(e,rt),C(e,I(B(f))),C(e,et)),k(e,vu),xe(n,e,t,a)}else if(f.status!==1)f.status===0&&(f.rootSegmentID=n.nextSegmentId++),0<f.completedSegments.length&&n.partialBoundaries.push(f),wa(e,n.renderState,f.rootSegmentID),a&&de(a,f.fallbackState),xe(n,e,t,a);else if(!Al&&rl(n,f)&&(Sl+f.byteSize>n.progressiveChunkSize||Tr(f.contentState)))f.rootSegmentID=n.nextSegmentId++,n.completedBoundaries.push(f),wa(e,n.renderState,f.rootSegmentID),xe(n,e,t,a);else{if(Sl+=f.byteSize,a&&de(a,f.contentState),t=f.row,t!==null&&rl(n,f)&&--t.pendingTasks===0&&On(n,t),k(e,ou),t=f.completedSegments,t.length!==1)throw Error(S(391));Je(n,e,t[0],a)}return k(e,mn)}function Pl(n,e,t,a){return Sa(e,n.renderState,t.parentFormatContext,t.id),Je(n,e,t,a),Pa(e,t.parentFormatContext)}function Di(n,e,t){Sl=t.byteSize;for(var a=t.completedSegments,f=0;f<a.length;f++)zi(n,e,t,a[f]);a.length=0,a=t.row,a!==null&&rl(n,t)&&--a.pendingTasks===0&&On(n,a),Ne(e,t.contentState,n.renderState),a=n.resumableState,n=n.renderState,f=t.rootSegmentID,t=t.contentState;var h=n.stylesToHoist;return n.stylesToHoist=!1,C(e,n.startInlineScript),C(e,ln),h?((a.instructions&4)===0&&(a.instructions|=4,C(e,ke)),(a.instructions&2)===0&&(a.instructions|=2,C(e,gi)),(a.instructions&8)===0?(a.instructions|=8,C(e,xu)):C(e,Ma)):((a.instructions&2)===0&&(a.instructions|=2,C(e,gi)),C(e,Aa)),a=I(f.toString(16)),C(e,n.boundaryPrefix),C(e,a),C(e,ft),C(e,n.segmentPrefix),C(e,a),h?(C(e,Ru),Tn(e,t)):C(e,vi),t=k(e,Ia),ci(e,n)&&t}function zi(n,e,t,a){if(a.status===2)return!0;var f=t.contentState,h=a.id;if(h===-1){if((a.id=t.rootSegmentID)===-1)throw Error(S(392));return Pl(n,e,a,f)}return h===t.rootSegmentID?Pl(n,e,a,f):(Pl(n,e,a,f),t=n.resumableState,n=n.renderState,C(e,n.startInlineScript),C(e,ln),(t.instructions&1)===0?(t.instructions|=1,C(e,bu)):C(e,yu),C(e,n.segmentPrefix),h=I(h.toString(16)),C(e,h),C(e,Tu),C(e,n.placeholderPrefix),C(e,h),e=k(e,Eu),e)}var Al=!1;function Ir(n,e){Xn=new Uint8Array(2048),Zn=0;try{if(!(0<n.pendingRootTasks)){var t,a=n.completedRootSegment;if(a!==null){if(a.status===5)return;var f=n.completedPreambleSegments;if(f===null)return;Sl=n.byteSize;var h=n.resumableState,d=n.renderState,b=d.preamble,g=b.htmlChunks,y=b.headChunks,T;if(g){for(T=0;T<g.length;T++)C(e,g[T]);if(y)for(T=0;T<y.length;T++)C(e,y[T]);else C(e,sn("head")),C(e,ln)}else if(y)for(T=0;T<y.length;T++)C(e,y[T]);var R=d.charsetChunks;for(T=0;T<R.length;T++)C(e,R[T]);R.length=0,d.preconnects.forEach($,e),d.preconnects.clear();var A=d.viewportChunks;for(T=0;T<A.length;T++)C(e,A[T]);A.length=0,d.fontPreloads.forEach($,e),d.fontPreloads.clear(),d.highImagePreloads.forEach($,e),d.highImagePreloads.clear(),re=d,d.styles.forEach(dt,e),re=null;var _=d.importMapChunks;for(T=0;T<_.length;T++)C(e,_[T]);_.length=0,d.bootstrapScripts.forEach($,e),d.scripts.forEach($,e),d.scripts.clear(),d.bulkPreloads.forEach($,e),d.bulkPreloads.clear(),g||y||(h.instructions|=32);var X=d.hoistableChunks;for(T=0;T<X.length;T++)C(e,X[T]);for(h=X.length=0;h<f.length;h++){var W=f[h];for(d=0;d<W.length;d++)Je(n,e,W[d],null)}var U=n.renderState.preamble,en=U.headChunks;(U.htmlChunks||en)&&C(e,Dl("head"));var p=U.bodyChunks;if(p)for(f=0;f<p.length;f++)C(e,p[f]);Je(n,e,a,null),n.completedRootSegment=null;var Mn=n.renderState;if(n.allPendingTasks!==0||n.clientRenderedBoundaries.length!==0||n.completedBoundaries.length!==0||n.trackedPostpones!==null&&(n.trackedPostpones.rootNodes.length!==0||n.trackedPostpones.rootSlots!==null)){var Yn=n.resumableState;if((Yn.instructions&64)===0){if(Yn.instructions|=64,C(e,Mn.startInlineScript),(Yn.instructions&32)===0){Yn.instructions|=32;var ul="_"+Yn.idPrefix+"R_";C(e,st),C(e,I(B(ul))),C(e,un)}C(e,ln),C(e,zl),k(e,V)}}ci(e,Mn)}var L=n.renderState;a=0;var Ln=L.viewportChunks;for(a=0;a<Ln.length;a++)C(e,Ln[a]);Ln.length=0,L.preconnects.forEach($,e),L.preconnects.clear(),L.fontPreloads.forEach($,e),L.fontPreloads.clear(),L.highImagePreloads.forEach($,e),L.highImagePreloads.clear(),L.styles.forEach(xi,e),L.scripts.forEach($,e),L.scripts.clear(),L.bulkPreloads.forEach($,e),L.bulkPreloads.clear();var hn=L.hoistableChunks;for(a=0;a<hn.length;a++)C(e,hn[a]);hn.length=0;var zn=n.clientRenderedBoundaries;for(t=0;t<zn.length;t++){var Il=zn[t];L=e;var on=n.resumableState,ql=n.renderState,bl=Il.rootSegmentID,In=Il.errorDigest;C(L,ql.startInlineScript),C(L,ln),(on.instructions&4)===0?(on.instructions|=4,C(L,bi)):C(L,ct),C(L,ql.boundaryPrefix),C(L,I(bl.toString(16))),C(L,_a),In&&(C(L,Oe),C(L,I(Fu(In||""))));var fl=k(L,wu);if(!fl){n.destination=null,t++,zn.splice(0,t);return}}zn.splice(0,t);var _r=n.completedBoundaries;for(t=0;t<_r.length;t++)if(!Di(n,e,_r[t])){n.destination=null,t++,_r.splice(0,t);return}_r.splice(0,t),Vt(e),Xn=new Uint8Array(2048),Zn=0,Al=!0;var kr=n.partialBoundaries;for(t=0;t<kr.length;t++){var we=kr[t];n:{zn=n,Il=e,Sl=we.byteSize;var Or=we.completedSegments;for(fl=0;fl<Or.length;fl++)if(!zi(zn,Il,we,Or[fl])){fl++,Or.splice(0,fl);var Wi=!1;break n}Or.splice(0,fl);var pl=we.row;pl!==null&&pl.together&&we.pendingTasks===1&&(pl.pendingTasks===1?ki(zn,pl,pl.hoistables):pl.pendingTasks--),Wi=Ne(Il,we.contentState,zn.renderState)}if(!Wi){n.destination=null,t++,kr.splice(0,t);return}}kr.splice(0,t),Al=!1;var Ve=n.completedBoundaries;for(t=0;t<Ve.length;t++)if(!Di(n,e,Ve[t])){n.destination=null,t++,Ve.splice(0,t);return}Ve.splice(0,t)}}finally{Al=!1,n.allPendingTasks===0&&n.clientRenderedBoundaries.length===0&&n.completedBoundaries.length===0?(n.flushScheduled=!1,t=n.resumableState,t.hasBody&&C(e,Dl("body")),t.hasHtml&&C(e,Dl("html")),Vt(e),n.status=14,e.close(),n.destination=null):Vt(e)}}function Re(n){n.flushScheduled=n.destination!==null,Yr(function(){return Ni(n)}),Qt(function(){n.status===10&&(n.status=11),n.trackedPostpones===null&&Pr(n,n.pendingRootTasks===0)})}function Ml(n){n.flushScheduled===!1&&n.pingedTasks.length===0&&n.destination!==null&&(n.flushScheduled=!0,Qt(function(){var e=n.destination;e?Ir(n,e):n.flushScheduled=!1}))}function ml(n,e){if(n.status===13)n.status=14,Kt(e,n.fatalError);else if(n.status!==14&&n.destination===null){n.destination=e;try{Ir(n,e)}catch(t){Pn(n,t,{}),Ue(n,t)}}}function al(n,e){(n.status===11||n.status===10)&&(n.status=12);try{var t=n.abortableTasks;if(0<t.size){var a=e===void 0?Error(S(432)):typeof e=="object"&&e!==null&&typeof e.then=="function"?Error(S(530)):e;n.fatalError=a,t.forEach(function(f){return Ze(f,n,a)}),t.clear()}n.destination!==null&&Ir(n,n.destination)}catch(f){Pn(n,f,{}),Ue(n,f)}}function It(n,e,t){if(e===null)t.rootNodes.push(n);else{var a=t.workingMap,f=a.get(e);f===void 0&&(f=[e[1],e[2],[],null],a.set(e,f),It(f,e[0],t)),f[2].push(n)}}function Hi(n){var e=n.trackedPostpones;if(e===null||e.rootNodes.length===0&&e.rootSlots===null)return n.trackedPostpones=null;if(n.completedRootSegment===null||n.completedRootSegment.status!==5&&n.completedPreambleSegments!==null){var t=n.nextSegmentId,a=e.rootSlots,f=n.resumableState;f.bootstrapScriptContent=void 0,f.bootstrapScripts=void 0,f.bootstrapModules=void 0}else{t=0,a=-1,f=n.resumableState;var h=n.renderState;f.nextFormID=0,f.hasBody=!1,f.hasHtml=!1,f.unknownResources={font:h.resets.font},f.dnsResources=h.resets.dns,f.connectResources=h.resets.connect,f.imageResources=h.resets.image,f.styleResources=h.resets.style,f.scriptResources={},f.moduleUnknownResources={},f.moduleScriptResources={},f.instructions=0}return{nextSegmentId:t,rootFormatContext:n.rootFormatContext,progressiveChunkSize:n.progressiveChunkSize,resumableState:n.resumableState,replayNodes:e.rootNodes,replaySlots:a}}function Qe(){var n=yl.version;if(n!=="19.2.5")throw Error(S(527,n,"19.2.5"))}return Qe(),Qe(),Ur.prerender=function(n,e){return new Promise(function(t,a){var f=e?e.onHeaders:void 0,h;f&&(h=function(T){f(new Headers(T))});var d=li(e?e.identifierPrefix:void 0,e?e.unstable_externalRuntimeSrc:void 0,e?e.bootstrapScriptContent:void 0,e?e.bootstrapScripts:void 0,e?e.bootstrapModules:void 0),b=Cr(n,d,Qr(d,void 0,e?e.unstable_externalRuntimeSrc:void 0,e?e.importMap:void 0,h,e?e.maxHeadersLength:void 0),ei(e?e.namespaceURI:void 0),e?e.progressiveChunkSize:void 0,e?e.onError:void 0,function(){var T=new ReadableStream({type:"bytes",pull:function(R){ml(b,R)},cancel:function(R){b.destination=null,al(b,R)}},{highWaterMark:0});T={postponed:Hi(b),prelude:T},t(T)},void 0,void 0,a,e?e.onPostpone:void 0);if(e&&e.signal){var g=e.signal;if(g.aborted)al(b,g.reason);else{var y=function(){al(b,g.reason),g.removeEventListener("abort",y)};g.addEventListener("abort",y)}}Re(b)})},Ur.renderToReadableStream=function(n,e){return new Promise(function(t,a){var f,h,d=new Promise(function(_,X){h=_,f=X}),b=e?e.onHeaders:void 0,g;b&&(g=function(_){b(new Headers(_))});var y=li(e?e.identifierPrefix:void 0,e?e.unstable_externalRuntimeSrc:void 0,e?e.bootstrapScriptContent:void 0,e?e.bootstrapScripts:void 0,e?e.bootstrapModules:void 0),T=He(n,y,Qr(y,e?e.nonce:void 0,e?e.unstable_externalRuntimeSrc:void 0,e?e.importMap:void 0,g,e?e.maxHeadersLength:void 0),ei(e?e.namespaceURI:void 0),e?e.progressiveChunkSize:void 0,e?e.onError:void 0,h,function(){var _=new ReadableStream({type:"bytes",pull:function(X){ml(T,X)},cancel:function(X){T.destination=null,al(T,X)}},{highWaterMark:0});_.allReady=d,t(_)},function(_){d.catch(function(){}),a(_)},f,e?e.onPostpone:void 0,e?e.formState:void 0);if(e&&e.signal){var R=e.signal;if(R.aborted)al(T,R.reason);else{var A=function(){al(T,R.reason),R.removeEventListener("abort",A)};R.addEventListener("abort",A)}}Re(T)})},Ur.resume=function(n,e,t){return new Promise(function(a,f){var h,d,b=new Promise(function(R,A){d=R,h=A}),g=Rl(n,e,Qr(e.resumableState,t?t.nonce:void 0,void 0,void 0,void 0,void 0),t?t.onError:void 0,d,function(){var R=new ReadableStream({type:"bytes",pull:function(A){ml(g,A)},cancel:function(A){g.destination=null,al(g,A)}},{highWaterMark:0});R.allReady=b,a(R)},function(R){b.catch(function(){}),f(R)},h,t?t.onPostpone:void 0);if(t&&t.signal){var y=t.signal;if(y.aborted)al(g,y.reason);else{var T=function(){al(g,y.reason),y.removeEventListener("abort",T)};y.addEventListener("abort",T)}}Re(g)})},Ur.resumeAndPrerender=function(n,e,t){return new Promise(function(a,f){var h=_i(n,e,Qr(e.resumableState,void 0,void 0,void 0,void 0,void 0),t?t.onError:void 0,function(){var g=new ReadableStream({type:"bytes",pull:function(y){ml(h,y)},cancel:function(y){h.destination=null,al(h,y)}},{highWaterMark:0});g={postponed:Hi(h),prelude:g},a(g)},void 0,void 0,f,t?t.onPostpone:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)al(h,d.reason);else{var b=function(){al(h,d.reason),d.removeEventListener("abort",b)};d.addEventListener("abort",b)}}Re(h)})},Ur.version="19.2.5",Ur}var Ff;function Yf(){if(Ff)return Wr;Ff=1;var yl,pe;return yl=Wf(),pe=Uf(),Wr.version=yl.version,Wr.renderToString=yl.renderToString,Wr.renderToStaticMarkup=yl.renderToStaticMarkup,Wr.renderToReadableStream=pe.renderToReadableStream,Wr.resume=pe.resume,Wr}var qe=Yf();const Jf=Hf(qe),Qf=qe.renderToPipeableStream,Vf=qe.renderToReadableStream,Kf=qe.renderToStaticMarkup,mf=qe.renderToString,qf=qe.resume,pf=qe.resumeToPipeableStream,jf=qe.version;export{Jf as default,Qf as renderToPipeableStream,Vf as renderToReadableStream,Kf as renderToStaticMarkup,mf as renderToString,qf as resume,pf as resumeToPipeableStream,jf as version};
|
|
54
|
-
//# sourceMappingURL=react-dom-server.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{g as e}from"../assets/_commonjsHelpers-CqkleIqs.js";import{r as o}from"../assets/index-VvOM7xKK.js";import"../assets/index-CxUeIbEw.js";var t=o();const c=e(t),a=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=t.createPortal,p=t.flushSync,u=t.preconnect,l=t.prefetchDNS,S=t.preinit,i=t.preinitModule,d=t.preload,m=t.preloadModule,N=t.requestFormReset,R=t.unstable_batchedUpdates,E=t.useFormState,D=t.useFormStatus,O=t.version;export{a as __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_ as createPortal,c as default,p as flushSync,u as preconnect,l as prefetchDNS,S as preinit,i as preinitModule,d as preload,m as preloadModule,N as requestFormReset,R as unstable_batchedUpdates,E as useFormState,D as useFormStatus,O as version};
|
|
2
|
-
//# sourceMappingURL=react-dom.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{g as u}from"../assets/_commonjsHelpers-CqkleIqs.js";var r={exports:{}},e={};var n;function i(){if(n)return e;n=1;var s=Symbol.for("react.fragment");return e.Fragment=s,e.jsxDEV=void 0,e}var o;function a(){return o||(o=1,r.exports=i()),r.exports}var t=a();const m=u(t),v=t.Fragment,R=t.jsxDEV;export{v as Fragment,m as default,R as jsxDEV};
|
|
2
|
-
//# sourceMappingURL=react-jsx-dev-runtime.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{j as s}from"../assets/jsx-runtime-0PlsXv6K.js";import{a as j}from"../assets/jsx-runtime-0PlsXv6K.js";import"../assets/_commonjsHelpers-CqkleIqs.js";const r=s.Fragment,x=s.jsx,m=s.jsxs;export{r as Fragment,j as default,x as jsx,m as jsxs};
|
|
2
|
-
//# sourceMappingURL=react-jsx-runtime.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{r as e}from"../assets/_importmap_react-CrAkajDz.js";import{R as Q}from"../assets/_importmap_react-CrAkajDz.js";import"../assets/_commonjsHelpers-CqkleIqs.js";import"../assets/index-CxUeIbEw.js";const c=e.Activity,o=e.Children,a=e.Component,r=e.Fragment,u=e.Profiler,i=e.PureComponent,E=e.StrictMode,f=e.Suspense,l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=e.__COMPILER_RUNTIME,m=e.act,R=e.cache,S=e.cacheSignal,C=e.captureOwnerStack,p=e.cloneElement,d=e.createContext,N=e.createElement,T=e.createRef,I=e.forwardRef,O=e.isValidElement,A=e.lazy,h=e.memo,x=e.startTransition,v=e.unstable_useCacheRefresh,y=e.use,D=e.useActionState,L=e.useCallback,M=e.useContext,P=e.useDebugValue,U=e.useDeferredValue,b=e.useEffect,g=e.useEffectEvent,V=e.useId,k=e.useImperativeHandle,w=e.useInsertionEffect,H=e.useLayoutEffect,z=e.useMemo,F=e.useOptimistic,G=e.useReducer,W=e.useRef,Y=e.useState,j=e.useSyncExternalStore,q=e.useTransition,B=e.version;export{c as Activity,o as Children,a as Component,r as Fragment,u as Profiler,i as PureComponent,E as StrictMode,f as Suspense,l as __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_ as __COMPILER_RUNTIME,m as act,R as cache,S as cacheSignal,C as captureOwnerStack,p as cloneElement,d as createContext,N as createElement,T as createRef,Q as default,I as forwardRef,O as isValidElement,A as lazy,h as memo,x as startTransition,v as unstable_useCacheRefresh,y as use,D as useActionState,L as useCallback,M as useContext,P as useDebugValue,U as useDeferredValue,b as useEffect,g as useEffectEvent,V as useId,k as useImperativeHandle,w as useInsertionEffect,H as useLayoutEffect,z as useMemo,F as useOptimistic,G as useReducer,W as useRef,Y as useState,j as useSyncExternalStore,q as useTransition,B as version};
|
|
2
|
-
//# sourceMappingURL=react.js.map
|
|
@@ -130,4 +130,3 @@ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.pus
|
|
|
130
130
|
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
131
131
|
`,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=je(e),n=te(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const t=je(e),n=te(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function xi(s){const e=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||e&&new Bi||null,prettyErrors:e}}function Ri(s,e={}){const{lineCounter:t,prettyErrors:n}=xi(e),i=new ji(t?.addNewLine),r=new Ci(e);let o=null;for(const a of r.compose(i.parse(s),!0,s.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new we(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(o.errors.forEach(ls(s,t)),o.warnings.forEach(ls(s,t))),o}function Di(s,e,t){let n;const i=Ri(s,t);if(!i)return null;if(i.warnings.forEach(r=>Us(i.options.logLevel,r)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:n},t))}function Fi(s){return String(s).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Ki(s,e){const{language:t,tag:n,data:i}=e||{};if(!n)return s;if(i!==void 0)return i;const r=(t||"").toLowerCase();if(r==="json")try{return JSON.parse(s)}catch{return s}if(r==="yaml"||r==="yml")try{return Di(s)}catch{return s}return s}function $e(s){return s.type==="UniwebIcon"||s.type==="image"&&s.attrs?.role==="icon"}function ne(s,e={}){const t=[];return Ui(s,t,e),t}function Ui(s,e,t){s.content&&Array.isArray(s.content)&&s.content?.forEach(n=>{const i=qi(n,t);i&&(Array.isArray(i)?e.push(...i):e.push(i))})}function qi(s,e={}){const t=s.attrs,n=s.content,i=er(s);if(i)return{type:"link",attrs:i};const r=tr(s);if(r)return r;const o=sr(s);if(o)return o;switch(s.type){case"heading":return{type:"heading",level:s.attrs.level,text:ie(n,e),children:ve(n),attrs:t};case"paragraph":return{type:"paragraph",text:ie(n,e),children:ve(n),attrs:t};case"blockquote":return{type:"blockquote",children:ne({content:n}),attrs:t};case"inset_block":{const{component:l,...c}=t||{};return{type:"inset_block",component:l,params:c,children:ne({content:n})}}case"concept_block":return{type:"concept_block",tag:t?.tag,children:ne({content:n},e)};case"dataBlock":return{type:"dataBlock",data:t.data,tag:t.tag};case"codeBlock":{const l=ie(n,e);return t?.tag?{type:"dataBlock",tag:t.tag,data:Ki(l,t)}:{type:"codeBlock",text:l,attrs:t}}case"inset_placeholder":return{type:"inset",refId:t.refId};case"math_display":return{type:"math",display:!0,id:s.attrs?.id||null,latex:s.attrs?.latex||"",mathml:s.attrs?.mathml||"",attrs:t};case"ImageBlock":return{type:"image",attrs:Et(t)};case"image":return t?.role==="video"?{type:"video",attrs:bn(t)}:{type:"image",attrs:Et(t||{})};case"Video":return{type:"video",attrs:Zi(t)};case"bulletList":case"orderedList":{const l=n.map(c=>c.type==="listItem"&&c.content?c.content:null).filter(Boolean);return{type:"list",style:s.type==="bulletList"?"bullet":"ordered",children:l.map(c=>ne({content:c})),attrs:t}}case"table":return{type:"table",rows:(n||[]).filter(c=>c.type==="tableRow").map(c=>({cells:(c.content||[]).filter(f=>f.type==="tableCell").map(f=>({children:ne({content:f.content},e),header:f.attrs?.header===!0,align:f.attrs?.align||null,colspan:f.attrs?.colspan||1,rowspan:f.attrs?.rowspan||1}))})),attrs:t};case"divider":case"DividerBlock":case"horizontalRule":return{type:"divider",attrs:t};case"card-group":return{type:"card-group",cards:s.content?.filter(l=>l.type==="card"&&!l.attrs?.hidden).map(l=>Yi(l.attrs))||[]};case"document-group":return{type:"document-group",documents:s.content?.filter(l=>l.type==="document").map(l=>Qi(l.attrs))||[]};case"StructuredContent":case"FormBlock":let a=t?.data;if(typeof a=="string")try{a=JSON.parse(a)}catch{}return{type:"form",schemaId:t?.activeSchemaId||null,data:a,attrs:t};case"button":{let l=ie(n,e);return l?{type:"button",text:l,children:ve(n),attrs:t}:null}case"UniwebIcon":return{type:"icon",attrs:lt(t)};case"Icon":return{type:"icon",attrs:Xi(t)};default:return{type:s.type,content:ie(n,e)}}}const Vi=["pdf","doc","docx","xls","xlsx","ppt","pptx","jpg","jpeg","png","webp","gif","svg","mp4","mp3","wav","mov","zip"];function Hi(s){return(s?.marks||[]).find(e=>e.type==="link")||null}function Wi(s,e){return!s||!e?!1:JSON.stringify(s.attrs||{})===JSON.stringify(e.attrs||{})}function zi(s,e){const t=e.attrs.href,n=e.attrs.target||"_self",i=t.split(".").pop()?.toLowerCase(),r=Vi.includes(i);return`<a href="${t}" target="${n}"${r?" download":""}>${s}</a>`}function ie(s,e={}){if(!s)return"";const t=[];for(const n of s){const i=n?.type==="text"?Hi(n):null,r=t[t.length-1];i&&r?.link&&Wi(r.link,i)?r.nodes.push(n):t.push({link:i,nodes:[n]})}return t.reduce((n,i)=>{const r=i.nodes.reduce((o,a)=>o+Ji(a),"");return!r&&!i.link?n:n+(i.link?zi(r,i.link):r)},"").trim()}function Ji(s){return[s].reduce((e,t)=>{const{type:n,marks:i=[],text:r}=t;if(n==="text"){let o=r||"";if(i.some(a=>a.type==="textStyle")){const a=i.find(l=>l.type==="textStyle")?.attrs?.color;a&&(o=`<span style="color: var(--${a})">${o}</span>`)}if(i.some(a=>a.type==="highlight")&&(o=`<span style="background-color: var(--highlight)">${o}</span>`),i.some(a=>a.type==="span")){const l=i.find(h=>h.type==="span")?.attrs||{},c=[],f=[];l.class&&c.push(`class="${l.class}"`),l.id&&c.push(`id="${l.id}"`);for(const[h,p]of Object.entries(l))h==="class"||h==="id"||(h==="color"?f.push(`color: ${p}`):h==="bg"?f.push(`background: ${p}`):c.push(`${h}="${p}"`));f.length>0&&c.push(`style="${f.join("; ")}"`),o=`<span${c.length>0?` ${c.join(" ")}`:""}>${o}</span>`}return i.some(a=>a.type==="code")&&(o=`<code>${o}</code>`),i.some(a=>a.type==="bold")&&(o=`<strong>${o}</strong>`),i.some(a=>a.type==="italic")&&(o=`<em>${o}</em>`),e+o}else if(n==="math_inline"){const o=Fi(t.attrs?.latex||""),a=t.attrs?.mathml||"";return e+`<span data-type="math" data-latex="${o}" data-display="false">${a}</span>`}else if(n==="inset_placeholder"){const o=t.attrs?.refId;return o?e+`<uniweb-inset data-ref-id="${o}"></uniweb-inset>`:e}else return n==="hardBreak"?e+"<br>":e},"")}function ve(s){if(!s)return[];const e=[];for(const t of s)if($e(t))e.push({type:"icon",attrs:lt(t.attrs)});else if(t.type==="image"||t.type==="ImageBlock"){const n=t.attrs?.role==="video";e.push({type:n?"video":"image",attrs:n?bn(t.attrs):Et(t.attrs||{})})}else if(t.type==="math-inline"||t.type==="math_inline")e.push(t);else if(t.type==="inset_placeholder")e.push({type:"inset",refId:t.attrs?.refId,embedKind:t.attrs?.embedKind||"visual"});else if(t.type==="text"&&t.marks){const n=t.marks.find(i=>i.type==="link");n&&e.push({type:"link",attrs:{...n.attrs,label:t.text||""}})}return e}const Gi="https://assets.uniweb.app/";function yn(s){if(!s||typeof s!="string")return"";const[e,t]=s.split("/");if(!t)return"";const n=t.substring(t.lastIndexOf(".")+1);return`${Gi}dist/${e}/base.${n}`}function he(s){const e=s?.src||s?.url||"";return e||(s?.identifier?yn(s.identifier):"")}function Yi(s){const{address:e,...t}=s;let n=null;try{e&&(n=JSON.parse(e))}catch{}const{coverImg:i=null,icon:r}=t;return r&&(t.icon=lt(r)),{...t,address:n,coverImg:he(i)}}function Qi(s){const{src:e,info:t={},coverImg:n=null,...i}=s;let r={...i,coverImg:he(n)};if(e)r.href=e;else{const{identifier:o=""}=t;o&&(r.downloadUrl=yn(o))}return r}function lt(s){const{svg:e,url:t,src:n,size:i,color:r,preserveColors:o,href:a,target:l,library:c,name:f}=s||{},u={};e&&(u.svg=e),(t||n)&&(u.url=t||n),i&&(u.size=i),r&&(u.color=r),o&&(u.preserveColors=o),a&&(u.href=a),l&&(u.target=l);let h=c,p=f;if(!h&&typeof f=="string"&&f.includes(":")){const[m,...d]=f.split(":");h=m,p=d.join(":")}return h&&(u.library=h),p&&(u.name=p),u}function Xi(s){const{svg:e,theme:t}=s||{},n={};return e&&(n.svg=e),t&&(n.theme=t),n}function Et(s){let{info:e,targetId:t,caption:n="",direction:i,filter:r,alt:o="",src:a,url:l,href:c="",target:f="",theme:u,role:h,credit:p="",id:m,width:d,height:g,loading:b,fit:y,position:S,preview:v,author:w,description:k}=s,{contentType:A,viewType:_,contentId:$,identifier:R}=e||{};const H={center:"basic",wide:"lg",fill:"full"};return n=wn(n),R?l=he(e):!l&&a&&(l=a),{contentType:A,viewType:_,contentId:t||$,url:l,value:R||"",alt:o||n,caption:n,direction:i,filter:r,imgPos:i==="left"||i==="right"?i:"",size:H[i]||"basic",href:c,target:f,theme:u,role:h,credit:p,id:m||void 0,...d!=null&&{width:d},...g!=null&&{height:g},...b&&{loading:b},...y&&{fit:y},...S&&{position:S},...v&&{preview:v},...w&&{author:w},...k&&{description:k}}}function bn(s){const{src:e,url:t,info:n,poster:i,alt:r="",caption:o="",autoplay:a,muted:l,loop:c,controls:f,href:u="",target:h="",role:p,id:m}=s||{},d={src:he({src:t||e,...n}),alt:r,caption:wn(o),role:p,href:u,target:h};return i&&(d.poster=i),a!==void 0&&(d.autoplay=a),l!==void 0&&(d.muted=l),c!==void 0&&(d.loop=c),f!==void 0&&(d.controls=f),m&&(d.id=m),d}function Zi(s){let{src:e,caption:t="",direction:n,info:i={},coverImg:r={},alt:o,href:a="",target:l=""}=s;return{src:he({src:e,...i}),caption:t,direction:n,coverImg:he(r),alt:o,href:a,target:l}}function wn(s){return!s||typeof s!="string"?"":s.replace(/<[^>]*>/g,"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/ /g," ").replace(/&#(\d+);/g,(t,n)=>String.fromCharCode(Number(n))).replace(/&#x([0-9a-fA-F]+);/g,(t,n)=>String.fromCharCode(parseInt(n,16)))}function er(s){if(["paragraph","heading"].includes(s.type)){const e=s?.content||[],t=e.filter(n=>$e(n)?!1:n.type==="text"?(n.text||"").trim()!=="":!0);if(t.length===1){let n=t[0],i=n?.marks||[];for(let r=0;r<i.length;r++){let o=i[r];if(o?.type==="link"){const a=e.findIndex(f=>f.type==="text"&&f.text===n.text);let l=null,c=null;for(let f=0;f<e.length;f++)if($e(e[f])){const u=lt(e[f].attrs);f<a?l=u:f>a&&(c||(c=u))}return{...o?.attrs,label:n?.text||"",iconBefore:l,iconAfter:c,children:ve(e)}}}}}return!1}function tr(s){if(s.type!=="paragraph")return!1;const e=s?.content||[];if(!e.length)return!1;const t=e.filter(i=>!($e(i)||i.type==="text"&&!(i.text||"").trim()));return t.length<2||!t.every(i=>i.type!=="text"?!1:i.marks?.some(o=>o.type==="link"))?!1:t.map(i=>({type:"link",attrs:{...i.marks.find(o=>o.type==="link")?.attrs,label:i.text||""}}))}function sr(s){if(!["paragraph","heading"].includes(s.type))return!1;let e=s?.content||[];if(!e.length)return!1;e=e.filter(a=>!$e(a));let t=e[0]?.marks?.find(a=>a.type==="link"&&a.attrs);if(!t||!e.every(a=>a?.marks?.some(l=>l.type==="link"&&l.attrs?.href===t.attrs?.href)||!1))return!1;const{href:n,target:i}=t.attrs,r=e.map(a=>{const l=a.marks?.filter(c=>c.type!=="link")||[];return{...a,marks:l}});let o=ie(r);return o?{type:"paragraph",children:ve(s.content),text:`<a target="${i}" href="${n}">${o}</a>`,attrs:s.attrs}:!1}function ps(s){if(!s)return null;const e={title:s.header.title||"",pretitle:s.header.pretitle||"",subtitle:s.header.subtitle||"",paragraphs:s.body.paragraphs||[],links:s.body.links||[],images:s.body.images||[],icons:s.body.icons||[],lists:s.body.lists||[],videos:s.body.videos||[],insets:s.body.insets||[],snippets:s.body.snippets||[],data:s.body.data||{},quotes:s.body.quotes||[],headings:s.body.headings||[]};return s.body.math&&s.body.math.length&&(e.math=s.body.math),s.body.tables&&s.body.tables.length&&(e.tables=s.body.tables),e}function kn(s,e={}){if(!s.length)return{title:"",pretitle:"",subtitle:"",paragraphs:[],links:[],images:[],icons:[],lists:[],videos:[],insets:[],snippets:[],data:{},quotes:[],headings:[],items:[]};const n=nr(s,e).map(c=>Pt(c));let i=null,r=[];(e.alwaysItems?!1:ar(n))?(i=n[0],r=n.slice(1)):r=n;const a=ps(i)||{title:"",pretitle:"",subtitle:"",paragraphs:[],links:[],images:[],icons:[],lists:[],videos:[],insets:[],data:{},quotes:[],headings:[]},l=r.map(ps);return{...a,items:l}}function nr(s,e={}){const t=[];let n=[];for(let i=0;i<s.length;i++){const r=s[i];if(r.type==="divider"){n.length>0&&(t.push(n),n=[]);continue}if(r.type==="heading"){const o=i===1&&rr(s,0);n.length>0&&!o&&(t.push(n),n=[]);const a=or(s,i,e);n.push(...a),i+=a.length-1}else n.push(r)}return n.length>0&&t.push(n),t}function ir(s,e){return e+1<s.length&&s[e].type==="heading"&&s[e+1].type==="heading"&&s[e].level>s[e+1].level}function rr(s,e){return e+1<s.length&&s[e].type==="image"&&(s[e].role==="banner"||s[e+1].type==="heading")}function or(s,e,t={}){const n=[s[e]];let i=!1;for(let r=e+1;r<s.length;r++){const o=s[r],a=n[n.length-1];if(o.type!=="heading")break;if(o.level-a.level===1){i=!0,n.push(o);continue}if(n.length===1&&o.level<a.level){n.push(o);continue}if(o.level===a.level&&!i&&!t.alwaysItems){n.push(o);continue}break}return n}function Pt(s){const e={pretitle:"",title:"",subtitle:""},t={images:[],icons:[],videos:[],insets:[],snippets:[],paragraphs:[],links:[],lists:[],data:{},quotes:[],headings:[]},n={level:null,contentTypes:new Set};if(!s)return{header:e,body:t,metadata:n};let i=null,r=null;for(let o=0;o<s.length;o++){ir(s,o)&&!e.pretitle&&(e.pretitle=s[o].text,o++);const a=s[o];if(a.type==="heading"){if(a.children&&Array.isArray(a.children)&&mt(a.children,t),n.level??=a.level,r!==null&&a.level===r&&i){const l=e[i];Array.isArray(l)?l.push(a.text):e[i]=[l,a.text]}else e.title?e.subtitle?(t.headings.push(a.text),i=null):(e.subtitle=a.text,i="subtitle"):(e.title=a.text,i="title");r=a.level}else if(a.type==="list"){const l=a.children;t.lists.push(l.map(c=>Pt(c).body))}else{let l={...a.attrs};switch(a.type){case"paragraph":a.children&&Array.isArray(a.children)&&mt(a.children,t),a.text&&t.paragraphs.push(a.text);break;case"image":a.attrs?.role==="icon"?t.icons.push(a.attrs):t.images.push(l);break;case"video":t.videos.push(l);break;case"link":a.children&&Array.isArray(a.children)&&mt(a.children,t),t.links.push(l);break;case"icon":t.icons.push(a.attrs);break;case"button":t.links.push({href:a.attrs?.href||"",label:a.text||"",role:a.attrs?.variant?`button-${a.attrs.variant}`:"button",variant:a.attrs?.variant||"primary",size:a.attrs?.size,icon:a.attrs?.icon,target:a.attrs?.target,class:a.attrs?.class});break;case"blockquote":const c=Pt(a.children);t.quotes.push(c.body);break;case"concept_block":{const f=a.children||[];t.data[a.tag]={items:kn(f,{alwaysItems:!0}).items,sequence:f};break}case"dataBlock":t.data[a.tag]=a.data;break;case"codeBlock":t.snippets.push({language:a.attrs?.language||"",code:typeof a.text=="string"?a.text:""});break;case"math":(t.math||=[]).push({id:a.id||null,latex:a.latex||"",mathml:a.mathml||""});break;case"table":(t.tables||=[]).push({rows:a.rows||[],attrs:a.attrs||{}});break;case"inset":t.insets.push({refId:a.refId});break;case"form":{const f=a.data||a.attrs,u=a.schemaId||"form";t.data[u]=f}break;case"card-group":(a.cards||[]).forEach(f=>{const u=f.cardType||"card";t.data[u]||(t.data[u]=[]);const{cardType:h,...p}=f;t.data[u].push(p)});break;case"document-group":a.documents.forEach(f=>{t.links.push({href:f.href||f.downloadUrl||"",label:f.title||"",role:"document",download:!0,preview:f.coverImg,fileType:f.fileType})});break}}}return{header:e,body:t,metadata:n}}function ar(s){if(s.length===0)return!1;if(s.length===1)return!0;const e=s[0].metadata.level,t=s[1].metadata.level;return!!(e&&(!t||e<t)||!e&&t)}function mt(s,e){s.forEach(t=>{t.type==="icon"?e.icons.push(t.attrs):t.type==="image"?t.attrs?.role==="icon"?e.icons.push(t.attrs):e.images.push(t.attrs):t.type==="video"?e.videos.push(t.attrs):t.type==="link"&&e.links.push(t.attrs)})}function lr(s,e={}){const t={...e},n=ne(s,t),i=kn(n,t);return{raw:s,sequence:n,...i}}const Je=[50,100,200,300,400,500,600,700,800,900,950],M={50:.97,100:.93,200:.87,300:.78,400:.68,500:.55,600:.48,700:.4,800:.32,900:.24,950:.14},cr={50:.15,100:.25,200:.4,300:.65,400:.85,500:1,600:.95,700:.85,800:.75,900:.6,950:.45},fr=M[50]-M[500],ur=M[500]-M[950],Ge={};for(const s of Je)s<500?Ge[s]=(M[s]-M[500])/fr:s>500&&(Ge[s]=(M[500]-M[s])/ur);const gs={fixed:{hueShift:{light:0,dark:0},chromaBoost:1,lightEndChroma:.15,darkEndChroma:.45},natural:{hueShift:{light:5,dark:-15},chromaBoost:1.1,lightEndChroma:.2,darkEndChroma:.4},vivid:{hueShift:{light:3,dark:-10},chromaBoost:1.4,lightEndChroma:.35,darkEndChroma:.55}};function Sn(s){if(!s||typeof s!="string")throw new Error(`Invalid color: ${s}`);const e=s.trim().toLowerCase();if(e.startsWith("oklch("))return hr(e);if(e.startsWith("#"))return ms(e);if(e.startsWith("rgb"))return pr(e);if(e.startsWith("hsl"))return gr(e);if(/^[0-9a-f]{3,8}$/i.test(e))return ms("#"+e);throw new Error(`Unsupported color format: ${s}`)}function hr(s){const e=s.match(/oklch\(\s*([0-9.]+)(%?)\s+([0-9.]+)\s+([0-9.]+)(deg)?\s*\)/);if(!e)throw new Error(`Invalid oklch format: ${s}`);let t=parseFloat(e[1]);e[2]==="%"&&(t/=100);const n=parseFloat(e[3]),i=parseFloat(e[4]);return{l:t,c:n,h:i}}function ms(s){const e=dr(s);return Zt(e.r,e.g,e.b)}function dr(s){let e=s.replace("#","");e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length===4&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e.slice(0,6),16);return{r:t>>16&255,g:t>>8&255,b:t&255}}function pr(s){const e=s.match(/rgba?\(\s*([0-9.]+)[\s,]+([0-9.]+)[\s,]+([0-9.]+)/);if(!e)throw new Error(`Invalid rgb format: ${s}`);const t=parseFloat(e[1]),n=parseFloat(e[2]),i=parseFloat(e[3]);return Zt(t,n,i)}function gr(s){const e=s.match(/hsla?\(\s*([0-9.]+)(deg)?[\s,]+([0-9.]+)%[\s,]+([0-9.]+)%/);if(!e)throw new Error(`Invalid hsl format: ${s}`);const t=parseFloat(e[1]),n=parseFloat(e[3])/100,i=parseFloat(e[4])/100,r=mr(t,n,i);return Zt(r.r*255,r.g*255,r.b*255)}function mr(s,e,t){const n=s/360;let i,r,o;if(e===0)i=r=o=t;else{const a=t<.5?t*(1+e):t+e-t*e,l=2*t-a;i=yt(l,a,n+1/3),r=yt(l,a,n),o=yt(l,a,n-1/3)}return{r:i,g:r,b:o}}function yt(s,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?s+(e-s)*6*t:t<1/2?e:t<2/3?s+(e-s)*(2/3-t)*6:s}function Zt(s,e,t){s/=255,e/=255,t/=255,s=bt(s),e=bt(e),t=bt(t);const n=.4122214708*s+.5363325363*e+.0514459929*t,i=.2119034982*s+.6806995451*e+.1073969566*t,r=.0883024619*s+.2817188376*e+.6299787005*t,o=Math.cbrt(n),a=Math.cbrt(i),l=Math.cbrt(r),c=.2104542553*o+.793617785*a-.0040720468*l,f=1.9779984951*o-2.428592205*a+.4505937099*l,u=.0259040371*o+.7827717662*a-.808675766*l,h=Math.sqrt(f*f+u*u);let p=Math.atan2(u,f)*(180/Math.PI);return p<0&&(p+=360),{l:c,c:h,h:p}}function bt(s){return s<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4)}function wt(s){return s<=.0031308?12.92*s:1.055*Math.pow(s,1/2.4)-.055}function ct(s,e,t){const n=t*(Math.PI/180),i=e*Math.cos(n),r=e*Math.sin(n),o=s+.3963377774*i+.2158037573*r,a=s-.1055613458*i-.0638541728*r,l=s-.0894841775*i-1.291485548*r,c=o*o*o,f=a*a*a,u=l*l*l;let h=4.0767416621*c-3.3077115913*f+.2309699292*u,p=-1.2684380046*c+2.6097574011*f-.3413193965*u,m=-.0041960863*c-.7034186147*f+1.707614701*u;return h=Math.round(Math.max(0,Math.min(1,wt(h)))*255),p=Math.round(Math.max(0,Math.min(1,wt(p)))*255),m=Math.round(Math.max(0,Math.min(1,wt(m)))*255),{r:h,g:p,b:m}}function yr(s,e,t){return s>=-.5&&s<=255.5&&e>=-.5&&e<=255.5&&t>=-.5&&t<=255.5}function _n(s,e,t){let n=0,i=t,r=0;for(let o=0;o<8;o++){const a=(n+i)/2,l=ct(s,a,e);yr(l.r,l.g,l.b)?(r=a,n=a):i=a}return r}function ys(s,e,t,n){const i=1-n;return i*i*s+2*i*n*e+n*n*t}function xe(s,e,t){return s+(e-s)*t}function kt(s){return s=s%360,s<0?s+360:s}function br(s){return s>=0&&s<120||s>300}function Ye(s,e,t){const n=(s*100).toFixed(1),i=e.toFixed(4),r=t.toFixed(1);return`oklch(${n}% ${i} ${r})`}function es(s,e,t){const n=i=>i.toString(16).padStart(2,"0");return`#${n(s)}${n(e)}${n(t)}`}function bs(s,e={}){const{format:t="oklch",mode:n="fixed",exactMatch:i}=e,r=Sn(s),o=gs[n]||gs.fixed;return n==="fixed"?wr(r,s,t,i):kr(r,s,t,o,i)}function wr(s,e,t,n){const i={},r=n!==!1;for(const o of Je){if(r&&o===500){t==="hex"?i[o]=e.startsWith("#")?e:vn(s):i[o]=Ye(s.l,s.c,s.h);continue}let a;r?o<500?a=s.l+Ge[o]*(M[50]-s.l):a=s.l-Ge[o]*(s.l-M[950]):a=M[o];const l=cr[o],c=s.c*l,f=_n(a,s.h,c);if(t==="hex"){const u=ct(a,f,s.h);i[o]=es(u.r,u.g,u.b)}else i[o]=Ye(a,f,s.h)}return i}function kr(s,e,t,n,i){const r={},o=br(s.h),a=o?n.hueShift.light:-n.hueShift.light,l=o?n.hueShift.dark:-n.hueShift.dark,c={l:M[50],c:s.c*n.lightEndChroma,h:kt(s.h+a)},f={l:M[950],c:s.c*n.darkEndChroma,h:kt(s.h+l)},u=s.c*n.chromaBoost;for(let h=0;h<Je.length;h++){const p=Je[h];if(i!==!1&&p===500){t==="hex"?r[p]=e.startsWith("#")?e:vn(s):r[p]=Ye(s.l,s.c,s.h);continue}let m,d,g;if(h<=5){const y=h/5;m=xe(c.l,s.l,y),g=xe(c.h,s.h,y);const S=(c.c+u)/2;d=ys(c.c,S,u,y)}else{const y=(h-5)/5;m=xe(s.l,f.l,y),g=xe(s.h,f.h,y);const S=(u+f.c)/2;d=ys(u,S,f.c,y)}g=kt(g);const b=_n(m,g,d);if(t==="hex"){const y=ct(m,b,g);r[p]=es(y.r,y.g,y.b)}else r[p]=Ye(m,b,g)}return r}function vn(s){const e=ct(s.l,s.c,s.h);return es(e.r,e.g,e.b)}function lo(s,e={}){const t={};for(const[n,i]of Object.entries(s)){if(typeof i=="object"&&i!==null&&!i.base&&Object.keys(i).some(o=>!isNaN(parseInt(o)))){t[n]=i;continue}if(typeof i=="object"&&i!==null&&i.base){const{base:r,...o}=i;t[n]=bs(r,{...e,...o})}else typeof i=="string"&&(t[n]=bs(i,e))}return t}function co(s){try{return Sn(s),!0}catch{return!1}}const ws=new Set([50,100,200,300,400,500,600,700,800,900,950]),ks=/^([a-z][a-z0-9]*)-(\d+)$/,Sr=/^([a-z][a-z0-9]*-\d+)\/(\d+)$/,_r=/^rgba\(\s*(var\(--[^)]+\))\s*\/\s*([\d.]+)\s*\)$/;function Ss(s){if(typeof s!="string")return s;const e=s.match(_r);if(e){const r=e[1],o=parseFloat(e[2]);return o>=.999?r:`color-mix(in srgb, ${r} ${Math.round(o*100)}%, transparent)`}if(s.includes("(")||s.startsWith("#"))return s;const t=s.replace(/^-{0,2}/,""),n=t.match(Sr);if(n){const r=n[1],o=parseInt(n[2],10),a=r.match(ks);if(a&&ws.has(parseInt(a[2],10)))return o>=100?`var(--${r})`:`color-mix(in srgb, var(--${r}) ${o}%, transparent)`}const i=t.match(ks);if(i){const r=parseInt(i[2],10);if(ws.has(r))return`var(--${t})`}return s}function vr(s){if(!s||!Array.isArray(s.content))return{content:s,refs:[]};const e=[],t=i=>{let r=!1;const o=i.map(a=>{if(!a)return a;if(a.type==="inset_block"){const{component:l,...c}=a.attrs||{},f=`container_${e.length}`;return e.push({refId:f,type:l,params:c,content:{type:"doc",content:a.content||[]}}),r=!0,{type:"inset_placeholder",attrs:{refId:f,embedKind:"block"}}}if(Array.isArray(a.content)){const l=t(a.content);if(l!==a.content)return r=!0,{...a,content:l}}return a});return r?o:i},n=t(s.content);return n===s.content?{content:s,refs:e}:{content:{...s,content:n},refs:e}}class K{constructor(e,t,n){this.id=t,this.stableId=e.stableId||null,this.page=n,this.website=n.website,this.type=e.type||this.website.getDefaultBlockType(),this.Component=null;const i=vr(e.content);this.rawContent=i.content||{},this.parsedContent=this.parseContent(i.content),e.parsedContent?.data&&(this.parsedContent.data={...this.parsedContent.data||{},...e.parsedContent.data}),this.items=this.parsedContent.items||[];const r=e.params||e.config||{};this.preset=e.preset;const o=r.theme;if(o&&typeof o=="object"){const{mode:c,...f}=o;if(this.themeName=c||"",Object.keys(f).length>0){for(const u of Object.keys(f))f[u]=Ss(f[u]);this.contextOverrides=f}else this.contextOverrides=null}else this.themeName=o??"",this.contextOverrides=null;this.standardOptions=r.standardOptions||{},this.properties=r.properties||r,this.properties.theme&&typeof this.properties.theme=="object"&&(this.properties={...this.properties,theme:this.themeName});const a=r.background;a&&!this.standardOptions.background&&(this.standardOptions={...this.standardOptions,background:K.normalizeBackground(a)}),this.childBlocks=e.subsections?e.subsections.map((c,f)=>new K(c,`${t}_${f}`,this.page)):[],this.insets=[];const l=e.insets;if(l?.length>0)for(let c=0;c<l.length;c++){const f=l[c],u=f.title||"",h=new K({type:f.type,params:f.params||{},content:{title:u},stableId:f.refId,refId:f.refId},`${t}_inset_${c}`,this.page);this.insets.push(h)}for(let c=0;c<i.refs.length;c++){const f=i.refs[c];this.insets.push(new K({type:f.type,params:f.params||{},content:f.content,stableId:f.refId,refId:f.refId},`${t}_container_${c}`,this.page))}this.fetch=e.fetch||null,this.dataLoading=!1,this.hasBackground=!1,this.refId=e.refId||null,this.dynamicContext=e.dynamicContext||null,this.startState=null,this.state=null,this.resetStateHook=null,this.context=null,this.componentVars=null,Object.seal(this)}get path(){return this.page.getNavRoute()}get key(){return`${this.path}-${this.id}`}get parentPath(){return this.dynamicContext?.templateRoute?this.dynamicContext.templateRoute.split("/").slice(0,-1).join("/")||"/":this.path.split("/").slice(0,-1).join("/")||"/"}parseContent(e){return e?.groups?e.groups:e?.type==="doc"?this.extractFromProseMirror(e):e?.doc?.type==="doc"?this.extractFromProseMirror(e.doc):e&&typeof e=="object"&&!Array.isArray(e)?e:{title:"",paragraphs:[],items:[],sequence:[]}}extractFromProseMirror(e){try{return lr(e)}catch(t){return console.warn("[Block] Semantic parser error, using fallback:",t.message),this.extractFromProseMirrorFallback(e)}}extractFromProseMirrorFallback(e){const t={title:"",pretitle:"",subtitle:"",paragraphs:[],links:[],images:[],lists:[],icons:[],items:[],sequence:[]};if(!e.content)return t;for(const n of e.content)if(n.type==="heading"){const i=this.extractText(n);n.attrs?.level===1?t.title=i:n.attrs?.level===2&&(t.subtitle=i)}else if(n.type==="paragraph"){const i=this.extractText(n);t.paragraphs.push(i)}return t}extractText(e){return e.content?e.content.filter(t=>t.type==="text").map(t=>t.text).join(""):""}initComponent(){if(this.Component)return this.Component;if(this.Component=globalThis.uniweb?.getComponent(this.type),!this.Component)return console.warn(`[Block] Component not found: ${this.type}`),null;const e=globalThis.uniweb?.getComponentMeta(this.type)||{},t=e.initialState;return this.startState=t?{...t}:null,this.initState(),this.context=e.context?{...e.context}:null,e.vars&&(this.componentVars=K.mergeComponentVars(e.vars,this.properties.vars)),this.Component}getBlockProperties(){return this.properties}getInset(e){return this.insets.find(t=>t.refId===e)||null}getChildBlockRenderer(){return globalThis.uniweb.childBlockRenderer}getBlockLinks(e={}){const t=globalThis.uniweb?.activeWebsite,n=this.parsedContent||{};if(e.nested){const o=(n.lists||[])[0];return K.parseNestedLinks(o,t)}return(n.links||[]).map(r=>({route:t?.makeHref(r.href)||r.href,label:r.label}))}initState(){this.state=this.startState,this.resetStateHook&&this.resetStateHook()}getIndex(){return this.page?this.page.getBlockIndex(this):-1}getBlockInfo(){return{type:this.type,theme:this.themeName,contextOverrides:this.contextOverrides,state:this.state,context:this.context}}getNextBlockInfo(){const e=this.website?.activePage;if(e&&e!==this.page)return e.getFirstBodyBlockInfo();const t=this.getIndex();return t<0||!this.page?null:this.page.getBlockInfo(t+1)}getPrevBlockInfo(){const e=this.website?.activePage;if(e&&e!==this.page)return e.getLastBodyBlockInfo();const t=this.getIndex();return t<=0||!this.page?null:this.page.getBlockInfo(t-1)}useBlockState(e,t){t!==void 0&&this.startState===null?(this.startState=t,this.state=t):t=this.startState;const[n,i]=e(t);return this.resetStateHook=()=>i(t),[n,r=>i(this.state=r)]}getDynamicContext(){return this.dynamicContext}static mergeComponentVars(e,t={}){const n={};for(const[i,r]of Object.entries(e)){const o=typeof r=="string"?r:r?.default;o!=null&&(n[i]=o)}if(t&&typeof t=="object")for(const[i,r]of Object.entries(t))r!=null&&i in e&&(n[i]=String(r));return Object.keys(n).length>0?n:null}static normalizeBackground(e){if(typeof e=="string"){if(/^(\/|\.\/|\.\.\/|https?:\/\/)/.test(e)||/\.(jpe?g|png|webp|gif|svg|avif|mp4|webm|ogv|ogg)$/i.test(e)){const t=e.split(".").pop()?.toLowerCase();return["mp4","webm","ogv","ogg"].includes(t)?{mode:"video",video:{src:e}}:{mode:"image",image:{src:e}}}return/^(linear|radial|conic)-gradient\(/.test(e)?{mode:"gradient",gradient:e}:{mode:"color",color:Ss(e)}}if(e.mode)return e;if(typeof e.overlay=="number"&&(e={...e,overlay:{enabled:!0,type:"dark",opacity:e.overlay}}),e.video||e.sources)return{mode:"video",...e};if(e.image||e.src){if(e.src){const{src:t,position:n,size:i,lazy:r,...o}=e;return{mode:"image",image:{src:t,position:n,size:i,lazy:r},...o}}if(typeof e.image=="string"){const{image:t,...n}=e;return{mode:"image",image:{src:t},...n}}return{mode:"image",...e}}return e.gradient?{mode:"gradient",...e}:e.color?{mode:"color",...e}:e}static parseNestedLinks(e,t){const n=[];if(!e?.length)return n;for(const i of e){const{links:r=[],lists:o=[],paragraphs:a=[]}=i,l=r[0],c=o[0],f=a[0];let u="",h="",p=[],m=!0;l?(u=l.label,h=l.href,c&&(p=K.parseNestedLinks(c,t))):(u=f,m=!1,c&&(p=K.parseNestedLinks(c,t))),n.push({label:u,route:t?.makeHref(h)||h,child_items:p,hasData:m})}return n}}class In{constructor(){this._values=new Map,this._keyListeners=new Map,Object.seal(this)}get(e){return this._values.get(e)}has(e){return this._values.has(e)}set(e,t){this._values.has(e)&&this._values.get(e)===t||(this._values.set(e,t),this._notify(e))}delete(e){return this._values.has(e)?(this._values.delete(e),this._notify(e),!0):!1}subscribe(e,t){let n=this._keyListeners.get(e);return n||(n=new Set,this._keyListeners.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&this._keyListeners.delete(e)}}_notify(e){const t=this._keyListeners.get(e);if(t)for(const n of t)n()}}function An(s){const e=s||{};return{noindex:e.noindex||!1,image:e.image||null,ogTitle:e.ogTitle||null,ogDescription:e.ogDescription||null,canonical:e.canonical||null,changefreq:e.changefreq||null,priority:e.priority||null}}function Ir(s){const e=[],t=new Set,n=r=>{typeof r=="string"&&r&&!t.has(r)&&(t.add(r),e.push(r))},i=s.hideIn;return Array.isArray(i)?i.forEach(n):n(i),s.hideInHeader&&n("header"),s.hideInFooter&&n("footer"),e}class Re{constructor(e,t,n){this.id=t,this.stableId=e.id||null,this.route=e.route,this.sourcePath=e.sourcePath||null,this.isIndex=e.isIndex||!1,this.parentRoute=e.parent||null,this.title=e.title||"",this.description=e.description||"",this.label=e.label||null,this.keywords=e.keywords||null,this.lastModified=e.lastModified||null,this.redirect=e.redirect||null,this.rewrite=e.rewrite||null,this.hidden=e.hidden||!1,this.hideIn=Ir(e),this.hideInHeader=this.hideIn.includes("header"),this.hideInFooter=this.hideIn.includes("footer"),this.layout={name:e.layout?.name||null,hide:e.layout?.hide||[],params:e.layout?.params||{}},this.seo=An(e.seo),this.parent=null,this.children=[],this.website=n,this.scrollY=0,this.fetch=e.fetch||null,this.dynamicContext=e.dynamicContext||null,this.version=e.version||null,this.versionMeta=e.versionMeta||null,this.versionScope=e.versionScope||null,this._hasContent=e.hasContent??e.sections?.length>0,this._bodySections=e.sections,this._bodyBlocks=null,this._loadingContent=null,this._state=null,Object.seal(this)}get state(){return this._state||(this._state=new In),this._state}get bodyBlocks(){if(!this._bodyBlocks){if(this._bodySections===void 0)return[];this._bodyBlocks=(this._bodySections||[]).map((e,t)=>new K(e,t,this))}return this._bodyBlocks}getHeadMeta(){const e=this.getTitle(),t=this.website?.seo||{},n=this.website?.keywords||null;return{title:e,description:this.description,keywords:this.keywords||n,canonical:this.seo.canonical,robots:this.seo.noindex||t.noindex?"noindex, nofollow":null,og:{title:this.seo.ogTitle||e||t.ogTitle,description:this.seo.ogDescription||this.description||t.ogDescription,image:this.seo.image||t.image,url:this.route}}}isDynamicPage(){return this.dynamicContext!==null}getDynamicContext(){return this.dynamicContext}getDynamicParam(){return this.dynamicContext?.paramValue||null}getLayoutName(){return this.layout.name||this.website?.getDefaultLayoutName()||null}getBlockGroups(){return{body:this.bodyBlocks,...this.getLayoutAreas()}}getBlockIndex(e){return this.getPageBlocks().indexOf(e)}getBlockInfo(e){return this.getPageBlocks()[e]?.getBlockInfo()||null}getFirstBodyBlockInfo(){return this.bodyBlocks?.[0]?.getBlockInfo()||null}getLastBodyBlockInfo(){const e=this.bodyBlocks;return e?.[e.length-1]?.getBlockInfo()||null}getPageBlocks(){const e=[],t=this.getLayoutAreas(),n=t.header,i=t.footer;return n&&e.push(...n),e.push(...this.bodyBlocks),i&&e.push(...i),e}getBodyBlocks(){return this.bodyBlocks}getAreaBlocks(e){return this.layout.hide.includes(e)?null:this.website.getAreaBlocks(e,this.getLayoutName())}getLayoutAreas(){const e=this.website.getLayoutAreas(this.getLayoutName()),t={};for(const[n,i]of Object.entries(e))this.layout.hide.includes(n)||(t[n]=i);return t}getLayoutParams(){return this.layout.params}resetBlockStates(){const e=this.getLayoutAreas(),t=[...this.bodyBlocks,...Object.values(e).flat()];for(const n of t)typeof n.initState=="function"&&n.initState()}getNavRoute(){return this.isIndex&&this.route.endsWith("/index")?this.route.slice(0,-6)||"/":this.route}getTitle(){if(this.isIndex&&this.route.endsWith("/index")){const e=this.title?.trim();if(!e||e.toLowerCase()==="index")return this.parent?.title||e||""}return this.title}getLabel(){return this.label||this.getTitle()}isHidden(){return this.hidden}showInNav(e){return!this.hidden&&!this.hideIn.includes("*")&&!this.hideIn.includes(e)}showInHeader(){return this.showInNav("header")}showInFooter(){return this.showInNav("footer")}hasChildren(){return this.children.length>0}hasContent(){return this._hasContent}isContentLoaded(){return this._bodySections!==void 0}async loadContent(){if(this._bodySections===void 0)return this._loadingContent?this._loadingContent:(this._loadingContent=(async()=>{try{const e=this.website.basePath||"",t=this.website.activeLocale,n=this.website.defaultLocale,r=this.website.config?.pageHashes?.[t]?.[this.route];let o;if(r)o=`${e}${r}`;else{const c=t!==n?`/${t}`:"",f=this.route==="/"?"/index":this.route;o=`${e}${c}/_pages${f}.json`}const a=await fetch(o);if(a.status===404&&Ar(r)){window.location.reload();return}if(!a.ok){console.warn(`[Page] Failed to load content for ${this.route}: ${a.status}`),this._bodySections=[];return}const l=await a.json();this._bodySections=l.sections||[],this._bodyBlocks=null,typeof sessionStorage<"u"&&sessionStorage.removeItem("uniwebReloadCount")}finally{this._loadingContent=null}})(),this._loadingContent)}getNavigableRoute(){if(this.hasContent())return this.route;const e=this.children||[];if(e.find(n=>n.isIndex))return this.route;for(const n of e){const i=n.getNavigableRoute();if(i)return i}return this.route}getRenderableSelf(){return this.hasContent()?this:this.children?.find(t=>t.isIndex)||this}getNormalizedRoute(){return this.website.normalizeRoute(this.route)}isActiveFor(e){return this.website.isRouteActive(this.route,e)}isActiveOrAncestor(e){if(this.website.isRouteActive(this.route,e))return!0;const t=this.sourcePath||this.route;return this.website.isRouteActiveOrAncestor(t,e)}isVersioned(){return this.version!==null}getVersion(){return this.version}getVersions(){return this.versionMeta?.versions||[]}isLatestVersion(){return this.version?.latest===!0}isDeprecatedVersion(){return this.version?.deprecated===!0}getVersionUrl(e){return this.isVersioned()?this.website.getVersionUrl(e,this.route):null}}function Ar(s){if(!s||typeof sessionStorage>"u"||typeof window>"u"||!window.location)return!1;try{const e=parseInt(sessionStorage.getItem("uniwebReloadCount")||"0",10)||0;return e>=2?!1:(sessionStorage.setItem("uniwebReloadCount",String(e+1)),!0)}catch{return!1}}function Lr(s){const{path:e,url:t,schema:n,transform:i}=s||{},r=s?.method&&s.method.toUpperCase()!=="GET"?s.method.toUpperCase():void 0,o=r==="POST"?s?.body:void 0;return JSON.stringify({path:e,url:t,schema:n,transform:i,method:r,body:o})}class $r{constructor(){this._cache=new Map,this._inflight=new Map,this._listeners=new Set,this._keyedListeners=new Map,Object.seal(this)}subscribe(e,t){if(typeof e=="string"&&typeof t=="function"){const n=e;let i=this._keyedListeners.get(n);return i||(i=new Set,this._keyedListeners.set(n,i)),i.add(t),()=>{const r=this._keyedListeners.get(n);r&&(r.delete(t),r.size===0&&this._keyedListeners.delete(n))}}if(typeof e=="function")return this._listeners.add(e),()=>this._listeners.delete(e);throw new TypeError("DataStore.subscribe: expected (fn) or (key, fn)")}has(e){return this._cache.has(e)}get(e){return this._cache.has(e)?this._cache.get(e):null}set(e,t){this._cache.set(e,t);for(const i of this._listeners)i();const n=this._keyedListeners.get(e);if(n)for(const i of n)i()}get inflight(){return this._inflight}clear(){this._cache.clear(),this._inflight.clear()}}const Nr=/\{([A-Za-z_][A-Za-z0-9_]*)\}/g;function Ie(s,e,t={}){const{encode:n=!0}=t;if(typeof s=="string")return s.replace(Nr,(i,r)=>{if(!(r in(e||{})))return i;const o=e[r];return o==null?i:n?encodeURIComponent(String(o)):String(o)});if(Array.isArray(s))return s.map(i=>Ie(i,e,t));if(s&&typeof s=="object"){const i={};for(const r of Object.keys(s))i[r]=Ie(s[r],e,t);return i}return s}const Ln="data",ts=`/${Ln}/`;function fo(s){return`${ts}${s}.json`}function Or(s,e){return`${ts}${s}/${e}.json`}function uo(s){return typeof s!="string"?"":s.replace(new RegExp(`^/?${Ln}/`),"").replace(/\.json$/i,"")}function Cr(s){return typeof s=="string"&&s.startsWith(ts)}function Tr(s){return s?.refine===!0||s?.inherit===!0}function Er(s,e,t){return!s.path||!e||e===t||!Cr(s.path)?s:{...s,path:`/${e}${s.path}`}}function Pr(s,e){if(s.detail!==void 0)return s;const t=s.schema;if(!t||!e)return s;const n=e[t];if(!n||typeof n!="object")return s;const i=Array.isArray(n.deferred)?n.deferred:null;if(!i||i.length===0)return s;const r=typeof n.detailUrl=="string"?n.detailUrl:Or(t,"{slug}");return{...s,detail:r}}function Mr(s,e={}){const{schemas:t=[],locale:n=null,defaultLocale:i=null,collections:r=null}=e,o=new Map,a=t.length===0;for(const l of s){if(!l)continue;const c=Array.isArray(l)?l:[l];for(const f of c){if(!f?.schema||o.has(f.schema)||!a&&!t.includes(f.schema))continue;const u=Er(f,n,i);o.set(f.schema,Pr(u,r))}}return o}const De=Tr;let _s=!1;function Br(s){_s||(_s=!0,console.warn(`[uniweb] 'fetch: { inherit: true }' is deprecated; rename to 'fetch: { refine: true }'. Accepted for one release; will be removed in the next minor. First seen on block ${s?.id??"(unknown)"} of page ${s?.page?.route??"(unknown)"}.`))}class jr{constructor({website:e}){this.website=e,Object.seal(this)}_shouldInheritDetail(e,t){const n=t?.fetch;return De(n)&&n?.detail!==void 0?n.detail!==!1:e?e.inheritDetail!==!1:!0}_inheritLimit(e,t){const n=t?.fetch;return De(n)&&n?.limit>0?n.limit:e?.inheritLimit>0?e.inheritLimit:null}_inheritOrder(e){const t=e?.fetch;return De(t)&&t?.order?.orderBy?t.order:null}_sortItems(e,t){if(!t?.orderBy||!Array.isArray(e)||e.length===0)return e;const{orderBy:n,sortOrder:i="ASC"}=t,r=i==="DESC";return[...e].sort((o,a)=>{const l=o[n]??"",c=a[n]??"",f=typeof l=="string"&&typeof c=="string"?l.localeCompare(c):l>c?1:l<c?-1:0;return r?-f:f})}_getRequestedSchemas(e){return e?e.inheritData===!1?null:[]:[]}_findFetchConfigs(e,t){e.fetch?.inherit===!0&&e.fetch?.refine!==!0&&Br(e);const n=e.page,i=e.website;return Mr([e.fetch&&!De(e.fetch)?e.fetch:null,n?.fetch,n?.parent?.fetch,i?.config?.fetch],{schemas:t,locale:i?.getActiveLocale?.()??null,defaultLocale:i?.getDefaultLocale?.()??null,collections:i?.config?.collections??null})}_applyDetailRoutes(e,t,n){if(!(!e||!n?.resolveDetailPageTemplate))for(const[i,r]of t){if(!r.detailPage)continue;const o=e[i];if(!Array.isArray(o)||o.length===0)continue;const a=n.resolveDetailPageTemplate(r.detailPage);a&&(e[i]=o.map(l=>xr(l,a)))}}_buildDetailConfig(e,t){const{detail:n}=e;if(!n)return null;const{paramName:i,paramValue:r}=t;if(!i||r===void 0)return null;const o=e.url||e.path;if(!o)return null;const a=!!e.path&&!e.url;if(n&&typeof n=="object"){const c={...a?{path:o}:{url:o},schema:e.schema,transform:e.transform};return e.method&&(c.method=e.method),n.body!==void 0?c.body=Ie(n.body,{[i]:r},{encode:!1}):e.body!==void 0&&(c.body=Ie(e.body,{[i]:r},{encode:!1})),n.envelope&&(c.envelope=n.envelope),c}let l;if(n==="rest"){const[c,f]=o.split("?"),u=c.replace(/\/$/,"");l=f?`${u}/${encodeURIComponent(r)}?${f}`:`${u}/${encodeURIComponent(r)}`}else if(n==="query"){const c=o.includes("?")?"&":"?";l=`${o}${c}${i}=${encodeURIComponent(r)}`}else l=Ie(n,{[i]:r});return{...a?{path:l}:{url:l},schema:e.schema,transform:e.transform}}_ctx(e,t={}){return{website:this.website,page:e?.page||null,block:e||null,signal:t.signal}}resolve(e,t){const n=this.website?.fetcher;let i=this._getRequestedSchemas(t);if(i===null&&e.fetch){const d=(Array.isArray(e.fetch)?e.fetch:[e.fetch]).filter(g=>g.schema).map(g=>g.schema);d.length>0&&(i=d)}if(i===null)return{status:"none",data:null};const r=this._findFetchConfigs(e,i);if(r.size===0)return{status:"none",data:null};const o=e.dynamicContext||e.page?.dynamicContext,a=this._shouldInheritDetail(t,e),l=this._inheritLimit(t,e),c=this._inheritOrder(e),f=this._ctx(e),u={};let h=!0;const p=o?.schema;for(const[m,d]of r){const g=o&&m===p;if(g&&!a){const b=n?.peek(d,f);if(b){const{paramName:y,paramValue:S}=o,v=b.data;let w=Array.isArray(v)?v.filter(k=>String(k[y])!==String(S)):v;c&&(w=this._sortItems(w,c)),u[m]=l&&Array.isArray(w)?w.slice(0,l):w}else h=!1}else if(g){const b=n?.peek(d,f);if(b){const{paramName:y,paramValue:S}=o,v=b.data,w=Array.isArray(v)?v.find(k=>String(k[y])===String(S)):null;if(!w)u[m]=[];else if(d.detail){const k=this._buildDetailConfig(d,o),A=k?n?.peek(k,f):null;k&&A?u[m]=[A.data]:k?h=!1:u[m]=[w]}else u[m]=[w]}else h=!1}else{const b=n?.peek(d,f);if(b){const y=b.data;u[m]=c?this._sortItems(y,c):y}else h=!1}}return h?(this._applyDetailRoutes(u,r,e.website),{status:"ready",data:u}):{status:"pending",data:null}}async fetch(e,t,{signal:n}={}){const i=this.website?.fetcher;if(!i)return{data:null};let r=this._getRequestedSchemas(t);if(r===null&&e.fetch){const g=(Array.isArray(e.fetch)?e.fetch:[e.fetch]).filter(b=>b.schema).map(b=>b.schema);g.length>0&&(r=g)}if(r===null)return{data:null};const o=this._findFetchConfigs(e,r);if(o.size===0)return{data:null};const a=e.dynamicContext||e.page?.dynamicContext,l=this._shouldInheritDetail(t,e),c=this._inheritLimit(t,e),f=this._inheritOrder(e),u=this._ctx(e,{signal:n}),h={},p=[],m=a?.schema;for(const[d,g]of o){const b=a&&d===m;if(b&&!l){let y=vs(i,g,u);if(y===null){const k=await i.dispatch(g,u);y=Array.isArray(k?.data)?k.data:null}const{paramName:S,paramValue:v}=a;let w=Array.isArray(y)?y.filter(k=>String(k[S])!==String(v)):y??[];f&&(w=this._sortItems(w,f)),h[d]=c&&Array.isArray(w)?w.slice(0,c):w}else if(b){const{paramName:y,paramValue:S}=a;let v=vs(i,g,u);if(v===null){const k=await i.dispatch(g,u);v=Array.isArray(k?.data)?k.data:null}const w=v?.find(k=>String(k[y])===String(S))??null;if(!w){h[d]=[];continue}if(g.detail){const k=this._buildDetailConfig(g,a);k?p.push(i.dispatch(k,u).then(A=>{const _=A?.data!==void 0&&A?.data!==null?A.data:w;h[d]=[_]})):h[d]=[w]}else h[d]=[w]}else p.push(i.dispatch(g,u).then(y=>{y?.data!==void 0&&y?.data!==null&&(h[d]=y.data)}))}return p.length>0&&await Promise.all(p),this._applyDetailRoutes(h,o,e.website),{data:h}}}function vs(s,e,t){const n=s.peek(e,t);return n&&Array.isArray(n.data)?n.data:null}function xr(s,e){if(!s||typeof s!="object"||s.route!==void 0)return s;let t=!1;const n=e.replace(/:(\w+)/g,(i,r)=>{const o=s[r];return o==null?(t=!0,""):encodeURIComponent(String(o))});return t?s:{...s,route:n}}function Is(s){return s?s.default&&typeof s.default=="object"?s.default:typeof s=="object"?s:null:null}function $n(s){return!!s&&typeof s.resolve=="function"}function As(s,{source:e,dev:t}){const n=new Map;if(!s)return n;let i;try{i=s.capabilities?.transports}catch(r){return t&&console.warn(`[FetcherDispatcher] ${e} transports getter threw:`,r),n}if(!i||typeof i!="object"||Array.isArray(i))return n;for(const r of Object.keys(i)){let o;try{o=i[r]}catch(a){t&&console.warn(`[FetcherDispatcher] ${e} transport "${r}" getter threw:`,a);continue}if(!$n(o)){t&&console.warn(`[FetcherDispatcher] ${e} transport "${r}" missing resolve(); skipped.`);continue}n.set(r,o)}return n}class Ls{constructor({foundation:e,extensions:t=[],dataStore:n,defaultFetcher:i=null,transport:r=null,dev:o=!1}){if(!n)throw new Error("FetcherDispatcher: dataStore is required");this._dataStore=n,this._defaultFetcher=i,this._transportOverride=$n(r)?r:null,this._dev=!!o;const a=new Map,l=As(Is(e),{source:"primary foundation",dev:this._dev});for(const[c,f]of l)a.set(c,f);for(const c of t){let f;try{f=As(Is(c),{source:"extension",dev:this._dev})}catch(u){this._dev&&console.warn("[FetcherDispatcher] extension transports collection threw:",u);continue}for(const[u,h]of f){if(a.has(u)){this._dev&&console.warn(`[FetcherDispatcher] extension transport "${u}" ignored — primary foundation already provides it.`);continue}a.set(u,h)}}this._namedTransports=a,Object.freeze(this)}_selectFetcher(e,t){if(this._transportOverride)return this._transportOverride;const n=t?.website?.config?.fetcher?.transports;if(n&&typeof n=="object"){const i=e?.schema,r=i&&n[i]||n.default;if(r){const o=this._namedTransports.get(r);if(o)return o;this._dev&&console.warn(`[FetcherDispatcher] site selected transport "${r}" for schema "${i??"(none)"}" but no foundation or extension registered it; falling back to the framework default.`)}}return this._defaultFetcher}_cacheKey(e,t){if(e&&typeof e.cacheKey=="function")try{return String(e.cacheKey(t))}catch(n){console.warn("[FetcherDispatcher] fetcher.cacheKey threw:",n)}return Lr(t)}peek(e,t={}){const n=this._selectFetcher(e,t),i=this._cacheKey(n,e);return this._dataStore.get(i)}async dispatch(e,t={}){const n=this._selectFetcher(e,t);if(!n)return{data:[],error:"FetcherDispatcher: no fetcher selected and no default configured"};const i=this._cacheKey(n,e),r=this._dataStore.get(i);if(r)return{data:r.data,meta:r.meta};const o=this._dataStore.inflight.get(i);if(o)return this._attachSignal(o,t.signal),o.promise;const a=typeof AbortController<"u"?new AbortController:null,l={promise:null,master:a,signals:new Set,everAttached:!1};this._attachSignal(l,t.signal),this._dataStore.inflight.set(i,l);const c=a?{...t,signal:a.signal}:t;return l.promise=this._runFetcher(n,e,c,i,l),l.promise}_attachSignal(e,t){if(!t||!e.master)return;if(e.everAttached=!0,t.aborted){this._maybeAbortMaster(e);return}e.signals.add(t);const n=()=>{e.signals.delete(t),this._maybeAbortMaster(e)};t.addEventListener("abort",n,{once:!0})}_maybeAbortMaster(e){e.master&&(e.master.signal.aborted||e.everAttached&&(e.signals.size>0||e.master.abort()))}async _runFetcher(e,t,n,i,r){try{const o=await e.resolve(t,n);if(this._dataStore.inflight.get(i)===r&&this._dataStore.inflight.delete(i),!o||typeof o!="object")return this._dev&&console.warn("[FetcherDispatcher] Fetcher returned a non-object; expected { data, error?, meta? }.",{request:t,result:o}),{data:[],error:"Fetcher returned a non-object"};const{data:a,error:l,meta:c}=o;if(this._dev&&this._validateReturnShape(o,t),l)return{data:a??[],error:l,meta:c};if(a==null)return{data:a??[],meta:c};const f=c!==void 0?{data:a,meta:c}:{data:a};return this._dataStore.set(i,f),{data:a,meta:c}}catch(o){return this._dataStore.inflight.get(i)===r&&this._dataStore.inflight.delete(i),{data:[],error:String(o?.message||o)}}}_validateReturnShape(e,t){const n=new Set(["data","error","meta"]),i=Object.keys(e).filter(r=>!n.has(r));i.length>0&&console.warn(`[FetcherDispatcher] Fetcher return has unexpected keys: ${i.join(", ")}. Expected { data, error?, meta? }.`,{request:t,result:e})}}function Nn(s){return typeof s=="string"&&s.trim()&&s.trim()!=="*"?s.trim():s&&typeof s=="object"&&typeof s.code=="string"&&s.code.trim()?s.code.trim():null}function Rr(s){return s==="*"||Array.isArray(s)&&s.includes("*")}function Mt(s){if(!Array.isArray(s))return[];const e=new Set,t=[];for(const n of s){const i=Nn(n);!i||e.has(i)||(e.add(i),t.push(i))}return t}function Bt(s={}){return typeof s?.defaultLanguage=="string"&&s.defaultLanguage.trim()?s.defaultLanguage.trim():Mt(s?.languages)[0]||"en"}function Dr(s={}){const e=Mt(s?.languages),t=s?.publishLanguages;if(t==null)return{publishable:e,dangling:[],explicit:!1};const n=Mt(t);if(Rr(s?.languages))return{publishable:n,dangling:[],explicit:!0};const i=new Set(e),r=new Set(n);return{publishable:e.filter(o=>r.has(o)),dangling:n.filter(o=>!i.has(o)),explicit:!0}}function ho(s={}){const e=[],t=[],n=(a,l,c)=>{if(a==null||a==="*")return;if(!Array.isArray(a)){t.push({code:c,message:`${l} must be a list of locale codes (got ${typeof a}) — ignored`});return}const f=new Set;for(const u of a){if(u==="*")continue;const h=Nn(u);if(!h){t.push({code:c,message:`${l} entry ${JSON.stringify(u)} is not a locale code string — dropped`});continue}typeof u!="string"&&t.push({code:c,message:`${l} entry for '${h}' uses the legacy object form — use the plain string '${h}'`}),f.has(h)&&t.push({code:"duplicate-language",message:`${l} lists '${h}' more than once — deduped`}),f.add(h)}};n(s?.languages,"languages","invalid-language-entry"),n(s?.publishLanguages,"publishLanguages","invalid-publish-language-entry");const{publishable:i,dangling:r,explicit:o}=Dr(s);for(const a of r)t.push({code:"dangling-publish-language",message:`publishLanguages lists '${a}' but languages does not declare it — ignored at publish (kept in the file so a re-declared language keeps its publish intent)`});if(o&&i.length===0)e.push({code:"nothing-publishable",message:"publishLanguages leaves no publishable language (empty list, or nothing it lists is declared) — a publishable default language is required"});else if(o){const a=Bt(s);i.includes(a)||e.push({code:"default-not-publishable",message:`the default language '${a}' is not in publishLanguages — the effective default must be publishable`})}return{errors:e,warnings:t}}const Fr="[A-Za-z0-9_-]+",Kr=/[.*+?^${}()|[\]\\]/g;function On(s){return typeof s!="string"||s===""||s==="/"?"/":s.replace(/\/+$/,"")||"/"}function Ur(s){const e=[],t=On(s).replace(Kr,"\\$&").replace(new RegExp(`:(${Fr})`,"g"),(n,i)=>(e.push(i),"([^/]+)"));return{regex:new RegExp(`^${t}$`),paramNames:e}}function qr(s,e){const{regex:t,paramNames:n}=Ur(s),i=On(e).match(t);if(!i)return null;const r={};return n.forEach((o,a)=>{r[o]=decodeURIComponent(i[a+1])}),{params:r}}class Vr{constructor({content:e={},foundation:t=null,extensions:n=[],defaultFetcher:i=null,transport:r=null,dev:o=!1}={}){this._foundation=t,this._extensions=n,this._defaultFetcher=i,this._transport=r,this._dev=o,this.dataStore=new $r,this.fetcher=new Ls({foundation:t,extensions:n,dataStore:this.dataStore,defaultFetcher:i,transport:r,dev:o}),this.entityStore=new jr({website:this}),this._state=null,this.name="",this.description="",this.url="",this._layoutSets={},this.notFoundPage=null,this._dynamicPageData=new Map,this._dynamicPageCache=new Map,this.pages=[],this.activePage=null,this.pageRoutes=[],this.themeData={},this.config={},this.seo={},this.keywords=null,this.siteDefaultLocale="en",this.defaultLocale="en",this.activeLocale="en",this.locales=[],this.activeLang="en",this.langs=[],this._routeTranslations={},this.basePath="",this.versionedScopes={},this.assets={},this._pageIdMap=new Map,this._applyContent(e),Object.seal(this)}_applyContent(e){const{pages:t=[],theme:n={},config:i={},layouts:r,notFound:o,versionedScopes:a={},assets:l={}}=e||{};if(this.name=i.name||"",this.description=i.description||"",this.url=i.url||"",this._layoutSets={},r&&typeof r=="object")for(const[u,h]of Object.entries(r)){this._layoutSets[u]={};for(const[p,m]of Object.entries(h))m&&(this._layoutSets[u][p]=new Re(m,`layout-${u}-${p}`,this))}const c=o||t.find(u=>u.route==="/404")||null;this.notFoundPage=c?new Re(c,"notFound",this):null;const f=t.filter(u=>u.route!=="/404");this._dynamicPageData=new Map;for(const u of f)(u.isDynamic||u.route?.includes(":"))&&this._dynamicPageData.set(u.route,u);this._dynamicPageCache=new Map,this.pages=f.map((u,h)=>new Re(u,h,this)),this.buildPageHierarchy(),this.activePage=this.pages.find(u=>u.isIndex&&u.getNavRoute()==="/")||this.pages[0]||null,this.pageRoutes=this.pages.map(u=>u.route),this.themeData=n,this.config=i,this.seo=An(i.seo),this.keywords=i.keywords||null,this.siteDefaultLocale=Bt(i),this.defaultLocale=i.domainLocale||this.siteDefaultLocale,this.activeLocale=i.activeLocale||this.defaultLocale,this.locales=this.buildLocalesList(i),this.activeLang=this.activeLocale,this.langs=this.locales.map(u=>({label:u.label||u.code,value:u.code})),this._routeTranslations=this._buildRouteTranslations(i),this.versionedScopes=a,this.assets=l}rebuild({content:e,foundation:t,extensions:n}={}){const i=t!==void 0,r=n!==void 0;return i&&(this._foundation=t),r&&(this._extensions=n),(i||r)&&(this.fetcher=new Ls({foundation:this._foundation,extensions:this._extensions,dataStore:this.dataStore,defaultFetcher:this._defaultFetcher,transport:this._transport,dev:this._dev})),e!==void 0&&this._applyContent(e),this}get state(){return this._state||(this._state=new In),this._state}buildLocalesList(e){const t=Bt(e),n=e.languages||[],i=o=>typeof o=="string"?{code:o}:{code:o.code,...o.label&&{label:o.label}},r=new Map;r.set(t,{code:t});for(const o of n){const a=i(o);if(r.has(a.code)){const l=r.get(a.code);r.set(a.code,{...l,...a})}else r.set(a.code,a)}return Array.from(r.values()).map(o=>({...o,isDefault:o.code===t}))}_buildRouteTranslations(e){const t=e.i18n?.routeTranslations||{},n={};for(const[i,r]of Object.entries(t)){const o=new Map,a=new Map;for(const[l,c]of Object.entries(r))o.set(l,c),a.set(c,l);n[i]={forward:o,reverse:a}}return n}translateRoute(e,t=this.activeLocale){if(!t||t===this.siteDefaultLocale)return e;const n=this._routeTranslations[t];if(!n)return e;const i=n.forward.get(e);if(i)return i;for(const[r,o]of n.forward)if(e.startsWith(r+"/"))return o+e.slice(r.length);return e}reverseTranslateRoute(e,t=this.activeLocale){if(!t||t===this.siteDefaultLocale)return e;const n=this._routeTranslations[t];if(!n)return e;const i=n.reverse.get(e);if(i)return i;for(const[r,o]of n.reverse)if(e.startsWith(r+"/"))return o+e.slice(r.length);return e}buildPageHierarchy(){const e=new Map;for(const t of this.pages)e.set(t.route,t);for(const t of this.pages)if(t.parentRoute){const n=e.get(t.parentRoute);n&&(n.children.push(t),t.parent=n)}for(const t of this.pages){if(t.parent||t.route==="/")continue;const n=t.route.replace(/\/[^/]+$/,"");if(!n||n==="/"||n===t.route)continue;const i=e.get(n);i&&(i.children.push(t),t.parent=i)}this._pageIdMap=new Map;for(const t of this.pages){t.stableId&&this._pageIdMap.set(t.stableId,t);const n=this.normalizeRoute(t.route);if(n&&!this._pageIdMap.has(n)&&this._pageIdMap.set(n,t),t.sourcePath){const i=t.sourcePath.replace(/^\//,"").replace(/\/$/,"");i&&!this._pageIdMap.has(i)&&this._pageIdMap.set(i,t)}}}getPage(e){let t=e;if(this.activeLocale&&this.activeLocale!==this.defaultLocale){const l=`/${this.activeLocale}`;t===l||t===`${l}/`?t="/":t.startsWith(`${l}/`)&&(t=t.slice(l.length))}const n=t==="/"?"/":t.replace(/\/$/,""),i=this.pages.find(l=>l.route===n);if(i){const l=i.children.find(c=>c.isIndex);return l||i}t=this.reverseTranslateRoute(t);const r=t==="/"?"/":t.replace(/\/$/,""),o=this.pages.find(l=>l.route===r);if(o){const l=o.children.find(c=>c.isIndex);return l||o}const a=this.pages.find(l=>l.isIndex&&l.getNavRoute()===r);if(a)return a;if(this._dynamicPageCache.has(r))return this._dynamicPageCache.get(r);for(const l of this.pages){if(!l.route.includes(":"))continue;const c=this._matchDynamicRoute(l.route,r);if(c){const f=this._createDynamicPage(l,r,c.params);if(f){const{page:u,collectionLoaded:h}=f;return h&&this._dynamicPageCache.set(r,u),u}}}}_matchDynamicRoute(e,t){return qr(e,t)}_createDynamicPage(e,t,n){const i=this._dynamicPageData.get(e.route);if(!i)return null;const r=JSON.parse(JSON.stringify(i));r.route=t,r.isDynamic=!1;const o=Object.keys(n)[0],a=Object.values(n)[0],l=i.parentSchema;if(r.dynamicContext={templateRoute:e.route,params:n,paramName:o,paramValue:a,schema:l},r.sections&&Array.isArray(r.sections))for(const h of r.sections)h.dynamicContext=r.dynamicContext;const c=e.route.replace(/\/:[\w]+$/,"")||"/",f=this.pages.find(h=>h.route===c||h.getNavRoute()===c);if(f&&l){const h=f.fetch;let p=[];if(h&&this.fetcher){const d=Array.isArray(h)?h.find(g=>g.schema===l):h.schema===l?h:null;if(d){const g=this.fetcher.peek(d,{website:this});p=Array.isArray(g?.data)?g.data:[]}}const m=p.find(d=>String(d[o])===String(a));m?(m.title&&(r.title=m.title),(m.description||m.excerpt)&&(r.description=m.description||m.excerpt)):p.length>0&&(r.title="Not found",r.notFound=!0),r._collectionLoaded=p.length>0}const u=new Re(r,`dynamic-${t}`,this);return u.parent=e.parent,{page:u,collectionLoaded:r._collectionLoaded??!0}}setActivePage(e){const t=this.getPage(e);t&&(this.activePage=t)}setBasePath(e){!e||e==="/"?this.basePath="":this.basePath=e.endsWith("/")?e.slice(0,-1):e}getRemoteLayout(e){const t=globalThis.uniweb?.foundationConfig;return t?.layouts&&e&&t.layouts[e]?t.layouts[e]:null}getDefaultLayoutName(){return globalThis.uniweb?.foundationConfig?.defaultLayout||null}getDefaultBlockType(){return globalThis.uniweb?.foundationConfig?.defaultSection||"Section"}getAreaBlocks(e,t){return t&&this._layoutSets[t]?this._layoutSets[t][e]?.bodyBlocks||null:this._layoutSets.default&&this._layoutSets.default[e]?.bodyBlocks||null}getLayoutAreas(e){const t=e||"default",n=this._layoutSets[t]||this._layoutSets.default;if(!n)return{};const i={};for(const[r,o]of Object.entries(n))o?.bodyBlocks&&(i[r]=o.bodyBlocks);return i}getLayoutMeta(e){return globalThis.uniweb?.foundationConfig?.layoutMeta?.[e]||null}get viewTransitions(){return globalThis.uniweb.foundationConfig?.viewTransitions!==!1}getRemoteProps(){return globalThis.uniweb?.foundationConfig?.props||null}getRoutingComponents(){return globalThis.uniweb?.routingComponents||{}}makeHref(e){if(!e)return e;let t;if(e.startsWith("page:"))t=e.slice(5);else if(e.startsWith("topic:"))t=e.slice(6);else return e;const[n,i]=t.split("#"),r=this._pageIdMap?.get(n);if(!r)return e;let o=r.route;return i&&(o+=`#section-${i}`),o}resolveDetailPageTemplate(e){if(!e||typeof e!="string")return null;const t=e.startsWith("page:")?e.slice(5):e,n=this._pageIdMap?.get(t);return!n||!n.route?null:this.translateRoute(n.route)}getLanguages(){return this.langs}getLanguage(){return this.activeLang}getLocales(){return this.locales}getActiveLocale(){return this.activeLocale}getDefaultLocale(){return this.defaultLocale}hasMultipleLocales(){return this.locales.length>1}setActiveLocale(e){this.locales.find(n=>n.code===e)&&(this.activeLocale=e,this.activeLang=e)}getLocaleUrl(e,t=null){let n=t||this.activePage.getNavRoute();if(this.activeLocale&&this.activeLocale!==this.defaultLocale){const o=`/${this.activeLocale}`;n===o||n===`${o}/`?n="/":n.startsWith(`${o}/`)&&(n=n.slice(o.length))}n=this.reverseTranslateRoute(n);const i=this.config?.domainLocales;if(i){const o=Object.entries(i).find(([,a])=>a===e);if(o){const a=o[0],l=this.translateRoute(n,e);return`https://${a}${l==="/"?"/":l}`}}if(e===this.defaultLocale)return n;const r=this.translateRoute(n,e);return r==="/"?`/${e}/`:`/${e}${r}`}getLocale(e){return this.locales.find(t=>t.code===e)}localize(e,t="",n="",i=!1){const r=n||this.activeLang,o=this.langs[0]?.value||"en";if(typeof e=="object"&&!Array.isArray(e))return i?e?.[r]||e?.[o]||t:e?.[r]||t;if(typeof e=="string"){if(!e.startsWith("{")&&!e.startsWith('"'))return e;try{const a=JSON.parse(e);return typeof a=="object"?i?a?.[r]||a?.[o]||t:a?.[r]||t:a}catch{return e}}return t}isSearchEnabled(){return this.config?.search?.enabled!==!1}getSearchConfig(){const e=this.config?.search||{};return{enabled:this.isSearchEnabled(),provider:e.provider||"index",endpoint:e.endpoint,indexUrl:this.getSearchIndexUrl(),locale:this.getActiveLocale(),include:{pages:e.include?.pages!==!1,sections:e.include?.sections!==!1,headings:e.include?.headings!==!1,paragraphs:e.include?.paragraphs!==!1,links:e.include?.links!==!1,lists:e.include?.lists!==!1},exclude:{routes:e.exclude?.routes||[],components:e.exclude?.components||[]}}}getSearchIndexUrl(){const e=this.getActiveLocale(),n=e===this.getDefaultLocale()?"/search-index.json":`/${e}/search-index.json`;return`${this.basePath||""}${n}`}getSearchData(){return this.pages.map(e=>({id:e.id,title:e.title,href:e.route,route:e.route,description:e.description,content:e.getPageBlocks().map(t=>t.title).filter(Boolean).join(`
|
|
132
132
|
`)}))}getPageHierarchy(e={}){const{nested:t=!0,for:n,includeHidden:i=!1,filter:r,sort:o}=e,a=f=>!(f.route.includes(":")||f.isIndex&&f.route.endsWith("/index")||!i&&(f.hidden||f.hideIn?.includes("*")||n&&f.hideIn?.includes(n))||!f.hasContent()&&!f.children?.some(h=>h.isIndex)&&!f.children?.some(a)||r&&!r(f));let l=this.pages.filter(a);t&&(l=l.filter(f=>!f.parent&&!f.parentRoute)),o&&l.sort(o);const c=f=>{const u=f.getNavRoute();return{id:f.id,route:u,navigableRoute:f.getNavigableRoute(),translatedRoute:this.translateRoute(u),title:f.getTitle(),label:f.getLabel(),description:f.description,hasContent:f.hasContent(),version:f.version||null,children:t&&f.hasChildren()?f.children.filter(a).map(c):[]}};return l.map(c)}getBranchHierarchy({route:e="",for:t,includeHidden:n=!1}={}){const i=l=>(l||"").replace(/^\/+/,"").replace(/\/+$/,""),r=this.getPageHierarchy({for:t,includeHidden:n}),o=i(e).split("/")[0];if(!o)return r;const a=r.find(l=>i(l.route)===o);return a?a.children?.length?a.children:[a]:r}getHeaderPages(){return this.getPageHierarchy({for:"header"})}getFooterPages(){return this.getPageHierarchy({for:"footer"})}getAllPages(e=!1){return this.getPageHierarchy({nested:!1,includeHidden:e})}getNotFoundPage(){return this.notFoundPage}getActiveRoute(){return this.activePage.getNormalizedRoute()}getActiveRootSegment(){return this.getActiveRoute().split("/")[0]}normalizeRoute(e){let t=(e||"").replace(/^\/+/,"").replace(/\/+$/,"");if(this.activeLocale&&this.activeLocale!==this.defaultLocale){const r=this.activeLocale;t===r?t="":t.startsWith(`${r}/`)&&(t=t.slice(r.length+1))}const n="/"+t;return t=this.reverseTranslateRoute(n).replace(/^\//,""),t}isRouteActive(e,t){return this.normalizeRoute(e)===this.normalizeRoute(t)}isRouteActiveOrAncestor(e,t){const n=this.normalizeRoute(e),i=this.normalizeRoute(t);return n===i?!0:n===""?!1:i.startsWith(n+"/")}getVersionedScopes(){return this.versionedScopes}hasVersionedContent(){return Object.keys(this.versionedScopes).length>0}getVersionScope(e){const t=e||"";for(const n of Object.keys(this.versionedScopes)){if(t===n)return n;if(n==="/"){if(t.startsWith("/")||t==="")return n}else if(t.startsWith(n+"/"))return n}return null}isVersionedRoute(e){return this.getVersionScope(e)!==null}getVersionMeta(e){return this.versionedScopes[e]||null}getPageVersion(e){return e?.version||null}getVersionsForRoute(e){const t=this.getVersionScope(e);return t?this.versionedScopes[t]?.versions||[]:[]}getVersionUrl(e,t){const n=this.getVersionScope(t);if(!n)return null;const i=this.versionedScopes[n];if(!i)return null;const r=i.versions.find(l=>l.id===e);if(!r)return null;const o=n==="/"?t:t.slice(n.length);let a=o;for(const l of i.versions){const c=`/${l.id}`;if(o.startsWith(c+"/")||o===c){a=o.slice(c.length);break}}return r.latest?n==="/"?a:n+a:n==="/"?"/"+e+a:n+"/"+e+a}getLatestVersion(e){return this.versionedScopes[e]?.latestId||null}}const St=typeof window<"u"&&typeof document<"u";class Hr{constructor(e={}){this.endpoint=e.endpoint||null,this.flushInterval=e.flushInterval||5e3,this.maxQueueSize=e.maxQueueSize||10,this.debug=e.debug||!1,this.queue=[],this.scrollMilestones=new Set,this.sessionId=this.generateSessionId(),this.sessionStart=Date.now(),this.flushIntervalId=null,St&&this.isEnabled()&&(this.setupFlushInterval(),this.setupUnloadHandler()),Object.seal(this)}isEnabled(){return!!this.endpoint}generateSessionId(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}setupFlushInterval(){this.flushIntervalId=setInterval(()=>{this.flush()},this.flushInterval)}setupUnloadHandler(){const e=()=>{this.flush(!0)};window.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&e()}),window.addEventListener("pagehide",e)}addToQueue(e,t){if(!this.isEnabled()||!St)return;const n={type:e,data:t,timestamp:Date.now(),sessionId:this.sessionId,url:window.location.href,referrer:document.referrer||null};this.queue.push(n),this.debug&&console.log("[Analytics] Event queued:",n),this.queue.length>=this.maxQueueSize&&this.flush()}trackPageView(e,t,n={}){this.scrollMilestones.clear(),this.addToQueue("pageview",{path:e,title:t,...n})}trackEvent(e,t={}){this.addToQueue("event",{name:e,...t})}trackScrollDepth(e){[25,50,75,100].includes(e)&&(this.scrollMilestones.has(e)||(this.scrollMilestones.add(e),this.addToQueue("scroll_depth",{depth:e})))}flush(e=!1){if(!this.isEnabled()||!St||this.queue.length===0)return;const t=[...this.queue];this.queue=[];const n=JSON.stringify({events:t,sessionId:this.sessionId,sessionDuration:Date.now()-this.sessionStart});if(this.debug&&console.log("[Analytics] Flushing",t.length,"events"),e&&navigator.sendBeacon){const i=new Blob([n],{type:"application/json"});!navigator.sendBeacon(this.endpoint,i)&&this.debug&&console.warn("[Analytics] sendBeacon failed, events may be lost");return}fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:n,keepalive:!0}).catch(i=>{this.debug&&console.warn("[Analytics] Flush failed:",i),this.queue.unshift(...t)})}destroy(){this.flushIntervalId&&clearInterval(this.flushIntervalId),this.flush(!0)}}class Wr{constructor({content:e={},foundation:t=null,extensions:n=[],defaultFetcher:i=null,transport:r=null,dev:o=!1}={}){this.activeWebsite=new Vr({content:e,foundation:t,extensions:n,defaultFetcher:i,transport:r,dev:o}),this.foundation=t,this.foundationConfig={},this.meta=t?.default?.meta||{},this.extensions=[],t?.default?.capabilities&&(this.foundationConfig={...t.default.capabilities}),t?.default?.layoutMeta&&(this.foundationConfig.layoutMeta=t.default.layoutMeta),t?.default?.handlers&&(this.foundationConfig.handlers=t.default.handlers),t?.default?.viewTransitions!==void 0&&(this.foundationConfig.viewTransitions=t.default.viewTransitions);for(const a of n)this._wireExtension(a);this.childBlockRenderer=null,this.routingComponents={},this.language="en",this.defaultInsets=null,this.iconResolver=null,this.iconCache=new Map,this.analytics=new Hr(e?.analytics||e?.config?.analytics||{}),Object.seal(this)}_wireExtension(e){const t=e?.default?.meta||{};this.extensions.push({foundation:e,meta:t})}async resolveIcon(e,t){return this.iconResolver?this.iconResolver(e,t):(console.warn("[Uniweb] No icon resolver configured"),null)}getIconSync(e,t){return this.iconCache.get(`${e}:${t}`)||null}getComponentMeta(e){const t=this.meta[e];if(t)return t;for(const n of this.extensions){const i=n.meta[e];if(i)return i}return null}getComponentDefaults(e){return this.getComponentMeta(e)?.defaults||{}}getComponent(e){if(!this.foundation){console.warn("[Runtime] No foundation loaded");return}const t=this.foundation[e];if(t)return t;for(const n of this.extensions){const i=n.foundation[e];if(i)return i}if(this.defaultInsets&&this.defaultInsets[e])return this.defaultInsets[e]}listComponents(){const e=new Set;if(this.foundation)for(const t of Object.keys(this.foundation))t!=="default"&&e.add(t);for(const t of this.extensions)for(const n of Object.keys(t.foundation))n!=="default"&&e.add(n);return[...e]}}const zr=[50,100,200,300,400,500,600,700,800,900,950],_t=["light","medium","dark"];class po{constructor(e={}){this._data=e,this._palettes=e.palettes||e.colors||{},this._rawColors=e.colors||{},this._contexts=e.contexts||{},this._fonts=e.fonts||{},this._appearance=e.appearance||{default:"light"},this._foundationVars=e.foundationVars||{},this._css=e.css||null,Object.seal(this)}get css(){return this._css}get data(){return this._data}getColor(e,t=500){const n=this._palettes[e];return n&&n[t]||null}getPalette(e){return this._palettes[e]||null}getPaletteNames(){return Object.keys(this._palettes)}hasPalette(e){return e in this._palettes}getColorVar(e,t=500){return`var(--${e}-${t})`}getContextClass(e){return _t.includes(e)?`context-${e}`:(console.warn(`Invalid context: ${e}. Using 'light'.`),"context-light")}isValidContext(e){return _t.includes(e)}getValidContexts(){return[..._t]}getAppearance(){return{default:this._appearance.default||"light",allowToggle:this._appearance.allowToggle||!1,respectSystemPreference:this._appearance.respectSystemPreference??!0,schemes:this._appearance.schemes||["light"]}}getDefaultScheme(){return this._appearance.default||"light"}supportsScheme(e){return(this._appearance.schemes||["light"]).includes(e)}hasSchemeToggle(){return this._appearance.allowToggle===!0}getSchemeClass(e){return`scheme-${e}`}getFonts(){return{...this._fonts}}getFont(e){return this._fonts[e]||null}getFontVar(e){return`var(--font-${e})`}getFoundationVar(e){const t=this._foundationVars[e];return t?typeof t=="object"?t.default:t:null}getFoundationVars(){const e={};for(const[t,n]of Object.entries(this._foundationVars))e[t]=typeof n=="object"?n.default:n;return e}getFoundationVarRef(e){return`var(--${e})`}getShadeLevels(){return[...zr]}hasCustomization(){return Object.keys(this._palettes).length>0||Object.keys(this._contexts).length>0||Object.keys(this._fonts).length>0}toJSON(){return{palettes:this._palettes,colors:this._rawColors,contexts:this._contexts,fonts:this._fonts,appearance:this._appearance,foundationVars:this._foundationVars}}}function go(s={}){return!!(s.allowToggle||s.default==="dark"||s.default==="system"||s.schemes?.includes("dark"))}const Jr=new Set(["eq","ne","gt","gte","lt","lte","in","nin","like","exists"]);function He(s,e){if(s==null)return!0;if(typeof s!="object"||Array.isArray(s)||e==null||typeof e!="object")return!1;for(const t of Object.keys(s))if(!Gr(t,s[t],e))return!1;return!0}function mo(s,e){return Array.isArray(e)?s==null?e.slice():e.filter(t=>He(s,t)):[]}function Gr(s,e,t){if(s==="and")return Array.isArray(e)?e.every(i=>He(i,t)):!1;if(s==="or")return Array.isArray(e)?e.some(i=>He(i,t)):!1;if(s==="not")return!He(e,t);const n=Zr(t,s);return e===null?n==null:typeof e=="object"&&!Array.isArray(e)&&Yr(e)?Qr(e,n):ke(n,e)}function Yr(s){if(s==null||typeof s!="object"||Array.isArray(s))return!1;const e=Object.keys(s);return e.length===0?!1:e.every(t=>Jr.has(t))}function Qr(s,e){for(const t of Object.keys(s))if(!Xr(t,s[t],e))return!1;return!0}function Xr(s,e,t){switch(s){case"eq":return ke(t,e);case"ne":return!ke(t,e);case"gt":return Fe(t,e)&&t>e;case"gte":return Fe(t,e)&&t>=e;case"lt":return Fe(t,e)&&t<e;case"lte":return Fe(t,e)&&t<=e;case"in":return Array.isArray(e)?e.some(n=>ke(t,n)):!1;case"nin":return Array.isArray(e)?!e.some(n=>ke(t,n)):!1;case"like":return typeof t!="string"||typeof e!="string"?!1:eo(e,t);case"exists":return!!t==!!e;default:return!1}}function ke(s,e){return s===e?!0:s==null||e==null?!1:Array.isArray(s)&&!Array.isArray(e)?s.some(t=>t===e):!1}function Fe(s,e){return s==null||e==null?!1:typeof s==typeof e}function Zr(s,e){if(typeof e!="string")return;if(e.indexOf(".")===-1)return s[e];let t=s;for(const n of e.split(".")){if(t==null||typeof t!="object")return;t=t[n]}return t}function eo(s,e){const t="^"+s.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".")+"$";return new RegExp(t).test(e)}function yo(s){return!s||typeof s!="object"?!1:!!(Array.isArray(s.fields)||s.isComposite===!0||s.childSchema&&typeof s.childSchema=="object")}function bo(s){if(!s||typeof s!="object"||Array.isArray(s))return null;if(Array.isArray(s.fields)||s.isComposite===!0||s.childSchema)return s;if(s.sections!==void 0)return null;const e=i=>Object.entries(i).map(([r,o])=>typeof o=="string"?{id:r,type:o}:{id:r,...o});if(s.fields&&typeof s.fields=="object"){const{fields:i,...r}=s;return{...r,fields:e(i)}}const t=Object.entries(s);if(!t.length)return null;const n=([,i])=>i&&typeof i=="object"&&!Array.isArray(i)&&i.type!==void 0;return t.every(n)?{fields:e(s)}:null}const Qe={name:"json-body",canPush:new Set(["where","limit","sort"]),defaultEnvelope:null,encode(s,{method:e,pushCandidates:t,rename:n}){const i=new Set,r=[];let o=null;if(e==="GET")t.has("where")&&s.where!==void 0&&(r.push([se("where","_where",n),JSON.stringify(s.where)]),i.add("where")),t.has("limit")&&s.limit!==void 0&&(r.push([se("limit","_limit",n),String(s.limit)]),i.add("limit")),t.has("sort")&&s.sort!==void 0&&(r.push([se("sort","_sort",n),String(s.sort)]),i.add("sort"));else if(e==="POST"){const a={};t.has("where")&&s.where!==void 0&&(a[se("where","where",n)]=s.where,i.add("where")),t.has("limit")&&s.limit!==void 0&&(a[se("limit","limit",n)]=s.limit,i.add("limit")),t.has("sort")&&s.sort!==void 0&&(a[se("sort","sort",n)]=s.sort,i.add("sort")),Object.keys(a).length>0&&(o=a)}return{queryParams:r,bodyMerge:o,pushed:i}}};function se(s,e,t){return t&&typeof t[s]=="string"&&t[s].length>0?t[s]:e}const $s={name:"flat-query",canPush:new Set(["where","limit","sort"]),defaultEnvelope:null,encode(s,{method:e,pushCandidates:t,rename:n}){const i=new Set,r=[];if(e!=="GET")return{queryParams:r,bodyMerge:null,pushed:i};if(t.has("where")&&s.where!==void 0){const o=to(s.where);if(o!==null){for(const[a,l]of o)r.push([no(a),l]);i.add("where")}}if(t.has("limit")&&s.limit!==void 0&&(r.push([Cs("limit","limit",n),String(s.limit)]),i.add("limit")),t.has("sort")&&s.sort!==void 0){const o=so(s.sort);o!==null&&(r.push([Cs("sort","sort",n),o]),i.add("sort"))}return{queryParams:r,bodyMerge:null,pushed:i}}};function to(s){if(!s||typeof s!="object"||Array.isArray(s))return null;const e=[];for(const[t,n]of Object.entries(s)){if(t==="and"||t==="or"||t==="not"||t.includes("."))return null;if(Ns(n)){e.push([t,Os(n)]);continue}if(n&&typeof n=="object"&&!Array.isArray(n)){const i=Object.keys(n);if(i.length===1&&i[0]==="eq"&&Ns(n.eq)){e.push([t,Os(n.eq)]);continue}}return null}return e}function so(s){if(typeof s!="string"||s.length===0)return null;const e=s.split(",").map(n=>n.trim()).filter(Boolean);if(e.length===0)return null;const t=[];for(const n of e){const[i,r]=n.split(/\s+/);if(!i)return null;const o=(r||"asc").toLowerCase()==="desc";t.push(o?`-${i}`:i)}return t.join(",")}function Ns(s){if(s===null)return!0;const e=typeof s;return e==="string"||e==="number"||e==="boolean"}function Os(s){return s===null?"":String(s)}function Cs(s,e,t){return t&&typeof t[s]=="string"&&t[s].length>0?t[s]:e}function no(s,e){return s}const Ts={name:"strapi",canPush:new Set(["where","limit","sort"]),defaultEnvelope:{collection:"data",item:"data"},encode(s,{method:e,pushCandidates:t,rename:n}){const i=new Set,r=[];if(e!=="GET")return{queryParams:r,bodyMerge:null,pushed:i};if(t.has("where")&&s.where!==void 0){const o=At("where","filters",n),a=ro(s.where,o);if(a!==null){for(const l of a)r.push(l);i.add("where")}}if(t.has("limit")&&s.limit!==void 0){const o=At("limit","pagination[limit]",n);r.push([o,String(s.limit)]),i.add("limit")}if(t.has("sort")&&s.sort!==void 0){const o=ao(s.sort,At("sort","sort",n));if(o!==null){for(const a of o)r.push(a);i.add("sort")}}return{queryParams:r,bodyMerge:null,pushed:i}}},io={eq:"[$eq]",ne:"[$ne]",gt:"[$gt]",gte:"[$gte]",lt:"[$lt]",lte:"[$lte]",in:"[$in]",nin:"[$notIn]",like:"[$containsi]",exists:"[$notNull]"};function ro(s,e){const t=[];try{jt(s,[e],t)}catch(n){if(n&&n.unencodable)return null;throw n}return t.length>0?t:null}function jt(s,e,t){(!s||typeof s!="object"||Array.isArray(s))&&G();for(const[n,i]of Object.entries(s))n==="and"||n==="or"?(Array.isArray(i)||G(),i.forEach((r,o)=>{jt(r,[...e,`[$${n}]`,`[${o}]`],t)})):n==="not"?jt(i,[...e,"[$not]"],t):oo(n,i,e,t)}function oo(s,e,t,n){const i=s.split(".").map(o=>`[${o}]`),r=[...t,...i];if(vt(e)){n.push([Ke(r)+"[$eq]",It(e)]);return}if(e&&typeof e=="object"&&!Array.isArray(e)){for(const[o,a]of Object.entries(e)){const l=io[o];if(l||G(),o==="in"||o==="nin"){Array.isArray(a)||G(),a.forEach((c,f)=>{vt(c)||G(),n.push([Ke(r)+l+`[${f}]`,It(c)])});continue}if(o==="exists"){const c=!!a;n.push([Ke(r)+(c?"[$notNull]":"[$null]"),"true"]);continue}vt(a)||G(),n.push([Ke(r)+l,It(a)])}return}G()}function Ke(s){return s.join("")}function G(){const s=new Error("unencodable predicate");throw s.unencodable=!0,s}function ao(s,e){if(typeof s!="string"||s.length===0)return null;const t=s.split(",").map(i=>i.trim()).filter(Boolean);if(t.length===0)return null;const n=[];for(const i of t){const[r,o]=i.split(/\s+/);if(!r)return null;const a=(o||"asc").toLowerCase()==="desc"?"desc":"asc";n.push(`${r}:${a}`)}return n.length===1?[[e,n[0]]]:n.map((i,r)=>[`${e}[${r}]`,i])}function vt(s){if(s===null)return!0;const e=typeof s;return e==="string"||e==="number"||e==="boolean"}function It(s){return s===null?"":String(s)}function At(s,e,t){return t&&typeof t[s]=="string"&&t[s].length>0?t[s]:e}const xt=new Map([[Qe.name,Qe],[$s.name,$s],[Ts.name,Ts]]);function wo(s,{dev:e=!1}={}){if(!s)return Qe;const t=xt.get(s);return t||(e&&!Es.has(s)&&(Es.add(s),console.warn(`[default-fetcher] unknown request style "${s}"; falling back to "json-body". Known styles: ${[...xt.keys()].join(", ")}.`)),Qe)}const Es=new Set;function ko(){return[...xt.keys()]}function So(){return globalThis.uniweb}function _o(s,e=null,t=[],{defaultFetcher:n=null,transport:i=null,dev:r=!1}={}){const o=new Wr({content:s,foundation:e,extensions:t,defaultFetcher:n,transport:i,dev:r});return globalThis.uniweb=o,o}export{K as B,Ln as D,jr as E,Ls as F,In as O,Re as P,po as T,Wr as U,Vr as W,yo as a,ts as b,_o as c,Lr as d,$r as e,fo as f,lo as g,go as h,co as i,uo as j,He as k,So as l,mo as m,Ss as n,Cr as o,Rr as p,ko as q,wo as r,Ie as s,Mt as t,bo as u,Or as v,Bt as w,Dr as x,ho as y};
|
|
133
|
-
//# sourceMappingURL=core-BI26Dvfl.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
var A={exports:{}},n={};var N;function J(){if(N)return n;N=1;var E=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),U=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),D=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),S=Symbol.iterator;function G(t){return t===null||typeof t!="object"?null:(t=S&&t[S]||t["@@iterator"],typeof t=="function"?t:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,g={};function a(t,e,u){this.props=t,this.context=e,this.refs=g,this.updater=u||h}a.prototype.isReactComponent={},a.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},a.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function H(){}H.prototype=a.prototype;function y(t,e,u){this.props=t,this.context=e,this.refs=g,this.updater=u||h}var v=y.prototype=new H;v.constructor=y,w(v,a.prototype),v.isPureReactComponent=!0;var O=Array.isArray;function R(){}var f={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function T(t,e,u){var r=u.ref;return{$$typeof:E,type:t,key:e,ref:r!==void 0?r:null,props:u}}function K(t,e){return T(t.type,e,t.props)}function m(t){return typeof t=="object"&&t!==null&&t.$$typeof===E}function B(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(u){return e[u]})}var j=/\/+/g;function C(t,e){return typeof t=="object"&&t!==null&&t.key!=null?B(""+t.key):e.toString(36)}function W(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(R,R):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function _(t,e,u,r,o){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var i=!1;if(t===null)i=!0;else switch(s){case"bigint":case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case E:case I:i=!0;break;case d:return i=t._init,_(i(t._payload),e,u,r,o)}}if(i)return o=o(t),i=r===""?"."+C(t,0):r,O(o)?(u="",i!=null&&(u=i.replace(j,"$&/")+"/"),_(o,e,u,"",function(Z){return Z})):o!=null&&(m(o)&&(o=K(o,u+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(j,"$&/")+"/")+i)),e.push(o)),1;i=0;var p=r===""?".":r+":";if(O(t))for(var c=0;c<t.length;c++)r=t[c],s=p+C(r,c),i+=_(r,e,u,s,o);else if(c=G(t),typeof c=="function")for(t=c.call(t),c=0;!(r=t.next()).done;)r=r.value,s=p+C(r,c++),i+=_(r,e,u,s,o);else if(s==="object"){if(typeof t.then=="function")return _(W(t),e,u,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return i}function l(t,e,u){if(t==null)return t;var r=[],o=0;return _(t,r,"","",function(s){return e.call(u,s,o++)}),r}function Q(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(u){(t._status===0||t._status===-1)&&(t._status=1,t._result=u)},function(u){(t._status===0||t._status===-1)&&(t._status=2,t._result=u)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var $=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},X={map:l,forEach:function(t,e,u){l(t,function(){e.apply(this,arguments)},u)},count:function(t){var e=0;return l(t,function(){e++}),e},toArray:function(t){return l(t,function(e){return e})||[]},only:function(t){if(!m(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};return n.Activity=z,n.Children=X,n.Component=a,n.Fragment=M,n.Profiler=L,n.PureComponent=y,n.StrictMode=x,n.Suspense=b,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,n.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}},n.cache=function(t){return function(){return t.apply(null,arguments)}},n.cacheSignal=function(){return null},n.cloneElement=function(t,e,u){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var r=w({},t.props),o=t.key;if(e!=null)for(s in e.key!==void 0&&(o=""+e.key),e)!P.call(e,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&e.ref===void 0||(r[s]=e[s]);var s=arguments.length-2;if(s===1)r.children=u;else if(1<s){for(var i=Array(s),p=0;p<s;p++)i[p]=arguments[p+2];r.children=i}return T(t.type,o,r)},n.createContext=function(t){return t={$$typeof:U,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:k,_context:t},t},n.createElement=function(t,e,u){var r,o={},s=null;if(e!=null)for(r in e.key!==void 0&&(s=""+e.key),e)P.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var i=arguments.length-2;if(i===1)o.children=u;else if(1<i){for(var p=Array(i),c=0;c<i;c++)p[c]=arguments[c+2];o.children=p}if(t&&t.defaultProps)for(r in i=t.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return T(t,s,o)},n.createRef=function(){return{current:null}},n.forwardRef=function(t){return{$$typeof:q,render:t}},n.isValidElement=m,n.lazy=function(t){return{$$typeof:d,_payload:{_status:-1,_result:t},_init:Q}},n.memo=function(t,e){return{$$typeof:D,type:t,compare:e===void 0?null:e}},n.startTransition=function(t){var e=f.T,u={};f.T=u;try{var r=t(),o=f.S;o!==null&&o(u,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(R,$)}catch(s){$(s)}finally{e!==null&&u.types!==null&&(e.types=u.types),f.T=e}},n.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()},n.use=function(t){return f.H.use(t)},n.useActionState=function(t,e,u){return f.H.useActionState(t,e,u)},n.useCallback=function(t,e){return f.H.useCallback(t,e)},n.useContext=function(t){return f.H.useContext(t)},n.useDebugValue=function(){},n.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)},n.useEffect=function(t,e){return f.H.useEffect(t,e)},n.useEffectEvent=function(t){return f.H.useEffectEvent(t)},n.useId=function(){return f.H.useId()},n.useImperativeHandle=function(t,e,u){return f.H.useImperativeHandle(t,e,u)},n.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)},n.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)},n.useMemo=function(t,e){return f.H.useMemo(t,e)},n.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)},n.useReducer=function(t,e,u){return f.H.useReducer(t,e,u)},n.useRef=function(t){return f.H.useRef(t)},n.useState=function(t){return f.H.useState(t)},n.useSyncExternalStore=function(t,e,u){return f.H.useSyncExternalStore(t,e,u)},n.useTransition=function(){return f.H.useTransition()},n.version="19.2.5",n}var Y;function V(){return Y||(Y=1,A.exports=J()),A.exports}export{V as r};
|
|
2
|
-
//# sourceMappingURL=index-CxUeIbEw.js.map
|