diff --git a/index-fvYXRG4m.js b/index-8QsdpE8Q.js similarity index 99% rename from index-fvYXRG4m.js rename to index-8QsdpE8Q.js index e8df9a7..890dd0b 100644 --- a/index-fvYXRG4m.js +++ b/index-8QsdpE8Q.js @@ -124,7 +124,7 @@ For more info see: https://github.com/konvajs/react-konva/issues/194 [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const k=x.state[u];if(k==null)return;JSON.stringify(a.getState())!==JSON.stringify(k)&&y(k);return}a.dispatchFromDevtools&&typeof a.dispatch=="function"&&a.dispatch(x)});case"DISPATCH":switch(S.payload.type){case"RESET":return y(b),u===void 0?f?.init(a.getState()):f?.init(tp(c.name));case"COMMIT":if(u===void 0){f?.init(a.getState());return}return f?.init(tp(c.name));case"ROLLBACK":return Xv(S.state,x=>{if(u===void 0){y(x),f?.init(a.getState());return}y(x[u]),f?.init(tp(c.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Xv(S.state,x=>{if(u===void 0){y(x);return}JSON.stringify(a.getState())!==JSON.stringify(x[u])&&y(x[u])});case"IMPORT_STATE":{const{nextLiftedState:x}=S.payload,k=(E=x.computedStates.slice(-1)[0])==null?void 0:E.state;if(!k)return;y(u===void 0?k:k[u]),f?.send(null,x);return}case"PAUSE_RECORDING":return v=!v}return}}),b},zL=DL,Xv=(t,e)=>{let r;try{r=JSON.parse(t)}catch(n){console.error("[zustand devtools middleware] Could not parse the received json",n)}r!==void 0&&e(r)};function BL(t,e){let r;try{r=t()}catch{return}return{getItem:n=>{var a;const i=u=>u===null?null:JSON.parse(u,e?.reviver),s=(a=r.getItem(n))!=null?a:null;return s instanceof Promise?s.then(i):i(s)},setItem:(n,a)=>r.setItem(n,JSON.stringify(a,e?.replacer)),removeItem:n=>r.removeItem(n)}}const ic=t=>e=>{try{const r=t(e);return r instanceof Promise?r:{then(n){return ic(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return ic(n)(r)}}}},UL=(t,e)=>(r,n,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:E=>E,version:0,merge:(E,x)=>({...x,...E}),...e},s=!1;const u=new Set,c=new Set;let d;try{d=i.getStorage()}catch{}if(!d)return t((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...E)},n,a);const f=ic(i.serialize),m=()=>{const E=i.partialize({...n()});let x;const k=f({state:E,version:i.version}).then(g=>d.setItem(i.name,g)).catch(g=>{x=g});if(x)throw x;return k},v=a.setState;a.setState=(E,x)=>{v(E,x),m()};const y=t((...E)=>{r(...E),m()},n,a);let b;const S=()=>{var E;if(!d)return;s=!1,u.forEach(k=>k(n()));const x=((E=i.onRehydrateStorage)==null?void 0:E.call(i,n()))||void 0;return ic(d.getItem.bind(d))(i.name).then(k=>{if(k)return i.deserialize(k)}).then(k=>{if(k)if(typeof k.version=="number"&&k.version!==i.version){if(i.migrate)return i.migrate(k.state,k.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return k.state}).then(k=>{var g;return b=i.merge(k,(g=n())!=null?g:y),r(b,!0),m()}).then(()=>{x?.(b,void 0),s=!0,c.forEach(k=>k(b))}).catch(k=>{x?.(void 0,k)})};return a.persist={setOptions:E=>{i={...i,...E},E.getStorage&&(d=E.getStorage())},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>S(),hasHydrated:()=>s,onHydrate:E=>(u.add(E),()=>{u.delete(E)}),onFinishHydration:E=>(c.add(E),()=>{c.delete(E)})},S(),b||y},$L=(t,e)=>(r,n,a)=>{let i={storage:BL(()=>localStorage),partialize:S=>S,version:0,merge:(S,E)=>({...E,...S}),...e},s=!1;const u=new Set,c=new Set;let d=i.storage;if(!d)return t((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...S)},n,a);const f=()=>{const S=i.partialize({...n()});return d.setItem(i.name,{state:S,version:i.version})},m=a.setState;a.setState=(S,E)=>{m(S,E),f()};const v=t((...S)=>{r(...S),f()},n,a);a.getInitialState=()=>v;let y;const b=()=>{var S,E;if(!d)return;s=!1,u.forEach(k=>{var g;return k((g=n())!=null?g:v)});const x=((E=i.onRehydrateStorage)==null?void 0:E.call(i,(S=n())!=null?S:v))||void 0;return ic(d.getItem.bind(d))(i.name).then(k=>{if(k)if(typeof k.version=="number"&&k.version!==i.version){if(i.migrate)return i.migrate(k.state,k.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return k.state}).then(k=>{var g;return y=i.merge(k,(g=n())!=null?g:v),r(y,!0),f()}).then(()=>{x?.(y,void 0),y=n(),s=!0,c.forEach(k=>k(y))}).catch(k=>{x?.(void 0,k)})};return a.persist={setOptions:S=>{i={...i,...S},S.storage&&(d=S.storage)},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>b(),hasHydrated:()=>s,onHydrate:S=>(u.add(S),()=>{u.delete(S)}),onFinishHydration:S=>(c.add(S),()=>{c.delete(S)})},i.skipHydration||b(),y||v},VL=(t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((ep?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),UL(t,e)):$L(t,e),GL=VL,w4=[{id:1,image:"./frame/frame_1.png",front:"./frame/frame_1_front.png"},{id:2,image:"./frame/frame_2.png",front:"./frame/frame_2_front.png"},{id:3,image:"./frame/frame_3.png",front:"./frame/frame_3_front.png"},{id:4,image:"./frame/frame_4.png",front:"./frame/frame_4_front.png"},{id:5,image:"./frame/frame_5.png",front:"./frame/frame_5_front.png"}],WL=[{id:"Betende_Frau_Maria",image:"./sticker/Betende_Frau_Maria.png"},{id:"Blumentopf",image:"./sticker/Blumentopf.png"},{id:"Blume",image:"./sticker/Blume.png"},{id:"Frau_in_gelbem_Kleid",image:"./sticker/Frau_in_gelbem_Kleid.png"},{id:"Magd",image:"./sticker/Magd.png"},{id:"Mann_liegend",image:"./sticker/Mann_liegend.png"},{id:"Mann",image:"./sticker/Mann.png"},{id:"Mucha_Dekor",image:"./sticker/Mucha_Dekor.png"},{id:"The_Hare",image:"./sticker/The_Hare.png"},{id:"Wasserspeier",image:"./sticker/Wasserspeier.png"}],k4=[{id:"http://www.wikidata.org/entity/Q20355536",name:"A Street in Torello, Italy",year:"1890",country:"Denmark",location:"Statens Museum for Kunst",creator:"Peder Severin Kr\xF8yer",url:"https://api.smk.dk/api/v1/iiif/manifest/?id=KMS1435",identifier:"https://iip.smk.dk/iiif/jp2/z603r155c_KMS1435.tif.reconstructed.tif.jp2",image:"https://iip.smk.dk/iiif/jp2/z603r155c_KMS1435.tif.reconstructed.tif.jp2/full/400,/0/default.jpg",thumbnail:"https://iip.smk.dk/iiif/jp2/z603r155c_KMS1435.tif.reconstructed.tif.jp2/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q20537703",name:"At the French Windows. The Artist's Wife",year:"1897",country:"Denmark",location:"Statens Museum for Kunst",creator:"Laurits Andersen Ring",url:"https://api.smk.dk/api/v1/iiif/manifest/?id=KMS3716",identifier:"https://iip.smk.dk/iiif/jp2/1544bs13w_kms3716.tif.reconstructed.tif.jp2",image:"https://iip.smk.dk/iiif/jp2/1544bs13w_kms3716.tif.reconstructed.tif.jp2/full/400,/0/default.jpg",thumbnail:"https://iip.smk.dk/iiif/jp2/1544bs13w_kms3716.tif.reconstructed.tif.jp2/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q103297795",name:"Brot! (Bread!)",year:"1924",country:"Germany",location:"Vanderbilt University Fine Arts Gallery",creator:"K\xE4the Kollwitz",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1977/1977.011.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1977%2F1977.011.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1977%2F1977.011.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1977%2F1977.011.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q103297971",name:"Business-Man, ffrom Genius, Zeitschrift f\xFCr werdende und alte Kunst (Magazine for Emerging and Ancient Art), Year 2, no. 1",year:"1920",country:"Belgium",location:"Vanderbilt University Fine Arts Gallery",creator:"Frans Masereel",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1976/1976.032.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.032.med.jpg",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.032.med.jpg/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.032.med.jpg/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q3698180",name:"Calvary",year:"1475",country:"Belgium",location:"Royal Museum of Fine Arts Antwerp",creator:"Antonello da Messina",url:"https://iiif.kmska.be/iiif/2/5/manifest.json",identifier:"https://iiif.kmska.be/c/iiif/2/public@5.tif",image:"https://iiif.kmska.be/c/iiif/2/public@5.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.kmska.be/c/iiif/2/public@5.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q103300860",name:"Half-Figure Prophet",year:"1450",country:"France",location:"Vanderbilt University Fine Arts Gallery",creator:"http://www.wikidata.org/.well-known/genid/d7c4865c9fae865605be887d7277ab75",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1975/1975.005.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1975%2F1975.005.jpg",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1975%2F1975.005.jpg/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1975%2F1975.005.jpg/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q102967848",name:"Landscape with Shepherds",year:"",country:"Netherlands",location:"Vanderbilt University Fine Arts Gallery",creator:"Jan Both",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1979/1979.0195P.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0195P.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0195P.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0195P.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q106582838",name:"The Blacksmith Worker",year:"",country:"Switzerland",location:"Vanderbilt University Fine Arts Gallery",creator:"Antonello da Messina",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1976/1976.036.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.036.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.036.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.036.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q104032628",name:"The Empty Jug",year:"1653",country:"Netherlands",location:"Vanderbilt University Fine Arts Gallery",creator:"Adriaen van Ostade",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1979/1979.0845P.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0845P.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0845P.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0845P.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q102975484",name:"Trostung (Consolation), from Genius, Zeitschrift f\xFCr werdende und alte Kunst (Magazine for Emerging and Ancient Art), Year 2, no. 1",year:"1920",country:"Austria",location:"Vanderbilt University Fine Arts Gallery",creator:"Georg Ehrlich",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1976/1976.031.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.031.med.jpg",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.031.med.jpg/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.031.med.jpg/full/100,100/0/default.jpg"}],ui=jL()(zL(GL(t=>({addToArtwork:(e,r)=>t(n=>({artworkList:[...n.artworkList,{id:e,image:r}]})),addToCanvas:(e,r,n)=>t(a=>({canvasList:[...a.canvasList,{brightness:0,height:400,id:`${a.canvasList.length+1}`,image:e,isDragging:!1,opacity:1,width:400,x:r,y:n}]})),addToImageList:e=>t(r=>({imageList:[...r.imageList,...e]})),artworkList:WL,canvasList:[],frame:w4[1],imageList:k4.sort(()=>Math.random()-.5),imageLikeList:[],likeImage:e=>t(r=>({imageLikeList:[...r.imageLikeList,e]})),resetState:()=>t(()=>({imageList:k4.sort(()=>Math.random()-.5),canvasList:[],imageLikeList:[]})),removeFromCanvas:e=>t(r=>({canvasList:r.canvasList.filter(n=>n.id!==e)})),setFrame:e=>t(()=>({frame:w4.find(r=>r.id===e)})),transformCanvasImage:e=>t(r=>({canvasList:r.canvasList.map(n=>n.id!==e.id?n:{...n,height:e.height,width:e.width,x:e.x,y:e.y,brightness:e.brightness,opacity:e.opacity})})),moveCanvasImage:(e,r)=>t(n=>{const a=n.canvasList.findIndex(i=>i.id===e);if(a!==-1){const i=r?a-1:a+1;if(i>=0&&i{const{frame:e}=ui(),[r]=d4(t?e.front:e.image);return J.jsx(c4,{image:r,draggable:!1})},qL=({canvasImage:t,isSelected:e,onSelect:r})=>{const n=I.useRef(),a=I.useRef(),[i]=d4(t.image),s=ui(f=>f.transformCanvasImage);I.useEffect(()=>{var f;e&&(a.current.nodes([n.current]),(f=a.current.getLayer())==null||f.batchDraw())},[e]),I.useEffect(()=>{const f=new window.Image;f.crossOrigin="Anonymous",f.src=t.image,f.onload=()=>{var m;n.current&&(n.current.image(f),(m=n.current.getLayer())==null||m.batchDraw())}},[t.image]);const u=()=>{s({...t,isDragging:!0})},c=f=>{s({...t,isDragging:!1,x:f.target.x(),y:f.target.y()})},d=()=>{var f;const m=n.current,v=m.scaleX(),y=m.scaleY(),b=Math.max(5,m.width()*v),S=Math.max(m.height()*y);s({...t,x:m.x(),y:m.y(),width:b,height:S}),a.current.nodes([n.current]),(f=a.current.getLayer())==null||f.batchDraw()};return J.jsxs(J.Fragment,{children:[J.jsx(c4,{draggable:!0,id:t.id,image:i,onClick:r,onDragEnd:c,onDragStart:u,onTap:r,onTransformEnd:d,ref:n,x:t.x,y:t.y,scaleX:.5,scaleY:.5,opacity:t.opacity||1,brightness:t.brightness||0},t.id),e&&J.jsx(sL,{ref:a,flipEnabled:!1,enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]})]})},HL=()=>{const{addToCanvas:t,artworkList:e,canvasList:r,frame:n,moveCanvasImage:a,removeFromCanvas:i,setFrame:s,transformCanvasImage:u}=ui(),c=I.useRef(null),[d,f]=I.useState(""),[m,v]=I.useState(1),[y,b]=I.useState(1),S=1080,E=1080;I.useEffect(()=>{const A=()=>{const F=(window.innerWidth*.9||0)/S;c.current&&(c.current.width(S*F),c.current.height(E*F),c.current.scale({x:F,y:F}))};return A(),window.addEventListener("resize",A),()=>{window.removeEventListener("resize",A)}},[]);const x=A=>{A.target===A.target.getStage()&&f("")},k=A=>{A.preventDefault();const F=A.dataTransfer.getData("text/plain"),U=e.find(H=>H.id===F);if(U){const H=c.current;if(H){const q=A.clientX-H.container().getBoundingClientRect().left,ne=A.clientY-H.container().getBoundingClientRect().top;t(U.image,q,ne)}}},g=A=>{d&&a(d,A)},C=A=>{v(A);const F=r.find(U=>U.id===d);F&&u({...F,brightness:A})},N=A=>{b(A);const F=r.find(U=>U.id===d);F&&u({...F,opacity:A})},O=()=>{i(d),f("")},D=()=>{navigator.share?navigator.share({title:"GLAMorous Europe",text:"Check out my GLAMorous Europe artwork!",url:window.location.href}).then(()=>console.log("Share successful")).catch(A=>console.error("Error sharing:",A)):console.log("Web Share API not supported")},R=()=>{var A;const F=(A=c.current)==null?void 0:A.toDataURL();F&&vE.saveAs(F,"GLAMorousEurope.png")};return J.jsxs(J.Fragment,{children:[J.jsxs("div",{className:"toolbar",children:[J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>g(!0),children:J.jsx(xn,{material:J.jsx(B_,{className:"w-6 h-6"})})}),J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>g(!1),children:J.jsx(xn,{material:J.jsx(A_,{className:"w-6 h-6"})})}),d&&J.jsxs("div",{children:[J.jsx("label",{htmlFor:"brightnessSlider",children:"Brightness:"}),J.jsx("input",{id:"brightnessSlider",type:"range",min:"0",max:"2",step:"0.01",value:m,onChange:A=>C(parseFloat(A.target.value))}),J.jsx("label",{htmlFor:"opacitySlider",children:"Opacity:"}),J.jsx("input",{id:"opacitySlider",type:"range",min:"0",max:"1",step:"0.01",value:y,onChange:A=>N(parseFloat(A.target.value))})]}),J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:O,children:J.jsx(xn,{material:J.jsx(mE,{className:"w-6 h-6"})})})]}),J.jsxs("div",{className:"mx-auto flex items-center gap-2",onDrop:k,onDragOver:A=>A.preventDefault(),children:[J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>s(Math.max(1,n.id-1)),children:J.jsx(xn,{material:J.jsx(V_,{className:"w-6 h-6"})})}),J.jsxs(lL,{width:S,height:E,ref:c,onMouseDown:x,onTouchStart:x,children:[J.jsxs(u4,{children:[J.jsx(x4,{front:!1}),r.map(A=>J.jsx(qL,{canvasImage:A,isSelected:A.id===d,onSelect:()=>{f(A.id)}},A.id))]}),J.jsx(u4,{listening:!1,children:J.jsx(x4,{front:!0})})]}),J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>s(Math.min(5,n.id+1)),children:J.jsx(xn,{material:J.jsx(q_,{className:"w-6 h-6"})})})]}),J.jsxs("div",{className:"flex gap-2 mx-auto",children:[J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:D,children:J.jsx(xn,{material:J.jsx(cE,{className:"w-6 h-6"})})}),J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:R,children:J.jsx(xn,{material:J.jsx(L_,{className:"w-6 h-6"})})})]})]})};function KL(){const{t}=Bu(),{artworkList:e}=ui();return J.jsxs(ti,{className:"flex flex-col flex-wrap gap-4 container justify-center content-center text-center mx-auto",children:[J.jsx("div",{className:"p-2 m-4",children:J.jsx("h1",{className:"text-2xl",children:t("artworkTitle")})}),J.jsx(ti,{className:"flex flex-wrap mx-auto",children:e.map(r=>J.jsx("img",{src:r.image,alt:r.id,role:"presentation",style:{display:"block",maxHeight:"150px",width:"auto",height:"auto",cursor:"move",borderRadius:"5px",margin:"4px"},draggable:!0,onDragStart:n=>{n.dataTransfer.setData("text/plain",r.id)}},r.id))}),e.length===0?J.jsx(Wr,{className:"p-4 text-xl text-black w-2/3 mx-auto h-20",rounded:!0,inline:!0,children:J.jsx(Dh,{to:"/selection",children:t("artworkEmpty")})}):J.jsx(HL,{})]})}const YL="modulepreload",QL=function(t){return"/"+t},S4={},ZL=function(t,e,r){let n=Promise.resolve();if(e&&e.length>0){const a=document.getElementsByTagName("link");n=Promise.all(e.map(i=>{if(i=QL(i),i in S4)return;S4[i]=!0;const s=i.endsWith(".css"),u=s?'[rel="stylesheet"]':"";if(r)for(let d=a.length-1;d>=0;d--){const f=a[d];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${u}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":YL,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((d,f)=>{c.addEventListener("load",d),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})}))}return n.then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})};var C4={exports:{}},XL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",JL=XL,eF=JL;function _4(){}function E4(){}E4.resetWarningCache=_4;var tF=function(){function t(n,a,i,s,u,c){if(c!==eF){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:E4,resetWarningCache:_4};return r.PropTypes=r,r};C4.exports=tF();var rF=C4.exports;const Rr=Ga(rF);/*! ***************************************************************************** + `);const k=x.state[u];if(k==null)return;JSON.stringify(a.getState())!==JSON.stringify(k)&&y(k);return}a.dispatchFromDevtools&&typeof a.dispatch=="function"&&a.dispatch(x)});case"DISPATCH":switch(S.payload.type){case"RESET":return y(b),u===void 0?f?.init(a.getState()):f?.init(tp(c.name));case"COMMIT":if(u===void 0){f?.init(a.getState());return}return f?.init(tp(c.name));case"ROLLBACK":return Xv(S.state,x=>{if(u===void 0){y(x),f?.init(a.getState());return}y(x[u]),f?.init(tp(c.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Xv(S.state,x=>{if(u===void 0){y(x);return}JSON.stringify(a.getState())!==JSON.stringify(x[u])&&y(x[u])});case"IMPORT_STATE":{const{nextLiftedState:x}=S.payload,k=(E=x.computedStates.slice(-1)[0])==null?void 0:E.state;if(!k)return;y(u===void 0?k:k[u]),f?.send(null,x);return}case"PAUSE_RECORDING":return v=!v}return}}),b},zL=DL,Xv=(t,e)=>{let r;try{r=JSON.parse(t)}catch(n){console.error("[zustand devtools middleware] Could not parse the received json",n)}r!==void 0&&e(r)};function BL(t,e){let r;try{r=t()}catch{return}return{getItem:n=>{var a;const i=u=>u===null?null:JSON.parse(u,e?.reviver),s=(a=r.getItem(n))!=null?a:null;return s instanceof Promise?s.then(i):i(s)},setItem:(n,a)=>r.setItem(n,JSON.stringify(a,e?.replacer)),removeItem:n=>r.removeItem(n)}}const ic=t=>e=>{try{const r=t(e);return r instanceof Promise?r:{then(n){return ic(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return ic(n)(r)}}}},UL=(t,e)=>(r,n,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:E=>E,version:0,merge:(E,x)=>({...x,...E}),...e},s=!1;const u=new Set,c=new Set;let d;try{d=i.getStorage()}catch{}if(!d)return t((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...E)},n,a);const f=ic(i.serialize),m=()=>{const E=i.partialize({...n()});let x;const k=f({state:E,version:i.version}).then(g=>d.setItem(i.name,g)).catch(g=>{x=g});if(x)throw x;return k},v=a.setState;a.setState=(E,x)=>{v(E,x),m()};const y=t((...E)=>{r(...E),m()},n,a);let b;const S=()=>{var E;if(!d)return;s=!1,u.forEach(k=>k(n()));const x=((E=i.onRehydrateStorage)==null?void 0:E.call(i,n()))||void 0;return ic(d.getItem.bind(d))(i.name).then(k=>{if(k)return i.deserialize(k)}).then(k=>{if(k)if(typeof k.version=="number"&&k.version!==i.version){if(i.migrate)return i.migrate(k.state,k.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return k.state}).then(k=>{var g;return b=i.merge(k,(g=n())!=null?g:y),r(b,!0),m()}).then(()=>{x?.(b,void 0),s=!0,c.forEach(k=>k(b))}).catch(k=>{x?.(void 0,k)})};return a.persist={setOptions:E=>{i={...i,...E},E.getStorage&&(d=E.getStorage())},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>S(),hasHydrated:()=>s,onHydrate:E=>(u.add(E),()=>{u.delete(E)}),onFinishHydration:E=>(c.add(E),()=>{c.delete(E)})},S(),b||y},$L=(t,e)=>(r,n,a)=>{let i={storage:BL(()=>localStorage),partialize:S=>S,version:0,merge:(S,E)=>({...E,...S}),...e},s=!1;const u=new Set,c=new Set;let d=i.storage;if(!d)return t((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...S)},n,a);const f=()=>{const S=i.partialize({...n()});return d.setItem(i.name,{state:S,version:i.version})},m=a.setState;a.setState=(S,E)=>{m(S,E),f()};const v=t((...S)=>{r(...S),f()},n,a);a.getInitialState=()=>v;let y;const b=()=>{var S,E;if(!d)return;s=!1,u.forEach(k=>{var g;return k((g=n())!=null?g:v)});const x=((E=i.onRehydrateStorage)==null?void 0:E.call(i,(S=n())!=null?S:v))||void 0;return ic(d.getItem.bind(d))(i.name).then(k=>{if(k)if(typeof k.version=="number"&&k.version!==i.version){if(i.migrate)return i.migrate(k.state,k.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return k.state}).then(k=>{var g;return y=i.merge(k,(g=n())!=null?g:v),r(y,!0),f()}).then(()=>{x?.(y,void 0),y=n(),s=!0,c.forEach(k=>k(y))}).catch(k=>{x?.(void 0,k)})};return a.persist={setOptions:S=>{i={...i,...S},S.storage&&(d=S.storage)},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>b(),hasHydrated:()=>s,onHydrate:S=>(u.add(S),()=>{u.delete(S)}),onFinishHydration:S=>(c.add(S),()=>{c.delete(S)})},i.skipHydration||b(),y||v},VL=(t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((ep?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),UL(t,e)):$L(t,e),GL=VL,w4=[{id:1,image:"./frame/frame_1.png",front:"./frame/frame_1_front.png"},{id:2,image:"./frame/frame_2.png",front:"./frame/frame_2_front.png"},{id:3,image:"./frame/frame_3.png",front:"./frame/frame_3_front.png"},{id:4,image:"./frame/frame_4.png",front:"./frame/frame_4_front.png"},{id:5,image:"./frame/frame_5.png",front:"./frame/frame_5_front.png"}],WL=[{id:"Betende_Frau_Maria",image:"./sticker/Betende_Frau_Maria.png"},{id:"Blumentopf",image:"./sticker/Blumentopf.png"},{id:"Blume",image:"./sticker/Blume.png"},{id:"Frau_in_gelbem_Kleid",image:"./sticker/Frau_in_gelbem_Kleid.png"},{id:"Magd",image:"./sticker/Magd.png"},{id:"Mann_liegend",image:"./sticker/Mann_liegend.png"},{id:"Mann",image:"./sticker/Mann.png"},{id:"Mucha_Dekor",image:"./sticker/Mucha_Dekor.png"},{id:"The_Hare",image:"./sticker/The_Hare.png"},{id:"Wasserspeier",image:"./sticker/Wasserspeier.png"}],k4=[{id:"http://www.wikidata.org/entity/Q20355536",name:"A Street in Torello, Italy",year:"1890",country:"Denmark",location:"Statens Museum for Kunst",creator:"Peder Severin Kr\xF8yer",url:"https://api.smk.dk/api/v1/iiif/manifest/?id=KMS1435",identifier:"https://iip.smk.dk/iiif/jp2/z603r155c_KMS1435.tif.reconstructed.tif.jp2",image:"https://iip.smk.dk/iiif/jp2/z603r155c_KMS1435.tif.reconstructed.tif.jp2/full/400,/0/default.jpg",thumbnail:"https://iip.smk.dk/iiif/jp2/z603r155c_KMS1435.tif.reconstructed.tif.jp2/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q20537703",name:"At the French Windows. The Artist's Wife",year:"1897",country:"Denmark",location:"Statens Museum for Kunst",creator:"Laurits Andersen Ring",url:"https://api.smk.dk/api/v1/iiif/manifest/?id=KMS3716",identifier:"https://iip.smk.dk/iiif/jp2/1544bs13w_kms3716.tif.reconstructed.tif.jp2",image:"https://iip.smk.dk/iiif/jp2/1544bs13w_kms3716.tif.reconstructed.tif.jp2/full/400,/0/default.jpg",thumbnail:"https://iip.smk.dk/iiif/jp2/1544bs13w_kms3716.tif.reconstructed.tif.jp2/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q103297795",name:"Brot! (Bread!)",year:"1924",country:"Germany",location:"Vanderbilt University Fine Arts Gallery",creator:"K\xE4the Kollwitz",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1977/1977.011.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1977%2F1977.011.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1977%2F1977.011.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1977%2F1977.011.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q103297971",name:"Business-Man, ffrom Genius, Zeitschrift f\xFCr werdende und alte Kunst (Magazine for Emerging and Ancient Art), Year 2, no. 1",year:"1920",country:"Belgium",location:"Vanderbilt University Fine Arts Gallery",creator:"Frans Masereel",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1976/1976.032.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.032.med.jpg",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.032.med.jpg/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.032.med.jpg/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q3698180",name:"Calvary",year:"1475",country:"Belgium",location:"Royal Museum of Fine Arts Antwerp",creator:"Antonello da Messina",url:"https://iiif.kmska.be/iiif/2/5/manifest.json",identifier:"https://iiif.kmska.be/c/iiif/2/public@5.tif",image:"https://iiif.kmska.be/c/iiif/2/public@5.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.kmska.be/c/iiif/2/public@5.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q103300860",name:"Half-Figure Prophet",year:"1450",country:"France",location:"Vanderbilt University Fine Arts Gallery",creator:"http://www.wikidata.org/.well-known/genid/d7c4865c9fae865605be887d7277ab75",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1975/1975.005.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1975%2F1975.005.jpg",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1975%2F1975.005.jpg/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1975%2F1975.005.jpg/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q102967848",name:"Landscape with Shepherds",year:"",country:"Netherlands",location:"Vanderbilt University Fine Arts Gallery",creator:"Jan Both",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1979/1979.0195P.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0195P.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0195P.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0195P.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q106582838",name:"The Blacksmith Worker",year:"",country:"Switzerland",location:"Vanderbilt University Fine Arts Gallery",creator:"Antonello da Messina",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1976/1976.036.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.036.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.036.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.036.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q104032628",name:"The Empty Jug",year:"1653",country:"Netherlands",location:"Vanderbilt University Fine Arts Gallery",creator:"Adriaen van Ostade",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1979/1979.0845P.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0845P.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0845P.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0845P.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q102975484",name:"Trostung (Consolation), from Genius, Zeitschrift f\xFCr werdende und alte Kunst (Magazine for Emerging and Ancient Art), Year 2, no. 1",year:"1920",country:"Austria",location:"Vanderbilt University Fine Arts Gallery",creator:"Georg Ehrlich",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1976/1976.031.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.031.med.jpg",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.031.med.jpg/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.031.med.jpg/full/100,100/0/default.jpg"}],ui=jL()(zL(GL(t=>({addToArtwork:(e,r)=>t(n=>({artworkList:[...n.artworkList,{id:e,image:r}]})),addToCanvas:(e,r,n)=>t(a=>({canvasList:[...a.canvasList,{brightness:0,height:400,id:`${a.canvasList.length+1}`,image:e,isDragging:!1,opacity:1,width:400,x:r,y:n}]})),addToImageList:e=>t(r=>({imageList:[...r.imageList,...e]})),artworkList:WL,canvasList:[],frame:w4[1],imageList:k4.sort(()=>Math.random()-.5),imageLikeList:[],likeImage:e=>t(r=>({imageLikeList:[...r.imageLikeList,e]})),resetState:()=>t(()=>({imageList:k4.sort(()=>Math.random()-.5),canvasList:[],imageLikeList:[]})),removeFromCanvas:e=>t(r=>({canvasList:r.canvasList.filter(n=>n.id!==e)})),setFrame:e=>t(()=>({frame:w4.find(r=>r.id===e)})),transformCanvasImage:e=>t(r=>({canvasList:r.canvasList.map(n=>n.id!==e.id?n:{...n,height:e.height,width:e.width,x:e.x,y:e.y,brightness:e.brightness,opacity:e.opacity})})),moveCanvasImage:(e,r)=>t(n=>{const a=n.canvasList.findIndex(i=>i.id===e);if(a!==-1){const i=r?a-1:a+1;if(i>=0&&i{const{frame:e}=ui(),[r]=d4(t?e.front:e.image,"anonymous");return J.jsx(c4,{image:r,draggable:!1})},qL=({canvasImage:t,isSelected:e,onSelect:r})=>{const n=I.useRef(),a=I.useRef(),[i]=d4(t.image),s=ui(f=>f.transformCanvasImage);I.useEffect(()=>{var f;e&&(a.current.nodes([n.current]),(f=a.current.getLayer())==null||f.batchDraw())},[e]),I.useEffect(()=>{const f=new window.Image;f.crossOrigin="Anonymous",f.src=t.image,f.onload=()=>{var m;n.current&&(n.current.image(f),(m=n.current.getLayer())==null||m.batchDraw())}},[t.image]);const u=()=>{s({...t,isDragging:!0})},c=f=>{s({...t,isDragging:!1,x:f.target.x(),y:f.target.y()})},d=()=>{var f;const m=n.current,v=m.scaleX(),y=m.scaleY(),b=Math.max(5,m.width()*v),S=Math.max(m.height()*y);s({...t,x:m.x(),y:m.y(),width:b,height:S}),a.current.nodes([n.current]),(f=a.current.getLayer())==null||f.batchDraw()};return J.jsxs(J.Fragment,{children:[J.jsx(c4,{draggable:!0,id:t.id,image:i,onClick:r,onDragEnd:c,onDragStart:u,onTap:r,onTransformEnd:d,ref:n,x:t.x,y:t.y,scaleX:.5,scaleY:.5,opacity:t.opacity||1,brightness:t.brightness||0},t.id),e&&J.jsx(sL,{ref:a,flipEnabled:!1,enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]})]})},HL=()=>{const{addToCanvas:t,artworkList:e,canvasList:r,frame:n,moveCanvasImage:a,removeFromCanvas:i,setFrame:s,transformCanvasImage:u}=ui(),c=I.useRef(null),[d,f]=I.useState(""),[m,v]=I.useState(1),[y,b]=I.useState(1),S=1080,E=1080;I.useEffect(()=>{const A=()=>{const F=(window.innerWidth*.9||0)/S;c.current&&(c.current.width(S*F),c.current.height(E*F),c.current.scale({x:F,y:F}))};return A(),window.addEventListener("resize",A),()=>{window.removeEventListener("resize",A)}},[]);const x=A=>{A.target===A.target.getStage()&&f("")},k=A=>{A.preventDefault();const F=A.dataTransfer.getData("text/plain"),U=e.find(H=>H.id===F);if(U){const H=c.current;if(H){const q=A.clientX-H.container().getBoundingClientRect().left,ne=A.clientY-H.container().getBoundingClientRect().top;t(U.image,q,ne)}}},g=A=>{d&&a(d,A)},C=A=>{v(A);const F=r.find(U=>U.id===d);F&&u({...F,brightness:A})},N=A=>{b(A);const F=r.find(U=>U.id===d);F&&u({...F,opacity:A})},O=()=>{i(d),f("")},D=()=>{navigator.share?navigator.share({title:"GLAMorous Europe",text:"Check out my GLAMorous Europe artwork!",url:window.location.href}).then(()=>console.log("Share successful")).catch(A=>console.error("Error sharing:",A)):console.log("Web Share API not supported")},R=()=>{var A;const F=(A=c.current)==null?void 0:A.toDataURL();F&&vE.saveAs(F,"GLAMorousEurope.png")};return J.jsxs(J.Fragment,{children:[J.jsxs("div",{className:"toolbar",children:[J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>g(!0),children:J.jsx(xn,{material:J.jsx(B_,{className:"w-6 h-6"})})}),J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>g(!1),children:J.jsx(xn,{material:J.jsx(A_,{className:"w-6 h-6"})})}),d&&J.jsxs("div",{children:[J.jsx("label",{htmlFor:"brightnessSlider",children:"Brightness:"}),J.jsx("input",{id:"brightnessSlider",type:"range",min:"0",max:"2",step:"0.01",value:m,onChange:A=>C(parseFloat(A.target.value))}),J.jsx("label",{htmlFor:"opacitySlider",children:"Opacity:"}),J.jsx("input",{id:"opacitySlider",type:"range",min:"0",max:"1",step:"0.01",value:y,onChange:A=>N(parseFloat(A.target.value))})]}),J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:O,children:J.jsx(xn,{material:J.jsx(mE,{className:"w-6 h-6"})})})]}),J.jsxs("div",{className:"mx-auto flex items-center gap-2",onDrop:k,onDragOver:A=>A.preventDefault(),children:[J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>s(Math.max(1,n.id-1)),children:J.jsx(xn,{material:J.jsx(V_,{className:"w-6 h-6"})})}),J.jsxs(lL,{width:S,height:E,ref:c,onMouseDown:x,onTouchStart:x,children:[J.jsxs(u4,{children:[J.jsx(x4,{front:!1}),r.map(A=>J.jsx(qL,{canvasImage:A,isSelected:A.id===d,onSelect:()=>{f(A.id)}},A.id))]}),J.jsx(u4,{listening:!1,children:J.jsx(x4,{front:!0})})]}),J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>s(Math.min(5,n.id+1)),children:J.jsx(xn,{material:J.jsx(q_,{className:"w-6 h-6"})})})]}),J.jsxs("div",{className:"flex gap-2 mx-auto",children:[J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:D,children:J.jsx(xn,{material:J.jsx(cE,{className:"w-6 h-6"})})}),J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:R,children:J.jsx(xn,{material:J.jsx(L_,{className:"w-6 h-6"})})})]})]})};function KL(){const{t}=Bu(),{artworkList:e}=ui();return J.jsxs(ti,{className:"flex flex-col flex-wrap gap-4 container justify-center content-center text-center mx-auto",children:[J.jsx("div",{className:"p-2 m-4",children:J.jsx("h1",{className:"text-2xl",children:t("artworkTitle")})}),J.jsx(ti,{className:"flex flex-wrap mx-auto",children:e.map(r=>J.jsx("img",{src:r.image,alt:r.id,role:"presentation",style:{display:"block",maxHeight:"150px",width:"auto",height:"auto",cursor:"move",borderRadius:"5px",margin:"4px"},draggable:!0,onDragStart:n=>{n.dataTransfer.setData("text/plain",r.id)}},r.id))}),e.length===0?J.jsx(Wr,{className:"p-4 text-xl text-black w-2/3 mx-auto h-20",rounded:!0,inline:!0,children:J.jsx(Dh,{to:"/selection",children:t("artworkEmpty")})}):J.jsx(HL,{})]})}const YL="modulepreload",QL=function(t){return"/"+t},S4={},ZL=function(t,e,r){let n=Promise.resolve();if(e&&e.length>0){const a=document.getElementsByTagName("link");n=Promise.all(e.map(i=>{if(i=QL(i),i in S4)return;S4[i]=!0;const s=i.endsWith(".css"),u=s?'[rel="stylesheet"]':"";if(r)for(let d=a.length-1;d>=0;d--){const f=a[d];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${u}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":YL,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((d,f)=>{c.addEventListener("load",d),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})}))}return n.then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})};var C4={exports:{}},XL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",JL=XL,eF=JL;function _4(){}function E4(){}E4.resetWarningCache=_4;var tF=function(){function t(n,a,i,s,u,c){if(c!==eF){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:E4,resetWarningCache:_4};return r.PropTypes=r,r};C4.exports=tF();var rF=C4.exports;const Rr=Ga(rF);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -137,7 +137,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Jv=function(t,e){return Jv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Jv(t,e)};function P4(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Jv(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var la=function(){return la=Object.assign||function(t){for(var e,r=1,n=arguments.length;rMath.PI?a-2*Math.PI:a)}return e.filter(function(i,s,u){return u.indexOf(i)===s})};function lF(t,e,r,n){n===void 0&&(n=!0);var a=new Image;a.crossOrigin="Anonymous";var i=document.createElement("canvas"),s=i.getContext("2d");if(!s)return r(new Error("CTX is null"),i);a.onerror=function(){r(new Error("Failed to load image"),i)},a.onload=function(){try{if(i.width=a.naturalWidth+2,i.height=a.naturalHeight+2,s.drawImage(a,0,0),e.length<3){r(null,i);return}if(s.beginPath(),s.moveTo(0,0),s.lineTo(i.width,0),s.lineTo(i.width,i.height),s.lineTo(0,i.height),s.lineTo(0,0),s.lineTo(e[0].x+1,e[0].y+1),e.slice(1).forEach(function(g){var C=g.x,N=g.y;return s.lineTo(C+1,N+1)}),s.lineTo(e[0].x+1,e[0].y+1),s.lineTo(0,0),s.closePath(),s.clip("evenodd"),s.globalCompositeOperation="destination-out",s.fill(),n){var u=e.map(function(g){var C=g.x;return C+1}),c=e.map(function(g){var C=g.y;return C+1}),d=[Math.min.apply(null,u),Math.min.apply(null,c)],f=d[0],m=d[1],v=[Math.max.apply(null,u),Math.max.apply(null,c)],y=v[0],b=v[1],S=[y-f,b-m],E=S[0],x=S[1],k=s.getImageData(f,m,E,x);i.width=E,i.height=x,s.putImageData(k,0,0)}r(null,i)}catch(g){r(g instanceof Error?g:new Error(String(g)),i)}},a.src=t}var O4=function(){function t(e){this.getSvgElement=e}return t.prototype.getSvg=function(){var e=this.getSvgElement();if(!e)throw new Error("SVG is null");return e},t.prototype.getCTM=function(){var e=this.getSvg(),r=e.getCTM();if(r===null){var n=e.querySelector('rect[visibility="hidden"]');r=n.getCTM()}if(!r)throw new Error("CTM is null");return r},t.prototype.getViewboxSize=function(){return this.getSvg().viewBox.baseVal},t.prototype.getRealSize=function(){var e=this.getSvg();return{width:e.clientWidth,height:e.clientHeight}},t.prototype.getViewboxOffset=function(){var e=this.getSvg(),r=this.getRealSize(),n=r.width,a=r.height,i=this.getViewboxSize(),s=i.width,u=i.height,c=Object.assign(e.createSVGPoint(),{x:n,y:a}),d=this.getCTM(),f=c.matrixTransform(d.inverse()),m=f.x,v=f.y;return{x:m-s,y:v-u}},t.prototype.convertViewboxPointsToReal=function(e){var r=this.getSvg(),n=this.getCTM();return e.map(function(a){var i=a.x,s=a.y,u=Object.assign(r.createSVGPoint(),{x:i,y:s}).matrixTransform(n);return Qo(u)})},t.prototype.convertRealPointsToViewbox=function(e){var r=this.getSvg(),n=this.getCTM().inverse();return e.map(function(a){var i=a.x,s=a.y,u=Object.assign(r.createSVGPoint(),{x:i,y:s}).matrixTransform(n);return Qo(u,1e3)})},t.prototype.getBorderPoints=function(e){e===void 0&&(e=!0);var r=this.getViewboxSize(),n=r.width,a=r.height,i=this.getViewboxOffset(),s=i.x,u=i.y,c=[{x:-s,y:-u},{x:n+s,y:-u},{x:n+s,y:a+u},{x:-s,y:a+u}];return e&&c.push({x:-s,y:-u}),c},t.prototype.isAboveTheBorder=function(e){var r=e.x,n=e.y,a=this.getViewboxSize(),i=a.width,s=a.height,u=this.getViewboxOffset(),c=u.x,d=u.y;return r<-c||r>i+c||n<-d||n>s+d},t.prototype.getMouseCoordinates=function(e){var r=e,n=r.changedTouches&&r.touches?r.changedTouches[0]||r.touches[0]:r,a=n.clientX,i=n.clientY,s=this.getSvg(),u=s.getScreenCTM();if(!u)throw new Error("ScreenCTM is null");var c=s.createSVGPoint();c.x=a,c.y=i;var d=c.matrixTransform(u.inverse()),f=d.x,m=d.y;return{x:f,y:m}},t}(),R4=function(t){return function(e){P4(r,e);function r(){var n=e!==null&&e.apply(this,arguments)||this;return n.ref=j.createRef(),n.svg=new O4(function(){var a,i;return(i=(a=n.ref)===null||a===void 0?void 0:a.current)===null||i===void 0?void 0:i.ownerSVGElement}),n.dragLastPosition=null,n.wasMoved=!1,n.onMouseTouchDown=function(a){if(a.target===n.ref.current&&n.props.draggable){a.stopImmediatePropagation(),a.preventDefault();var i=a.target;n.dragLastPosition=n.getMousePosition(a),i.ownerSVGElement&&i.ownerSVGElement.focus({preventScroll:!0})}},n.onMouseTouchMove=function(a){if(n.dragLastPosition){a.stopImmediatePropagation(),a.preventDefault();var i=n.getMousePosition(a),s=i.x,u=i.y,c=s-n.dragLastPosition.x,d=u-n.dragLastPosition.y;!n.wasMoved&&n.props.onDragStart&&n.props.onDragStart({x:n.dragLastPosition.x,y:n.dragLastPosition.y,dx:c,dy:d}),n.props.onDrag&&n.props.onDrag({dx:c,dy:d}),n.dragLastPosition={x:s,y:u},n.wasMoved=!0}},n.onMouseTouchUp=function(a){n.dragLastPosition&&n.wasMoved&&(a.stopImmediatePropagation(),a.preventDefault(),(a instanceof MouseEvent||!a.touches)&&window.addEventListener("click",function(i){return i.stopPropagation()},{capture:!0,once:!0}),n.props.onDragEnd&&n.props.onDragEnd({x:n.dragLastPosition.x,y:n.dragLastPosition.y})),n.dragLastPosition=null,n.wasMoved=!1},n}return r.prototype.render=function(){var n=this.props,a=n.draggable;n.onDrag,n.onDragStart,n.onDragEnd;var i=M4(n,["draggable","onDrag","onDragStart","onDragEnd"]);return j.createElement(t,la({ref:this.ref},i,{draggable:a}))},r.prototype.componentDidUpdate=function(n){n.draggable&&!this.props.draggable&&this.dragLastPosition&&this.wasMoved&&(this.props.onDragEnd&&this.props.onDragEnd({x:this.dragLastPosition.x,y:this.dragLastPosition.y}),this.dragLastPosition=null,this.wasMoved=!1)},r.prototype.componentDidMount=function(){window.addEventListener("mousedown",this.onMouseTouchDown,!0),window.addEventListener("mousemove",this.onMouseTouchMove,!0),window.addEventListener("mouseup",this.onMouseTouchUp,!0),window.addEventListener("touchstart",this.onMouseTouchDown,!0),window.addEventListener("touchmove",this.onMouseTouchMove,!0),window.addEventListener("touchend",this.onMouseTouchUp,!0)},r.prototype.componentWillUnmount=function(){window.removeEventListener("mousedown",this.onMouseTouchDown),window.removeEventListener("mousemove",this.onMouseTouchMove),window.removeEventListener("mouseup",this.onMouseTouchUp),window.removeEventListener("touchstart",this.onMouseTouchDown),window.removeEventListener("touchmove",this.onMouseTouchMove),window.removeEventListener("touchend",this.onMouseTouchUp)},r.prototype.getMousePosition=function(n){var a=n;return this.svg.getMouseCoordinates(a)},r}(j.Component)},uF=R4(j.forwardRef(function(t,e){var r=t.path,n=t.animate,a=t.draggable;return j.createElement("polyline",{ref:e,style:{cursor:a?"move":""},points:r.map(function(i){var s=i.x,u=i.y;return s+","+u}).join(" "),fill:"rgba(0,0,0,0)",stroke:"white",strokeWidth:"1.5",shapeRendering:"geometricPrecision",strokeDasharray:"3",strokeDashoffset:"0",vectorEffect:"non-scaling-stroke"},n&&j.createElement("animate",{attributeName:"stroke-dashoffset",values:"0;1000;0",dur:"100s",repeatCount:"indefinite"}))}));function cF(t){var e=t.path;return j.createElement("polygon",{style:{pointerEvents:"none",transform:"translate(-1px, -1px)"},points:e.map(function(r){var n=r.x,a=r.y;return n+","+a}).join(" "),fill:"rgba(0, 0, 0, 0.5)",fillRule:"evenodd",stroke:"null",shapeRendering:"geometricPrecision"})}var dF=R4(j.forwardRef(function(t,e){var r=t.x,n=t.y,a=t.onClickTouchEvent,i=t.draggable,s=t.style,u=s.cursor,c=u===void 0?i?"move":"default":u,d=M4(s,["cursor"]);return j.createElement("rect",{style:la({cursor:c},d),ref:e,x:r-10,y:n-10,onClick:function(f){f.stopPropagation(),f.preventDefault(),a(f)},onTouchEnd:function(f){f.stopPropagation(),f.preventDefault(),a(f)},width:"20px",height:"20",fill:"rgba(0, 0, 0, 0)",stroke:"white",strokeWidth:"1.25",vectorEffect:"non-scaling-stroke"})})),pr;(function(t){t.ADD="ADD",t.DELETE="DELETE",t.MODIFY="MODIFY",t.MOVE="MOVE",t.RESET="RESET",t.CHANGE="CHANGE"})(pr||(pr={}));function hF(t,e){var r=t.points.length;switch(e.type){case pr.ADD:{if(t.closed)return[t,!1];if(r>0&&rp(t.points[r-1],e.payload)||r>1&&rp(t.points[r-2],e.payload))return[t,!1];var n=r>2&&rp(t.points[0],e.payload);return n?[{points:Yo([],t.points),closed:!0},!0]:[{points:Yo(Yo([],t.points,!0),[e.payload]),closed:!1},!0]}case pr.DELETE:return[{points:Yo([],t.points.filter(function(d,f){return e.payload!==f})),closed:r>4&&t.closed},!0];case pr.MODIFY:{var a=t.points[e.payload.index],i=a.x,s=a.y,u=t.points.map(function(d){var f=d.x,m=d.y;return f===i&&m===s?{x:e.payload.x,y:e.payload.y}:{x:f,y:m}});return[{points:u,closed:t.closed},!!(e.payload.x||e.payload.y)]}case pr.MOVE:return[{points:t.points.map(function(d){var f=d.x,m=d.y;return{x:f+e.payload.x,y:m+e.payload.y}}),closed:t.closed},!!(e.payload.x||e.payload.y)];case pr.CHANGE:{var c=!np(e.payload,t.points);return[{points:e.payload,closed:c?e.payload.length>2:t.closed},c]}case pr.RESET:return[{points:[],closed:!1},!!t.points.length];default:return[t,!1]}}var fF=function(t){P4(e,t);function e(r){var n=t.call(this,r)||this;return n.imageRef=j.createRef(),n.svgRef=j.createRef(),n.svg=new O4(function(){var a;return(a=n.svgRef)===null||a===void 0?void 0:a.current}),n.angles=[],n.path={points:[],closed:!1},n.lastEmittedPoints=[],n.lastUpdatedPoints=[],n.imgError=!1,n.setPathFromPropsOnMediaLoad=!0,n.hidePointer=function(){var a=n.path.points[n.path.points.length-1]||{x:0,y:0};n.setPointer(la({},a),!0)},n.onShapeDrag=function(a){var i=a.dx,s=a.dy,u=n.path.points.map(function(c){var d=c.x,f=c.y;return{x:d+i,y:f+s}});u.some(function(c){return n.svg.isAboveTheBorder(c)})||n.dispatchPathAction({type:pr.MOVE,payload:{x:i,y:s}})},n.onPointDrag=function(a,i){var s=i.dx,u=i.dy,c=la({},n.path.points[a]);c.x+=s,c.y+=u,n.svg.isAboveTheBorder(c)||n.dispatchPathAction({type:pr.MODIFY,payload:la(la({},c),{index:a})})},n.onPointClick=function(a){n.isLoaded()&&!n.props.disabled&&!n.path.closed&&n.dispatchPathAction({type:pr.ADD,payload:n.path.points[a]})},n.onDragEnd=function(){n.checkIfPathUpdated(!1)},n.onMediaLoaded=function(a){n.setPathFromPropsOnMediaLoad&&(n.setPathStateFromProps(),n.setPathFromPropsOnMediaLoad=!1),n.imgError=!1,n.props.onImageLoad(a)},n.onMediaError=function(a){n.dispatchPathAction({type:pr.RESET}),n.imgError=!0,n.props.onImageError(a)},n.onClickTouchEvent=function(a){if(n.isLoaded()&&!n.props.disabled){if(n.path.closed){a.target===n.svgRef.current&&n.dispatchPathAction({type:pr.RESET});return}var i=n.getMousePosition(a)[0];n.svg.isAboveTheBorder(i)?n.hidePointer():n.dispatchPathAction({type:pr.ADD,payload:Qo(i,1e3),pointer:i})}},n.onClick=function(a){n.onClickTouchEvent(a)},n.onTouchEnd=function(a){a.cancelable&&(a.preventDefault(),n.onClickTouchEvent(a)),n.hidePointer()},n.onMouseTouchMove=function(a){if(n.isLoaded()){var i=n.getMousePosition(a)[0];n.setPointer(i)}},n.onContextMenu=function(a){if(n.isLoaded()&&(a.preventDefault(),!n.props.disabled&&!n.path.closed)){var i=n.getMousePosition(a),s=i[0],u=i[1].index;u>-1?n.dispatchPathAction({type:pr.DELETE,payload:u,pointer:s}):n.setPointer(s)}},n.state={path:{points:[],closed:!1},pointer:{x:r.viewBox.width/2,y:r.viewBox.width/2}},n}return e.prototype.render=function(){var r=this;return j.createElement("div",{className:nF({ReactFreeSelect__Component:!0,ReactFreeSelect__Closed:this.state.path.closed,ReactFreeSelect__Disabled:this.props.disabled}),style:la({display:"inline-block",position:"relative",margin:"0",padding:"0",fontSize:"0",cursor:this.props.disabled?"not-allowed":"default"},this.props.style)},j.createElement("img",{ref:this.imageRef,src:this.props.src,alt:this.props.imageAlt,crossOrigin:this.props.crossOrigin,style:this.props.imageStyle,onLoad:this.onMediaLoaded,onError:this.onMediaError}),j.createElement("svg",{ref:this.svgRef,style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden",userSelect:"none",touchAction:"none"},viewBox:"0 0 "+this.props.viewBox.width+" "+this.props.viewBox.height,onMouseMove:this.onMouseTouchMove,onTouchMove:this.onMouseTouchMove,onClick:this.onClick,onTouchEnd:this.onTouchEnd,onContextMenu:this.onContextMenu,onMouseLeave:this.hidePointer},j.createElement("rect",{visibility:"hidden"}),!!this.state.path.points.length&&j.createElement(cF,{path:this.getPolygonPoints()}),j.createElement(uF,{draggable:this.state.path.closed&&!this.props.disabled,onDrag:this.onShapeDrag,onDragEnd:this.onDragEnd,animate:!this.props.disabled,path:this.getPolylinePoints()}),this.getRoundedPoints().map(function(n,a){var i=n.x,s=n.y;return j.createElement(dF,{key:a,x:i,y:s,draggable:!r.props.disabled,style:{cursor:!a&&r.state.path.points.length>2&&!r.state.path.closed?"pointer":void 0},onDrag:function(u){var c=u.dx,d=u.dy;return r.onPointDrag(a,{dx:c,dy:d})},onDragEnd:r.onDragEnd,onClickTouchEvent:function(){return r.onPointClick(a)}})})))},e.prototype.componentDidUpdate=function(r){!r.disabled&&this.props.disabled&&!this.path.closed&&this.hidePointer(),r.src&&r.src!==this.props.src?this.dispatchPathAction({type:pr.RESET}):np(r.value,this.props.value)||(this.isLoaded()?this.setPathStateFromProps():this.setPathFromPropsOnMediaLoad=!0)},e.prototype.convertPoints=function(r){var n=this.getAspectRatio();return this.svg.convertViewboxPointsToReal(r).map(function(a){var i=a.x,s=a.y;return{x:Math.round(i/n.x),y:Math.round(s/n.y)}})},e.prototype.checkIfPathUpdated=function(r){if(this.path.closed||r){var n=this.convertPoints(this.path.points);np(n,this.lastUpdatedPoints)||(this.emitOnComplete(n),this.lastUpdatedPoints=n.map(function(a){var i=a.x,s=a.y;return{x:i,y:s}}))}},e.prototype.emitOnChange=function(r){var n=r.points;if(this.props.onChange){var a=this.convertPoints(n);this.lastEmittedPoints=a,this.props.onChange(a)}},e.prototype.emitOnComplete=function(r){this.props.onComplete&&this.props.onComplete(r)},e.prototype.setPointer=function(r,n){var a=r.x,i=r.y;n===void 0&&(n=!1),(n||!this.props.disabled)&&this.setState({path:this.path,pointer:{x:a,y:i}})},e.prototype.dispatchPathAction=function(r){var n=this.path.closed,a=hF(this.path,r),i=a[0],s=a[1];i.points=i.points.map(function(u){return Qo(u,1e3)}),s&&(this.path=i,this.setState({pointer:r.pointer||this.path.points[this.path.points.length-1]||{x:0,y:0},path:i}),this.angles=sF(i.points),this.emitOnChange(i),[pr.MODIFY,pr.MOVE].includes(r.type)||this.checkIfPathUpdated(n))},e.prototype.isLoaded=function(){if(this.imgError||!this.svgRef.current)return!1;var r=this.svgRef.current;return!!(r.width.baseVal.value&&r.height.baseVal.value)},e.prototype.getAspectRatio=function(){return this.imageRef.current?{x:this.imageRef.current.clientWidth/this.imageRef.current.naturalWidth,y:this.imageRef.current.clientHeight/this.imageRef.current.naturalHeight}:{x:NaN,y:NaN}},e.prototype.setPathStateFromProps=function(){if(!np(this.lastEmittedPoints,this.props.value)){var r=this.getAspectRatio(),n=this.svg.convertRealPointsToViewbox(this.props.value.map(function(a){var i=a.x,s=a.y;return{x:i*r.x,y:s*r.y}}));this.dispatchPathAction({type:pr.CHANGE,payload:n})}},e.prototype.getRoundedPoints=function(){return this.state.path.points.map(function(r){return Qo(r)})},e.prototype.getBorder=function(){return this.svg.getBorderPoints().map(function(r){return Qo(r)}).map(function(r){var n=r.x,a=r.y;return{x:n-1,y:a+1}})},e.prototype.getPolygonPoints=function(){var r=this.getRoundedPoints(),n=this.getBorder();return this.state.path.closed?Yo(Yo(Yo([],n,!0),r,!0),[r[0],n[0]]):n},e.prototype.getPolylinePoints=function(){var r=this.getRoundedPoints();return r.concat(this.state.path.closed?r[0]:Qo(this.state.pointer))},e.prototype.getMousePosition=function(r,n,a){n===void 0&&(n=!0),a===void 0&&(a=!0);var i=this.svg.getMouseCoordinates(r);if(a){var s=navigator.platform.includes("Mac")?r.metaKey:r.ctrlKey,u=this.path.points[this.path.points.length-1];s&&u&&(r.shiftKey?i=oF(u,i,this.angles):i=iF(u,i,Math.PI/12))}var c=aF(this.path.points,i,10),d=c.point,f=c.index;return n&&f>-1&&(i=la({},d)),[i,{point:d,index:f}]},e.propTypes={value:Rr.arrayOf(Rr.exact({x:Rr.number.isRequired,y:Rr.number.isRequired})),style:Rr.shape({}),viewBox:Rr.exact({width:Rr.number.isRequired,height:Rr.number.isRequired}),disabled:Rr.bool,onChange:Rr.func,onComplete:Rr.func,src:Rr.string.isRequired,imageAlt:Rr.string,crossOrigin:Rr.string,imageStyle:Rr.shape({}),onImageLoad:Rr.func,onImageError:Rr.func},e.defaultProps={value:[],style:{},imageStyle:{},viewBox:{width:1e3,height:1e3},disabled:!1,onImageError:Function.prototype,onImageLoad:Function.prototype},e}(j.Component);async function pF(t){try{const e=await fetch(t);if(!e.ok)throw new Error(e.statusText);const r=await e.json();return"@type"in r?r["@type"]!="sc:Manifest"?(console.log("The JSON for this Manifest doesn't look like a Manifest. It should have either a @type of sc:Manifest but has a type of: "+r["@type"]),null):mF(r):"type"in r?r.type!="Manifest"?(console.log("The JSON for this Manifest doesn't look like a Manifest. It should have either a type of Manifest but has a type of: "+r.type),null):vF(r):(console.log("The JSON for this Manifest doesn't look like a Manifest. It should have either a @type or type value of Manifest"),null)}catch(e){return console.log("I was unable to get the Manifest you supplied due to: "+e),null}}function gF(t){return typeof t=="object"&&!Array.isArray(t)&&t!==null}function mF(t){var e,r,n;if("sequences"in t){let a=t.sequences;gF(a)&&(a=[a]);let i=!1;for(const s of a)if("canvases"in s){i=!0;for(const u of s.canvases){const c=(n=(r=(e=u.images[0])==null?void 0:e.resource)==null?void 0:r.service)==null?void 0:n["@id"];if(c)return c}}else i||console.log("The manifest you supplied contains no canvases so there are no images to show.")}else console.log("The manifest you supplied contains no sequence so there are no images to show.");return null}function vF(t){if("items"in t){const e=t.items;for(const r of e){const n=r.items[0].items[0].body.service[0]["@id"];if(n)return n}}else console.log("The manifest you supplied contains no sequence so there are no images to show.");return null}function T4(t,e){const r=window.getComputedStyle(t);return parseInt(r.getPropertyValue(e),10)}function yF(t,e){const{width:r,height:n}=e,a=1080,i="0",s="default",u=".jpg",c=document.querySelector(".displayregioncontainer"),d=document.querySelector(".displayregion");if(!c||!d)throw new Error("Canvas or selection element not found");const{clientWidth:f,clientHeight:m}=c,v=r*m/n,y=(f-v)/2,b=r/v,S=9,E=T4(d,"left"),x=T4(d,"top"),k=Math.round(d.clientWidth+S),g=Math.round(d.clientHeight+S),C=Math.max(Math.round((E-y)*b),0),N=Math.max(Math.round(x*b),0),O=Math.min(Math.round(k*b),r),D=Math.min(Math.round(g*b),n),R=`${C},${N},${O},${D}`;return console.log(`Calculated selection region (x, y, width, height): ${R}`),`${t}/${R}/${a},/${i}/${s}${u}`}const L4={fetchIIIFIdentifier:async t=>{try{return await pF(t)}catch(e){return console.error(e),null}},getCroppedImagePath:async t=>{try{const e=t+"/info.json",r=await fetch(e);if(!r.ok)throw new Error(r.statusText);const n=await r.json();return yF(t,n)}catch(e){console.error(e)}}},bF=I.lazy(()=>ZL(()=>import("./index-EacnxzqJ.js"),Pp([]))),wF={canvasBackgroundColor:"010A01",gestureSettingsTouch:{dragToPan:!1,dblClickToZoom:!1,dblClickDragToZoom:!1,flickEnabled:!1,pinchRotate:!0},informationPanel:{open:!1},openSeadragon:{loadTilesWithAjax:!0,showNavigationControl:!1,showHomeControl:!1,showFullPageControl:!1,showRotationControl:!1,showFlipControl:!1},showTitle:!1,showIIIFBadge:!1,showZoomControl:!1},kF={colors:{primary:"#BC13FE",accent:"#BC13FE",secondary:"#EDECEA"}};function xF(){const{t}=Bu(),{imageLikeList:e}=ui(),r=ui(m=>m.addToArtwork),[n,a]=I.useState(e[0]||null),i=m=>{a(m)},[s,u]=I.useState([]),[c,d]=I.useState(),f=async(m,v)=>{try{const y=await L4.getCroppedImagePath(v);console.log("Cropped image path: ",y),y&&r(m,y)}catch(y){console.error("Error:",y)}};return J.jsxs(ti,{className:"flex flex-col flex-wrap gap-4 container justify-center content-center text-center mx-auto",children:[J.jsx("div",{className:"p-2 m-4",children:J.jsx("h1",{className:"text-2xl",children:t("collectionTitle")})}),J.jsx(ti,{className:"flex flex-wrap mx-auto",children:e.map(m=>J.jsx("img",{src:m.thumbnail,alt:m.name,onClick:()=>i(m),style:{cursor:"pointer",margin:"4px"},role:"presentation"},m.id))}),n&&J.jsxs(ti,{className:"space-y-4",children:[J.jsx(fF,{value:s,src:n.image,onChange:m=>{u(m)},onComplete:m=>{m.length&&lF(n.image,m,(v,y)=>{v||d(y.toDataURL())})}}),J.jsxs("div",{children:["Points: ",s.map(({x:m,y:v})=>`${m},${v}`).join(" ")]}),J.jsx("div",{children:J.jsx("img",{src:c,alt:""})}),J.jsx(I.Suspense,{fallback:J.jsxs("h2",{children:["\u{1F300} ",t("collectionLoading")]}),children:J.jsx(bF,{iiifContent:n.url,options:wF,customTheme:kF})}),J.jsx(Wr,{className:"p-4 text-xl text-black w-2/3 mx-auto h-16",rounded:!0,inline:!0,onClick:()=>f(n?.id,n?.identifier),children:t("collectionAddText")})]})]})}function SF(){const{t}=Bu();return J.jsx(w5,{theme:"material",children:J.jsxs(G1,{children:[J.jsxs(N5,{labels:!0,icons:!0,className:"left-0 bottom-0 fixed k-color-brand-primary text-center",innerClassName:"tabbar-inner",children:[J.jsx(Wu,{active:qi({path:Un("/").pathname,end:!0}),to:"/",component:zh,icon:J.jsx(xn,{material:J.jsx(aE,{className:"w-10 h-10"}),className:`transition duration-300 ${qi({path:Un("/").pathname,end:!0})&&"animate-pulse"}`}),label:t("start"),touchRipple:!1}),J.jsx(Wu,{active:qi({path:Un("/selection").pathname,end:!0}),to:"/selection",component:zh,icon:J.jsx(xn,{material:J.jsx(tE,{className:"w-10 h-10"}),className:`transition duration-300 ${qi({path:Un("/selection").pathname,end:!0})&&"animate-pulse"}`}),label:t("selection"),touchRipple:!1}),J.jsx(Wu,{active:qi({path:Un("/collection").pathname,end:!0}),to:"/collection",component:zh,icon:J.jsx(xn,{material:J.jsx(fE,{className:"w-10 h-10"}),className:`transition duration-300 ${qi({path:Un("/collection").pathname,end:!0})&&"animate-pulse"}`}),label:t("collection"),touchRipple:!1}),J.jsx(Wu,{active:qi({path:Un("/creation").pathname,end:!0}),to:"/creation",component:zh,icon:J.jsx(xn,{material:J.jsx(sE,{className:"w-10 h-10"}),className:`transition duration-300 ${qi({path:Un("/creation").pathname,end:!0})&&"animate-pulse"}`}),label:t("artwork"),touchRipple:!1})]}),J.jsx("main",{className:"h-[calc(100%_-_128px)] overflow-auto",children:J.jsx(m_,{})})]})})}var F4={exports:{}},j4={exports:{}},A4={exports:{}},D4={exports:{}},z4={exports:{}},ey=Object.defineProperty,CF=Object.getOwnPropertyDescriptor,_F=Object.getOwnPropertyNames,EF=Object.prototype.hasOwnProperty,B4=(t,e)=>{for(var r in e)ey(t,r,{get:e[r],enumerable:!0})},PF=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of _F(e))!EF.call(t,a)&&a!==r&&ey(t,a,{get:()=>e[a],enumerable:!(n=CF(e,a))||n.enumerable});return t},MF=t=>PF(ey({},"__esModule",{value:!0}),t),U4={};B4(U4,{FluidValue:()=>HF,Globals:()=>$4,addFluidObserver:()=>KF,callFluidObserver:()=>b8,callFluidObservers:()=>qF,clamp:()=>n8,colorToRgba:()=>hy,colors:()=>DF,createInterpolator:()=>fy,createStringInterpolator:()=>ej,defineHidden:()=>OF,deprecateDirectCall:()=>aj,deprecateInterpolate:()=>rj,each:()=>Y4,eachProp:()=>TF,easings:()=>VF,flush:()=>Q4,flushCalls:()=>FF,frameLoop:()=>e8,getFluidObservers:()=>WF,getFluidValue:()=>y8,hasFluidValue:()=>GF,hex3:()=>l8,hex4:()=>u8,hex6:()=>c8,hex8:()=>d8,hsl:()=>o8,hsla:()=>s8,is:()=>Ea,isAnimatedString:()=>ij,isEqual:()=>RF,isSSR:()=>ip,noop:()=>K4,onResize:()=>C8,onScroll:()=>fj,once:()=>gy,prefix:()=>gp,raf:()=>ut,removeFluidObserver:()=>YF,rgb:()=>a8,rgba:()=>i8,setFluidGetter:()=>w8,toArray:()=>LF,useConstant:()=>gj,useForceUpdate:()=>bj,useIsomorphicLayoutEffect:()=>vy,useMemoOne:()=>wj,useOnce:()=>Sj,usePrev:()=>_j,useReducedMotion:()=>Pj});var IF=MF(U4),$4={};B4($4,{assign:()=>J4,colors:()=>no,createStringInterpolator:()=>sy,skipAnimation:()=>X4,to:()=>Z4,willAdvance:()=>ly});var ty=sc(),ut=t=>oc(t,ty),ry=sc();ut.write=t=>oc(t,ry);var ap=sc();ut.onStart=t=>oc(t,ap);var ny=sc();ut.onFrame=t=>oc(t,ny);var ay=sc();ut.onFinish=t=>oc(t,ay);var gl=[];ut.setTimeout=(t,e)=>{let r=ut.now()+e,n=()=>{let i=gl.findIndex(s=>s.cancel==n);~i&&gl.splice(i,1),ro-=~i?1:0},a={time:r,handler:t,cancel:n};return gl.splice(V4(r),0,a),ro+=1,G4(),a};var V4=t=>~(~gl.findIndex(e=>e.time>t)||~gl.length);ut.cancel=t=>{ap.delete(t),ny.delete(t),ay.delete(t),ty.delete(t),ry.delete(t)},ut.sync=t=>{oy=!0,ut.batchedUpdates(t),oy=!1},ut.throttle=t=>{let e;function r(){try{t(...e)}finally{e=null}}function n(...a){e=a,ut.onStart(r)}return n.handler=t,n.cancel=()=>{ap.delete(r),e=null},n};var iy=typeof window<"u"?window.requestAnimationFrame:()=>{};ut.use=t=>iy=t,ut.now=typeof performance<"u"?()=>performance.now():Date.now,ut.batchedUpdates=t=>t(),ut.catch=console.error,ut.frameLoop="always",ut.advance=()=>{ut.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):q4()};var to=-1,ro=0,oy=!1;function oc(t,e){oy?(e.delete(t),t(0)):(e.add(t),G4())}function G4(){to<0&&(to=0,ut.frameLoop!=="demand"&&iy(W4))}function NF(){to=-1}function W4(){~to&&(iy(W4),ut.batchedUpdates(q4))}function q4(){let t=to;to=ut.now();let e=V4(to);if(e&&(H4(gl.splice(0,e),r=>r.handler()),ro-=e),!ro){NF();return}ap.flush(),ty.flush(t?Math.min(64,to-t):16.667),ny.flush(),ry.flush(),ay.flush()}function sc(){let t=new Set,e=t;return{add(r){ro+=e==t&&!t.has(r)?1:0,t.add(r)},delete(r){return ro-=e==t&&t.has(r)?1:0,t.delete(r)},flush(r){e.size&&(t=new Set,ro-=e.size,H4(e,n=>n(r)&&t.add(n)),ro+=t.size,e=t)}}}function H4(t,e){t.forEach(r=>{try{e(r)}catch(n){ut.catch(n)}})}function K4(){}var OF=(t,e,r)=>Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0}),Ea={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function RF(t,e){if(Ea.arr(t)){if(!Ea.arr(e)||t.length!==e.length)return!1;for(let r=0;rt.forEach(e);function TF(t,e,r){if(Ea.arr(t)){for(let n=0;nEa.und(t)?[]:Ea.arr(t)?t:[t];function Q4(t,e){if(t.size){let r=Array.from(t);t.clear(),Y4(r,e)}}var FF=(t,...e)=>Q4(t,r=>r(...e)),ip=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),sy,Z4,no=null,X4=!1,ly=K4,J4=t=>{t.to&&(Z4=t.to),t.now&&(ut.now=t.now),t.colors!==void 0&&(no=t.colors),t.skipAnimation!=null&&(X4=t.skipAnimation),t.createStringInterpolator&&(sy=t.createStringInterpolator),t.requestAnimationFrame&&ut.use(t.requestAnimationFrame),t.batchedUpdates&&(ut.batchedUpdates=t.batchedUpdates),t.willAdvance&&(ly=t.willAdvance),t.frameLoop&&(ut.frameLoop=t.frameLoop)},lc=new Set,Vn=[],uy=[],op=0,e8={get idle(){return!lc.size&&!Vn.length},start(t){op>t.priority?(lc.add(t),ut.onStart(jF)):(t8(t),ut(cy))},advance:cy,sort(t){if(op)ut.onFrame(()=>e8.sort(t));else{let e=Vn.indexOf(t);~e&&(Vn.splice(e,1),r8(t))}},clear(){Vn=[],lc.clear()}};function jF(){lc.forEach(t8),lc.clear(),ut(cy)}function t8(t){Vn.includes(t)||r8(t)}function r8(t){Vn.splice(AF(Vn,e=>e.priority>t.priority),0,t)}function cy(t){let e=uy;for(let r=0;r0}function AF(t,e){let r=t.findIndex(e);return r<0?t.length:r}var n8=(t,e,r)=>Math.min(Math.max(r,t),e),DF={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ua="[-+]?\\d*\\.?\\d+",sp=ua+"%";function lp(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var a8=new RegExp("rgb"+lp(ua,ua,ua)),i8=new RegExp("rgba"+lp(ua,ua,ua,ua)),o8=new RegExp("hsl"+lp(ua,sp,sp)),s8=new RegExp("hsla"+lp(ua,sp,sp,ua)),l8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,u8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,c8=/^#([0-9a-fA-F]{6})$/,d8=/^#([0-9a-fA-F]{8})$/;function zF(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=c8.exec(t))?parseInt(e[1]+"ff",16)>>>0:no&&no[t]!==void 0?no[t]:(e=a8.exec(t))?(ml(e[1])<<24|ml(e[2])<<16|ml(e[3])<<8|255)>>>0:(e=i8.exec(t))?(ml(e[1])<<24|ml(e[2])<<16|ml(e[3])<<8|p8(e[4]))>>>0:(e=l8.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=d8.exec(t))?parseInt(e[1],16)>>>0:(e=u8.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=o8.exec(t))?(h8(f8(e[1]),up(e[2]),up(e[3]))|255)>>>0:(e=s8.exec(t))?(h8(f8(e[1]),up(e[2]),up(e[3]))|p8(e[4]))>>>0:null}function dy(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function h8(t,e,r){let n=r<.5?r*(1+e):r+e-r*e,a=2*r-n,i=dy(a,n,t+1/3),s=dy(a,n,t),u=dy(a,n,t-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(u*255)<<8}function ml(t){let e=parseInt(t,10);return e<0?0:e>255?255:e}function f8(t){return(parseFloat(t)%360+360)%360/360}function p8(t){let e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function up(t){let e=parseFloat(t);return e<0?0:e>100?1:e/100}function hy(t){let e=zF(t);if(e===null)return t;e=e||0;let r=(e&4278190080)>>>24,n=(e&16711680)>>>16,a=(e&65280)>>>8,i=(e&255)/255;return`rgba(${r}, ${n}, ${a}, ${i})`}var fy=(t,e,r)=>{if(Ea.fun(t))return t;if(Ea.arr(t))return fy({range:t,output:e,extrapolate:r});if(Ea.str(t.output[0]))return sy(t);let n=t,a=n.output,i=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",u=n.extrapolateRight||n.extrapolate||"extend",c=n.easing||(d=>d);return d=>{let f=UF(d,i);return BF(d,i[f],i[f+1],a[f],a[f+1],c,s,u,n.map)}};function BF(t,e,r,n,a,i,s,u,c){let d=c?c(t):t;if(dr){if(u==="identity")return d;u==="clamp"&&(d=r)}return n===a?n:e===r?t<=e?n:a:(e===-1/0?d=-d:r===1/0?d=d-e:d=(d-e)/(r-e),d=i(d),n===-1/0?d=-d:a===1/0?d=d+n:d=d*(a-n)+n,d)}function UF(t,e){for(var r=1;r=t);++r);return r-1}var $F=(t,e="end")=>r=>{r=e==="end"?Math.min(r,.999):Math.max(r,.001);let n=r*t,a=e==="end"?Math.floor(n):Math.ceil(n);return n8(0,1,a/t)},cp=1.70158,dp=cp*1.525,g8=cp+1,m8=2*Math.PI/3,v8=2*Math.PI/4.5,hp=t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,VF={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>t===0?0:Math.pow(2,10*t-10),easeOutExpo:t=>t===1?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>g8*t*t*t-cp*t*t,easeOutBack:t=>1+g8*Math.pow(t-1,3)+cp*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*((dp+1)*2*t-dp)/2:(Math.pow(2*t-2,2)*((dp+1)*(t*2-2)+dp)+2)/2,easeInElastic:t=>t===0?0:t===1?1:-Math.pow(2,10*t-10)*Math.sin((t*10-10.75)*m8),easeOutElastic:t=>t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t*10-.75)*m8)+1,easeInOutElastic:t=>t===0?0:t===1?1:t<.5?-(Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*v8))/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*v8)/2+1,easeInBounce:t=>1-hp(1-t),easeOutBounce:hp,easeInOutBounce:t=>t<.5?(1-hp(1-2*t))/2:(1+hp(2*t-1))/2,steps:$F},uc=Symbol.for("FluidValue.get"),vl=Symbol.for("FluidValue.observers"),GF=t=>!!(t&&t[uc]),y8=t=>t&&t[uc]?t[uc]():t,WF=t=>t[vl]||null;function b8(t,e){t.eventObserved?t.eventObserved(e):t(e)}function qF(t,e){let r=t[vl];r&&r.forEach(n=>{b8(n,e)})}var HF=class{constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");w8(this,t)}},w8=(t,e)=>k8(t,uc,e);function KF(t,e){if(t[uc]){let r=t[vl];r||k8(t,vl,r=new Set),r.has(e)||(r.add(e),t.observerAdded&&t.observerAdded(r.size,e))}return e}function YF(t,e){let r=t[vl];if(r&&r.has(e)){let n=r.size-1;n?r.delete(e):t[vl]=null,t.observerRemoved&&t.observerRemoved(n,e)}}var k8=(t,e,r)=>Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0}),fp=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,QF=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,x8=new RegExp(`(${fp.source})(%|[a-z]+)`,"i"),ZF=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,pp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,S8=t=>{let[e,r]=XF(t);if(!e||ip())return t;let n=window.getComputedStyle(document.documentElement).getPropertyValue(e);return n?n.trim():r&&r.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(r)||t:r&&pp.test(r)?S8(r):r||t},XF=t=>{let e=pp.exec(t);if(!e)return[,];let[,r,n]=e;return[r,n]},py,JF=(t,e,r,n,a)=>`rgba(${Math.round(e)}, ${Math.round(r)}, ${Math.round(n)}, ${a})`,ej=t=>{py||(py=no?new RegExp(`(${Object.keys(no).join("|")})(?!\\w)`,"g"):/^\b$/);let e=t.output.map(a=>y8(a).replace(pp,S8).replace(QF,hy).replace(py,hy)),r=e.map(a=>a.match(fp).map(Number)),n=r[0].map((a,i)=>r.map(s=>{if(!(i in s))throw Error('The arity of each "output" value must be equal');return s[i]})).map(a=>fy({...t,output:a}));return a=>{var i;let s=!x8.test(e[0])&&((i=e.find(c=>x8.test(c)))==null?void 0:i.replace(fp,"")),u=0;return e[0].replace(fp,()=>`${n[u++](a)}${s||""}`).replace(ZF,JF)}},gp="react-spring: ",gy=t=>{let e=t,r=!1;if(typeof e!="function")throw new TypeError(`${gp}once requires a function parameter`);return(...n)=>{r||(e(...n),r=!0)}},tj=gy(console.warn);function rj(){tj(`${gp}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var nj=gy(console.warn);function aj(){nj(`${gp}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function ij(t){return Ea.str(t)&&(t[0]=="#"||/\d/.test(t)||!ip()&&pp.test(t)||t in(no||{}))}var yl,mp=new WeakMap,oj=t=>t.forEach(({target:e,contentRect:r})=>{var n;return(n=mp.get(e))==null?void 0:n.forEach(a=>a(r))});function sj(t,e){yl||typeof ResizeObserver<"u"&&(yl=new ResizeObserver(oj));let r=mp.get(e);return r||(r=new Set,mp.set(e,r)),r.add(t),yl&&yl.observe(e),()=>{let n=mp.get(e);n&&(n.delete(t),!n.size&&yl&&yl.unobserve(e))}}var vp=new Set,cc,lj=()=>{let t=()=>{vp.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},uj=t=>(vp.add(t),cc||(cc=lj()),()=>{vp.delete(t),!vp.size&&cc&&(cc(),cc=void 0)}),C8=(t,{container:e=document.documentElement}={})=>e===document.documentElement?uj(t):sj(t,e),cj=(t,e,r)=>e-t===0?1:(r-t)/(e-t),dj={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},hj=class{constructor(t,e){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=r=>{let n=this.info[r],{length:a,position:i}=dj[r];n.current=this.container[`scroll${i}`],n.scrollLength=this.container["scroll"+a]-this.container["client"+a],n.progress=cj(0,n.scrollLength,n.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=t,this.container=e,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},dc=new WeakMap,_8=new WeakMap,my=new WeakMap,E8=t=>t===document.documentElement?window:t,fj=(t,{container:e=document.documentElement}={})=>{let r=my.get(e);r||(r=new Set,my.set(e,r));let n=new hj(t,e);if(r.add(n),!dc.has(e)){let i=()=>(r?.forEach(u=>u.advance()),!0);dc.set(e,i);let s=E8(e);window.addEventListener("resize",i,{passive:!0}),e!==document.documentElement&&_8.set(e,C8(i,{container:e})),s.addEventListener("scroll",i,{passive:!0})}let a=dc.get(e);return ut(a),()=>{var i;ut.cancel(a);let s=my.get(e);if(!s||(s.delete(n),s.size))return;let u=dc.get(e);dc.delete(e),u&&(E8(e).removeEventListener("scroll",u),window.removeEventListener("resize",u),(i=_8.get(e))==null||i())}},pj=I;function gj(t){let e=(0,pj.useRef)(null);return e.current===null&&(e.current=t()),e.current}var mj=I,vj=I,P8=I,vy=ip()?P8.useEffect:P8.useLayoutEffect,yj=()=>{let t=(0,vj.useRef)(!1);return vy(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function bj(){let t=(0,mj.useState)()[1],e=yj();return()=>{e.current&&t(Math.random())}}var yy=I;function wj(t,e){let[r]=(0,yy.useState)(()=>({inputs:e,result:t()})),n=(0,yy.useRef)(),a=n.current,i=a;return i?e&&i.inputs&&kj(e,i.inputs)||(i={inputs:e,result:t()}):i=r,(0,yy.useEffect)(()=>{n.current=i,a==r&&(r.inputs=r.result=void 0)},[i]),i.result}function kj(t,e){if(t.length!==e.length)return!1;for(let r=0;r(0,xj.useEffect)(t,Cj),Cj=[],M8=I;function _j(t){let e=(0,M8.useRef)();return(0,M8.useEffect)(()=>{e.current=t}),e.current}var Ej=I,Pj=()=>{let[t,e]=(0,Ej.useState)(null);return vy(()=>{let r=window.matchMedia("(prefers-reduced-motion)"),n=a=>{e(a.matches),J4({skipAnimation:a.matches})};return n(r),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),t};z4.exports=IF;var ct=z4.exports,I8={exports:{}},Mj=Object.create,yp=Object.defineProperty,Ij=Object.getOwnPropertyDescriptor,Nj=Object.getOwnPropertyNames,Oj=Object.getPrototypeOf,Rj=Object.prototype.hasOwnProperty,Tj=(t,e)=>{for(var r in e)yp(t,r,{get:e[r],enumerable:!0})},N8=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Nj(e))!Rj.call(t,a)&&a!==r&&yp(t,a,{get:()=>e[a],enumerable:!(n=Ij(e,a))||n.enumerable});return t},Lj=(t,e,r)=>(r=t!=null?Mj(Oj(t)):{},N8(e||!t||!t.__esModule?yp(r,"default",{value:t,enumerable:!0}):r,t)),Fj=t=>N8(yp({},"__esModule",{value:!0}),t),O8={};Tj(O8,{Animated:()=>by,AnimatedArray:()=>xy,AnimatedObject:()=>kp,AnimatedString:()=>bp,AnimatedValue:()=>fc,createHost:()=>Wj,getAnimated:()=>T8,getAnimatedType:()=>Bj,getPayload:()=>F8,isAnimated:()=>R8,setAnimated:()=>L8});var jj=Fj(O8),Aj=ct,hc=Symbol.for("Animated:node"),R8=t=>!!t&&t[hc]===t,T8=t=>t&&t[hc],L8=(t,e)=>(0,Aj.defineHidden)(t,hc,e),F8=t=>t&&t[hc]&&t[hc].getPayload(),by=class{constructor(){L8(this,this)}getPayload(){return this.payload||[]}},wy=ct,fc=class extends by{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,wy.is.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new fc(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return wy.is.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,wy.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},ky=ct,bp=class extends fc{constructor(t){super(0),this._string=null,this._toString=(0,ky.createInterpolator)({output:[t,t]})}static create(t){return new bp(t)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(t){if(ky.is.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=(0,ky.createInterpolator)({output:[this.getValue(),t]})),this._value=0,super.reset()}},Dj=ct,Zo=ct,wp={dependencies:null},kp=class extends by{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let e={};return(0,Zo.eachProp)(this.source,(r,n)=>{R8(r)?e[n]=r.getValue(t):(0,Zo.hasFluidValue)(r)?e[n]=(0,Zo.getFluidValue)(r):t||(e[n]=r)}),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&(0,Zo.each)(this.payload,t=>t.reset())}_makePayload(t){if(t){let e=new Set;return(0,Zo.eachProp)(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){wp.dependencies&&(0,Zo.hasFluidValue)(t)&&wp.dependencies.add(t);let e=F8(t);e&&(0,Zo.each)(e,r=>this.add(r))}},xy=class extends kp{constructor(t){super(t)}static create(t){return new xy(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let e=this.getPayload();return t.length==e.length?e.map((r,n)=>r.setValue(t[n])).some(Boolean):(super.setValue(t.map(zj)),!0)}};function zj(t){return((0,Dj.isAnimatedString)(t)?bp:fc).create(t)}var j8=ct;function Bj(t){let e=T8(t);return e?e.constructor:j8.is.arr(t)?xy:(0,j8.isAnimatedString)(t)?bp:fc}var bl=ct,Uj=Lj(I),pc=I,Cn=ct,A8=(t,e)=>{let r=!Cn.is.fun(t)||t.prototype&&t.prototype.isReactComponent;return(0,pc.forwardRef)((n,a)=>{let i=(0,pc.useRef)(null),s=r&&(0,pc.useCallback)(b=>{i.current=Gj(a,b)},[a]),[u,c]=Vj(n,e),d=(0,Cn.useForceUpdate)(),f=()=>{let b=i.current;r&&!b||(b?e.applyAnimatedValues(b,u.getValue(!0)):!1)===!1&&d()},m=new $j(f,c),v=(0,pc.useRef)();(0,Cn.useIsomorphicLayoutEffect)(()=>(v.current=m,(0,Cn.each)(c,b=>(0,Cn.addFluidObserver)(b,m)),()=>{v.current&&((0,Cn.each)(v.current.deps,b=>(0,Cn.removeFluidObserver)(b,v.current)),Cn.raf.cancel(v.current.update))})),(0,pc.useEffect)(f,[]),(0,Cn.useOnce)(()=>()=>{let b=v.current;(0,Cn.each)(b.deps,S=>(0,Cn.removeFluidObserver)(S,b))});let y=e.getComponentProps(u.getValue());return Uj.createElement(t,{...y,ref:s})})},$j=class{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){t.type=="change"&&Cn.raf.write(this.update)}};function Vj(t,e){let r=new Set;return wp.dependencies=r,t.style&&(t={...t,style:e.createAnimatedStyle(t.style)}),t=new kp(t),wp.dependencies=null,[t,r]}function Gj(t,e){return t&&(Cn.is.fun(t)?t(e):t.current=e),e}var D8=Symbol.for("AnimatedComponent"),Wj=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:r=a=>new kp(a),getComponentProps:n=a=>a}={})=>{let a={applyAnimatedValues:e,createAnimatedStyle:r,getComponentProps:n},i=s=>{let u=z8(s)||"Anonymous";return bl.is.str(s)?s=i[s]||(i[s]=A8(s,a)):s=s[D8]||(s[D8]=A8(s,a)),s.displayName=`Animated(${u})`,s};return(0,bl.eachProp)(t,(s,u)=>{bl.is.arr(t)&&(u=z8(s)),i[u]=i(s)}),{animated:i}},z8=t=>bl.is.str(t)?t:t&&bl.is.str(t.displayName)?t.displayName:bl.is.fun(t)&&t.name||null;I8.exports=jj;var gc=I8.exports,B8={exports:{}},Sy,U8;function qj(){if(U8)return Sy;U8=1;var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,a=(d,f)=>{for(var m in f)t(d,m,{get:f[m],enumerable:!0})},i=(d,f,m,v)=>{if(f&&typeof f=="object"||typeof f=="function")for(let y of r(f))!n.call(d,y)&&y!==m&&t(d,y,{get:()=>f[y],enumerable:!(v=e(f,y))||v.enumerable});return d},s=d=>i(t({},"__esModule",{value:!0}),d),u={};a(u,{Any:()=>c}),Sy=s(u);var c=class{};return Sy}var $8;function Hj(){return $8||($8=1,B8.exports=qj()),B8.exports}(function(t){var e=Object.create,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=(M,T)=>{for(var B in T)r(M,B,{get:T[B],enumerable:!0})},c=(M,T,B,V)=>{if(T&&typeof T=="object"||typeof T=="function")for(let X of a(T))!s.call(M,X)&&X!==B&&r(M,X,{get:()=>T[X],enumerable:!(V=n(T,X))||V.enumerable});return M},d=(M,T,B)=>(c(M,T,"default"),B&&c(B,T,"default")),f=(M,T,B)=>(B=M!=null?e(i(M)):{},c(T||!M||!M.__esModule?r(B,"default",{value:M,enumerable:!0}):B,M)),m=M=>c(r({},"__esModule",{value:!0}),M),v={};u(v,{BailSignal:()=>dt,Controller:()=>_l,FrameValue:()=>mr,Globals:()=>Fa.Globals,Interpolation:()=>fo,Spring:()=>La,SpringContext:()=>Gn,SpringRef:()=>is,SpringValue:()=>Ht,Trail:()=>Fr,Transition:()=>ls,config:()=>oe,createInterpolator:()=>ja.createInterpolator,easings:()=>ja.easings,inferTo:()=>R,interpolate:()=>us,to:()=>Dp,update:()=>po,useChain:()=>ne,useInView:()=>Lr,useIsomorphicLayoutEffect:()=>ja.useIsomorphicLayoutEffect,useReducedMotion:()=>ja.useReducedMotion,useResize:()=>xt,useScroll:()=>di,useSpring:()=>co,useSpringRef:()=>Fp,useSpringValue:()=>jp,useSprings:()=>Ml,useTrail:()=>Pc,useTransition:()=>ss}),t.exports=m(v);var y=ct,b=ct;function S(M,...T){return b.is.fun(M)?M(...T):M}var E=(M,T)=>M===!0||!!(T&&M&&(b.is.fun(M)?M(T):(0,b.toArray)(M).includes(T))),x=(M,T)=>b.is.obj(M)?T&&M[T]:M,k=(M,T)=>M.default===!0?M[T]:M.default?M.default[T]:void 0,g=M=>M,C=(M,T=g)=>{let B=N;M.default&&M.default!==!0&&(M=M.default,B=Object.keys(M));let V={};for(let X of B){let ae=T(M[X],X);b.is.und(ae)||(V[X]=ae)}return V},N=["config","onProps","onStart","onChange","onPause","onResume","onRest"],O={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function D(M){let T={},B=0;if((0,b.eachProp)(M,(V,X)=>{O[X]||(T[X]=V,B++)}),B)return T}function R(M){let T=D(M);if(T){let B={to:T};return(0,b.eachProp)(M,(V,X)=>X in T||(B[X]=V)),B}return{...M}}function A(M){return M=(0,b.getFluidValue)(M),b.is.arr(M)?M.map(A):(0,b.isAnimatedString)(M)?b.Globals.createStringInterpolator({range:[0,1],output:[M,M]})(1):M}function F(M){for(let T in M)return!0;return!1}function U(M){return b.is.fun(M)||b.is.arr(M)&&b.is.obj(M[0])}function H(M,T){var B;(B=M.ref)==null||B.delete(M),T?.delete(M)}function q(M,T){var B;T&&M.ref!==T&&((B=M.ref)==null||B.delete(M),T.add(M),M.ref=T)}function ne(M,T,B=1e3){(0,y.useIsomorphicLayoutEffect)(()=>{if(T){let V=0;(0,y.each)(M,(X,ae)=>{let pe=X.current;if(pe.length){let fe=B*T[ae];isNaN(fe)?fe=V:V=fe,(0,y.each)(pe,ce=>{(0,y.each)(ce.queue,ye=>{let Be=ye.delay;ye.delay=Ee=>fe+S(Be||0,Ee)})}),X.start()}})}else{let V=Promise.resolve();(0,y.each)(M,X=>{let ae=X.current;if(ae.length){let pe=ae.map(fe=>{let ce=fe.queue;return fe.queue=[],ce});V=V.then(()=>((0,y.each)(ae,(fe,ce)=>(0,y.each)(pe[ce]||[],ye=>fe.queue.push(ye))),Promise.all(X.start())))}})}})}var ie=ct,se=I,K=ct,z=ct,ee=gc,Q=ct,oe={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},he={...oe.default,mass:1,damping:1,easing:Q.easings.linear,clamp:!1},Ce=class{constructor(){this.velocity=0,Object.assign(this,he)}};function ge(M,T,B){B&&(B={...B},Me(B,T),T={...B,...T}),Me(M,T),Object.assign(M,T);for(let pe in he)M[pe]==null&&(M[pe]=he[pe]);let{frequency:V,damping:X}=M,{mass:ae}=M;return Q.is.und(V)||(V<.01&&(V=.01),X<0&&(X=0),M.tension=Math.pow(2*Math.PI/V,2)*ae,M.friction=4*Math.PI*X*ae/V),M}function Me(M,T){if(!Q.is.und(T.decay))M.duration=void 0;else{let B=!Q.is.und(T.tension)||!Q.is.und(T.friction);(B||!Q.is.und(T.frequency)||!Q.is.und(T.damping)||!Q.is.und(T.mass))&&(M.duration=void 0,M.decay=void 0),B&&(M.frequency=void 0)}}var Ne=[],$=class{constructor(){this.changed=!1,this.values=Ne,this.toValues=null,this.fromValues=Ne,this.config=new Ce,this.immediate=!1}},re=ct;function le(M,{key:T,props:B,defaultProps:V,state:X,actions:ae}){return new Promise((pe,fe)=>{let ce,ye,Be=E(B.cancel??V?.cancel,T);if(Be)Ve();else{re.is.und(B.pause)||(X.paused=E(B.pause,T));let xe=V?.pause;xe!==!0&&(xe=X.paused||E(xe,T)),ce=S(B.delay||0,T),xe?(X.resumeQueue.add(Qe),ae.pause()):(ae.resume(),Qe())}function Ee(){X.resumeQueue.add(Qe),X.timeouts.delete(ye),ye.cancel(),ce=ye.time-re.raf.now()}function Qe(){ce>0&&!re.Globals.skipAnimation?(X.delayed=!0,ye=re.raf.setTimeout(Ve,ce),X.pauseQueue.add(Ee),X.timeouts.add(ye)):Ve()}function Ve(){X.delayed&&(X.delayed=!1),X.pauseQueue.delete(Ee),X.timeouts.delete(ye),M<=(X.cancelId||0)&&(Be=!0);try{ae.start({...B,callId:M,cancel:Be},pe)}catch(xe){fe(xe)}}})}var Se=ct,Oe=(M,T)=>T.length==1?T[0]:T.some(B=>B.cancelled)?it(M.get()):T.every(B=>B.noop)?Fe(M.get()):Ye(M.get(),T.every(B=>B.finished)),Fe=M=>({value:M,noop:!0,finished:!0,cancelled:!1}),Ye=(M,T,B=!1)=>({value:M,finished:T,cancelled:B}),it=M=>({value:M,cancelled:!0,finished:!1});function De(M,T,B,V){let{callId:X,parentId:ae,onRest:pe}=T,{asyncTo:fe,promise:ce}=B;return!ae&&M===fe&&!T.reset?ce:B.promise=(async()=>{B.asyncId=X,B.asyncTo=M;let ye=C(T,(je,Pe)=>Pe==="onRest"?void 0:je),Be,Ee,Qe=new Promise((je,Pe)=>(Be=je,Ee=Pe)),Ve=je=>{let Pe=X<=(B.cancelId||0)&&it(V)||X!==B.asyncId&&Ye(V,!1);if(Pe)throw je.result=Pe,Ee(je),je},xe=(je,Pe)=>{let Ge=new dt,Re=new ht;return(async()=>{if(Se.Globals.skipAnimation)throw Wt(B),Re.result=Ye(V,!1),Ee(Re),Re;Ve(Ge);let $e=Se.is.obj(je)?{...je}:{...Pe,to:je};$e.parentId=X,(0,Se.eachProp)(ye,(nn,tt)=>{Se.is.und($e[tt])&&($e[tt]=nn)});let Kt=await V.start($e);return Ve(Ge),B.paused&&await new Promise(nn=>{B.resumeQueue.add(nn)}),Kt})()},Te;if(Se.Globals.skipAnimation)return Wt(B),Ye(V,!1);try{let je;Se.is.arr(M)?je=(async Pe=>{for(let Ge of Pe)await xe(Ge)})(M):je=Promise.resolve(M(xe,V.stop.bind(V))),await Promise.all([je.then(Be),Qe]),Te=Ye(V.get(),!0,!1)}catch(je){if(je instanceof dt)Te=je.result;else if(je instanceof ht)Te=je.result;else throw je}finally{X==B.asyncId&&(B.asyncId=ae,B.asyncTo=ae?fe:void 0,B.promise=ae?ce:void 0)}return Se.is.fun(pe)&&Se.raf.batchedUpdates(()=>{pe(Te,V,V.item)}),Te})()}function Wt(M,T){(0,Se.flush)(M.timeouts,B=>B.cancel()),M.pauseQueue.clear(),M.resumeQueue.clear(),M.asyncId=M.asyncTo=M.promise=void 0,T&&(M.cancelId=T)}var dt=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ht=class extends Error{constructor(){super("SkipAnimationSignal")}},ze=ct,En=gc,Jt=M=>M instanceof mr,Tr=1,mr=class extends ze.FluidValue{constructor(){super(...arguments),this.id=Tr++,this._priority=0}get priority(){return this._priority}set priority(M){this._priority!=M&&(this._priority=M,this._onPriorityChange(M))}get(){let M=(0,En.getAnimated)(this);return M&&M.getValue()}to(...M){return ze.Globals.to(this,M)}interpolate(...M){return(0,ze.deprecateInterpolate)(),ze.Globals.to(this,M)}toJSON(){return this.get()}observerAdded(M){M==1&&this._attach()}observerRemoved(M){M==0&&this._detach()}_attach(){}_detach(){}_onChange(M,T=!1){(0,ze.callFluidObservers)(this,{type:"change",parent:this,value:M,idle:T})}_onPriorityChange(M){this.idle||ze.frameLoop.sort(this),(0,ze.callFluidObservers)(this,{type:"priority",parent:this,priority:M})}},qt=Symbol.for("SpringPhase"),_t=1,Ia=2,Na=4,so=M=>(M[qt]&_t)>0,Pn=M=>(M[qt]&Ia)>0,Oa=M=>(M[qt]&Na)>0,es=(M,T)=>T?M[qt]|=Ia|_t:M[qt]&=~Ia,ci=(M,T)=>T?M[qt]|=Na:M[qt]&=~Na,Ht=class extends mr{constructor(M,T){if(super(),this.animation=new $,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!z.is.und(M)||!z.is.und(T)){let B=z.is.obj(M)?{...M}:{...T,from:M};z.is.und(B.default)&&(B.default=!0),this.start(B)}}get idle(){return!(Pn(this)||this._state.asyncTo)||Oa(this)}get goal(){return(0,z.getFluidValue)(this.animation.to)}get velocity(){let M=(0,ee.getAnimated)(this);return M instanceof ee.AnimatedValue?M.lastVelocity||0:M.getPayload().map(T=>T.lastVelocity||0)}get hasAnimated(){return so(this)}get isAnimating(){return Pn(this)}get isPaused(){return Oa(this)}get isDelayed(){return this._state.delayed}advance(M){let T=!0,B=!1,V=this.animation,{toValues:X}=V,{config:ae}=V,pe=(0,ee.getPayload)(V.to);!pe&&(0,z.hasFluidValue)(V.to)&&(X=(0,z.toArray)((0,z.getFluidValue)(V.to))),V.values.forEach((ye,Be)=>{if(ye.done)return;let Ee=ye.constructor==ee.AnimatedString?1:pe?pe[Be].lastPosition:X[Be],Qe=V.immediate,Ve=Ee;if(!Qe){if(Ve=ye.lastPosition,ae.tension<=0){ye.done=!0;return}let xe=ye.elapsedTime+=M,Te=V.fromValues[Be],je=ye.v0!=null?ye.v0:ye.v0=z.is.arr(ae.velocity)?ae.velocity[Be]:ae.velocity,Pe,Ge=ae.precision||(Te==Ee?.005:Math.min(1,Math.abs(Ee-Te)*.001));if(z.is.und(ae.duration))if(ae.decay){let Re=ae.decay===!0?.998:ae.decay,$e=Math.exp(-(1-Re)*xe);Ve=Te+je/(1-Re)*(1-$e),Qe=Math.abs(ye.lastPosition-Ve)<=Ge,Pe=je*$e}else{Pe=ye.lastVelocity==null?je:ye.lastVelocity;let Re=ae.restVelocity||Ge/10,$e=ae.clamp?0:ae.bounce,Kt=!z.is.und($e),nn=Te==Ee?ye.v0>0:TeRe,!(!tt&&(Qe=Math.abs(Ee-Ve)<=Ge,Qe)));++Kr){Kt&&(Tt=Ve==Ee||Ve>Ee==nn,Tt&&(Pe=-Pe*$e,Ve=Ee));let Wn=-ae.tension*1e-6*(Ve-Ee),nr=-ae.friction*.001*Pe,Ae=(Wn+nr)/ae.mass;Pe=Pe+Ae*Mt,Ve=Ve+Pe*Mt}}else{let Re=1;ae.duration>0&&(this._memoizedDuration!==ae.duration&&(this._memoizedDuration=ae.duration,ye.durationProgress>0&&(ye.elapsedTime=ae.duration*ye.durationProgress,xe=ye.elapsedTime+=M)),Re=(ae.progress||0)+xe/this._memoizedDuration,Re=Re>1?1:Re<0?0:Re,ye.durationProgress=Re),Ve=Te+ae.easing(Re)*(Ee-Te),Pe=(Ve-ye.lastPosition)/M,Qe=Re==1}ye.lastVelocity=Pe,Number.isNaN(Ve)&&(console.warn("Got NaN while animating:",this),Qe=!0)}pe&&!pe[Be].done&&(Qe=!1),Qe?ye.done=!0:T=!1,ye.setValue(Ve,ae.round)&&(B=!0)});let fe=(0,ee.getAnimated)(this),ce=fe.getValue();if(T){let ye=(0,z.getFluidValue)(V.to);(ce!==ye||B)&&!ae.decay?(fe.setValue(ye),this._onChange(ye)):B&&ae.decay&&this._onChange(ce),this._stop()}else B&&this._onChange(ce)}set(M){return z.raf.batchedUpdates(()=>{this._stop(),this._focus(M),this._set(M)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Pn(this)){let{to:M,config:T}=this.animation;z.raf.batchedUpdates(()=>{this._onStart(),T.decay||this._set(M,!1),this._stop()})}return this}update(M){return(this.queue||(this.queue=[])).push(M),this}start(M,T){let B;return z.is.und(M)?(B=this.queue||[],this.queue=[]):B=[z.is.obj(M)?M:{...T,to:M}],Promise.all(B.map(V=>this._update(V))).then(V=>Oe(this,V))}stop(M){let{to:T}=this.animation;return this._focus(this.get()),Wt(this._state,M&&this._lastCallId),z.raf.batchedUpdates(()=>this._stop(T,M)),this}reset(){this._update({reset:!0})}eventObserved(M){M.type=="change"?this._start():M.type=="priority"&&(this.priority=M.priority+1)}_prepareNode(M){let T=this.key||"",{to:B,from:V}=M;B=z.is.obj(B)?B[T]:B,(B==null||U(B))&&(B=void 0),V=z.is.obj(V)?V[T]:V,V==null&&(V=void 0);let X={to:B,from:V};return so(this)||(M.reverse&&([B,V]=[V,B]),V=(0,z.getFluidValue)(V),z.is.und(V)?(0,ee.getAnimated)(this)||this._set(B):this._set(V)),X}_update({...M},T){let{key:B,defaultProps:V}=this;M.default&&Object.assign(V,C(M,(pe,fe)=>/^on/.test(fe)?x(pe,B):pe)),wc(this,M,"onProps"),lo(this,"onProps",M,this);let X=this._prepareNode(M);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let ae=this._state;return le(++this._lastCallId,{key:B,props:M,defaultProps:V,state:ae,actions:{pause:()=>{Oa(this)||(ci(this,!0),(0,z.flushCalls)(ae.pauseQueue),lo(this,"onPause",Ye(this,Ra(this,this.animation.to)),this))},resume:()=>{Oa(this)&&(ci(this,!1),Pn(this)&&this._resume(),(0,z.flushCalls)(ae.resumeQueue),lo(this,"onResume",Ye(this,Ra(this,this.animation.to)),this))},start:this._merge.bind(this,X)}}).then(pe=>{if(M.loop&&pe.finished&&!(T&&pe.noop)){let fe=ts(M);if(fe)return this._update(fe,!0)}return pe})}_merge(M,T,B){if(T.cancel)return this.stop(!0),B(it(this));let V=!z.is.und(M.to),X=!z.is.und(M.from);if(V||X)if(T.callId>this._lastToId)this._lastToId=T.callId;else return B(it(this));let{key:ae,defaultProps:pe,animation:fe}=this,{to:ce,from:ye}=fe,{to:Be=ce,from:Ee=ye}=M;X&&!V&&(!T.default||z.is.und(Be))&&(Be=Ee),T.reverse&&([Be,Ee]=[Ee,Be]);let Qe=!(0,z.isEqual)(Ee,ye);Qe&&(fe.from=Ee),Ee=(0,z.getFluidValue)(Ee);let Ve=!(0,z.isEqual)(Be,ce);Ve&&this._focus(Be);let xe=U(T.to),{config:Te}=fe,{decay:je,velocity:Pe}=Te;(V||X)&&(Te.velocity=0),T.config&&!xe&&ge(Te,S(T.config,ae),T.config!==pe.config?S(pe.config,ae):void 0);let Ge=(0,ee.getAnimated)(this);if(!Ge||z.is.und(Be))return B(Ye(this,!0));let Re=z.is.und(T.reset)?X&&!T.default:!z.is.und(Ee)&&E(T.reset,ae),$e=Re?Ee:this.get(),Kt=A(Be),nn=z.is.num(Kt)||z.is.arr(Kt)||(0,z.isAnimatedString)(Kt),tt=!xe&&(!nn||E(pe.immediate||T.immediate,ae));if(Ve){let Kr=(0,ee.getAnimatedType)(Be);if(Kr!==Ge.constructor)if(tt)Ge=this._set(Kt);else throw Error(`Cannot animate between ${Ge.constructor.name} and ${Kr.name}, as the "to" prop suggests`)}let Tt=Ge.constructor,Mt=(0,z.hasFluidValue)(Be),jr=!1;if(!Mt){let Kr=Re||!so(this)&&Qe;(Ve||Kr)&&(jr=(0,z.isEqual)(A($e),Kt),Mt=!jr),(!(0,z.isEqual)(fe.immediate,tt)&&!tt||!(0,z.isEqual)(Te.decay,je)||!(0,z.isEqual)(Te.velocity,Pe))&&(Mt=!0)}if(jr&&Pn(this)&&(fe.changed&&!Re?Mt=!0:Mt||this._stop(ce)),!xe&&((Mt||(0,z.hasFluidValue)(ce))&&(fe.values=Ge.getPayload(),fe.toValues=(0,z.hasFluidValue)(Be)?null:Tt==ee.AnimatedString?[1]:(0,z.toArray)(Kt)),fe.immediate!=tt&&(fe.immediate=tt,!tt&&!Re&&this._set(ce)),Mt)){let{onRest:Kr}=fe;(0,z.each)(Cl,nr=>wc(this,T,nr));let Wn=Ye(this,Ra(this,ce));(0,z.flushCalls)(this._pendingCalls,Wn),this._pendingCalls.add(B),fe.changed&&z.raf.batchedUpdates(()=>{var nr;fe.changed=!Re,Kr?.(Wn,this),Re?S(pe.onRest,Wn):(nr=fe.onStart)==null||nr.call(fe,Wn,this)})}Re&&this._set($e),xe?B(De(T.to,T,this._state,this)):Mt?this._start():Pn(this)&&!Ve?this._pendingCalls.add(B):B(Fe($e))}_focus(M){let T=this.animation;M!==T.to&&((0,z.getFluidObservers)(this)&&this._detach(),T.to=M,(0,z.getFluidObservers)(this)&&this._attach())}_attach(){let M=0,{to:T}=this.animation;(0,z.hasFluidValue)(T)&&((0,z.addFluidObserver)(T,this),Jt(T)&&(M=T.priority+1)),this.priority=M}_detach(){let{to:M}=this.animation;(0,z.hasFluidValue)(M)&&(0,z.removeFluidObserver)(M,this)}_set(M,T=!0){let B=(0,z.getFluidValue)(M);if(!z.is.und(B)){let V=(0,ee.getAnimated)(this);if(!V||!(0,z.isEqual)(B,V.getValue())){let X=(0,ee.getAnimatedType)(B);!V||V.constructor!=X?(0,ee.setAnimated)(this,X.create(B)):V.setValue(B),V&&z.raf.batchedUpdates(()=>{this._onChange(B,T)})}}return(0,ee.getAnimated)(this)}_onStart(){let M=this.animation;M.changed||(M.changed=!0,lo(this,"onStart",Ye(this,Ra(this,M.to)),this))}_onChange(M,T){T||(this._onStart(),S(this.animation.onChange,M,this)),S(this.defaultProps.onChange,M,this),super._onChange(M,T)}_start(){let M=this.animation;(0,ee.getAnimated)(this).reset((0,z.getFluidValue)(M.to)),M.immediate||(M.fromValues=M.values.map(T=>T.lastPosition)),Pn(this)||(es(this,!0),Oa(this)||this._resume())}_resume(){z.Globals.skipAnimation?this.finish():z.frameLoop.start(this)}_stop(M,T){if(Pn(this)){es(this,!1);let B=this.animation;(0,z.each)(B.values,X=>{X.done=!0}),B.toValues&&(B.onChange=B.onPause=B.onResume=void 0),(0,z.callFluidObservers)(this,{type:"idle",parent:this});let V=T?it(this.get()):Ye(this.get(),Ra(this,M??B.to));(0,z.flushCalls)(this._pendingCalls,V),B.changed&&(B.changed=!1,lo(this,"onRest",V,this))}}};function Ra(M,T){let B=A(T),V=A(M.get());return(0,z.isEqual)(V,B)}function ts(M,T=M.loop,B=M.to){let V=S(T);if(V){let X=V!==!0&&R(V),ae=(X||M).reverse,pe=!X||X.reset;return ca({...M,loop:T,default:!1,pause:void 0,to:!ae||U(B)?B:void 0,from:pe?M.from:void 0,reset:pe,...X})}}function ca(M){let{to:T,from:B}=M=R(M),V=new Set;return z.is.obj(T)&&tn(T,V),z.is.obj(B)&&tn(B,V),M.keys=V.size?Array.from(V):null,M}function Sl(M){let T=ca(M);return z.is.und(T.default)&&(T.default=C(T)),T}function tn(M,T){(0,z.eachProp)(M,(B,V)=>B!=null&&T.add(V))}var Cl=["onStart","onRest","onChange","onPause","onResume"];function wc(M,T,B){M.animation[B]=T[B]!==k(T,B)?x(T[B],M.key):void 0}function lo(M,T,...B){var V,X,ae,pe;(X=(V=M.animation)[T])==null||X.call(V,...B),(pe=(ae=M.defaultProps)[T])==null||pe.call(ae,...B)}var at=ct,kc=["onStart","onChange","onRest"],xc=1,_l=class{constructor(M,T){this.id=xc++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),T&&(this._flush=T),M&&this.start({default:!0,...M})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(M=>M.idle&&!M.isDelayed&&!M.isPaused)}get item(){return this._item}set item(M){this._item=M}get(){let M={};return this.each((T,B)=>M[B]=T.get()),M}set(M){for(let T in M){let B=M[T];at.is.und(B)||this.springs[T].set(B)}}update(M){return M&&this.queue.push(ca(M)),this}start(M){let{queue:T}=this;return M?T=(0,at.toArray)(M).map(ca):this.queue=[],this._flush?this._flush(this,T):(Pl(this,T),uo(this,T))}stop(M,T){if(M!==!!M&&(T=M),T){let B=this.springs;(0,at.each)((0,at.toArray)(T),V=>B[V].stop(!!M))}else Wt(this._state,this._lastAsyncId),this.each(B=>B.stop(!!M));return this}pause(M){if(at.is.und(M))this.start({pause:!0});else{let T=this.springs;(0,at.each)((0,at.toArray)(M),B=>T[B].pause())}return this}resume(M){if(at.is.und(M))this.start({pause:!1});else{let T=this.springs;(0,at.each)((0,at.toArray)(M),B=>T[B].resume())}return this}each(M){(0,at.eachProp)(this.springs,M)}_onFrame(){let{onStart:M,onChange:T,onRest:B}=this._events,V=this._active.size>0,X=this._changed.size>0;(V&&!this._started||X&&!this._started)&&(this._started=!0,(0,at.flush)(M,([fe,ce])=>{ce.value=this.get(),fe(ce,this,this._item)}));let ae=!V&&this._started,pe=X||ae&&B.size?this.get():null;X&&T.size&&(0,at.flush)(T,([fe,ce])=>{ce.value=pe,fe(ce,this,this._item)}),ae&&(this._started=!1,(0,at.flush)(B,([fe,ce])=>{ce.value=pe,fe(ce,this,this._item)}))}eventObserved(M){if(M.type=="change")this._changed.add(M.parent),M.idle||this._active.add(M.parent);else if(M.type=="idle")this._active.delete(M.parent);else return;at.raf.onFrame(this._onFrame)}};function uo(M,T){return Promise.all(T.map(B=>El(M,B))).then(B=>Oe(M,B))}async function El(M,T,B){let{keys:V,to:X,from:ae,loop:pe,onRest:fe,onResolve:ce}=T,ye=at.is.obj(T.default)&&T.default;pe&&(T.loop=!1),X===!1&&(T.to=null),ae===!1&&(T.from=null);let Be=at.is.arr(X)||at.is.fun(X)?X:void 0;Be?(T.to=void 0,T.onRest=void 0,ye&&(ye.onRest=void 0)):(0,at.each)(kc,Te=>{let je=T[Te];if(at.is.fun(je)){let Pe=M._events[Te];T[Te]=({finished:Ge,cancelled:Re})=>{let $e=Pe.get(je);$e?(Ge||($e.finished=!1),Re&&($e.cancelled=!0)):Pe.set(je,{value:null,finished:Ge||!1,cancelled:Re||!1})},ye&&(ye[Te]=T[Te])}});let Ee=M._state;T.pause===!Ee.paused?(Ee.paused=T.pause,(0,at.flushCalls)(T.pause?Ee.pauseQueue:Ee.resumeQueue)):Ee.paused&&(T.pause=!0);let Qe=(V||Object.keys(M.springs)).map(Te=>M.springs[Te].start(T)),Ve=T.cancel===!0||k(T,"cancel")===!0;(Be||Ve&&Ee.asyncId)&&Qe.push(le(++M._lastAsyncId,{props:T,state:Ee,actions:{pause:at.noop,resume:at.noop,start(Te,je){Ve?(Wt(Ee,M._lastAsyncId),je(it(M))):(Te.onRest=fe,je(De(Be,Te,Ee,M)))}}})),Ee.paused&&await new Promise(Te=>{Ee.resumeQueue.add(Te)});let xe=Oe(M,await Promise.all(Qe));if(pe&&xe.finished&&!(B&&xe.noop)){let Te=ts(T,pe,X);if(Te)return Pl(M,[Te]),El(M,Te,!0)}return ce&&at.raf.batchedUpdates(()=>ce(xe,M,M.item)),xe}function rs(M,T){let B={...M.springs};return T&&(0,at.each)((0,at.toArray)(T),V=>{at.is.und(V.keys)&&(V=ca(V)),at.is.obj(V.to)||(V={...V,to:void 0}),_c(B,V,X=>Cc(X))}),Sc(M,B),B}function Sc(M,T){(0,at.eachProp)(T,(B,V)=>{M.springs[V]||(M.springs[V]=B,(0,at.addFluidObserver)(B,M))})}function Cc(M,T){let B=new Ht;return B.key=M,T&&(0,at.addFluidObserver)(B,T),B}function _c(M,T,B){T.keys&&(0,at.each)(T.keys,V=>{(M[V]||(M[V]=B(V)))._prepareNode(T)})}function Pl(M,T){(0,at.each)(T,B=>{_c(M.springs,B,V=>Cc(V,M))})}var ns=f(I),Np=I,Op=ct,Gn=({children:M,...T})=>{let B=(0,Np.useContext)(as),V=T.pause||!!B.pause,X=T.immediate||!!B.immediate;T=(0,Op.useMemoOne)(()=>({pause:V,immediate:X}),[V,X]);let{Provider:ae}=as;return ns.createElement(ae,{value:T},M)},as=Rp(Gn,{});Gn.Provider=as.Provider,Gn.Consumer=as.Consumer;function Rp(M,T){return Object.assign(M,ns.createContext(T)),M.Provider._context=M,M.Consumer._context=M,M}var rn=ct,is=()=>{let M=[],T=function(V){(0,rn.deprecateDirectCall)();let X=[];return(0,rn.each)(M,(ae,pe)=>{if(rn.is.und(V))X.push(ae.start());else{let fe=B(V,ae,pe);fe&&X.push(ae.start(fe))}}),X};T.current=M,T.add=function(V){M.includes(V)||M.push(V)},T.delete=function(V){let X=M.indexOf(V);~X&&M.splice(X,1)},T.pause=function(){return(0,rn.each)(M,V=>V.pause(...arguments)),this},T.resume=function(){return(0,rn.each)(M,V=>V.resume(...arguments)),this},T.set=function(V){(0,rn.each)(M,(X,ae)=>{let pe=rn.is.fun(V)?V(ae,X):V;pe&&X.set(pe)})},T.start=function(V){let X=[];return(0,rn.each)(M,(ae,pe)=>{if(rn.is.und(V))X.push(ae.start());else{let fe=this._getProps(V,ae,pe);fe&&X.push(ae.start(fe))}}),X},T.stop=function(){return(0,rn.each)(M,V=>V.stop(...arguments)),this},T.update=function(V){return(0,rn.each)(M,(X,ae)=>X.update(this._getProps(V,X,ae))),this};let B=function(V,X,ae){return rn.is.fun(V)?V(ae,X):V};return T._getProps=B,T};function Ml(M,T,B){let V=K.is.fun(T)&&T;V&&!B&&(B=[]);let X=(0,se.useMemo)(()=>V||arguments.length==3?is():void 0,[]),ae=(0,se.useRef)(0),pe=(0,K.useForceUpdate)(),fe=(0,se.useMemo)(()=>({ctrls:[],queue:[],flush(Pe,Ge){let Re=rs(Pe,Ge);return ae.current>0&&!fe.queue.length&&!Object.keys(Re).some($e=>!Pe.springs[$e])?uo(Pe,Ge):new Promise($e=>{Sc(Pe,Re),fe.queue.push(()=>{$e(uo(Pe,Ge))}),pe()})}}),[]),ce=(0,se.useRef)([...fe.ctrls]),ye=[],Be=(0,K.usePrev)(M)||0;(0,se.useMemo)(()=>{(0,K.each)(ce.current.slice(M,Be),Pe=>{H(Pe,X),Pe.stop(!0)}),ce.current.length=M,Ee(Be,M)},[M]),(0,se.useMemo)(()=>{Ee(0,Math.min(Be,M))},B);function Ee(Pe,Ge){for(let Re=Pe;Rers(Pe,ye[Ge])),Ve=(0,se.useContext)(Gn),xe=(0,K.usePrev)(Ve),Te=Ve!==xe&&F(Ve);(0,K.useIsomorphicLayoutEffect)(()=>{ae.current++,fe.ctrls=ce.current;let{queue:Pe}=fe;Pe.length&&(fe.queue=[],(0,K.each)(Pe,Ge=>Ge())),(0,K.each)(ce.current,(Ge,Re)=>{X?.add(Ge),Te&&Ge.start({default:Ve});let $e=ye[Re];$e&&(q(Ge,$e.ref),Ge.ref?Ge.queue.push($e):Ge.start($e))})}),(0,K.useOnce)(()=>()=>{(0,K.each)(fe.ctrls,Pe=>Pe.stop(!0))});let je=Qe.map(Pe=>({...Pe}));return X?[je,X]:je}function co(M,T){let B=ie.is.fun(M),[[V],X]=Ml(1,B?M:[M],B?T||[]:T);return B||arguments.length==2?[V,X]:V}var Tp=I,Lp=()=>is(),Fp=()=>(0,Tp.useState)(Lp)[0],Ec=ct,jp=(M,T)=>{let B=(0,Ec.useConstant)(()=>new Ht(M,T));return(0,Ec.useOnce)(()=>()=>{B.stop()}),B},os=ct;function Pc(M,T,B){let V=os.is.fun(T)&&T;V&&!B&&(B=[]);let X=!0,ae,pe=Ml(M,(fe,ce)=>{let ye=V?V(fe,ce):T;return ae=ye.ref,X=X&&ye.reverse,ye},B||[{}]);if((0,os.useIsomorphicLayoutEffect)(()=>{(0,os.each)(pe[1].current,(fe,ce)=>{let ye=pe[1].current[ce+(X?1:-1)];if(q(fe,ae),fe.ref){ye&&fe.update({to:ye.springs});return}ye?fe.start({to:ye.springs}):fe.start()})},B),V||arguments.length==3){let fe=ae??pe[1];return fe._getProps=(ce,ye,Be)=>{let Ee=os.is.fun(ce)?ce(Be,ye):ce;if(Ee){let Qe=fe.current[Be+(Ee.reverse?1:-1)];return Qe&&(Ee.to=Qe.springs),Ee}},pe}return pe[0]}var Il=f(I),Ta=I,ot=ct;function ss(M,T,B){let V=ot.is.fun(T)&&T,{reset:X,sort:ae,trail:pe=0,expires:fe=!0,exitBeforeEnter:ce=!1,onDestroyed:ye,ref:Be,config:Ee}=V?V():T,Qe=(0,Ta.useMemo)(()=>V||arguments.length==3?is():void 0,[]),Ve=(0,ot.toArray)(M),xe=[],Te=(0,Ta.useRef)(null),je=X?null:Te.current;(0,ot.useIsomorphicLayoutEffect)(()=>{Te.current=xe}),(0,ot.useOnce)(()=>((0,ot.each)(xe,Ae=>{Qe?.add(Ae.ctrl),Ae.ctrl.ref=Qe}),()=>{(0,ot.each)(Te.current,Ae=>{Ae.expired&&clearTimeout(Ae.expirationId),H(Ae.ctrl,Qe),Ae.ctrl.stop(!0)})}));let Pe=Ap(Ve,V?V():T,je),Ge=X&&Te.current||[];(0,ot.useIsomorphicLayoutEffect)(()=>(0,ot.each)(Ge,({ctrl:Ae,item:Ke,key:ar})=>{H(Ae,Qe),S(ye,Ke,ar)}));let Re=[];if(je&&(0,ot.each)(je,(Ae,Ke)=>{Ae.expired?(clearTimeout(Ae.expirationId),Ge.push(Ae)):(Ke=Re[Ke]=Pe.indexOf(Ae.key),~Ke&&(xe[Ke]=Ae))}),(0,ot.each)(Ve,(Ae,Ke)=>{xe[Ke]||(xe[Ke]={key:Pe[Ke],item:Ae,phase:"mount",ctrl:new _l},xe[Ke].ctrl.item=Ae)}),Re.length){let Ae=-1,{leave:Ke}=V?V():T;(0,ot.each)(Re,(ar,ir)=>{let vt=je[ir];~ar?(Ae=xe.indexOf(vt),xe[Ae]={...vt,item:Ve[ar]}):Ke&&xe.splice(++Ae,0,vt)})}ot.is.fun(ae)&&xe.sort((Ae,Ke)=>ae(Ae.item,Ke.item));let $e=-pe,Kt=(0,ot.useForceUpdate)(),nn=C(T),tt=new Map,Tt=(0,Ta.useRef)(new Map),Mt=(0,Ta.useRef)(!1);(0,ot.each)(xe,(Ae,Ke)=>{let ar=Ae.key,ir=Ae.phase,vt=V?V():T,Et,Sr,qn=S(vt.delay||0,ar);if(ir=="mount")Et=vt.enter,Sr="enter";else{let Yr=Pe.indexOf(ar)<0;if(ir!="leave")if(Yr)Et=vt.leave,Sr="leave";else if(Et=vt.update)Sr="update";else return;else if(!Yr)Et=vt.enter,Sr="enter";else return}if(Et=S(Et,Ae.item,Ke),Et=ot.is.obj(Et)?R(Et):{to:Et},!Et.config){let Yr=Ee||nn.config;Et.config=S(Yr,Ae.item,Ke,Sr)}$e+=pe;let Cr={...nn,delay:qn+$e,ref:Be,immediate:vt.immediate,reset:!1,...Et};if(Sr=="enter"&&ot.is.und(Cr.from)){let Yr=V?V():T,Da=ot.is.und(Yr.initial)||je?Yr.from:Yr.initial;Cr.from=S(Da,Ae.item,Ke)}let{onResolve:Aa}=Cr;Cr.onResolve=Yr=>{S(Aa,Yr);let Da=Te.current,Yt=Da.find(_r=>_r.key===ar);if(Yt&&!(Yr.cancelled&&Yt.phase!="update")&&Yt.ctrl.idle){let _r=Da.every(ft=>ft.ctrl.idle);if(Yt.phase=="leave"){let ft=S(fe,Yt.item);if(ft!==!1){let za=ft===!0?0:ft;if(Yt.expired=!0,!_r&&za>0){za<=2147483647&&(Yt.expirationId=setTimeout(Kt,za));return}}}_r&&Da.some(ft=>ft.expired)&&(Tt.current.delete(Yt),ce&&(Mt.current=!0),Kt())}};let Rl=rs(Ae.ctrl,Cr);Sr==="leave"&&ce?Tt.current.set(Ae,{phase:Sr,springs:Rl,payload:Cr}):tt.set(Ae,{phase:Sr,springs:Rl,payload:Cr})});let jr=(0,Ta.useContext)(Gn),Kr=(0,ot.usePrev)(jr),Wn=jr!==Kr&&F(jr);(0,ot.useIsomorphicLayoutEffect)(()=>{Wn&&(0,ot.each)(xe,Ae=>{Ae.ctrl.start({default:jr})})},[jr]),(0,ot.each)(tt,(Ae,Ke)=>{if(Tt.current.size){let ar=xe.findIndex(ir=>ir.key===Ke.key);xe.splice(ar,1)}}),(0,ot.useIsomorphicLayoutEffect)(()=>{(0,ot.each)(Tt.current.size?Tt.current:tt,({phase:Ae,payload:Ke},ar)=>{let{ctrl:ir}=ar;ar.phase=Ae,Qe?.add(ir),Wn&&Ae=="enter"&&ir.start({default:jr}),Ke&&(q(ir,Ke.ref),(ir.ref||Qe)&&!Mt.current?ir.update(Ke):(ir.start(Ke),Mt.current&&(Mt.current=!1)))})},X?void 0:B);let nr=Ae=>Il.createElement(Il.Fragment,null,xe.map((Ke,ar)=>{let{springs:ir}=tt.get(Ke)||Ke.ctrl,vt=Ae({...ir},Ke.item,Ke,ar);return vt&&vt.type?Il.createElement(vt.type,{...vt.props,key:ot.is.str(Ke.key)||ot.is.num(Ke.key)?Ke.key:Ke.ctrl.id,ref:vt.ref}):vt}));return Qe?[nr,Qe]:nr}var Nl=1;function Ap(M,{key:T,keys:B=T},V){if(B===null){let X=new Set;return M.map(ae=>{let pe=V&&V.find(fe=>fe.item===ae&&fe.phase!=="leave"&&!X.has(fe));return pe?(X.add(pe),pe.key):Nl++})}return ot.is.und(B)?M:ot.is.fun(B)?M.map(B):(0,ot.toArray)(B)}var ho=ct,di=({container:M,...T}={})=>{let[B,V]=co(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...T}),[]);return(0,ho.useIsomorphicLayoutEffect)(()=>{let X=(0,ho.onScroll)(({x:ae,y:pe})=>{V.start({scrollX:ae.current,scrollXProgress:ae.progress,scrollY:pe.current,scrollYProgress:pe.progress})},{container:M?.current||void 0});return()=>{(0,ho.each)(Object.values(B),ae=>ae.stop()),X()}},[]),B},Mn=ct,xt=({container:M,...T})=>{let[B,V]=co(()=>({width:0,height:0,...T}),[]);return(0,Mn.useIsomorphicLayoutEffect)(()=>{let X=(0,Mn.onResize)(({width:ae,height:pe})=>{V.start({width:ae,height:pe,immediate:B.width.get()===0||B.height.get()===0})},{container:M?.current||void 0});return()=>{(0,Mn.each)(Object.values(B),ae=>ae.stop()),X()}},[]),B},yt=I,In=ct,vr={any:0,all:1};function Lr(M,T){let[B,V]=(0,yt.useState)(!1),X=(0,yt.useRef)(),ae=In.is.fun(M)&&M,pe=ae?ae():{},{to:fe={},from:ce={},...ye}=pe,Be=ae?T:M,[Ee,Qe]=co(()=>({from:ce,...ye}),[]);return(0,In.useIsomorphicLayoutEffect)(()=>{let Ve=X.current,{root:xe,once:Te,amount:je="any",...Pe}=Be??{};if(!Ve||Te&&B||typeof IntersectionObserver>"u")return;let Ge=new WeakMap,Re=()=>(fe&&Qe.start(fe),V(!0),Te?void 0:()=>{ce&&Qe.start(ce),V(!1)}),$e=nn=>{nn.forEach(tt=>{let Tt=Ge.get(tt.target);if(tt.isIntersecting!==!!Tt)if(tt.isIntersecting){let Mt=Re();In.is.fun(Mt)?Ge.set(tt.target,Mt):Kt.unobserve(tt.target)}else Tt&&(Tt(),Ge.delete(tt.target))})},Kt=new IntersectionObserver($e,{root:xe&&xe.current||void 0,threshold:typeof je=="number"||Array.isArray(je)?je:vr[je],...Pe});return Kt.observe(Ve),()=>Kt.unobserve(Ve)},[Be]),ae?[X,Ee]:[X,B]}function La({children:M,...T}){return M(co(T))}var hi=ct;function Fr({items:M,children:T,...B}){let V=Pc(M.length,B);return M.map((X,ae)=>{let pe=T(X,ae);return hi.is.fun(pe)?pe(V[ae]):pe})}function ls({items:M,children:T,...B}){return ss(M,B)(T)}var Mc=ct,Rt=ct,da=gc,fo=class extends mr{constructor(M,T){super(),this.source=M,this.idle=!0,this._active=new Set,this.calc=(0,Rt.createInterpolator)(...T);let B=this._get(),V=(0,da.getAnimatedType)(B);(0,da.setAnimated)(this,V.create(B))}advance(M){let T=this._get(),B=this.get();(0,Rt.isEqual)(T,B)||((0,da.getAnimated)(this).setValue(T),this._onChange(T,this.idle)),!this.idle&&Ic(this._active)&&Ol(this)}_get(){let M=Rt.is.arr(this.source)?this.source.map(Rt.getFluidValue):(0,Rt.toArray)((0,Rt.getFluidValue)(this.source));return this.calc(...M)}_start(){this.idle&&!Ic(this._active)&&(this.idle=!1,(0,Rt.each)((0,da.getPayload)(this),M=>{M.done=!1}),Rt.Globals.skipAnimation?(Rt.raf.batchedUpdates(()=>this.advance()),Ol(this)):Rt.frameLoop.start(this))}_attach(){let M=1;(0,Rt.each)((0,Rt.toArray)(this.source),T=>{(0,Rt.hasFluidValue)(T)&&(0,Rt.addFluidObserver)(T,this),Jt(T)&&(T.idle||this._active.add(T),M=Math.max(M,T.priority+1))}),this.priority=M,this._start()}_detach(){(0,Rt.each)((0,Rt.toArray)(this.source),M=>{(0,Rt.hasFluidValue)(M)&&(0,Rt.removeFluidObserver)(M,this)}),this._active.clear(),Ol(this)}eventObserved(M){M.type=="change"?M.idle?this.advance():(this._active.add(M.parent),this._start()):M.type=="idle"?this._active.delete(M.parent):M.type=="priority"&&(this.priority=(0,Rt.toArray)(this.source).reduce((T,B)=>Math.max(T,(Jt(B)?B.priority:0)+1),0))}};function pn(M){return M.idle!==!1}function Ic(M){return!M.size||Array.from(M).every(pn)}function Ol(M){M.idle||(M.idle=!0,(0,Rt.each)((0,da.getPayload)(M),T=>{T.done=!0}),(0,Rt.callFluidObservers)(M,{type:"idle",parent:M}))}var Dp=(M,...T)=>new fo(M,T),us=(M,...T)=>((0,Mc.deprecateInterpolate)(),new fo(M,T)),Fa=ct;Fa.Globals.assign({createStringInterpolator:Fa.createStringInterpolator,to:(M,T)=>new fo(M,T)});var po=Fa.frameLoop.advance,ja=ct;d(v,Hj(),t.exports)})(D4);var Kj=D4.exports;A4.exports=Kj;var V8=A4.exports;(function(t){var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i=(K,z)=>{for(var ee in z)e(K,ee,{get:z[ee],enumerable:!0})},s=(K,z,ee,Q)=>{if(z&&typeof z=="object"||typeof z=="function")for(let oe of n(z))!a.call(K,oe)&&oe!==ee&&e(K,oe,{get:()=>z[oe],enumerable:!(Q=r(z,oe))||Q.enumerable});return K},u=(K,z,ee)=>(s(K,z,"default"),ee&&s(ee,z,"default")),c=K=>s(e({},"__esModule",{value:!0}),K),d={};i(d,{a:()=>se,animated:()=>se}),t.exports=c(d);var f=V8,m=Oh,v=ct,y=gc,b=/^--/;function S(K,z){return z==null||typeof z=="boolean"||z===""?"":typeof z=="number"&&z!==0&&!b.test(K)&&!(k.hasOwnProperty(K)&&k[K])?z+"px":(""+z).trim()}var E={};function x(K,z){if(!K.nodeType||!K.setAttribute)return!1;let ee=K.nodeName==="filter"||K.parentNode&&K.parentNode.nodeName==="filter",{style:Q,children:oe,scrollTop:he,scrollLeft:Ce,viewBox:ge,...Me}=z,Ne=Object.values(Me),$=Object.keys(Me).map(re=>ee||K.hasAttribute(re)?re:E[re]||(E[re]=re.replace(/([A-Z])/g,le=>"-"+le.toLowerCase())));oe!==void 0&&(K.textContent=oe);for(let re in Q)if(Q.hasOwnProperty(re)){let le=S(re,Q[re]);b.test(re)?K.style.setProperty(re,le):K.style[re]=le}$.forEach((re,le)=>{K.setAttribute(re,Ne[le])}),he!==void 0&&(K.scrollTop=he),Ce!==void 0&&(K.scrollLeft=Ce),ge!==void 0&&K.setAttribute("viewBox",ge)}var k={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=(K,z)=>K+z.charAt(0).toUpperCase()+z.substring(1),C=["Webkit","Ms","Moz","O"];k=Object.keys(k).reduce((K,z)=>(C.forEach(ee=>K[g(ee,z)]=K[z]),K),k);var N=gc,O=ct,D=/^(matrix|translate|scale|rotate|skew)/,R=/^(translate)/,A=/^(rotate|skew)/,F=(K,z)=>O.is.num(K)&&K!==0?K+z:K,U=(K,z)=>O.is.arr(K)?K.every(ee=>U(ee,z)):O.is.num(K)?K===z:parseFloat(K)===z,H=class extends N.AnimatedObject{constructor({x:K,y:z,z:ee,...Q}){let oe=[],he=[];(K||z||ee)&&(oe.push([K||0,z||0,ee||0]),he.push(Ce=>[`translate3d(${Ce.map(ge=>F(ge,"px")).join(",")})`,U(Ce,0)])),(0,O.eachProp)(Q,(Ce,ge)=>{if(ge==="transform")oe.push([Ce||""]),he.push(Me=>[Me,Me===""]);else if(D.test(ge)){if(delete Q[ge],O.is.und(Ce))return;let Me=R.test(ge)?"px":A.test(ge)?"deg":"";oe.push((0,O.toArray)(Ce)),he.push(ge==="rotate3d"?([Ne,$,re,le])=>[`rotate3d(${Ne},${$},${re},${F(le,Me)})`,U(le,0)]:Ne=>[`${ge}(${Ne.map($=>F($,Me)).join(",")})`,U(Ne,ge.startsWith("scale")?1:0)])}}),oe.length&&(Q.transform=new q(oe,he)),super(Q)}},q=class extends O.FluidValue{constructor(K,z){super(),this.inputs=K,this.transforms=z,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let K="",z=!0;return(0,O.each)(this.inputs,(ee,Q)=>{let oe=(0,O.getFluidValue)(ee[0]),[he,Ce]=this.transforms[Q](O.is.arr(oe)?oe:ee.map(O.getFluidValue));K+=" "+he,z=z&&Ce}),z?"none":K}observerAdded(K){K==1&&(0,O.each)(this.inputs,z=>(0,O.each)(z,ee=>(0,O.hasFluidValue)(ee)&&(0,O.addFluidObserver)(ee,this)))}observerRemoved(K){K==0&&(0,O.each)(this.inputs,z=>(0,O.each)(z,ee=>(0,O.hasFluidValue)(ee)&&(0,O.removeFluidObserver)(ee,this)))}eventObserved(K){K.type=="change"&&(this._value=null),(0,O.callFluidObservers)(this,K)}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];u(d,V8,t.exports),f.Globals.assign({batchedUpdates:m.unstable_batchedUpdates,createStringInterpolator:v.createStringInterpolator,colors:v.colors});var ie=(0,y.createHost)(ne,{applyAnimatedValues:x,createAnimatedStyle:K=>new H(K),getComponentProps:({scrollTop:K,scrollLeft:z,...ee})=>ee}),se=ie.animated})(j4);var Yj=j4.exports;F4.exports=Yj;var Qj=F4.exports;const{useState:Zj,useEffect:Xj}=I;function Jj(){const[t,e]=Zj({width:void 0,height:void 0});return Xj(()=>{function r(){e({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",r),r(),()=>window.removeEventListener("resize",r)},[]),t}var eA=Jj;const wl=I,{useSpring:tA,animated:rA}=Qj,nA=eA,ao={maxTilt:25,rotationPower:50,swipeThreshold:.5},Cy={touchResponsive:{friction:50,tension:2e3},animateOut:{friction:30,tension:400},animateBack:{friction:10,tension:200}},G8=(t,e)=>Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),aA=t=>{const e=Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2));return{x:t.x/e,y:t.y/e}},mc=async(t,e,r,n)=>{const a=G8(r,n),i=G8(t.x,t.y),s=a*t.x,u=a*t.y,c=t.x*45,d=a/i;return e.start({xyrot:[s,u,c],config:{duration:d}}),await new Promise(f=>setTimeout(()=>{f()},d))},W8=t=>new Promise(e=>{t.start({xyrot:[0,0,0],config:Cy.animateBack,onRest:e})}),q8=t=>{if(Math.abs(t.x)>Math.abs(t.y)){if(t.x>ao.swipeThreshold)return"right";if(t.x<-ao.swipeThreshold)return"left"}else{if(t.y>ao.swipeThreshold)return"down";if(t.y<-ao.swipeThreshold)return"up"}return"none"},iA=rA.div,oA=wl.forwardRef(({flickOnSwipe:t=!0,children:e,onSwipe:r,onCardLeftScreen:n,className:a,preventSwipe:i=[],swipeRequirementType:s="velocity",swipeThreshold:u=ao.swipeThreshold,onSwipeRequirementFulfilled:c,onSwipeRequirementUnfulfilled:d},f)=>{const{width:m,height:v}=nA(),[{xyrot:y},b]=tA(()=>({xyrot:[0,0,0],config:Cy.touchResponsive}));ao.swipeThreshold=u,wl.useImperativeHandle(f,()=>({async swipe(g="right"){r&&r(g);const C=1.3,N=(Math.random()-.5)/2;g==="right"?await mc({x:C,y:N},b,m,v):g==="left"?await mc({x:-C,y:N},b,m,v):g==="up"?await mc({x:N,y:-C},b,m,v):g==="down"&&await mc({x:N,y:C},b,m,v),n&&n(g)},async restoreCard(){await W8(b)}}));const S=wl.useCallback(async(g,C)=>{const N=q8({x:s==="velocity"?C.vx:C.dx,y:s==="velocity"?C.vy:C.dy});if(N!=="none"&&t&&!i.includes(N)){r&&r(N),await mc(s==="velocity"?{x:C.vx,y:C.vy}:aA({x:C.dx,y:C.dy}),g,m,v),n&&n(N);return}W8(g)},[s,t,i,r,n,m,v]);let E="none";const x=(g,C,N,O)=>{let D=O?g.touches[0].clientX-C.x:g.clientX-C.x,R=O?g.touches[0].clientY-C.y:g.clientY-C.y;C.x===0&&C.y===0&&(D=0,R=0);const A=-(D-N.dx)/(N.timeStamp-Date.now()),F=-(R-N.dy)/(N.timeStamp-Date.now());return{dx:D,dy:R,vx:A,vy:F,timeStamp:Date.now()}};wl.useLayoutEffect(()=>{let g={x:0,y:0},C={dx:0,dy:0,vx:0,vy:0,timeStamp:Date.now()},N=!1;const O=q=>{!q.srcElement.className.includes("pressable")&&q.cancelable&&q.preventDefault(),C=x(q,g,C,!0),g={x:q.touches[0].clientX,y:q.touches[0].clientY}};k.current.addEventListener("touchstart",O);const D=q=>{N=!0,C=x(q,g,C,!1),g={x:q.clientX,y:q.clientY}};k.current.addEventListener("mousedown",D);const R=q=>{if(c||d){const ie=q8({x:s==="velocity"?q.vx:q.dx,y:s==="velocity"?q.vy:q.dy});ie!==E&&(E=ie,E==="none"?d&&d():c&&c(ie))}let ne=q.vx*15;isNaN(ne)&&(ne=0),ne=Math.max(Math.min(ne,ao.maxTilt),-ao.maxTilt),b.start({xyrot:[q.dx,q.dy,ne],config:Cy.touchResponsive})},A=q=>{if(!N)return;const ne=x(q,g,C,!1);C=ne,R(ne)};window.addEventListener("mousemove",A);const F=q=>{N&&(N=!1,S(b,C),g={x:0,y:0},C={dx:0,dy:0,vx:0,vy:0,timeStamp:Date.now()})};window.addEventListener("mouseup",F);const U=q=>{const ne=x(q,g,C,!0);C=ne,R(ne)};k.current.addEventListener("touchmove",U);const H=q=>{S(b,C),g={x:0,y:0},C={dx:0,dy:0,vx:0,vy:0,timeStamp:Date.now()}};return k.current.addEventListener("touchend",H),()=>{k.current.removeEventListener("touchstart",O),k.current.removeEventListener("touchmove",U),k.current.removeEventListener("touchend",H),window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",F),k.current.removeEventListener("mousedown",D)}},[S,b,c,d]);const k=wl.useRef();return wl.createElement(iA,{ref:k,className:a,style:{transform:y.to((g,C,N)=>`translate3d(${g}px, ${C}px, 0px) rotate(${N}deg)`)},children:e})});var sA=oA;const lA=Ga(sA);function _n(t){return e=>typeof e=="string"&&new RegExp(t.source,t.flags).test(e)}const uA=_n(/^[1-9][0-9]*$/),_y=_n(/^((Q|P|L|M)[1-9][0-9]*|L[1-9][0-9]*-(F|S)[1-9][0-9]*)$/),cA=_n(/^E[1-9][0-9]*$/),xp=_n(/^Q[1-9][0-9]*$/),Sp=_n(/^P[1-9][0-9]*$/),H8=_n(/^L[1-9][0-9]*$/),K8=_n(/^L[1-9][0-9]*-F[1-9][0-9]*$/),Y8=_n(/^L[1-9][0-9]*-S[1-9][0-9]*$/),dA=_n(/^M[1-9][0-9]*$/),hA=_n(/^((Q|P|L|M)[1-9][0-9]*|L[1-9][0-9]*-(F|S)[1-9][0-9]*)\$[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),fA=_n(/^[0-9a-f]{40}$/),Q8=_n(/^\d+$/),Z8=_n(/^(Q|P|L|M)[1-9][0-9]*$/);function pA(t){if(typeof t!="string")return!1;const[e,r]=t.split("#");return _y(e)&&Sp(r)}function X8(t){return typeof t!="string"?!1:t.startsWith("Item:")?xp(t.substring(5)):t.startsWith("Lexeme:")?H8(t.substring(7)):t.startsWith("Property:")?Sp(t.substring(9)):xp(t)}function gA(t){if(!Z8(t))throw new Error(`invalid entity id: ${t}`);return t.replace(/^(Q|P|L|M)/,"")}function mA(t,e){let r=`https://commons.wikimedia.org/wiki/Special:FilePath/${t}`;return typeof e=="number"&&(r+=`?width=${e}`),r}function vA(t){const e=t.split(/[$-]/);if(e.length===6)return e[0].toUpperCase();if(e.length===7)return e.slice(0,2).join("-").toUpperCase();throw new Error(`invalid guid: ${t}`)}const yA=Object.freeze(Object.defineProperty({__proto__:null,getEntityIdFromGuid:vA,getImageUrl:mA,getNumericId:gA,isEntityId:_y,isEntityPageTitle:X8,isEntitySchemaId:cA,isFormId:K8,isGuid:hA,isHash:fA,isItemId:xp,isLexemeId:H8,isMediaInfoId:dA,isNonNestedEntityId:Z8,isNumericId:uA,isPropertyClaimsId:pA,isPropertyId:Sp,isRevisionId:Q8,isSenseId:Y8},Symbol.toStringTag,{value:"Module"}));function Pa(t){return typeof t=="string"?[t]:Array.isArray(t)?[...t]:[]}function J8(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}const e6=t=>encodeURIComponent(t).replace(/[!'()*]/g,kA),bA=t=>t.replace(/\s/g,"_");function wA(t){return Array.from(new Set(t))}const kA=t=>"%"+t.charCodeAt(0).toString(16);function io(t){if(t.length!==1||!J8(t[0]))throw new Error(`Since wikibase-sdk v9.0.0, this function expects arguments to be passed in an object +***************************************************************************** */var Jv=function(t,e){return Jv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Jv(t,e)};function P4(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Jv(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var la=function(){return la=Object.assign||function(t){for(var e,r=1,n=arguments.length;rMath.PI?a-2*Math.PI:a)}return e.filter(function(i,s,u){return u.indexOf(i)===s})};function lF(t,e,r,n){n===void 0&&(n=!0);var a=new Image;a.crossOrigin="Anonymous";var i=document.createElement("canvas"),s=i.getContext("2d");if(!s)return r(new Error("CTX is null"),i);a.onerror=function(){r(new Error("Failed to load image"),i)},a.onload=function(){try{if(i.width=a.naturalWidth+2,i.height=a.naturalHeight+2,s.drawImage(a,0,0),e.length<3){r(null,i);return}if(s.beginPath(),s.moveTo(0,0),s.lineTo(i.width,0),s.lineTo(i.width,i.height),s.lineTo(0,i.height),s.lineTo(0,0),s.lineTo(e[0].x+1,e[0].y+1),e.slice(1).forEach(function(g){var C=g.x,N=g.y;return s.lineTo(C+1,N+1)}),s.lineTo(e[0].x+1,e[0].y+1),s.lineTo(0,0),s.closePath(),s.clip("evenodd"),s.globalCompositeOperation="destination-out",s.fill(),n){var u=e.map(function(g){var C=g.x;return C+1}),c=e.map(function(g){var C=g.y;return C+1}),d=[Math.min.apply(null,u),Math.min.apply(null,c)],f=d[0],m=d[1],v=[Math.max.apply(null,u),Math.max.apply(null,c)],y=v[0],b=v[1],S=[y-f,b-m],E=S[0],x=S[1],k=s.getImageData(f,m,E,x);i.width=E,i.height=x,s.putImageData(k,0,0)}r(null,i)}catch(g){r(g instanceof Error?g:new Error(String(g)),i)}},a.src=t}var O4=function(){function t(e){this.getSvgElement=e}return t.prototype.getSvg=function(){var e=this.getSvgElement();if(!e)throw new Error("SVG is null");return e},t.prototype.getCTM=function(){var e=this.getSvg(),r=e.getCTM();if(r===null){var n=e.querySelector('rect[visibility="hidden"]');r=n.getCTM()}if(!r)throw new Error("CTM is null");return r},t.prototype.getViewboxSize=function(){return this.getSvg().viewBox.baseVal},t.prototype.getRealSize=function(){var e=this.getSvg();return{width:e.clientWidth,height:e.clientHeight}},t.prototype.getViewboxOffset=function(){var e=this.getSvg(),r=this.getRealSize(),n=r.width,a=r.height,i=this.getViewboxSize(),s=i.width,u=i.height,c=Object.assign(e.createSVGPoint(),{x:n,y:a}),d=this.getCTM(),f=c.matrixTransform(d.inverse()),m=f.x,v=f.y;return{x:m-s,y:v-u}},t.prototype.convertViewboxPointsToReal=function(e){var r=this.getSvg(),n=this.getCTM();return e.map(function(a){var i=a.x,s=a.y,u=Object.assign(r.createSVGPoint(),{x:i,y:s}).matrixTransform(n);return Qo(u)})},t.prototype.convertRealPointsToViewbox=function(e){var r=this.getSvg(),n=this.getCTM().inverse();return e.map(function(a){var i=a.x,s=a.y,u=Object.assign(r.createSVGPoint(),{x:i,y:s}).matrixTransform(n);return Qo(u,1e3)})},t.prototype.getBorderPoints=function(e){e===void 0&&(e=!0);var r=this.getViewboxSize(),n=r.width,a=r.height,i=this.getViewboxOffset(),s=i.x,u=i.y,c=[{x:-s,y:-u},{x:n+s,y:-u},{x:n+s,y:a+u},{x:-s,y:a+u}];return e&&c.push({x:-s,y:-u}),c},t.prototype.isAboveTheBorder=function(e){var r=e.x,n=e.y,a=this.getViewboxSize(),i=a.width,s=a.height,u=this.getViewboxOffset(),c=u.x,d=u.y;return r<-c||r>i+c||n<-d||n>s+d},t.prototype.getMouseCoordinates=function(e){var r=e,n=r.changedTouches&&r.touches?r.changedTouches[0]||r.touches[0]:r,a=n.clientX,i=n.clientY,s=this.getSvg(),u=s.getScreenCTM();if(!u)throw new Error("ScreenCTM is null");var c=s.createSVGPoint();c.x=a,c.y=i;var d=c.matrixTransform(u.inverse()),f=d.x,m=d.y;return{x:f,y:m}},t}(),R4=function(t){return function(e){P4(r,e);function r(){var n=e!==null&&e.apply(this,arguments)||this;return n.ref=j.createRef(),n.svg=new O4(function(){var a,i;return(i=(a=n.ref)===null||a===void 0?void 0:a.current)===null||i===void 0?void 0:i.ownerSVGElement}),n.dragLastPosition=null,n.wasMoved=!1,n.onMouseTouchDown=function(a){if(a.target===n.ref.current&&n.props.draggable){a.stopImmediatePropagation(),a.preventDefault();var i=a.target;n.dragLastPosition=n.getMousePosition(a),i.ownerSVGElement&&i.ownerSVGElement.focus({preventScroll:!0})}},n.onMouseTouchMove=function(a){if(n.dragLastPosition){a.stopImmediatePropagation(),a.preventDefault();var i=n.getMousePosition(a),s=i.x,u=i.y,c=s-n.dragLastPosition.x,d=u-n.dragLastPosition.y;!n.wasMoved&&n.props.onDragStart&&n.props.onDragStart({x:n.dragLastPosition.x,y:n.dragLastPosition.y,dx:c,dy:d}),n.props.onDrag&&n.props.onDrag({dx:c,dy:d}),n.dragLastPosition={x:s,y:u},n.wasMoved=!0}},n.onMouseTouchUp=function(a){n.dragLastPosition&&n.wasMoved&&(a.stopImmediatePropagation(),a.preventDefault(),(a instanceof MouseEvent||!a.touches)&&window.addEventListener("click",function(i){return i.stopPropagation()},{capture:!0,once:!0}),n.props.onDragEnd&&n.props.onDragEnd({x:n.dragLastPosition.x,y:n.dragLastPosition.y})),n.dragLastPosition=null,n.wasMoved=!1},n}return r.prototype.render=function(){var n=this.props,a=n.draggable;n.onDrag,n.onDragStart,n.onDragEnd;var i=M4(n,["draggable","onDrag","onDragStart","onDragEnd"]);return j.createElement(t,la({ref:this.ref},i,{draggable:a}))},r.prototype.componentDidUpdate=function(n){n.draggable&&!this.props.draggable&&this.dragLastPosition&&this.wasMoved&&(this.props.onDragEnd&&this.props.onDragEnd({x:this.dragLastPosition.x,y:this.dragLastPosition.y}),this.dragLastPosition=null,this.wasMoved=!1)},r.prototype.componentDidMount=function(){window.addEventListener("mousedown",this.onMouseTouchDown,!0),window.addEventListener("mousemove",this.onMouseTouchMove,!0),window.addEventListener("mouseup",this.onMouseTouchUp,!0),window.addEventListener("touchstart",this.onMouseTouchDown,!0),window.addEventListener("touchmove",this.onMouseTouchMove,!0),window.addEventListener("touchend",this.onMouseTouchUp,!0)},r.prototype.componentWillUnmount=function(){window.removeEventListener("mousedown",this.onMouseTouchDown),window.removeEventListener("mousemove",this.onMouseTouchMove),window.removeEventListener("mouseup",this.onMouseTouchUp),window.removeEventListener("touchstart",this.onMouseTouchDown),window.removeEventListener("touchmove",this.onMouseTouchMove),window.removeEventListener("touchend",this.onMouseTouchUp)},r.prototype.getMousePosition=function(n){var a=n;return this.svg.getMouseCoordinates(a)},r}(j.Component)},uF=R4(j.forwardRef(function(t,e){var r=t.path,n=t.animate,a=t.draggable;return j.createElement("polyline",{ref:e,style:{cursor:a?"move":""},points:r.map(function(i){var s=i.x,u=i.y;return s+","+u}).join(" "),fill:"rgba(0,0,0,0)",stroke:"white",strokeWidth:"1.5",shapeRendering:"geometricPrecision",strokeDasharray:"3",strokeDashoffset:"0",vectorEffect:"non-scaling-stroke"},n&&j.createElement("animate",{attributeName:"stroke-dashoffset",values:"0;1000;0",dur:"100s",repeatCount:"indefinite"}))}));function cF(t){var e=t.path;return j.createElement("polygon",{style:{pointerEvents:"none",transform:"translate(-1px, -1px)"},points:e.map(function(r){var n=r.x,a=r.y;return n+","+a}).join(" "),fill:"rgba(0, 0, 0, 0.5)",fillRule:"evenodd",stroke:"null",shapeRendering:"geometricPrecision"})}var dF=R4(j.forwardRef(function(t,e){var r=t.x,n=t.y,a=t.onClickTouchEvent,i=t.draggable,s=t.style,u=s.cursor,c=u===void 0?i?"move":"default":u,d=M4(s,["cursor"]);return j.createElement("rect",{style:la({cursor:c},d),ref:e,x:r-10,y:n-10,onClick:function(f){f.stopPropagation(),f.preventDefault(),a(f)},onTouchEnd:function(f){f.stopPropagation(),f.preventDefault(),a(f)},width:"20px",height:"20",fill:"rgba(0, 0, 0, 0)",stroke:"white",strokeWidth:"1.25",vectorEffect:"non-scaling-stroke"})})),pr;(function(t){t.ADD="ADD",t.DELETE="DELETE",t.MODIFY="MODIFY",t.MOVE="MOVE",t.RESET="RESET",t.CHANGE="CHANGE"})(pr||(pr={}));function hF(t,e){var r=t.points.length;switch(e.type){case pr.ADD:{if(t.closed)return[t,!1];if(r>0&&rp(t.points[r-1],e.payload)||r>1&&rp(t.points[r-2],e.payload))return[t,!1];var n=r>2&&rp(t.points[0],e.payload);return n?[{points:Yo([],t.points),closed:!0},!0]:[{points:Yo(Yo([],t.points,!0),[e.payload]),closed:!1},!0]}case pr.DELETE:return[{points:Yo([],t.points.filter(function(d,f){return e.payload!==f})),closed:r>4&&t.closed},!0];case pr.MODIFY:{var a=t.points[e.payload.index],i=a.x,s=a.y,u=t.points.map(function(d){var f=d.x,m=d.y;return f===i&&m===s?{x:e.payload.x,y:e.payload.y}:{x:f,y:m}});return[{points:u,closed:t.closed},!!(e.payload.x||e.payload.y)]}case pr.MOVE:return[{points:t.points.map(function(d){var f=d.x,m=d.y;return{x:f+e.payload.x,y:m+e.payload.y}}),closed:t.closed},!!(e.payload.x||e.payload.y)];case pr.CHANGE:{var c=!np(e.payload,t.points);return[{points:e.payload,closed:c?e.payload.length>2:t.closed},c]}case pr.RESET:return[{points:[],closed:!1},!!t.points.length];default:return[t,!1]}}var fF=function(t){P4(e,t);function e(r){var n=t.call(this,r)||this;return n.imageRef=j.createRef(),n.svgRef=j.createRef(),n.svg=new O4(function(){var a;return(a=n.svgRef)===null||a===void 0?void 0:a.current}),n.angles=[],n.path={points:[],closed:!1},n.lastEmittedPoints=[],n.lastUpdatedPoints=[],n.imgError=!1,n.setPathFromPropsOnMediaLoad=!0,n.hidePointer=function(){var a=n.path.points[n.path.points.length-1]||{x:0,y:0};n.setPointer(la({},a),!0)},n.onShapeDrag=function(a){var i=a.dx,s=a.dy,u=n.path.points.map(function(c){var d=c.x,f=c.y;return{x:d+i,y:f+s}});u.some(function(c){return n.svg.isAboveTheBorder(c)})||n.dispatchPathAction({type:pr.MOVE,payload:{x:i,y:s}})},n.onPointDrag=function(a,i){var s=i.dx,u=i.dy,c=la({},n.path.points[a]);c.x+=s,c.y+=u,n.svg.isAboveTheBorder(c)||n.dispatchPathAction({type:pr.MODIFY,payload:la(la({},c),{index:a})})},n.onPointClick=function(a){n.isLoaded()&&!n.props.disabled&&!n.path.closed&&n.dispatchPathAction({type:pr.ADD,payload:n.path.points[a]})},n.onDragEnd=function(){n.checkIfPathUpdated(!1)},n.onMediaLoaded=function(a){n.setPathFromPropsOnMediaLoad&&(n.setPathStateFromProps(),n.setPathFromPropsOnMediaLoad=!1),n.imgError=!1,n.props.onImageLoad(a)},n.onMediaError=function(a){n.dispatchPathAction({type:pr.RESET}),n.imgError=!0,n.props.onImageError(a)},n.onClickTouchEvent=function(a){if(n.isLoaded()&&!n.props.disabled){if(n.path.closed){a.target===n.svgRef.current&&n.dispatchPathAction({type:pr.RESET});return}var i=n.getMousePosition(a)[0];n.svg.isAboveTheBorder(i)?n.hidePointer():n.dispatchPathAction({type:pr.ADD,payload:Qo(i,1e3),pointer:i})}},n.onClick=function(a){n.onClickTouchEvent(a)},n.onTouchEnd=function(a){a.cancelable&&(a.preventDefault(),n.onClickTouchEvent(a)),n.hidePointer()},n.onMouseTouchMove=function(a){if(n.isLoaded()){var i=n.getMousePosition(a)[0];n.setPointer(i)}},n.onContextMenu=function(a){if(n.isLoaded()&&(a.preventDefault(),!n.props.disabled&&!n.path.closed)){var i=n.getMousePosition(a),s=i[0],u=i[1].index;u>-1?n.dispatchPathAction({type:pr.DELETE,payload:u,pointer:s}):n.setPointer(s)}},n.state={path:{points:[],closed:!1},pointer:{x:r.viewBox.width/2,y:r.viewBox.width/2}},n}return e.prototype.render=function(){var r=this;return j.createElement("div",{className:nF({ReactFreeSelect__Component:!0,ReactFreeSelect__Closed:this.state.path.closed,ReactFreeSelect__Disabled:this.props.disabled}),style:la({display:"inline-block",position:"relative",margin:"0",padding:"0",fontSize:"0",cursor:this.props.disabled?"not-allowed":"default"},this.props.style)},j.createElement("img",{ref:this.imageRef,src:this.props.src,alt:this.props.imageAlt,crossOrigin:this.props.crossOrigin,style:this.props.imageStyle,onLoad:this.onMediaLoaded,onError:this.onMediaError}),j.createElement("svg",{ref:this.svgRef,style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden",userSelect:"none",touchAction:"none"},viewBox:"0 0 "+this.props.viewBox.width+" "+this.props.viewBox.height,onMouseMove:this.onMouseTouchMove,onTouchMove:this.onMouseTouchMove,onClick:this.onClick,onTouchEnd:this.onTouchEnd,onContextMenu:this.onContextMenu,onMouseLeave:this.hidePointer},j.createElement("rect",{visibility:"hidden"}),!!this.state.path.points.length&&j.createElement(cF,{path:this.getPolygonPoints()}),j.createElement(uF,{draggable:this.state.path.closed&&!this.props.disabled,onDrag:this.onShapeDrag,onDragEnd:this.onDragEnd,animate:!this.props.disabled,path:this.getPolylinePoints()}),this.getRoundedPoints().map(function(n,a){var i=n.x,s=n.y;return j.createElement(dF,{key:a,x:i,y:s,draggable:!r.props.disabled,style:{cursor:!a&&r.state.path.points.length>2&&!r.state.path.closed?"pointer":void 0},onDrag:function(u){var c=u.dx,d=u.dy;return r.onPointDrag(a,{dx:c,dy:d})},onDragEnd:r.onDragEnd,onClickTouchEvent:function(){return r.onPointClick(a)}})})))},e.prototype.componentDidUpdate=function(r){!r.disabled&&this.props.disabled&&!this.path.closed&&this.hidePointer(),r.src&&r.src!==this.props.src?this.dispatchPathAction({type:pr.RESET}):np(r.value,this.props.value)||(this.isLoaded()?this.setPathStateFromProps():this.setPathFromPropsOnMediaLoad=!0)},e.prototype.convertPoints=function(r){var n=this.getAspectRatio();return this.svg.convertViewboxPointsToReal(r).map(function(a){var i=a.x,s=a.y;return{x:Math.round(i/n.x),y:Math.round(s/n.y)}})},e.prototype.checkIfPathUpdated=function(r){if(this.path.closed||r){var n=this.convertPoints(this.path.points);np(n,this.lastUpdatedPoints)||(this.emitOnComplete(n),this.lastUpdatedPoints=n.map(function(a){var i=a.x,s=a.y;return{x:i,y:s}}))}},e.prototype.emitOnChange=function(r){var n=r.points;if(this.props.onChange){var a=this.convertPoints(n);this.lastEmittedPoints=a,this.props.onChange(a)}},e.prototype.emitOnComplete=function(r){this.props.onComplete&&this.props.onComplete(r)},e.prototype.setPointer=function(r,n){var a=r.x,i=r.y;n===void 0&&(n=!1),(n||!this.props.disabled)&&this.setState({path:this.path,pointer:{x:a,y:i}})},e.prototype.dispatchPathAction=function(r){var n=this.path.closed,a=hF(this.path,r),i=a[0],s=a[1];i.points=i.points.map(function(u){return Qo(u,1e3)}),s&&(this.path=i,this.setState({pointer:r.pointer||this.path.points[this.path.points.length-1]||{x:0,y:0},path:i}),this.angles=sF(i.points),this.emitOnChange(i),[pr.MODIFY,pr.MOVE].includes(r.type)||this.checkIfPathUpdated(n))},e.prototype.isLoaded=function(){if(this.imgError||!this.svgRef.current)return!1;var r=this.svgRef.current;return!!(r.width.baseVal.value&&r.height.baseVal.value)},e.prototype.getAspectRatio=function(){return this.imageRef.current?{x:this.imageRef.current.clientWidth/this.imageRef.current.naturalWidth,y:this.imageRef.current.clientHeight/this.imageRef.current.naturalHeight}:{x:NaN,y:NaN}},e.prototype.setPathStateFromProps=function(){if(!np(this.lastEmittedPoints,this.props.value)){var r=this.getAspectRatio(),n=this.svg.convertRealPointsToViewbox(this.props.value.map(function(a){var i=a.x,s=a.y;return{x:i*r.x,y:s*r.y}}));this.dispatchPathAction({type:pr.CHANGE,payload:n})}},e.prototype.getRoundedPoints=function(){return this.state.path.points.map(function(r){return Qo(r)})},e.prototype.getBorder=function(){return this.svg.getBorderPoints().map(function(r){return Qo(r)}).map(function(r){var n=r.x,a=r.y;return{x:n-1,y:a+1}})},e.prototype.getPolygonPoints=function(){var r=this.getRoundedPoints(),n=this.getBorder();return this.state.path.closed?Yo(Yo(Yo([],n,!0),r,!0),[r[0],n[0]]):n},e.prototype.getPolylinePoints=function(){var r=this.getRoundedPoints();return r.concat(this.state.path.closed?r[0]:Qo(this.state.pointer))},e.prototype.getMousePosition=function(r,n,a){n===void 0&&(n=!0),a===void 0&&(a=!0);var i=this.svg.getMouseCoordinates(r);if(a){var s=navigator.platform.includes("Mac")?r.metaKey:r.ctrlKey,u=this.path.points[this.path.points.length-1];s&&u&&(r.shiftKey?i=oF(u,i,this.angles):i=iF(u,i,Math.PI/12))}var c=aF(this.path.points,i,10),d=c.point,f=c.index;return n&&f>-1&&(i=la({},d)),[i,{point:d,index:f}]},e.propTypes={value:Rr.arrayOf(Rr.exact({x:Rr.number.isRequired,y:Rr.number.isRequired})),style:Rr.shape({}),viewBox:Rr.exact({width:Rr.number.isRequired,height:Rr.number.isRequired}),disabled:Rr.bool,onChange:Rr.func,onComplete:Rr.func,src:Rr.string.isRequired,imageAlt:Rr.string,crossOrigin:Rr.string,imageStyle:Rr.shape({}),onImageLoad:Rr.func,onImageError:Rr.func},e.defaultProps={value:[],style:{},imageStyle:{},viewBox:{width:1e3,height:1e3},disabled:!1,onImageError:Function.prototype,onImageLoad:Function.prototype},e}(j.Component);async function pF(t){try{const e=await fetch(t);if(!e.ok)throw new Error(e.statusText);const r=await e.json();return"@type"in r?r["@type"]!="sc:Manifest"?(console.log("The JSON for this Manifest doesn't look like a Manifest. It should have either a @type of sc:Manifest but has a type of: "+r["@type"]),null):mF(r):"type"in r?r.type!="Manifest"?(console.log("The JSON for this Manifest doesn't look like a Manifest. It should have either a type of Manifest but has a type of: "+r.type),null):vF(r):(console.log("The JSON for this Manifest doesn't look like a Manifest. It should have either a @type or type value of Manifest"),null)}catch(e){return console.log("I was unable to get the Manifest you supplied due to: "+e),null}}function gF(t){return typeof t=="object"&&!Array.isArray(t)&&t!==null}function mF(t){var e,r,n;if("sequences"in t){let a=t.sequences;gF(a)&&(a=[a]);let i=!1;for(const s of a)if("canvases"in s){i=!0;for(const u of s.canvases){const c=(n=(r=(e=u.images[0])==null?void 0:e.resource)==null?void 0:r.service)==null?void 0:n["@id"];if(c)return c}}else i||console.log("The manifest you supplied contains no canvases so there are no images to show.")}else console.log("The manifest you supplied contains no sequence so there are no images to show.");return null}function vF(t){if("items"in t){const e=t.items;for(const r of e){const n=r.items[0].items[0].body.service[0]["@id"];if(n)return n}}else console.log("The manifest you supplied contains no sequence so there are no images to show.");return null}function T4(t,e){const r=window.getComputedStyle(t);return parseInt(r.getPropertyValue(e),10)}function yF(t,e){const{width:r,height:n}=e,a=1080,i="0",s="default",u=".jpg",c=document.querySelector(".displayregioncontainer"),d=document.querySelector(".displayregion");if(!c||!d)throw new Error("Canvas or selection element not found");const{clientWidth:f,clientHeight:m}=c,v=r*m/n,y=(f-v)/2,b=r/v,S=9,E=T4(d,"left"),x=T4(d,"top"),k=Math.round(d.clientWidth+S),g=Math.round(d.clientHeight+S),C=Math.max(Math.round((E-y)*b),0),N=Math.max(Math.round(x*b),0),O=Math.min(Math.round(k*b),r),D=Math.min(Math.round(g*b),n),R=`${C},${N},${O},${D}`;return console.log(`Calculated selection region (x, y, width, height): ${R}`),`${t}/${R}/${a},/${i}/${s}${u}`}const L4={fetchIIIFIdentifier:async t=>{try{return await pF(t)}catch(e){return console.error(e),null}},getCroppedImagePath:async t=>{try{const e=t+"/info.json",r=await fetch(e);if(!r.ok)throw new Error(r.statusText);const n=await r.json();return yF(t,n)}catch(e){console.error(e)}}},bF=I.lazy(()=>ZL(()=>import("./index-kb1q0BGh.js"),Pp([]))),wF={canvasBackgroundColor:"010A01",gestureSettingsTouch:{dragToPan:!1,dblClickToZoom:!1,dblClickDragToZoom:!1,flickEnabled:!1,pinchRotate:!0},informationPanel:{open:!1},openSeadragon:{loadTilesWithAjax:!0,showNavigationControl:!1,showHomeControl:!1,showFullPageControl:!1,showRotationControl:!1,showFlipControl:!1},showTitle:!1,showIIIFBadge:!1,showZoomControl:!1},kF={colors:{primary:"#BC13FE",accent:"#BC13FE",secondary:"#EDECEA"}};function xF(){const{t}=Bu(),{imageLikeList:e}=ui(),r=ui(m=>m.addToArtwork),[n,a]=I.useState(e[0]||null),i=m=>{a(m)},[s,u]=I.useState([]),[c,d]=I.useState(),f=async(m,v)=>{try{const y=await L4.getCroppedImagePath(v);console.log("Cropped image path: ",y),y&&r(m,y)}catch(y){console.error("Error:",y)}};return J.jsxs(ti,{className:"flex flex-col flex-wrap gap-4 container justify-center content-center text-center mx-auto",children:[J.jsx("div",{className:"p-2 m-4",children:J.jsx("h1",{className:"text-2xl",children:t("collectionTitle")})}),J.jsx(ti,{className:"flex flex-wrap mx-auto",children:e.map(m=>J.jsx("img",{src:m.thumbnail,alt:m.name,onClick:()=>i(m),style:{cursor:"pointer",margin:"4px"},role:"presentation"},m.id))}),n&&J.jsxs(ti,{className:"space-y-4",children:[J.jsx(fF,{value:s,src:n.image,onChange:m=>{u(m)},onComplete:m=>{m.length&&lF(n.image,m,(v,y)=>{v||d(y.toDataURL())})}}),J.jsxs("div",{children:["Points: ",s.map(({x:m,y:v})=>`${m},${v}`).join(" ")]}),J.jsx("div",{children:J.jsx("img",{src:c,alt:""})}),J.jsx(I.Suspense,{fallback:J.jsxs("h2",{children:["\u{1F300} ",t("collectionLoading")]}),children:J.jsx(bF,{iiifContent:n.url,options:wF,customTheme:kF})}),J.jsx(Wr,{className:"p-4 text-xl text-black w-2/3 mx-auto h-16",rounded:!0,inline:!0,onClick:()=>f(n?.id,n?.identifier),children:t("collectionAddText")})]})]})}function SF(){const{t}=Bu();return J.jsx(w5,{theme:"material",children:J.jsxs(G1,{children:[J.jsxs(N5,{labels:!0,icons:!0,className:"left-0 bottom-0 fixed k-color-brand-primary text-center",innerClassName:"tabbar-inner",children:[J.jsx(Wu,{active:qi({path:Un("/").pathname,end:!0}),to:"/",component:zh,icon:J.jsx(xn,{material:J.jsx(aE,{className:"w-10 h-10"}),className:`transition duration-300 ${qi({path:Un("/").pathname,end:!0})&&"animate-pulse"}`}),label:t("start"),touchRipple:!1}),J.jsx(Wu,{active:qi({path:Un("/selection").pathname,end:!0}),to:"/selection",component:zh,icon:J.jsx(xn,{material:J.jsx(tE,{className:"w-10 h-10"}),className:`transition duration-300 ${qi({path:Un("/selection").pathname,end:!0})&&"animate-pulse"}`}),label:t("selection"),touchRipple:!1}),J.jsx(Wu,{active:qi({path:Un("/collection").pathname,end:!0}),to:"/collection",component:zh,icon:J.jsx(xn,{material:J.jsx(fE,{className:"w-10 h-10"}),className:`transition duration-300 ${qi({path:Un("/collection").pathname,end:!0})&&"animate-pulse"}`}),label:t("collection"),touchRipple:!1}),J.jsx(Wu,{active:qi({path:Un("/creation").pathname,end:!0}),to:"/creation",component:zh,icon:J.jsx(xn,{material:J.jsx(sE,{className:"w-10 h-10"}),className:`transition duration-300 ${qi({path:Un("/creation").pathname,end:!0})&&"animate-pulse"}`}),label:t("artwork"),touchRipple:!1})]}),J.jsx("main",{className:"h-[calc(100%_-_128px)] overflow-auto",children:J.jsx(m_,{})})]})})}var F4={exports:{}},j4={exports:{}},A4={exports:{}},D4={exports:{}},z4={exports:{}},ey=Object.defineProperty,CF=Object.getOwnPropertyDescriptor,_F=Object.getOwnPropertyNames,EF=Object.prototype.hasOwnProperty,B4=(t,e)=>{for(var r in e)ey(t,r,{get:e[r],enumerable:!0})},PF=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of _F(e))!EF.call(t,a)&&a!==r&&ey(t,a,{get:()=>e[a],enumerable:!(n=CF(e,a))||n.enumerable});return t},MF=t=>PF(ey({},"__esModule",{value:!0}),t),U4={};B4(U4,{FluidValue:()=>HF,Globals:()=>$4,addFluidObserver:()=>KF,callFluidObserver:()=>b8,callFluidObservers:()=>qF,clamp:()=>n8,colorToRgba:()=>hy,colors:()=>DF,createInterpolator:()=>fy,createStringInterpolator:()=>ej,defineHidden:()=>OF,deprecateDirectCall:()=>aj,deprecateInterpolate:()=>rj,each:()=>Y4,eachProp:()=>TF,easings:()=>VF,flush:()=>Q4,flushCalls:()=>FF,frameLoop:()=>e8,getFluidObservers:()=>WF,getFluidValue:()=>y8,hasFluidValue:()=>GF,hex3:()=>l8,hex4:()=>u8,hex6:()=>c8,hex8:()=>d8,hsl:()=>o8,hsla:()=>s8,is:()=>Ea,isAnimatedString:()=>ij,isEqual:()=>RF,isSSR:()=>ip,noop:()=>K4,onResize:()=>C8,onScroll:()=>fj,once:()=>gy,prefix:()=>gp,raf:()=>ut,removeFluidObserver:()=>YF,rgb:()=>a8,rgba:()=>i8,setFluidGetter:()=>w8,toArray:()=>LF,useConstant:()=>gj,useForceUpdate:()=>bj,useIsomorphicLayoutEffect:()=>vy,useMemoOne:()=>wj,useOnce:()=>Sj,usePrev:()=>_j,useReducedMotion:()=>Pj});var IF=MF(U4),$4={};B4($4,{assign:()=>J4,colors:()=>no,createStringInterpolator:()=>sy,skipAnimation:()=>X4,to:()=>Z4,willAdvance:()=>ly});var ty=sc(),ut=t=>oc(t,ty),ry=sc();ut.write=t=>oc(t,ry);var ap=sc();ut.onStart=t=>oc(t,ap);var ny=sc();ut.onFrame=t=>oc(t,ny);var ay=sc();ut.onFinish=t=>oc(t,ay);var gl=[];ut.setTimeout=(t,e)=>{let r=ut.now()+e,n=()=>{let i=gl.findIndex(s=>s.cancel==n);~i&&gl.splice(i,1),ro-=~i?1:0},a={time:r,handler:t,cancel:n};return gl.splice(V4(r),0,a),ro+=1,G4(),a};var V4=t=>~(~gl.findIndex(e=>e.time>t)||~gl.length);ut.cancel=t=>{ap.delete(t),ny.delete(t),ay.delete(t),ty.delete(t),ry.delete(t)},ut.sync=t=>{oy=!0,ut.batchedUpdates(t),oy=!1},ut.throttle=t=>{let e;function r(){try{t(...e)}finally{e=null}}function n(...a){e=a,ut.onStart(r)}return n.handler=t,n.cancel=()=>{ap.delete(r),e=null},n};var iy=typeof window<"u"?window.requestAnimationFrame:()=>{};ut.use=t=>iy=t,ut.now=typeof performance<"u"?()=>performance.now():Date.now,ut.batchedUpdates=t=>t(),ut.catch=console.error,ut.frameLoop="always",ut.advance=()=>{ut.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):q4()};var to=-1,ro=0,oy=!1;function oc(t,e){oy?(e.delete(t),t(0)):(e.add(t),G4())}function G4(){to<0&&(to=0,ut.frameLoop!=="demand"&&iy(W4))}function NF(){to=-1}function W4(){~to&&(iy(W4),ut.batchedUpdates(q4))}function q4(){let t=to;to=ut.now();let e=V4(to);if(e&&(H4(gl.splice(0,e),r=>r.handler()),ro-=e),!ro){NF();return}ap.flush(),ty.flush(t?Math.min(64,to-t):16.667),ny.flush(),ry.flush(),ay.flush()}function sc(){let t=new Set,e=t;return{add(r){ro+=e==t&&!t.has(r)?1:0,t.add(r)},delete(r){return ro-=e==t&&t.has(r)?1:0,t.delete(r)},flush(r){e.size&&(t=new Set,ro-=e.size,H4(e,n=>n(r)&&t.add(n)),ro+=t.size,e=t)}}}function H4(t,e){t.forEach(r=>{try{e(r)}catch(n){ut.catch(n)}})}function K4(){}var OF=(t,e,r)=>Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0}),Ea={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function RF(t,e){if(Ea.arr(t)){if(!Ea.arr(e)||t.length!==e.length)return!1;for(let r=0;rt.forEach(e);function TF(t,e,r){if(Ea.arr(t)){for(let n=0;nEa.und(t)?[]:Ea.arr(t)?t:[t];function Q4(t,e){if(t.size){let r=Array.from(t);t.clear(),Y4(r,e)}}var FF=(t,...e)=>Q4(t,r=>r(...e)),ip=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),sy,Z4,no=null,X4=!1,ly=K4,J4=t=>{t.to&&(Z4=t.to),t.now&&(ut.now=t.now),t.colors!==void 0&&(no=t.colors),t.skipAnimation!=null&&(X4=t.skipAnimation),t.createStringInterpolator&&(sy=t.createStringInterpolator),t.requestAnimationFrame&&ut.use(t.requestAnimationFrame),t.batchedUpdates&&(ut.batchedUpdates=t.batchedUpdates),t.willAdvance&&(ly=t.willAdvance),t.frameLoop&&(ut.frameLoop=t.frameLoop)},lc=new Set,Vn=[],uy=[],op=0,e8={get idle(){return!lc.size&&!Vn.length},start(t){op>t.priority?(lc.add(t),ut.onStart(jF)):(t8(t),ut(cy))},advance:cy,sort(t){if(op)ut.onFrame(()=>e8.sort(t));else{let e=Vn.indexOf(t);~e&&(Vn.splice(e,1),r8(t))}},clear(){Vn=[],lc.clear()}};function jF(){lc.forEach(t8),lc.clear(),ut(cy)}function t8(t){Vn.includes(t)||r8(t)}function r8(t){Vn.splice(AF(Vn,e=>e.priority>t.priority),0,t)}function cy(t){let e=uy;for(let r=0;r0}function AF(t,e){let r=t.findIndex(e);return r<0?t.length:r}var n8=(t,e,r)=>Math.min(Math.max(r,t),e),DF={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ua="[-+]?\\d*\\.?\\d+",sp=ua+"%";function lp(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var a8=new RegExp("rgb"+lp(ua,ua,ua)),i8=new RegExp("rgba"+lp(ua,ua,ua,ua)),o8=new RegExp("hsl"+lp(ua,sp,sp)),s8=new RegExp("hsla"+lp(ua,sp,sp,ua)),l8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,u8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,c8=/^#([0-9a-fA-F]{6})$/,d8=/^#([0-9a-fA-F]{8})$/;function zF(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=c8.exec(t))?parseInt(e[1]+"ff",16)>>>0:no&&no[t]!==void 0?no[t]:(e=a8.exec(t))?(ml(e[1])<<24|ml(e[2])<<16|ml(e[3])<<8|255)>>>0:(e=i8.exec(t))?(ml(e[1])<<24|ml(e[2])<<16|ml(e[3])<<8|p8(e[4]))>>>0:(e=l8.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=d8.exec(t))?parseInt(e[1],16)>>>0:(e=u8.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=o8.exec(t))?(h8(f8(e[1]),up(e[2]),up(e[3]))|255)>>>0:(e=s8.exec(t))?(h8(f8(e[1]),up(e[2]),up(e[3]))|p8(e[4]))>>>0:null}function dy(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function h8(t,e,r){let n=r<.5?r*(1+e):r+e-r*e,a=2*r-n,i=dy(a,n,t+1/3),s=dy(a,n,t),u=dy(a,n,t-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(u*255)<<8}function ml(t){let e=parseInt(t,10);return e<0?0:e>255?255:e}function f8(t){return(parseFloat(t)%360+360)%360/360}function p8(t){let e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function up(t){let e=parseFloat(t);return e<0?0:e>100?1:e/100}function hy(t){let e=zF(t);if(e===null)return t;e=e||0;let r=(e&4278190080)>>>24,n=(e&16711680)>>>16,a=(e&65280)>>>8,i=(e&255)/255;return`rgba(${r}, ${n}, ${a}, ${i})`}var fy=(t,e,r)=>{if(Ea.fun(t))return t;if(Ea.arr(t))return fy({range:t,output:e,extrapolate:r});if(Ea.str(t.output[0]))return sy(t);let n=t,a=n.output,i=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",u=n.extrapolateRight||n.extrapolate||"extend",c=n.easing||(d=>d);return d=>{let f=UF(d,i);return BF(d,i[f],i[f+1],a[f],a[f+1],c,s,u,n.map)}};function BF(t,e,r,n,a,i,s,u,c){let d=c?c(t):t;if(dr){if(u==="identity")return d;u==="clamp"&&(d=r)}return n===a?n:e===r?t<=e?n:a:(e===-1/0?d=-d:r===1/0?d=d-e:d=(d-e)/(r-e),d=i(d),n===-1/0?d=-d:a===1/0?d=d+n:d=d*(a-n)+n,d)}function UF(t,e){for(var r=1;r=t);++r);return r-1}var $F=(t,e="end")=>r=>{r=e==="end"?Math.min(r,.999):Math.max(r,.001);let n=r*t,a=e==="end"?Math.floor(n):Math.ceil(n);return n8(0,1,a/t)},cp=1.70158,dp=cp*1.525,g8=cp+1,m8=2*Math.PI/3,v8=2*Math.PI/4.5,hp=t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,VF={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>t===0?0:Math.pow(2,10*t-10),easeOutExpo:t=>t===1?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>g8*t*t*t-cp*t*t,easeOutBack:t=>1+g8*Math.pow(t-1,3)+cp*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*((dp+1)*2*t-dp)/2:(Math.pow(2*t-2,2)*((dp+1)*(t*2-2)+dp)+2)/2,easeInElastic:t=>t===0?0:t===1?1:-Math.pow(2,10*t-10)*Math.sin((t*10-10.75)*m8),easeOutElastic:t=>t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t*10-.75)*m8)+1,easeInOutElastic:t=>t===0?0:t===1?1:t<.5?-(Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*v8))/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*v8)/2+1,easeInBounce:t=>1-hp(1-t),easeOutBounce:hp,easeInOutBounce:t=>t<.5?(1-hp(1-2*t))/2:(1+hp(2*t-1))/2,steps:$F},uc=Symbol.for("FluidValue.get"),vl=Symbol.for("FluidValue.observers"),GF=t=>!!(t&&t[uc]),y8=t=>t&&t[uc]?t[uc]():t,WF=t=>t[vl]||null;function b8(t,e){t.eventObserved?t.eventObserved(e):t(e)}function qF(t,e){let r=t[vl];r&&r.forEach(n=>{b8(n,e)})}var HF=class{constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");w8(this,t)}},w8=(t,e)=>k8(t,uc,e);function KF(t,e){if(t[uc]){let r=t[vl];r||k8(t,vl,r=new Set),r.has(e)||(r.add(e),t.observerAdded&&t.observerAdded(r.size,e))}return e}function YF(t,e){let r=t[vl];if(r&&r.has(e)){let n=r.size-1;n?r.delete(e):t[vl]=null,t.observerRemoved&&t.observerRemoved(n,e)}}var k8=(t,e,r)=>Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0}),fp=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,QF=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,x8=new RegExp(`(${fp.source})(%|[a-z]+)`,"i"),ZF=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,pp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,S8=t=>{let[e,r]=XF(t);if(!e||ip())return t;let n=window.getComputedStyle(document.documentElement).getPropertyValue(e);return n?n.trim():r&&r.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(r)||t:r&&pp.test(r)?S8(r):r||t},XF=t=>{let e=pp.exec(t);if(!e)return[,];let[,r,n]=e;return[r,n]},py,JF=(t,e,r,n,a)=>`rgba(${Math.round(e)}, ${Math.round(r)}, ${Math.round(n)}, ${a})`,ej=t=>{py||(py=no?new RegExp(`(${Object.keys(no).join("|")})(?!\\w)`,"g"):/^\b$/);let e=t.output.map(a=>y8(a).replace(pp,S8).replace(QF,hy).replace(py,hy)),r=e.map(a=>a.match(fp).map(Number)),n=r[0].map((a,i)=>r.map(s=>{if(!(i in s))throw Error('The arity of each "output" value must be equal');return s[i]})).map(a=>fy({...t,output:a}));return a=>{var i;let s=!x8.test(e[0])&&((i=e.find(c=>x8.test(c)))==null?void 0:i.replace(fp,"")),u=0;return e[0].replace(fp,()=>`${n[u++](a)}${s||""}`).replace(ZF,JF)}},gp="react-spring: ",gy=t=>{let e=t,r=!1;if(typeof e!="function")throw new TypeError(`${gp}once requires a function parameter`);return(...n)=>{r||(e(...n),r=!0)}},tj=gy(console.warn);function rj(){tj(`${gp}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var nj=gy(console.warn);function aj(){nj(`${gp}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function ij(t){return Ea.str(t)&&(t[0]=="#"||/\d/.test(t)||!ip()&&pp.test(t)||t in(no||{}))}var yl,mp=new WeakMap,oj=t=>t.forEach(({target:e,contentRect:r})=>{var n;return(n=mp.get(e))==null?void 0:n.forEach(a=>a(r))});function sj(t,e){yl||typeof ResizeObserver<"u"&&(yl=new ResizeObserver(oj));let r=mp.get(e);return r||(r=new Set,mp.set(e,r)),r.add(t),yl&&yl.observe(e),()=>{let n=mp.get(e);n&&(n.delete(t),!n.size&&yl&&yl.unobserve(e))}}var vp=new Set,cc,lj=()=>{let t=()=>{vp.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},uj=t=>(vp.add(t),cc||(cc=lj()),()=>{vp.delete(t),!vp.size&&cc&&(cc(),cc=void 0)}),C8=(t,{container:e=document.documentElement}={})=>e===document.documentElement?uj(t):sj(t,e),cj=(t,e,r)=>e-t===0?1:(r-t)/(e-t),dj={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},hj=class{constructor(t,e){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=r=>{let n=this.info[r],{length:a,position:i}=dj[r];n.current=this.container[`scroll${i}`],n.scrollLength=this.container["scroll"+a]-this.container["client"+a],n.progress=cj(0,n.scrollLength,n.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=t,this.container=e,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},dc=new WeakMap,_8=new WeakMap,my=new WeakMap,E8=t=>t===document.documentElement?window:t,fj=(t,{container:e=document.documentElement}={})=>{let r=my.get(e);r||(r=new Set,my.set(e,r));let n=new hj(t,e);if(r.add(n),!dc.has(e)){let i=()=>(r?.forEach(u=>u.advance()),!0);dc.set(e,i);let s=E8(e);window.addEventListener("resize",i,{passive:!0}),e!==document.documentElement&&_8.set(e,C8(i,{container:e})),s.addEventListener("scroll",i,{passive:!0})}let a=dc.get(e);return ut(a),()=>{var i;ut.cancel(a);let s=my.get(e);if(!s||(s.delete(n),s.size))return;let u=dc.get(e);dc.delete(e),u&&(E8(e).removeEventListener("scroll",u),window.removeEventListener("resize",u),(i=_8.get(e))==null||i())}},pj=I;function gj(t){let e=(0,pj.useRef)(null);return e.current===null&&(e.current=t()),e.current}var mj=I,vj=I,P8=I,vy=ip()?P8.useEffect:P8.useLayoutEffect,yj=()=>{let t=(0,vj.useRef)(!1);return vy(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function bj(){let t=(0,mj.useState)()[1],e=yj();return()=>{e.current&&t(Math.random())}}var yy=I;function wj(t,e){let[r]=(0,yy.useState)(()=>({inputs:e,result:t()})),n=(0,yy.useRef)(),a=n.current,i=a;return i?e&&i.inputs&&kj(e,i.inputs)||(i={inputs:e,result:t()}):i=r,(0,yy.useEffect)(()=>{n.current=i,a==r&&(r.inputs=r.result=void 0)},[i]),i.result}function kj(t,e){if(t.length!==e.length)return!1;for(let r=0;r(0,xj.useEffect)(t,Cj),Cj=[],M8=I;function _j(t){let e=(0,M8.useRef)();return(0,M8.useEffect)(()=>{e.current=t}),e.current}var Ej=I,Pj=()=>{let[t,e]=(0,Ej.useState)(null);return vy(()=>{let r=window.matchMedia("(prefers-reduced-motion)"),n=a=>{e(a.matches),J4({skipAnimation:a.matches})};return n(r),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),t};z4.exports=IF;var ct=z4.exports,I8={exports:{}},Mj=Object.create,yp=Object.defineProperty,Ij=Object.getOwnPropertyDescriptor,Nj=Object.getOwnPropertyNames,Oj=Object.getPrototypeOf,Rj=Object.prototype.hasOwnProperty,Tj=(t,e)=>{for(var r in e)yp(t,r,{get:e[r],enumerable:!0})},N8=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Nj(e))!Rj.call(t,a)&&a!==r&&yp(t,a,{get:()=>e[a],enumerable:!(n=Ij(e,a))||n.enumerable});return t},Lj=(t,e,r)=>(r=t!=null?Mj(Oj(t)):{},N8(e||!t||!t.__esModule?yp(r,"default",{value:t,enumerable:!0}):r,t)),Fj=t=>N8(yp({},"__esModule",{value:!0}),t),O8={};Tj(O8,{Animated:()=>by,AnimatedArray:()=>xy,AnimatedObject:()=>kp,AnimatedString:()=>bp,AnimatedValue:()=>fc,createHost:()=>Wj,getAnimated:()=>T8,getAnimatedType:()=>Bj,getPayload:()=>F8,isAnimated:()=>R8,setAnimated:()=>L8});var jj=Fj(O8),Aj=ct,hc=Symbol.for("Animated:node"),R8=t=>!!t&&t[hc]===t,T8=t=>t&&t[hc],L8=(t,e)=>(0,Aj.defineHidden)(t,hc,e),F8=t=>t&&t[hc]&&t[hc].getPayload(),by=class{constructor(){L8(this,this)}getPayload(){return this.payload||[]}},wy=ct,fc=class extends by{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,wy.is.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new fc(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return wy.is.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,wy.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},ky=ct,bp=class extends fc{constructor(t){super(0),this._string=null,this._toString=(0,ky.createInterpolator)({output:[t,t]})}static create(t){return new bp(t)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(t){if(ky.is.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=(0,ky.createInterpolator)({output:[this.getValue(),t]})),this._value=0,super.reset()}},Dj=ct,Zo=ct,wp={dependencies:null},kp=class extends by{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let e={};return(0,Zo.eachProp)(this.source,(r,n)=>{R8(r)?e[n]=r.getValue(t):(0,Zo.hasFluidValue)(r)?e[n]=(0,Zo.getFluidValue)(r):t||(e[n]=r)}),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&(0,Zo.each)(this.payload,t=>t.reset())}_makePayload(t){if(t){let e=new Set;return(0,Zo.eachProp)(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){wp.dependencies&&(0,Zo.hasFluidValue)(t)&&wp.dependencies.add(t);let e=F8(t);e&&(0,Zo.each)(e,r=>this.add(r))}},xy=class extends kp{constructor(t){super(t)}static create(t){return new xy(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let e=this.getPayload();return t.length==e.length?e.map((r,n)=>r.setValue(t[n])).some(Boolean):(super.setValue(t.map(zj)),!0)}};function zj(t){return((0,Dj.isAnimatedString)(t)?bp:fc).create(t)}var j8=ct;function Bj(t){let e=T8(t);return e?e.constructor:j8.is.arr(t)?xy:(0,j8.isAnimatedString)(t)?bp:fc}var bl=ct,Uj=Lj(I),pc=I,Cn=ct,A8=(t,e)=>{let r=!Cn.is.fun(t)||t.prototype&&t.prototype.isReactComponent;return(0,pc.forwardRef)((n,a)=>{let i=(0,pc.useRef)(null),s=r&&(0,pc.useCallback)(b=>{i.current=Gj(a,b)},[a]),[u,c]=Vj(n,e),d=(0,Cn.useForceUpdate)(),f=()=>{let b=i.current;r&&!b||(b?e.applyAnimatedValues(b,u.getValue(!0)):!1)===!1&&d()},m=new $j(f,c),v=(0,pc.useRef)();(0,Cn.useIsomorphicLayoutEffect)(()=>(v.current=m,(0,Cn.each)(c,b=>(0,Cn.addFluidObserver)(b,m)),()=>{v.current&&((0,Cn.each)(v.current.deps,b=>(0,Cn.removeFluidObserver)(b,v.current)),Cn.raf.cancel(v.current.update))})),(0,pc.useEffect)(f,[]),(0,Cn.useOnce)(()=>()=>{let b=v.current;(0,Cn.each)(b.deps,S=>(0,Cn.removeFluidObserver)(S,b))});let y=e.getComponentProps(u.getValue());return Uj.createElement(t,{...y,ref:s})})},$j=class{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){t.type=="change"&&Cn.raf.write(this.update)}};function Vj(t,e){let r=new Set;return wp.dependencies=r,t.style&&(t={...t,style:e.createAnimatedStyle(t.style)}),t=new kp(t),wp.dependencies=null,[t,r]}function Gj(t,e){return t&&(Cn.is.fun(t)?t(e):t.current=e),e}var D8=Symbol.for("AnimatedComponent"),Wj=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:r=a=>new kp(a),getComponentProps:n=a=>a}={})=>{let a={applyAnimatedValues:e,createAnimatedStyle:r,getComponentProps:n},i=s=>{let u=z8(s)||"Anonymous";return bl.is.str(s)?s=i[s]||(i[s]=A8(s,a)):s=s[D8]||(s[D8]=A8(s,a)),s.displayName=`Animated(${u})`,s};return(0,bl.eachProp)(t,(s,u)=>{bl.is.arr(t)&&(u=z8(s)),i[u]=i(s)}),{animated:i}},z8=t=>bl.is.str(t)?t:t&&bl.is.str(t.displayName)?t.displayName:bl.is.fun(t)&&t.name||null;I8.exports=jj;var gc=I8.exports,B8={exports:{}},Sy,U8;function qj(){if(U8)return Sy;U8=1;var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,a=(d,f)=>{for(var m in f)t(d,m,{get:f[m],enumerable:!0})},i=(d,f,m,v)=>{if(f&&typeof f=="object"||typeof f=="function")for(let y of r(f))!n.call(d,y)&&y!==m&&t(d,y,{get:()=>f[y],enumerable:!(v=e(f,y))||v.enumerable});return d},s=d=>i(t({},"__esModule",{value:!0}),d),u={};a(u,{Any:()=>c}),Sy=s(u);var c=class{};return Sy}var $8;function Hj(){return $8||($8=1,B8.exports=qj()),B8.exports}(function(t){var e=Object.create,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=(M,T)=>{for(var B in T)r(M,B,{get:T[B],enumerable:!0})},c=(M,T,B,V)=>{if(T&&typeof T=="object"||typeof T=="function")for(let X of a(T))!s.call(M,X)&&X!==B&&r(M,X,{get:()=>T[X],enumerable:!(V=n(T,X))||V.enumerable});return M},d=(M,T,B)=>(c(M,T,"default"),B&&c(B,T,"default")),f=(M,T,B)=>(B=M!=null?e(i(M)):{},c(T||!M||!M.__esModule?r(B,"default",{value:M,enumerable:!0}):B,M)),m=M=>c(r({},"__esModule",{value:!0}),M),v={};u(v,{BailSignal:()=>dt,Controller:()=>_l,FrameValue:()=>mr,Globals:()=>Fa.Globals,Interpolation:()=>fo,Spring:()=>La,SpringContext:()=>Gn,SpringRef:()=>is,SpringValue:()=>Ht,Trail:()=>Fr,Transition:()=>ls,config:()=>oe,createInterpolator:()=>ja.createInterpolator,easings:()=>ja.easings,inferTo:()=>R,interpolate:()=>us,to:()=>Dp,update:()=>po,useChain:()=>ne,useInView:()=>Lr,useIsomorphicLayoutEffect:()=>ja.useIsomorphicLayoutEffect,useReducedMotion:()=>ja.useReducedMotion,useResize:()=>xt,useScroll:()=>di,useSpring:()=>co,useSpringRef:()=>Fp,useSpringValue:()=>jp,useSprings:()=>Ml,useTrail:()=>Pc,useTransition:()=>ss}),t.exports=m(v);var y=ct,b=ct;function S(M,...T){return b.is.fun(M)?M(...T):M}var E=(M,T)=>M===!0||!!(T&&M&&(b.is.fun(M)?M(T):(0,b.toArray)(M).includes(T))),x=(M,T)=>b.is.obj(M)?T&&M[T]:M,k=(M,T)=>M.default===!0?M[T]:M.default?M.default[T]:void 0,g=M=>M,C=(M,T=g)=>{let B=N;M.default&&M.default!==!0&&(M=M.default,B=Object.keys(M));let V={};for(let X of B){let ae=T(M[X],X);b.is.und(ae)||(V[X]=ae)}return V},N=["config","onProps","onStart","onChange","onPause","onResume","onRest"],O={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function D(M){let T={},B=0;if((0,b.eachProp)(M,(V,X)=>{O[X]||(T[X]=V,B++)}),B)return T}function R(M){let T=D(M);if(T){let B={to:T};return(0,b.eachProp)(M,(V,X)=>X in T||(B[X]=V)),B}return{...M}}function A(M){return M=(0,b.getFluidValue)(M),b.is.arr(M)?M.map(A):(0,b.isAnimatedString)(M)?b.Globals.createStringInterpolator({range:[0,1],output:[M,M]})(1):M}function F(M){for(let T in M)return!0;return!1}function U(M){return b.is.fun(M)||b.is.arr(M)&&b.is.obj(M[0])}function H(M,T){var B;(B=M.ref)==null||B.delete(M),T?.delete(M)}function q(M,T){var B;T&&M.ref!==T&&((B=M.ref)==null||B.delete(M),T.add(M),M.ref=T)}function ne(M,T,B=1e3){(0,y.useIsomorphicLayoutEffect)(()=>{if(T){let V=0;(0,y.each)(M,(X,ae)=>{let pe=X.current;if(pe.length){let fe=B*T[ae];isNaN(fe)?fe=V:V=fe,(0,y.each)(pe,ce=>{(0,y.each)(ce.queue,ye=>{let Be=ye.delay;ye.delay=Ee=>fe+S(Be||0,Ee)})}),X.start()}})}else{let V=Promise.resolve();(0,y.each)(M,X=>{let ae=X.current;if(ae.length){let pe=ae.map(fe=>{let ce=fe.queue;return fe.queue=[],ce});V=V.then(()=>((0,y.each)(ae,(fe,ce)=>(0,y.each)(pe[ce]||[],ye=>fe.queue.push(ye))),Promise.all(X.start())))}})}})}var ie=ct,se=I,K=ct,z=ct,ee=gc,Q=ct,oe={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},he={...oe.default,mass:1,damping:1,easing:Q.easings.linear,clamp:!1},Ce=class{constructor(){this.velocity=0,Object.assign(this,he)}};function ge(M,T,B){B&&(B={...B},Me(B,T),T={...B,...T}),Me(M,T),Object.assign(M,T);for(let pe in he)M[pe]==null&&(M[pe]=he[pe]);let{frequency:V,damping:X}=M,{mass:ae}=M;return Q.is.und(V)||(V<.01&&(V=.01),X<0&&(X=0),M.tension=Math.pow(2*Math.PI/V,2)*ae,M.friction=4*Math.PI*X*ae/V),M}function Me(M,T){if(!Q.is.und(T.decay))M.duration=void 0;else{let B=!Q.is.und(T.tension)||!Q.is.und(T.friction);(B||!Q.is.und(T.frequency)||!Q.is.und(T.damping)||!Q.is.und(T.mass))&&(M.duration=void 0,M.decay=void 0),B&&(M.frequency=void 0)}}var Ne=[],$=class{constructor(){this.changed=!1,this.values=Ne,this.toValues=null,this.fromValues=Ne,this.config=new Ce,this.immediate=!1}},re=ct;function le(M,{key:T,props:B,defaultProps:V,state:X,actions:ae}){return new Promise((pe,fe)=>{let ce,ye,Be=E(B.cancel??V?.cancel,T);if(Be)Ve();else{re.is.und(B.pause)||(X.paused=E(B.pause,T));let xe=V?.pause;xe!==!0&&(xe=X.paused||E(xe,T)),ce=S(B.delay||0,T),xe?(X.resumeQueue.add(Qe),ae.pause()):(ae.resume(),Qe())}function Ee(){X.resumeQueue.add(Qe),X.timeouts.delete(ye),ye.cancel(),ce=ye.time-re.raf.now()}function Qe(){ce>0&&!re.Globals.skipAnimation?(X.delayed=!0,ye=re.raf.setTimeout(Ve,ce),X.pauseQueue.add(Ee),X.timeouts.add(ye)):Ve()}function Ve(){X.delayed&&(X.delayed=!1),X.pauseQueue.delete(Ee),X.timeouts.delete(ye),M<=(X.cancelId||0)&&(Be=!0);try{ae.start({...B,callId:M,cancel:Be},pe)}catch(xe){fe(xe)}}})}var Se=ct,Oe=(M,T)=>T.length==1?T[0]:T.some(B=>B.cancelled)?it(M.get()):T.every(B=>B.noop)?Fe(M.get()):Ye(M.get(),T.every(B=>B.finished)),Fe=M=>({value:M,noop:!0,finished:!0,cancelled:!1}),Ye=(M,T,B=!1)=>({value:M,finished:T,cancelled:B}),it=M=>({value:M,cancelled:!0,finished:!1});function De(M,T,B,V){let{callId:X,parentId:ae,onRest:pe}=T,{asyncTo:fe,promise:ce}=B;return!ae&&M===fe&&!T.reset?ce:B.promise=(async()=>{B.asyncId=X,B.asyncTo=M;let ye=C(T,(je,Pe)=>Pe==="onRest"?void 0:je),Be,Ee,Qe=new Promise((je,Pe)=>(Be=je,Ee=Pe)),Ve=je=>{let Pe=X<=(B.cancelId||0)&&it(V)||X!==B.asyncId&&Ye(V,!1);if(Pe)throw je.result=Pe,Ee(je),je},xe=(je,Pe)=>{let Ge=new dt,Re=new ht;return(async()=>{if(Se.Globals.skipAnimation)throw Wt(B),Re.result=Ye(V,!1),Ee(Re),Re;Ve(Ge);let $e=Se.is.obj(je)?{...je}:{...Pe,to:je};$e.parentId=X,(0,Se.eachProp)(ye,(nn,tt)=>{Se.is.und($e[tt])&&($e[tt]=nn)});let Kt=await V.start($e);return Ve(Ge),B.paused&&await new Promise(nn=>{B.resumeQueue.add(nn)}),Kt})()},Te;if(Se.Globals.skipAnimation)return Wt(B),Ye(V,!1);try{let je;Se.is.arr(M)?je=(async Pe=>{for(let Ge of Pe)await xe(Ge)})(M):je=Promise.resolve(M(xe,V.stop.bind(V))),await Promise.all([je.then(Be),Qe]),Te=Ye(V.get(),!0,!1)}catch(je){if(je instanceof dt)Te=je.result;else if(je instanceof ht)Te=je.result;else throw je}finally{X==B.asyncId&&(B.asyncId=ae,B.asyncTo=ae?fe:void 0,B.promise=ae?ce:void 0)}return Se.is.fun(pe)&&Se.raf.batchedUpdates(()=>{pe(Te,V,V.item)}),Te})()}function Wt(M,T){(0,Se.flush)(M.timeouts,B=>B.cancel()),M.pauseQueue.clear(),M.resumeQueue.clear(),M.asyncId=M.asyncTo=M.promise=void 0,T&&(M.cancelId=T)}var dt=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ht=class extends Error{constructor(){super("SkipAnimationSignal")}},ze=ct,En=gc,Jt=M=>M instanceof mr,Tr=1,mr=class extends ze.FluidValue{constructor(){super(...arguments),this.id=Tr++,this._priority=0}get priority(){return this._priority}set priority(M){this._priority!=M&&(this._priority=M,this._onPriorityChange(M))}get(){let M=(0,En.getAnimated)(this);return M&&M.getValue()}to(...M){return ze.Globals.to(this,M)}interpolate(...M){return(0,ze.deprecateInterpolate)(),ze.Globals.to(this,M)}toJSON(){return this.get()}observerAdded(M){M==1&&this._attach()}observerRemoved(M){M==0&&this._detach()}_attach(){}_detach(){}_onChange(M,T=!1){(0,ze.callFluidObservers)(this,{type:"change",parent:this,value:M,idle:T})}_onPriorityChange(M){this.idle||ze.frameLoop.sort(this),(0,ze.callFluidObservers)(this,{type:"priority",parent:this,priority:M})}},qt=Symbol.for("SpringPhase"),_t=1,Ia=2,Na=4,so=M=>(M[qt]&_t)>0,Pn=M=>(M[qt]&Ia)>0,Oa=M=>(M[qt]&Na)>0,es=(M,T)=>T?M[qt]|=Ia|_t:M[qt]&=~Ia,ci=(M,T)=>T?M[qt]|=Na:M[qt]&=~Na,Ht=class extends mr{constructor(M,T){if(super(),this.animation=new $,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!z.is.und(M)||!z.is.und(T)){let B=z.is.obj(M)?{...M}:{...T,from:M};z.is.und(B.default)&&(B.default=!0),this.start(B)}}get idle(){return!(Pn(this)||this._state.asyncTo)||Oa(this)}get goal(){return(0,z.getFluidValue)(this.animation.to)}get velocity(){let M=(0,ee.getAnimated)(this);return M instanceof ee.AnimatedValue?M.lastVelocity||0:M.getPayload().map(T=>T.lastVelocity||0)}get hasAnimated(){return so(this)}get isAnimating(){return Pn(this)}get isPaused(){return Oa(this)}get isDelayed(){return this._state.delayed}advance(M){let T=!0,B=!1,V=this.animation,{toValues:X}=V,{config:ae}=V,pe=(0,ee.getPayload)(V.to);!pe&&(0,z.hasFluidValue)(V.to)&&(X=(0,z.toArray)((0,z.getFluidValue)(V.to))),V.values.forEach((ye,Be)=>{if(ye.done)return;let Ee=ye.constructor==ee.AnimatedString?1:pe?pe[Be].lastPosition:X[Be],Qe=V.immediate,Ve=Ee;if(!Qe){if(Ve=ye.lastPosition,ae.tension<=0){ye.done=!0;return}let xe=ye.elapsedTime+=M,Te=V.fromValues[Be],je=ye.v0!=null?ye.v0:ye.v0=z.is.arr(ae.velocity)?ae.velocity[Be]:ae.velocity,Pe,Ge=ae.precision||(Te==Ee?.005:Math.min(1,Math.abs(Ee-Te)*.001));if(z.is.und(ae.duration))if(ae.decay){let Re=ae.decay===!0?.998:ae.decay,$e=Math.exp(-(1-Re)*xe);Ve=Te+je/(1-Re)*(1-$e),Qe=Math.abs(ye.lastPosition-Ve)<=Ge,Pe=je*$e}else{Pe=ye.lastVelocity==null?je:ye.lastVelocity;let Re=ae.restVelocity||Ge/10,$e=ae.clamp?0:ae.bounce,Kt=!z.is.und($e),nn=Te==Ee?ye.v0>0:TeRe,!(!tt&&(Qe=Math.abs(Ee-Ve)<=Ge,Qe)));++Kr){Kt&&(Tt=Ve==Ee||Ve>Ee==nn,Tt&&(Pe=-Pe*$e,Ve=Ee));let Wn=-ae.tension*1e-6*(Ve-Ee),nr=-ae.friction*.001*Pe,Ae=(Wn+nr)/ae.mass;Pe=Pe+Ae*Mt,Ve=Ve+Pe*Mt}}else{let Re=1;ae.duration>0&&(this._memoizedDuration!==ae.duration&&(this._memoizedDuration=ae.duration,ye.durationProgress>0&&(ye.elapsedTime=ae.duration*ye.durationProgress,xe=ye.elapsedTime+=M)),Re=(ae.progress||0)+xe/this._memoizedDuration,Re=Re>1?1:Re<0?0:Re,ye.durationProgress=Re),Ve=Te+ae.easing(Re)*(Ee-Te),Pe=(Ve-ye.lastPosition)/M,Qe=Re==1}ye.lastVelocity=Pe,Number.isNaN(Ve)&&(console.warn("Got NaN while animating:",this),Qe=!0)}pe&&!pe[Be].done&&(Qe=!1),Qe?ye.done=!0:T=!1,ye.setValue(Ve,ae.round)&&(B=!0)});let fe=(0,ee.getAnimated)(this),ce=fe.getValue();if(T){let ye=(0,z.getFluidValue)(V.to);(ce!==ye||B)&&!ae.decay?(fe.setValue(ye),this._onChange(ye)):B&&ae.decay&&this._onChange(ce),this._stop()}else B&&this._onChange(ce)}set(M){return z.raf.batchedUpdates(()=>{this._stop(),this._focus(M),this._set(M)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Pn(this)){let{to:M,config:T}=this.animation;z.raf.batchedUpdates(()=>{this._onStart(),T.decay||this._set(M,!1),this._stop()})}return this}update(M){return(this.queue||(this.queue=[])).push(M),this}start(M,T){let B;return z.is.und(M)?(B=this.queue||[],this.queue=[]):B=[z.is.obj(M)?M:{...T,to:M}],Promise.all(B.map(V=>this._update(V))).then(V=>Oe(this,V))}stop(M){let{to:T}=this.animation;return this._focus(this.get()),Wt(this._state,M&&this._lastCallId),z.raf.batchedUpdates(()=>this._stop(T,M)),this}reset(){this._update({reset:!0})}eventObserved(M){M.type=="change"?this._start():M.type=="priority"&&(this.priority=M.priority+1)}_prepareNode(M){let T=this.key||"",{to:B,from:V}=M;B=z.is.obj(B)?B[T]:B,(B==null||U(B))&&(B=void 0),V=z.is.obj(V)?V[T]:V,V==null&&(V=void 0);let X={to:B,from:V};return so(this)||(M.reverse&&([B,V]=[V,B]),V=(0,z.getFluidValue)(V),z.is.und(V)?(0,ee.getAnimated)(this)||this._set(B):this._set(V)),X}_update({...M},T){let{key:B,defaultProps:V}=this;M.default&&Object.assign(V,C(M,(pe,fe)=>/^on/.test(fe)?x(pe,B):pe)),wc(this,M,"onProps"),lo(this,"onProps",M,this);let X=this._prepareNode(M);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let ae=this._state;return le(++this._lastCallId,{key:B,props:M,defaultProps:V,state:ae,actions:{pause:()=>{Oa(this)||(ci(this,!0),(0,z.flushCalls)(ae.pauseQueue),lo(this,"onPause",Ye(this,Ra(this,this.animation.to)),this))},resume:()=>{Oa(this)&&(ci(this,!1),Pn(this)&&this._resume(),(0,z.flushCalls)(ae.resumeQueue),lo(this,"onResume",Ye(this,Ra(this,this.animation.to)),this))},start:this._merge.bind(this,X)}}).then(pe=>{if(M.loop&&pe.finished&&!(T&&pe.noop)){let fe=ts(M);if(fe)return this._update(fe,!0)}return pe})}_merge(M,T,B){if(T.cancel)return this.stop(!0),B(it(this));let V=!z.is.und(M.to),X=!z.is.und(M.from);if(V||X)if(T.callId>this._lastToId)this._lastToId=T.callId;else return B(it(this));let{key:ae,defaultProps:pe,animation:fe}=this,{to:ce,from:ye}=fe,{to:Be=ce,from:Ee=ye}=M;X&&!V&&(!T.default||z.is.und(Be))&&(Be=Ee),T.reverse&&([Be,Ee]=[Ee,Be]);let Qe=!(0,z.isEqual)(Ee,ye);Qe&&(fe.from=Ee),Ee=(0,z.getFluidValue)(Ee);let Ve=!(0,z.isEqual)(Be,ce);Ve&&this._focus(Be);let xe=U(T.to),{config:Te}=fe,{decay:je,velocity:Pe}=Te;(V||X)&&(Te.velocity=0),T.config&&!xe&&ge(Te,S(T.config,ae),T.config!==pe.config?S(pe.config,ae):void 0);let Ge=(0,ee.getAnimated)(this);if(!Ge||z.is.und(Be))return B(Ye(this,!0));let Re=z.is.und(T.reset)?X&&!T.default:!z.is.und(Ee)&&E(T.reset,ae),$e=Re?Ee:this.get(),Kt=A(Be),nn=z.is.num(Kt)||z.is.arr(Kt)||(0,z.isAnimatedString)(Kt),tt=!xe&&(!nn||E(pe.immediate||T.immediate,ae));if(Ve){let Kr=(0,ee.getAnimatedType)(Be);if(Kr!==Ge.constructor)if(tt)Ge=this._set(Kt);else throw Error(`Cannot animate between ${Ge.constructor.name} and ${Kr.name}, as the "to" prop suggests`)}let Tt=Ge.constructor,Mt=(0,z.hasFluidValue)(Be),jr=!1;if(!Mt){let Kr=Re||!so(this)&&Qe;(Ve||Kr)&&(jr=(0,z.isEqual)(A($e),Kt),Mt=!jr),(!(0,z.isEqual)(fe.immediate,tt)&&!tt||!(0,z.isEqual)(Te.decay,je)||!(0,z.isEqual)(Te.velocity,Pe))&&(Mt=!0)}if(jr&&Pn(this)&&(fe.changed&&!Re?Mt=!0:Mt||this._stop(ce)),!xe&&((Mt||(0,z.hasFluidValue)(ce))&&(fe.values=Ge.getPayload(),fe.toValues=(0,z.hasFluidValue)(Be)?null:Tt==ee.AnimatedString?[1]:(0,z.toArray)(Kt)),fe.immediate!=tt&&(fe.immediate=tt,!tt&&!Re&&this._set(ce)),Mt)){let{onRest:Kr}=fe;(0,z.each)(Cl,nr=>wc(this,T,nr));let Wn=Ye(this,Ra(this,ce));(0,z.flushCalls)(this._pendingCalls,Wn),this._pendingCalls.add(B),fe.changed&&z.raf.batchedUpdates(()=>{var nr;fe.changed=!Re,Kr?.(Wn,this),Re?S(pe.onRest,Wn):(nr=fe.onStart)==null||nr.call(fe,Wn,this)})}Re&&this._set($e),xe?B(De(T.to,T,this._state,this)):Mt?this._start():Pn(this)&&!Ve?this._pendingCalls.add(B):B(Fe($e))}_focus(M){let T=this.animation;M!==T.to&&((0,z.getFluidObservers)(this)&&this._detach(),T.to=M,(0,z.getFluidObservers)(this)&&this._attach())}_attach(){let M=0,{to:T}=this.animation;(0,z.hasFluidValue)(T)&&((0,z.addFluidObserver)(T,this),Jt(T)&&(M=T.priority+1)),this.priority=M}_detach(){let{to:M}=this.animation;(0,z.hasFluidValue)(M)&&(0,z.removeFluidObserver)(M,this)}_set(M,T=!0){let B=(0,z.getFluidValue)(M);if(!z.is.und(B)){let V=(0,ee.getAnimated)(this);if(!V||!(0,z.isEqual)(B,V.getValue())){let X=(0,ee.getAnimatedType)(B);!V||V.constructor!=X?(0,ee.setAnimated)(this,X.create(B)):V.setValue(B),V&&z.raf.batchedUpdates(()=>{this._onChange(B,T)})}}return(0,ee.getAnimated)(this)}_onStart(){let M=this.animation;M.changed||(M.changed=!0,lo(this,"onStart",Ye(this,Ra(this,M.to)),this))}_onChange(M,T){T||(this._onStart(),S(this.animation.onChange,M,this)),S(this.defaultProps.onChange,M,this),super._onChange(M,T)}_start(){let M=this.animation;(0,ee.getAnimated)(this).reset((0,z.getFluidValue)(M.to)),M.immediate||(M.fromValues=M.values.map(T=>T.lastPosition)),Pn(this)||(es(this,!0),Oa(this)||this._resume())}_resume(){z.Globals.skipAnimation?this.finish():z.frameLoop.start(this)}_stop(M,T){if(Pn(this)){es(this,!1);let B=this.animation;(0,z.each)(B.values,X=>{X.done=!0}),B.toValues&&(B.onChange=B.onPause=B.onResume=void 0),(0,z.callFluidObservers)(this,{type:"idle",parent:this});let V=T?it(this.get()):Ye(this.get(),Ra(this,M??B.to));(0,z.flushCalls)(this._pendingCalls,V),B.changed&&(B.changed=!1,lo(this,"onRest",V,this))}}};function Ra(M,T){let B=A(T),V=A(M.get());return(0,z.isEqual)(V,B)}function ts(M,T=M.loop,B=M.to){let V=S(T);if(V){let X=V!==!0&&R(V),ae=(X||M).reverse,pe=!X||X.reset;return ca({...M,loop:T,default:!1,pause:void 0,to:!ae||U(B)?B:void 0,from:pe?M.from:void 0,reset:pe,...X})}}function ca(M){let{to:T,from:B}=M=R(M),V=new Set;return z.is.obj(T)&&tn(T,V),z.is.obj(B)&&tn(B,V),M.keys=V.size?Array.from(V):null,M}function Sl(M){let T=ca(M);return z.is.und(T.default)&&(T.default=C(T)),T}function tn(M,T){(0,z.eachProp)(M,(B,V)=>B!=null&&T.add(V))}var Cl=["onStart","onRest","onChange","onPause","onResume"];function wc(M,T,B){M.animation[B]=T[B]!==k(T,B)?x(T[B],M.key):void 0}function lo(M,T,...B){var V,X,ae,pe;(X=(V=M.animation)[T])==null||X.call(V,...B),(pe=(ae=M.defaultProps)[T])==null||pe.call(ae,...B)}var at=ct,kc=["onStart","onChange","onRest"],xc=1,_l=class{constructor(M,T){this.id=xc++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),T&&(this._flush=T),M&&this.start({default:!0,...M})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(M=>M.idle&&!M.isDelayed&&!M.isPaused)}get item(){return this._item}set item(M){this._item=M}get(){let M={};return this.each((T,B)=>M[B]=T.get()),M}set(M){for(let T in M){let B=M[T];at.is.und(B)||this.springs[T].set(B)}}update(M){return M&&this.queue.push(ca(M)),this}start(M){let{queue:T}=this;return M?T=(0,at.toArray)(M).map(ca):this.queue=[],this._flush?this._flush(this,T):(Pl(this,T),uo(this,T))}stop(M,T){if(M!==!!M&&(T=M),T){let B=this.springs;(0,at.each)((0,at.toArray)(T),V=>B[V].stop(!!M))}else Wt(this._state,this._lastAsyncId),this.each(B=>B.stop(!!M));return this}pause(M){if(at.is.und(M))this.start({pause:!0});else{let T=this.springs;(0,at.each)((0,at.toArray)(M),B=>T[B].pause())}return this}resume(M){if(at.is.und(M))this.start({pause:!1});else{let T=this.springs;(0,at.each)((0,at.toArray)(M),B=>T[B].resume())}return this}each(M){(0,at.eachProp)(this.springs,M)}_onFrame(){let{onStart:M,onChange:T,onRest:B}=this._events,V=this._active.size>0,X=this._changed.size>0;(V&&!this._started||X&&!this._started)&&(this._started=!0,(0,at.flush)(M,([fe,ce])=>{ce.value=this.get(),fe(ce,this,this._item)}));let ae=!V&&this._started,pe=X||ae&&B.size?this.get():null;X&&T.size&&(0,at.flush)(T,([fe,ce])=>{ce.value=pe,fe(ce,this,this._item)}),ae&&(this._started=!1,(0,at.flush)(B,([fe,ce])=>{ce.value=pe,fe(ce,this,this._item)}))}eventObserved(M){if(M.type=="change")this._changed.add(M.parent),M.idle||this._active.add(M.parent);else if(M.type=="idle")this._active.delete(M.parent);else return;at.raf.onFrame(this._onFrame)}};function uo(M,T){return Promise.all(T.map(B=>El(M,B))).then(B=>Oe(M,B))}async function El(M,T,B){let{keys:V,to:X,from:ae,loop:pe,onRest:fe,onResolve:ce}=T,ye=at.is.obj(T.default)&&T.default;pe&&(T.loop=!1),X===!1&&(T.to=null),ae===!1&&(T.from=null);let Be=at.is.arr(X)||at.is.fun(X)?X:void 0;Be?(T.to=void 0,T.onRest=void 0,ye&&(ye.onRest=void 0)):(0,at.each)(kc,Te=>{let je=T[Te];if(at.is.fun(je)){let Pe=M._events[Te];T[Te]=({finished:Ge,cancelled:Re})=>{let $e=Pe.get(je);$e?(Ge||($e.finished=!1),Re&&($e.cancelled=!0)):Pe.set(je,{value:null,finished:Ge||!1,cancelled:Re||!1})},ye&&(ye[Te]=T[Te])}});let Ee=M._state;T.pause===!Ee.paused?(Ee.paused=T.pause,(0,at.flushCalls)(T.pause?Ee.pauseQueue:Ee.resumeQueue)):Ee.paused&&(T.pause=!0);let Qe=(V||Object.keys(M.springs)).map(Te=>M.springs[Te].start(T)),Ve=T.cancel===!0||k(T,"cancel")===!0;(Be||Ve&&Ee.asyncId)&&Qe.push(le(++M._lastAsyncId,{props:T,state:Ee,actions:{pause:at.noop,resume:at.noop,start(Te,je){Ve?(Wt(Ee,M._lastAsyncId),je(it(M))):(Te.onRest=fe,je(De(Be,Te,Ee,M)))}}})),Ee.paused&&await new Promise(Te=>{Ee.resumeQueue.add(Te)});let xe=Oe(M,await Promise.all(Qe));if(pe&&xe.finished&&!(B&&xe.noop)){let Te=ts(T,pe,X);if(Te)return Pl(M,[Te]),El(M,Te,!0)}return ce&&at.raf.batchedUpdates(()=>ce(xe,M,M.item)),xe}function rs(M,T){let B={...M.springs};return T&&(0,at.each)((0,at.toArray)(T),V=>{at.is.und(V.keys)&&(V=ca(V)),at.is.obj(V.to)||(V={...V,to:void 0}),_c(B,V,X=>Cc(X))}),Sc(M,B),B}function Sc(M,T){(0,at.eachProp)(T,(B,V)=>{M.springs[V]||(M.springs[V]=B,(0,at.addFluidObserver)(B,M))})}function Cc(M,T){let B=new Ht;return B.key=M,T&&(0,at.addFluidObserver)(B,T),B}function _c(M,T,B){T.keys&&(0,at.each)(T.keys,V=>{(M[V]||(M[V]=B(V)))._prepareNode(T)})}function Pl(M,T){(0,at.each)(T,B=>{_c(M.springs,B,V=>Cc(V,M))})}var ns=f(I),Np=I,Op=ct,Gn=({children:M,...T})=>{let B=(0,Np.useContext)(as),V=T.pause||!!B.pause,X=T.immediate||!!B.immediate;T=(0,Op.useMemoOne)(()=>({pause:V,immediate:X}),[V,X]);let{Provider:ae}=as;return ns.createElement(ae,{value:T},M)},as=Rp(Gn,{});Gn.Provider=as.Provider,Gn.Consumer=as.Consumer;function Rp(M,T){return Object.assign(M,ns.createContext(T)),M.Provider._context=M,M.Consumer._context=M,M}var rn=ct,is=()=>{let M=[],T=function(V){(0,rn.deprecateDirectCall)();let X=[];return(0,rn.each)(M,(ae,pe)=>{if(rn.is.und(V))X.push(ae.start());else{let fe=B(V,ae,pe);fe&&X.push(ae.start(fe))}}),X};T.current=M,T.add=function(V){M.includes(V)||M.push(V)},T.delete=function(V){let X=M.indexOf(V);~X&&M.splice(X,1)},T.pause=function(){return(0,rn.each)(M,V=>V.pause(...arguments)),this},T.resume=function(){return(0,rn.each)(M,V=>V.resume(...arguments)),this},T.set=function(V){(0,rn.each)(M,(X,ae)=>{let pe=rn.is.fun(V)?V(ae,X):V;pe&&X.set(pe)})},T.start=function(V){let X=[];return(0,rn.each)(M,(ae,pe)=>{if(rn.is.und(V))X.push(ae.start());else{let fe=this._getProps(V,ae,pe);fe&&X.push(ae.start(fe))}}),X},T.stop=function(){return(0,rn.each)(M,V=>V.stop(...arguments)),this},T.update=function(V){return(0,rn.each)(M,(X,ae)=>X.update(this._getProps(V,X,ae))),this};let B=function(V,X,ae){return rn.is.fun(V)?V(ae,X):V};return T._getProps=B,T};function Ml(M,T,B){let V=K.is.fun(T)&&T;V&&!B&&(B=[]);let X=(0,se.useMemo)(()=>V||arguments.length==3?is():void 0,[]),ae=(0,se.useRef)(0),pe=(0,K.useForceUpdate)(),fe=(0,se.useMemo)(()=>({ctrls:[],queue:[],flush(Pe,Ge){let Re=rs(Pe,Ge);return ae.current>0&&!fe.queue.length&&!Object.keys(Re).some($e=>!Pe.springs[$e])?uo(Pe,Ge):new Promise($e=>{Sc(Pe,Re),fe.queue.push(()=>{$e(uo(Pe,Ge))}),pe()})}}),[]),ce=(0,se.useRef)([...fe.ctrls]),ye=[],Be=(0,K.usePrev)(M)||0;(0,se.useMemo)(()=>{(0,K.each)(ce.current.slice(M,Be),Pe=>{H(Pe,X),Pe.stop(!0)}),ce.current.length=M,Ee(Be,M)},[M]),(0,se.useMemo)(()=>{Ee(0,Math.min(Be,M))},B);function Ee(Pe,Ge){for(let Re=Pe;Rers(Pe,ye[Ge])),Ve=(0,se.useContext)(Gn),xe=(0,K.usePrev)(Ve),Te=Ve!==xe&&F(Ve);(0,K.useIsomorphicLayoutEffect)(()=>{ae.current++,fe.ctrls=ce.current;let{queue:Pe}=fe;Pe.length&&(fe.queue=[],(0,K.each)(Pe,Ge=>Ge())),(0,K.each)(ce.current,(Ge,Re)=>{X?.add(Ge),Te&&Ge.start({default:Ve});let $e=ye[Re];$e&&(q(Ge,$e.ref),Ge.ref?Ge.queue.push($e):Ge.start($e))})}),(0,K.useOnce)(()=>()=>{(0,K.each)(fe.ctrls,Pe=>Pe.stop(!0))});let je=Qe.map(Pe=>({...Pe}));return X?[je,X]:je}function co(M,T){let B=ie.is.fun(M),[[V],X]=Ml(1,B?M:[M],B?T||[]:T);return B||arguments.length==2?[V,X]:V}var Tp=I,Lp=()=>is(),Fp=()=>(0,Tp.useState)(Lp)[0],Ec=ct,jp=(M,T)=>{let B=(0,Ec.useConstant)(()=>new Ht(M,T));return(0,Ec.useOnce)(()=>()=>{B.stop()}),B},os=ct;function Pc(M,T,B){let V=os.is.fun(T)&&T;V&&!B&&(B=[]);let X=!0,ae,pe=Ml(M,(fe,ce)=>{let ye=V?V(fe,ce):T;return ae=ye.ref,X=X&&ye.reverse,ye},B||[{}]);if((0,os.useIsomorphicLayoutEffect)(()=>{(0,os.each)(pe[1].current,(fe,ce)=>{let ye=pe[1].current[ce+(X?1:-1)];if(q(fe,ae),fe.ref){ye&&fe.update({to:ye.springs});return}ye?fe.start({to:ye.springs}):fe.start()})},B),V||arguments.length==3){let fe=ae??pe[1];return fe._getProps=(ce,ye,Be)=>{let Ee=os.is.fun(ce)?ce(Be,ye):ce;if(Ee){let Qe=fe.current[Be+(Ee.reverse?1:-1)];return Qe&&(Ee.to=Qe.springs),Ee}},pe}return pe[0]}var Il=f(I),Ta=I,ot=ct;function ss(M,T,B){let V=ot.is.fun(T)&&T,{reset:X,sort:ae,trail:pe=0,expires:fe=!0,exitBeforeEnter:ce=!1,onDestroyed:ye,ref:Be,config:Ee}=V?V():T,Qe=(0,Ta.useMemo)(()=>V||arguments.length==3?is():void 0,[]),Ve=(0,ot.toArray)(M),xe=[],Te=(0,Ta.useRef)(null),je=X?null:Te.current;(0,ot.useIsomorphicLayoutEffect)(()=>{Te.current=xe}),(0,ot.useOnce)(()=>((0,ot.each)(xe,Ae=>{Qe?.add(Ae.ctrl),Ae.ctrl.ref=Qe}),()=>{(0,ot.each)(Te.current,Ae=>{Ae.expired&&clearTimeout(Ae.expirationId),H(Ae.ctrl,Qe),Ae.ctrl.stop(!0)})}));let Pe=Ap(Ve,V?V():T,je),Ge=X&&Te.current||[];(0,ot.useIsomorphicLayoutEffect)(()=>(0,ot.each)(Ge,({ctrl:Ae,item:Ke,key:ar})=>{H(Ae,Qe),S(ye,Ke,ar)}));let Re=[];if(je&&(0,ot.each)(je,(Ae,Ke)=>{Ae.expired?(clearTimeout(Ae.expirationId),Ge.push(Ae)):(Ke=Re[Ke]=Pe.indexOf(Ae.key),~Ke&&(xe[Ke]=Ae))}),(0,ot.each)(Ve,(Ae,Ke)=>{xe[Ke]||(xe[Ke]={key:Pe[Ke],item:Ae,phase:"mount",ctrl:new _l},xe[Ke].ctrl.item=Ae)}),Re.length){let Ae=-1,{leave:Ke}=V?V():T;(0,ot.each)(Re,(ar,ir)=>{let vt=je[ir];~ar?(Ae=xe.indexOf(vt),xe[Ae]={...vt,item:Ve[ar]}):Ke&&xe.splice(++Ae,0,vt)})}ot.is.fun(ae)&&xe.sort((Ae,Ke)=>ae(Ae.item,Ke.item));let $e=-pe,Kt=(0,ot.useForceUpdate)(),nn=C(T),tt=new Map,Tt=(0,Ta.useRef)(new Map),Mt=(0,Ta.useRef)(!1);(0,ot.each)(xe,(Ae,Ke)=>{let ar=Ae.key,ir=Ae.phase,vt=V?V():T,Et,Sr,qn=S(vt.delay||0,ar);if(ir=="mount")Et=vt.enter,Sr="enter";else{let Yr=Pe.indexOf(ar)<0;if(ir!="leave")if(Yr)Et=vt.leave,Sr="leave";else if(Et=vt.update)Sr="update";else return;else if(!Yr)Et=vt.enter,Sr="enter";else return}if(Et=S(Et,Ae.item,Ke),Et=ot.is.obj(Et)?R(Et):{to:Et},!Et.config){let Yr=Ee||nn.config;Et.config=S(Yr,Ae.item,Ke,Sr)}$e+=pe;let Cr={...nn,delay:qn+$e,ref:Be,immediate:vt.immediate,reset:!1,...Et};if(Sr=="enter"&&ot.is.und(Cr.from)){let Yr=V?V():T,Da=ot.is.und(Yr.initial)||je?Yr.from:Yr.initial;Cr.from=S(Da,Ae.item,Ke)}let{onResolve:Aa}=Cr;Cr.onResolve=Yr=>{S(Aa,Yr);let Da=Te.current,Yt=Da.find(_r=>_r.key===ar);if(Yt&&!(Yr.cancelled&&Yt.phase!="update")&&Yt.ctrl.idle){let _r=Da.every(ft=>ft.ctrl.idle);if(Yt.phase=="leave"){let ft=S(fe,Yt.item);if(ft!==!1){let za=ft===!0?0:ft;if(Yt.expired=!0,!_r&&za>0){za<=2147483647&&(Yt.expirationId=setTimeout(Kt,za));return}}}_r&&Da.some(ft=>ft.expired)&&(Tt.current.delete(Yt),ce&&(Mt.current=!0),Kt())}};let Rl=rs(Ae.ctrl,Cr);Sr==="leave"&&ce?Tt.current.set(Ae,{phase:Sr,springs:Rl,payload:Cr}):tt.set(Ae,{phase:Sr,springs:Rl,payload:Cr})});let jr=(0,Ta.useContext)(Gn),Kr=(0,ot.usePrev)(jr),Wn=jr!==Kr&&F(jr);(0,ot.useIsomorphicLayoutEffect)(()=>{Wn&&(0,ot.each)(xe,Ae=>{Ae.ctrl.start({default:jr})})},[jr]),(0,ot.each)(tt,(Ae,Ke)=>{if(Tt.current.size){let ar=xe.findIndex(ir=>ir.key===Ke.key);xe.splice(ar,1)}}),(0,ot.useIsomorphicLayoutEffect)(()=>{(0,ot.each)(Tt.current.size?Tt.current:tt,({phase:Ae,payload:Ke},ar)=>{let{ctrl:ir}=ar;ar.phase=Ae,Qe?.add(ir),Wn&&Ae=="enter"&&ir.start({default:jr}),Ke&&(q(ir,Ke.ref),(ir.ref||Qe)&&!Mt.current?ir.update(Ke):(ir.start(Ke),Mt.current&&(Mt.current=!1)))})},X?void 0:B);let nr=Ae=>Il.createElement(Il.Fragment,null,xe.map((Ke,ar)=>{let{springs:ir}=tt.get(Ke)||Ke.ctrl,vt=Ae({...ir},Ke.item,Ke,ar);return vt&&vt.type?Il.createElement(vt.type,{...vt.props,key:ot.is.str(Ke.key)||ot.is.num(Ke.key)?Ke.key:Ke.ctrl.id,ref:vt.ref}):vt}));return Qe?[nr,Qe]:nr}var Nl=1;function Ap(M,{key:T,keys:B=T},V){if(B===null){let X=new Set;return M.map(ae=>{let pe=V&&V.find(fe=>fe.item===ae&&fe.phase!=="leave"&&!X.has(fe));return pe?(X.add(pe),pe.key):Nl++})}return ot.is.und(B)?M:ot.is.fun(B)?M.map(B):(0,ot.toArray)(B)}var ho=ct,di=({container:M,...T}={})=>{let[B,V]=co(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...T}),[]);return(0,ho.useIsomorphicLayoutEffect)(()=>{let X=(0,ho.onScroll)(({x:ae,y:pe})=>{V.start({scrollX:ae.current,scrollXProgress:ae.progress,scrollY:pe.current,scrollYProgress:pe.progress})},{container:M?.current||void 0});return()=>{(0,ho.each)(Object.values(B),ae=>ae.stop()),X()}},[]),B},Mn=ct,xt=({container:M,...T})=>{let[B,V]=co(()=>({width:0,height:0,...T}),[]);return(0,Mn.useIsomorphicLayoutEffect)(()=>{let X=(0,Mn.onResize)(({width:ae,height:pe})=>{V.start({width:ae,height:pe,immediate:B.width.get()===0||B.height.get()===0})},{container:M?.current||void 0});return()=>{(0,Mn.each)(Object.values(B),ae=>ae.stop()),X()}},[]),B},yt=I,In=ct,vr={any:0,all:1};function Lr(M,T){let[B,V]=(0,yt.useState)(!1),X=(0,yt.useRef)(),ae=In.is.fun(M)&&M,pe=ae?ae():{},{to:fe={},from:ce={},...ye}=pe,Be=ae?T:M,[Ee,Qe]=co(()=>({from:ce,...ye}),[]);return(0,In.useIsomorphicLayoutEffect)(()=>{let Ve=X.current,{root:xe,once:Te,amount:je="any",...Pe}=Be??{};if(!Ve||Te&&B||typeof IntersectionObserver>"u")return;let Ge=new WeakMap,Re=()=>(fe&&Qe.start(fe),V(!0),Te?void 0:()=>{ce&&Qe.start(ce),V(!1)}),$e=nn=>{nn.forEach(tt=>{let Tt=Ge.get(tt.target);if(tt.isIntersecting!==!!Tt)if(tt.isIntersecting){let Mt=Re();In.is.fun(Mt)?Ge.set(tt.target,Mt):Kt.unobserve(tt.target)}else Tt&&(Tt(),Ge.delete(tt.target))})},Kt=new IntersectionObserver($e,{root:xe&&xe.current||void 0,threshold:typeof je=="number"||Array.isArray(je)?je:vr[je],...Pe});return Kt.observe(Ve),()=>Kt.unobserve(Ve)},[Be]),ae?[X,Ee]:[X,B]}function La({children:M,...T}){return M(co(T))}var hi=ct;function Fr({items:M,children:T,...B}){let V=Pc(M.length,B);return M.map((X,ae)=>{let pe=T(X,ae);return hi.is.fun(pe)?pe(V[ae]):pe})}function ls({items:M,children:T,...B}){return ss(M,B)(T)}var Mc=ct,Rt=ct,da=gc,fo=class extends mr{constructor(M,T){super(),this.source=M,this.idle=!0,this._active=new Set,this.calc=(0,Rt.createInterpolator)(...T);let B=this._get(),V=(0,da.getAnimatedType)(B);(0,da.setAnimated)(this,V.create(B))}advance(M){let T=this._get(),B=this.get();(0,Rt.isEqual)(T,B)||((0,da.getAnimated)(this).setValue(T),this._onChange(T,this.idle)),!this.idle&&Ic(this._active)&&Ol(this)}_get(){let M=Rt.is.arr(this.source)?this.source.map(Rt.getFluidValue):(0,Rt.toArray)((0,Rt.getFluidValue)(this.source));return this.calc(...M)}_start(){this.idle&&!Ic(this._active)&&(this.idle=!1,(0,Rt.each)((0,da.getPayload)(this),M=>{M.done=!1}),Rt.Globals.skipAnimation?(Rt.raf.batchedUpdates(()=>this.advance()),Ol(this)):Rt.frameLoop.start(this))}_attach(){let M=1;(0,Rt.each)((0,Rt.toArray)(this.source),T=>{(0,Rt.hasFluidValue)(T)&&(0,Rt.addFluidObserver)(T,this),Jt(T)&&(T.idle||this._active.add(T),M=Math.max(M,T.priority+1))}),this.priority=M,this._start()}_detach(){(0,Rt.each)((0,Rt.toArray)(this.source),M=>{(0,Rt.hasFluidValue)(M)&&(0,Rt.removeFluidObserver)(M,this)}),this._active.clear(),Ol(this)}eventObserved(M){M.type=="change"?M.idle?this.advance():(this._active.add(M.parent),this._start()):M.type=="idle"?this._active.delete(M.parent):M.type=="priority"&&(this.priority=(0,Rt.toArray)(this.source).reduce((T,B)=>Math.max(T,(Jt(B)?B.priority:0)+1),0))}};function pn(M){return M.idle!==!1}function Ic(M){return!M.size||Array.from(M).every(pn)}function Ol(M){M.idle||(M.idle=!0,(0,Rt.each)((0,da.getPayload)(M),T=>{T.done=!0}),(0,Rt.callFluidObservers)(M,{type:"idle",parent:M}))}var Dp=(M,...T)=>new fo(M,T),us=(M,...T)=>((0,Mc.deprecateInterpolate)(),new fo(M,T)),Fa=ct;Fa.Globals.assign({createStringInterpolator:Fa.createStringInterpolator,to:(M,T)=>new fo(M,T)});var po=Fa.frameLoop.advance,ja=ct;d(v,Hj(),t.exports)})(D4);var Kj=D4.exports;A4.exports=Kj;var V8=A4.exports;(function(t){var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i=(K,z)=>{for(var ee in z)e(K,ee,{get:z[ee],enumerable:!0})},s=(K,z,ee,Q)=>{if(z&&typeof z=="object"||typeof z=="function")for(let oe of n(z))!a.call(K,oe)&&oe!==ee&&e(K,oe,{get:()=>z[oe],enumerable:!(Q=r(z,oe))||Q.enumerable});return K},u=(K,z,ee)=>(s(K,z,"default"),ee&&s(ee,z,"default")),c=K=>s(e({},"__esModule",{value:!0}),K),d={};i(d,{a:()=>se,animated:()=>se}),t.exports=c(d);var f=V8,m=Oh,v=ct,y=gc,b=/^--/;function S(K,z){return z==null||typeof z=="boolean"||z===""?"":typeof z=="number"&&z!==0&&!b.test(K)&&!(k.hasOwnProperty(K)&&k[K])?z+"px":(""+z).trim()}var E={};function x(K,z){if(!K.nodeType||!K.setAttribute)return!1;let ee=K.nodeName==="filter"||K.parentNode&&K.parentNode.nodeName==="filter",{style:Q,children:oe,scrollTop:he,scrollLeft:Ce,viewBox:ge,...Me}=z,Ne=Object.values(Me),$=Object.keys(Me).map(re=>ee||K.hasAttribute(re)?re:E[re]||(E[re]=re.replace(/([A-Z])/g,le=>"-"+le.toLowerCase())));oe!==void 0&&(K.textContent=oe);for(let re in Q)if(Q.hasOwnProperty(re)){let le=S(re,Q[re]);b.test(re)?K.style.setProperty(re,le):K.style[re]=le}$.forEach((re,le)=>{K.setAttribute(re,Ne[le])}),he!==void 0&&(K.scrollTop=he),Ce!==void 0&&(K.scrollLeft=Ce),ge!==void 0&&K.setAttribute("viewBox",ge)}var k={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=(K,z)=>K+z.charAt(0).toUpperCase()+z.substring(1),C=["Webkit","Ms","Moz","O"];k=Object.keys(k).reduce((K,z)=>(C.forEach(ee=>K[g(ee,z)]=K[z]),K),k);var N=gc,O=ct,D=/^(matrix|translate|scale|rotate|skew)/,R=/^(translate)/,A=/^(rotate|skew)/,F=(K,z)=>O.is.num(K)&&K!==0?K+z:K,U=(K,z)=>O.is.arr(K)?K.every(ee=>U(ee,z)):O.is.num(K)?K===z:parseFloat(K)===z,H=class extends N.AnimatedObject{constructor({x:K,y:z,z:ee,...Q}){let oe=[],he=[];(K||z||ee)&&(oe.push([K||0,z||0,ee||0]),he.push(Ce=>[`translate3d(${Ce.map(ge=>F(ge,"px")).join(",")})`,U(Ce,0)])),(0,O.eachProp)(Q,(Ce,ge)=>{if(ge==="transform")oe.push([Ce||""]),he.push(Me=>[Me,Me===""]);else if(D.test(ge)){if(delete Q[ge],O.is.und(Ce))return;let Me=R.test(ge)?"px":A.test(ge)?"deg":"";oe.push((0,O.toArray)(Ce)),he.push(ge==="rotate3d"?([Ne,$,re,le])=>[`rotate3d(${Ne},${$},${re},${F(le,Me)})`,U(le,0)]:Ne=>[`${ge}(${Ne.map($=>F($,Me)).join(",")})`,U(Ne,ge.startsWith("scale")?1:0)])}}),oe.length&&(Q.transform=new q(oe,he)),super(Q)}},q=class extends O.FluidValue{constructor(K,z){super(),this.inputs=K,this.transforms=z,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let K="",z=!0;return(0,O.each)(this.inputs,(ee,Q)=>{let oe=(0,O.getFluidValue)(ee[0]),[he,Ce]=this.transforms[Q](O.is.arr(oe)?oe:ee.map(O.getFluidValue));K+=" "+he,z=z&&Ce}),z?"none":K}observerAdded(K){K==1&&(0,O.each)(this.inputs,z=>(0,O.each)(z,ee=>(0,O.hasFluidValue)(ee)&&(0,O.addFluidObserver)(ee,this)))}observerRemoved(K){K==0&&(0,O.each)(this.inputs,z=>(0,O.each)(z,ee=>(0,O.hasFluidValue)(ee)&&(0,O.removeFluidObserver)(ee,this)))}eventObserved(K){K.type=="change"&&(this._value=null),(0,O.callFluidObservers)(this,K)}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];u(d,V8,t.exports),f.Globals.assign({batchedUpdates:m.unstable_batchedUpdates,createStringInterpolator:v.createStringInterpolator,colors:v.colors});var ie=(0,y.createHost)(ne,{applyAnimatedValues:x,createAnimatedStyle:K=>new H(K),getComponentProps:({scrollTop:K,scrollLeft:z,...ee})=>ee}),se=ie.animated})(j4);var Yj=j4.exports;F4.exports=Yj;var Qj=F4.exports;const{useState:Zj,useEffect:Xj}=I;function Jj(){const[t,e]=Zj({width:void 0,height:void 0});return Xj(()=>{function r(){e({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",r),r(),()=>window.removeEventListener("resize",r)},[]),t}var eA=Jj;const wl=I,{useSpring:tA,animated:rA}=Qj,nA=eA,ao={maxTilt:25,rotationPower:50,swipeThreshold:.5},Cy={touchResponsive:{friction:50,tension:2e3},animateOut:{friction:30,tension:400},animateBack:{friction:10,tension:200}},G8=(t,e)=>Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),aA=t=>{const e=Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2));return{x:t.x/e,y:t.y/e}},mc=async(t,e,r,n)=>{const a=G8(r,n),i=G8(t.x,t.y),s=a*t.x,u=a*t.y,c=t.x*45,d=a/i;return e.start({xyrot:[s,u,c],config:{duration:d}}),await new Promise(f=>setTimeout(()=>{f()},d))},W8=t=>new Promise(e=>{t.start({xyrot:[0,0,0],config:Cy.animateBack,onRest:e})}),q8=t=>{if(Math.abs(t.x)>Math.abs(t.y)){if(t.x>ao.swipeThreshold)return"right";if(t.x<-ao.swipeThreshold)return"left"}else{if(t.y>ao.swipeThreshold)return"down";if(t.y<-ao.swipeThreshold)return"up"}return"none"},iA=rA.div,oA=wl.forwardRef(({flickOnSwipe:t=!0,children:e,onSwipe:r,onCardLeftScreen:n,className:a,preventSwipe:i=[],swipeRequirementType:s="velocity",swipeThreshold:u=ao.swipeThreshold,onSwipeRequirementFulfilled:c,onSwipeRequirementUnfulfilled:d},f)=>{const{width:m,height:v}=nA(),[{xyrot:y},b]=tA(()=>({xyrot:[0,0,0],config:Cy.touchResponsive}));ao.swipeThreshold=u,wl.useImperativeHandle(f,()=>({async swipe(g="right"){r&&r(g);const C=1.3,N=(Math.random()-.5)/2;g==="right"?await mc({x:C,y:N},b,m,v):g==="left"?await mc({x:-C,y:N},b,m,v):g==="up"?await mc({x:N,y:-C},b,m,v):g==="down"&&await mc({x:N,y:C},b,m,v),n&&n(g)},async restoreCard(){await W8(b)}}));const S=wl.useCallback(async(g,C)=>{const N=q8({x:s==="velocity"?C.vx:C.dx,y:s==="velocity"?C.vy:C.dy});if(N!=="none"&&t&&!i.includes(N)){r&&r(N),await mc(s==="velocity"?{x:C.vx,y:C.vy}:aA({x:C.dx,y:C.dy}),g,m,v),n&&n(N);return}W8(g)},[s,t,i,r,n,m,v]);let E="none";const x=(g,C,N,O)=>{let D=O?g.touches[0].clientX-C.x:g.clientX-C.x,R=O?g.touches[0].clientY-C.y:g.clientY-C.y;C.x===0&&C.y===0&&(D=0,R=0);const A=-(D-N.dx)/(N.timeStamp-Date.now()),F=-(R-N.dy)/(N.timeStamp-Date.now());return{dx:D,dy:R,vx:A,vy:F,timeStamp:Date.now()}};wl.useLayoutEffect(()=>{let g={x:0,y:0},C={dx:0,dy:0,vx:0,vy:0,timeStamp:Date.now()},N=!1;const O=q=>{!q.srcElement.className.includes("pressable")&&q.cancelable&&q.preventDefault(),C=x(q,g,C,!0),g={x:q.touches[0].clientX,y:q.touches[0].clientY}};k.current.addEventListener("touchstart",O);const D=q=>{N=!0,C=x(q,g,C,!1),g={x:q.clientX,y:q.clientY}};k.current.addEventListener("mousedown",D);const R=q=>{if(c||d){const ie=q8({x:s==="velocity"?q.vx:q.dx,y:s==="velocity"?q.vy:q.dy});ie!==E&&(E=ie,E==="none"?d&&d():c&&c(ie))}let ne=q.vx*15;isNaN(ne)&&(ne=0),ne=Math.max(Math.min(ne,ao.maxTilt),-ao.maxTilt),b.start({xyrot:[q.dx,q.dy,ne],config:Cy.touchResponsive})},A=q=>{if(!N)return;const ne=x(q,g,C,!1);C=ne,R(ne)};window.addEventListener("mousemove",A);const F=q=>{N&&(N=!1,S(b,C),g={x:0,y:0},C={dx:0,dy:0,vx:0,vy:0,timeStamp:Date.now()})};window.addEventListener("mouseup",F);const U=q=>{const ne=x(q,g,C,!0);C=ne,R(ne)};k.current.addEventListener("touchmove",U);const H=q=>{S(b,C),g={x:0,y:0},C={dx:0,dy:0,vx:0,vy:0,timeStamp:Date.now()}};return k.current.addEventListener("touchend",H),()=>{k.current.removeEventListener("touchstart",O),k.current.removeEventListener("touchmove",U),k.current.removeEventListener("touchend",H),window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",F),k.current.removeEventListener("mousedown",D)}},[S,b,c,d]);const k=wl.useRef();return wl.createElement(iA,{ref:k,className:a,style:{transform:y.to((g,C,N)=>`translate3d(${g}px, ${C}px, 0px) rotate(${N}deg)`)},children:e})});var sA=oA;const lA=Ga(sA);function _n(t){return e=>typeof e=="string"&&new RegExp(t.source,t.flags).test(e)}const uA=_n(/^[1-9][0-9]*$/),_y=_n(/^((Q|P|L|M)[1-9][0-9]*|L[1-9][0-9]*-(F|S)[1-9][0-9]*)$/),cA=_n(/^E[1-9][0-9]*$/),xp=_n(/^Q[1-9][0-9]*$/),Sp=_n(/^P[1-9][0-9]*$/),H8=_n(/^L[1-9][0-9]*$/),K8=_n(/^L[1-9][0-9]*-F[1-9][0-9]*$/),Y8=_n(/^L[1-9][0-9]*-S[1-9][0-9]*$/),dA=_n(/^M[1-9][0-9]*$/),hA=_n(/^((Q|P|L|M)[1-9][0-9]*|L[1-9][0-9]*-(F|S)[1-9][0-9]*)\$[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),fA=_n(/^[0-9a-f]{40}$/),Q8=_n(/^\d+$/),Z8=_n(/^(Q|P|L|M)[1-9][0-9]*$/);function pA(t){if(typeof t!="string")return!1;const[e,r]=t.split("#");return _y(e)&&Sp(r)}function X8(t){return typeof t!="string"?!1:t.startsWith("Item:")?xp(t.substring(5)):t.startsWith("Lexeme:")?H8(t.substring(7)):t.startsWith("Property:")?Sp(t.substring(9)):xp(t)}function gA(t){if(!Z8(t))throw new Error(`invalid entity id: ${t}`);return t.replace(/^(Q|P|L|M)/,"")}function mA(t,e){let r=`https://commons.wikimedia.org/wiki/Special:FilePath/${t}`;return typeof e=="number"&&(r+=`?width=${e}`),r}function vA(t){const e=t.split(/[$-]/);if(e.length===6)return e[0].toUpperCase();if(e.length===7)return e.slice(0,2).join("-").toUpperCase();throw new Error(`invalid guid: ${t}`)}const yA=Object.freeze(Object.defineProperty({__proto__:null,getEntityIdFromGuid:vA,getImageUrl:mA,getNumericId:gA,isEntityId:_y,isEntityPageTitle:X8,isEntitySchemaId:cA,isFormId:K8,isGuid:hA,isHash:fA,isItemId:xp,isLexemeId:H8,isMediaInfoId:dA,isNonNestedEntityId:Z8,isNumericId:uA,isPropertyClaimsId:pA,isPropertyId:Sp,isRevisionId:Q8,isSenseId:Y8},Symbol.toStringTag,{value:"Module"}));function Pa(t){return typeof t=="string"?[t]:Array.isArray(t)?[...t]:[]}function J8(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}const e6=t=>encodeURIComponent(t).replace(/[!'()*]/g,kA),bA=t=>t.replace(/\s/g,"_");function wA(t){return Array.from(new Set(t))}const kA=t=>"%"+t.charCodeAt(0).toString(16);function io(t){if(t.length!==1||!J8(t[0]))throw new Error(`Since wikibase-sdk v9.0.0, this function expects arguments to be passed in an object See https://github.com/maxlath/wikibase-sdk/blob/main/CHANGELOG.md`)}function vc(t,e){return typeof e=="string"&&t.includes(e)}function Ey(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Py(t){return Object.entries(t)}function My(t){typeof t=="object"&&(t=t.time);const e=t[0];let[r,n]=t.slice(1).split("T");r=r.replace(/-00/g,"-01");const a=`${r}T${n}`;return xA(e,a)}const xA=(t,e)=>{const r=e.split("-")[0];return t==="-"||r.length>4?SA(t,e,r):new Date(e)},SA=(t,e,r)=>{let n;return r.length===4?n=`${t}00${e}`:r.length===5?n=`${t}0${e}`:n=t+e,new Date(n)};function Iy(t){return e=>{try{return t(e)}catch{e=typeof e=="string"?e:e.time;const r=e[0];let[n,a]=e.slice(1).split("T");if(!r||!n||!a)throw new Error("TimeInput is invalid: "+JSON.stringify(e));return n=n.replace(/-00/g,"-01"),`${r}${n}T${a}`}}}const CA=t=>My(t).getTime(),_A=t=>My(t).toISOString(),EA=t=>{if(typeof t=="object"){const{time:e,precision:r}=t;r===9?t=e.replace("-01-01T","-00-00T"):r===10?t=e.replace("-01T","-00T"):t=e}return t.split("T")[0].replace(/^\+/,"").replace(/^(-?)0+/,"$1").replace(/-00$/,"").replace(/-00$/,"")},t6=Iy(CA),r6=Iy(_A),n6=Iy(EA),PA=Object.freeze(Object.defineProperty({__proto__:null,wikibaseTimeToDateObject:My,wikibaseTimeToEpochTime:t6,wikibaseTimeToISOString:r6,wikibaseTimeToSimpleDay:n6},Symbol.toStringTag,{value:"Module"})),oo=t=>t.value,MA=(t,e)=>e.keepRichValues?t.value:t.value.text,kl=(t,e)=>NA(t,e.entityPrefix),IA={item:"Q",lexeme:"L",property:"P"},NA=(t,e)=>{const{value:r}=t,n=r.id||IA[r["entity-type"]]+r["numeric-id"];return typeof e=="string"?`${e}:${n}`:n},OA=(t,e)=>{const{value:r}=t,n=parseFloat(r.amount);if(e.keepRichValues){const a={amount:parseFloat(r.amount),unit:r.unit.replace(/^https?:\/\/.*\/entity\//,"")};return r.upperBound!=null&&(a.upperBound=parseFloat(r.upperBound)),r.lowerBound!=null&&(a.lowerBound=parseFloat(r.lowerBound)),a}else return n},RA=(t,e)=>e.keepRichValues?t.value:[t.value.latitude,t.value.longitude],TA=(t,e)=>{let r;if(typeof e.timeConverter=="function"?r=e.timeConverter(t.value):r=LA(e.timeConverter)(t.value),e.keepRichValues){const{timezone:n,before:a,after:i,precision:s,calendarmodel:u}=t.value;return{time:r,timezone:n,before:a,after:i,precision:s,calendarmodel:u}}else return r},LA=(t="iso")=>{const e=FA[t];if(!e)throw new Error(`invalid converter key: ${JSON.stringify(t).substring(0,100)}`);return e},FA={iso:r6,epoch:t6,"simple-day":n6,none:t=>typeof t=="string"?t:t.time},jA={commonsMedia:oo,"external-id":oo,"geo-shape":oo,"globe-coordinate":RA,math:oo,monolingualtext:MA,"musical-notation":oo,quantity:OA,string:oo,"tabular-data":oo,time:TA,url:oo,"wikibase-entityid":kl,"wikibase-form":kl,"wikibase-item":kl,"wikibase-lexeme":kl,"wikibase-property":kl,"wikibase-sense":kl},a6=t=>t.toLowerCase().replace(/[\s-]/g,""),i6={};for(const[t,e]of Object.entries(jA))i6[a6(t)]=e;function AA(t,e,r,n){t=t||e.type;try{const a=i6[a6(t)];return a(e,r)}catch(a){throw a.message==="parsers[datatype] is not a function"&&(a.message=`${t} claim parser isn't implemented Claim id: ${n} Please report to https://github.com/maxlath/wikibase-sdk/issues`),a}}function Ny(t){const e={};for(const r of t){const{rank:n}=r;e[n]=e[n]||[],e[n].push(r)}return e.preferred||e.normal||[]}function o6(t){return t.filter(e=>e.rank!=="deprecated")}function DA(t){const e={};for(const[r,n]of Py(t))e[r]=Ny(n);return e}const zA=Object.freeze(Object.defineProperty({__proto__:null,nonDeprecatedPropertyClaims:o6,truthyClaims:DA,truthyPropertyClaims:Ny},Symbol.toStringTag,{value:"Module"}));function Oy(t,e){const{propertyPrefix:r}=e,n={};for(let a in t){const i=t[a];r&&(a=r+":"+a),n[a]=Ry(i,e)}return n}function Ry(t,e){if(t==null||t.length===0)return[];const{keepNonTruthy:r,keepNonDeprecated:n,areSubSnaks:a}=d6(e);return n?t=o6(t):r||a||(t=Ny(t)),t=t.map(i=>Ty(i,e)).filter(i=>i!==void 0),t[0]&&typeof t[0]!="object"?wA(t):t}function s6(t,e){const{keepQualifiers:r,keepReferences:n,keepIds:a,keepHashes:i,keepTypes:s,keepSnaktypes:u,keepRanks:c}=d6(e),{mainsnak:d,rank:f}=t;let m,v,y,b,S,E;if(d?(v=d.datatype,y=d.datavalue,b=d.snaktype):(y=t.datavalue,v=t.datatype,b=t.snaktype,t.hash?S=!0:E=!0),y)m=AA(v,y,e,t.id);else if(b==="somevalue")m=e.somevalueValue;else if(b==="novalue")m=e.novalueValue;else throw new Error("no datavalue or special snaktype found");if(S){if(!(i||s||u))return m;const g={value:m};return i&&(g.hash=t.hash),s&&(g.type=v),u&&(g.snaktype=b),g}if(E)return s?{type:v,value:m}:m;if(!(r||n||a||s||u||c))return m;const x={value:m};s&&(x.type=v),u&&(x.snaktype=b),c&&(x.rank=f);const k=Cp(e);return k.keepHashes=i,r&&(x.qualifiers=u6(t.qualifiers,k)),n&&(t.references=t.references||[],x.references=c6(t.references,k)),a&&(x.id=t.id),x}function xl(t,e={}){return Oy(t,e)}function l6(t,e={}){return Ry(t,e)}function Ty(t,e={}){return s6(t,e)}function u6(t,e={}){return Oy(t,Cp(e))}function BA(t,e={}){return Ry(t,Cp(e))}function UA(t,e={}){return s6(t,e)}function c6(t,e={}){return t.map(r=>$A(r,e))}function $A(t,e={}){const r=Cp(e),n=Oy(t.snaks,r);return r.keepHashes?{snaks:n,hash:t.hash}:n}const Cp=(t={})=>t.areSubSnaks?t:Object.assign({},t,{areSubSnaks:!0}),VA=["keepQualifiers","keepReferences","keepIds","keepHashes","keepTypes","keepSnaktypes","keepRanks","keepRichValues"],d6=(t={})=>(t.keepAll&&VA.forEach(e=>{t[e]==null&&(t[e]=!0)}),t);function yc(t){const e={};for(const[r,n]of Py(t))e[r]=n!=null?n.value:null;return e}function GA(t){const e={};for(const[r,n]of Py(t))e[r]=n!=null?n.map(a=>a.value):[];return e}function h6(t){return yc(t)}function f6(t){return yc(t)}function p6(t){return GA(t)}function g6(t){return yc(t)}function m6(t){return yc(t)}function v6(t){return yc(t)}const y6=(t,e={})=>{const{id:r,representations:n,grammaticalFeatures:a,claims:i}=t;if(!K8(r))throw new Error("invalid form object");return{id:r,representations:m6(n),grammaticalFeatures:a,claims:xl(i,e)}},b6=(t,e={})=>t.map(r=>y6(r,e)),w6=(t,e={})=>{const{id:r,glosses:n,claims:a}=t;if(!Y8(r))throw new Error("invalid sense object");return{id:r,glosses:v6(n),claims:xl(a,e)}};function k6(t,e={}){return t.map(r=>w6(r,e))}const Ly={commonswiki:"commons",foundationwiki:"foundation",mediawikiwiki:"mediawiki",metawiki:"meta",outreachwiki:"outreach",sourceswiki:"sources",specieswiki:"species",wikidatawiki:"wikidata",wikifunctionswiki:"wikifunctions",wikimaniawiki:"wikimania"},Fy=["aawiki","aawikibooks","aawiktionary","abwiki","abwiktionary","acewiki","adywiki","afwiki","afwikibooks","afwikiquote","afwiktionary","akwiki","akwikibooks","akwiktionary","alswiki","alswikibooks","alswikiquote","alswiktionary","altwiki","amiwiki","amwiki","amwikiquote","amwiktionary","angwiki","angwikibooks","angwikiquote","angwikisource","angwiktionary","anpwiki","anwiki","anwiktionary","arcwiki","arwiki","arwikibooks","arwikinews","arwikiquote","arwikisource","arwikiversity","arwiktionary","arywiki","arzwiki","astwiki","astwikibooks","astwikiquote","astwiktionary","aswiki","aswikibooks","aswikiquote","aswikisource","aswiktionary","atjwiki","avkwiki","avwiki","avwiktionary","awawiki","aywiki","aywikibooks","aywiktionary","azbwiki","azwiki","azwikibooks","azwikiquote","azwikisource","azwiktionary","banwiki","banwikisource","barwiki","bat_smgwiki","bawiki","bawikibooks","bbcwiki","bclwiki","bclwikiquote","bclwiktionary","be_x_oldwiki","bewiki","bewikibooks","bewikiquote","bewikisource","bewiktionary","bgwiki","bgwikibooks","bgwikinews","bgwikiquote","bgwikisource","bgwiktionary","bhwiki","bhwiktionary","biwiki","biwikibooks","biwiktionary","bjnwiki","bjnwikiquote","bjnwiktionary","blkwiki","blkwiktionary","bmwiki","bmwikibooks","bmwikiquote","bmwiktionary","bnwiki","bnwikibooks","bnwikiquote","bnwikisource","bnwikivoyage","bnwiktionary","bowiki","bowikibooks","bowiktionary","bpywiki","brwiki","brwikiquote","brwikisource","brwiktionary","bswiki","bswikibooks","bswikinews","bswikiquote","bswikisource","bswiktionary","btmwiktionary","bugwiki","bxrwiki","cawiki","cawikibooks","cawikinews","cawikiquote","cawikisource","cawiktionary","cbk_zamwiki","cdowiki","cebwiki","cewiki","chowiki","chrwiki","chrwiktionary","chwiki","chwikibooks","chwiktionary","chywiki","ckbwiki","ckbwiktionary","commonswiki","cowiki","cowikibooks","cowikiquote","cowiktionary","crhwiki","crwiki","crwikiquote","crwiktionary","csbwiki","csbwiktionary","cswiki","cswikibooks","cswikinews","cswikiquote","cswikisource","cswikiversity","cswiktionary","cuwiki","cvwiki","cvwikibooks","cywiki","cywikibooks","cywikiquote","cywikisource","cywiktionary","dagwiki","dawiki","dawikibooks","dawikiquote","dawikisource","dawiktionary","dewiki","dewikibooks","dewikinews","dewikiquote","dewikisource","dewikiversity","dewikivoyage","dewiktionary","dgawiki","dinwiki","diqwiki","diqwiktionary","dsbwiki","dtywiki","dvwiki","dvwiktionary","dzwiki","dzwiktionary","eewiki","elwiki","elwikibooks","elwikinews","elwikiquote","elwikisource","elwikiversity","elwikivoyage","elwiktionary","emlwiki","enwiki","enwikibooks","enwikinews","enwikiquote","enwikisource","enwikiversity","enwikivoyage","enwiktionary","eowiki","eowikibooks","eowikinews","eowikiquote","eowikisource","eowikivoyage","eowiktionary","eswiki","eswikibooks","eswikinews","eswikiquote","eswikisource","eswikiversity","eswikivoyage","eswiktionary","etwiki","etwikibooks","etwikiquote","etwikisource","etwiktionary","euwiki","euwikibooks","euwikiquote","euwikisource","euwiktionary","extwiki","fatwiki","fawiki","fawikibooks","fawikinews","fawikiquote","fawikisource","fawikivoyage","fawiktionary","ffwiki","fiu_vrowiki","fiwiki","fiwikibooks","fiwikinews","fiwikiquote","fiwikisource","fiwikiversity","fiwikivoyage","fiwiktionary","fjwiki","fjwiktionary","fonwiki","foundationwiki","fowiki","fowikisource","fowiktionary","frpwiki","frrwiki","frwiki","frwikibooks","frwikinews","frwikiquote","frwikisource","frwikiversity","frwikivoyage","frwiktionary","furwiki","fywiki","fywikibooks","fywiktionary","gagwiki","ganwiki","gawiki","gawikibooks","gawikiquote","gawiktionary","gcrwiki","gdwiki","gdwiktionary","glkwiki","glwiki","glwikibooks","glwikiquote","glwikisource","glwiktionary","gnwiki","gnwikibooks","gnwiktionary","gomwiki","gomwiktionary","gorwiki","gorwiktionary","gotwiki","gotwikibooks","gpewiki","gucwiki","gurwiki","guwiki","guwikibooks","guwikiquote","guwikisource","guwiktionary","guwwiki","guwwikinews","guwwikiquote","guwwiktionary","gvwiki","gvwiktionary","hakwiki","hawiki","hawiktionary","hawwiki","hewiki","hewikibooks","hewikinews","hewikiquote","hewikisource","hewikivoyage","hewiktionary","hifwiki","hifwiktionary","hiwiki","hiwikibooks","hiwikiquote","hiwikisource","hiwikiversity","hiwikivoyage","hiwiktionary","howiki","hrwiki","hrwikibooks","hrwikiquote","hrwikisource","hrwiktionary","hsbwiki","hsbwiktionary","htwiki","htwikisource","huwiki","huwikibooks","huwikinews","huwikiquote","huwikisource","huwiktionary","hywiki","hywikibooks","hywikiquote","hywikisource","hywiktionary","hywwiki","hzwiki","iawiki","iawikibooks","iawiktionary","idwiki","idwikibooks","idwikiquote","idwikisource","idwiktionary","iewiki","iewikibooks","iewiktionary","igwiki","igwikiquote","igwiktionary","iiwiki","ikwiki","ikwiktionary","ilowiki","inhwiki","iowiki","iowiktionary","iswiki","iswikibooks","iswikiquote","iswikisource","iswiktionary","itwiki","itwikibooks","itwikinews","itwikiquote","itwikisource","itwikiversity","itwikivoyage","itwiktionary","iuwiki","iuwiktionary","jamwiki","jawiki","jawikibooks","jawikinews","jawikiquote","jawikisource","jawikiversity","jawikivoyage","jawiktionary","jbowiki","jbowiktionary","jvwiki","jvwikisource","jvwiktionary","kaawiki","kabwiki","kawiki","kawikibooks","kawikiquote","kawiktionary","kbdwiki","kbdwiktionary","kbpwiki","kcgwiki","kcgwiktionary","kgwiki","kiwiki","kjwiki","kkwiki","kkwikibooks","kkwikiquote","kkwiktionary","klwiki","klwiktionary","kmwiki","kmwikibooks","kmwiktionary","knwiki","knwikibooks","knwikiquote","knwikisource","knwiktionary","koiwiki","kowiki","kowikibooks","kowikinews","kowikiquote","kowikisource","kowikiversity","kowiktionary","krcwiki","krwiki","krwikiquote","kshwiki","kswiki","kswikibooks","kswikiquote","kswiktionary","kuwiki","kuwikibooks","kuwikiquote","kuwiktionary","kvwiki","kwwiki","kwwikiquote","kwwiktionary","kywiki","kywikibooks","kywikiquote","kywiktionary","ladwiki","lawiki","lawikibooks","lawikiquote","lawikisource","lawiktionary","lbewiki","lbwiki","lbwikibooks","lbwikiquote","lbwiktionary","lezwiki","lfnwiki","lgwiki","lijwiki","lijwikisource","liwiki","liwikibooks","liwikinews","liwikiquote","liwikisource","liwiktionary","lldwiki","lmowiki","lmowiktionary","lnwiki","lnwikibooks","lnwiktionary","lowiki","lowiktionary","lrcwiki","ltgwiki","ltwiki","ltwikibooks","ltwikiquote","ltwikisource","ltwiktionary","lvwiki","lvwikibooks","lvwiktionary","madwiki","maiwiki","map_bmswiki","mdfwiki","mediawikiwiki","metawiki","mgwiki","mgwikibooks","mgwiktionary","mhrwiki","mhwiki","mhwiktionary","minwiki","minwiktionary","miwiki","miwikibooks","miwiktionary","mkwiki","mkwikibooks","mkwikisource","mkwiktionary","mlwiki","mlwikibooks","mlwikiquote","mlwikisource","mlwiktionary","mniwiki","mniwiktionary","mnwiki","mnwikibooks","mnwiktionary","mnwwiki","mnwwiktionary","mowiki","mowiktionary","mrjwiki","mrwiki","mrwikibooks","mrwikiquote","mrwikisource","mrwiktionary","mswiki","mswikibooks","mswiktionary","mtwiki","mtwiktionary","muswiki","mwlwiki","myvwiki","mywiki","mywikibooks","mywiktionary","mznwiki","nahwiki","nahwikibooks","nahwiktionary","napwiki","napwikisource","nawiki","nawikibooks","nawikiquote","nawiktionary","nds_nlwiki","ndswiki","ndswikibooks","ndswikiquote","ndswiktionary","newiki","newikibooks","newiktionary","newwiki","ngwiki","niawiki","niawiktionary","nlwiki","nlwikibooks","nlwikinews","nlwikiquote","nlwikisource","nlwikivoyage","nlwiktionary","nnwiki","nnwikiquote","nnwiktionary","novwiki","nowiki","nowikibooks","nowikinews","nowikiquote","nowikisource","nowiktionary","nqowiki","nrmwiki","nsowiki","nvwiki","nywiki","ocwiki","ocwikibooks","ocwiktionary","olowiki","omwiki","omwiktionary","orwiki","orwikisource","orwiktionary","oswiki","outreachwiki","pagwiki","pamwiki","papwiki","pawiki","pawikibooks","pawikisource","pawiktionary","pcdwiki","pcmwiki","pdcwiki","pflwiki","pihwiki","piwiki","piwiktionary","plwiki","plwikibooks","plwikinews","plwikiquote","plwikisource","plwikivoyage","plwiktionary","pmswiki","pmswikisource","pnbwiki","pnbwiktionary","pntwiki","pswiki","pswikibooks","pswikivoyage","pswiktionary","ptwiki","ptwikibooks","ptwikinews","ptwikiquote","ptwikisource","ptwikiversity","ptwikivoyage","ptwiktionary","pwnwiki","quwiki","quwikibooks","quwikiquote","quwiktionary","rmwiki","rmwikibooks","rmwiktionary","rmywiki","rnwiki","rnwiktionary","roa_rupwiki","roa_rupwiktionary","roa_tarawiki","rowiki","rowikibooks","rowikinews","rowikiquote","rowikisource","rowikivoyage","rowiktionary","ruewiki","ruwiki","ruwikibooks","ruwikinews","ruwikiquote","ruwikisource","ruwikiversity","ruwikivoyage","ruwiktionary","rwwiki","rwwiktionary","sahwiki","sahwikiquote","sahwikisource","satwiki","sawiki","sawikibooks","sawikiquote","sawikisource","sawiktionary","scnwiki","scnwiktionary","scowiki","scwiki","scwiktionary","sdwiki","sdwikinews","sdwiktionary","sewiki","sewikibooks","sgwiki","sgwiktionary","shiwiki","shnwiki","shnwikibooks","shnwikivoyage","shnwiktionary","shwiki","shwiktionary","shywiktionary","simplewiki","simplewikibooks","simplewikiquote","simplewiktionary","siwiki","siwikibooks","siwiktionary","skrwiki","skrwiktionary","skwiki","skwikibooks","skwikiquote","skwikisource","skwiktionary","slwiki","slwikibooks","slwikiquote","slwikisource","slwikiversity","slwiktionary","smnwiki","smwiki","smwiktionary","snwiki","snwiktionary","sourceswiki","sowiki","sowiktionary","specieswiki","sqwiki","sqwikibooks","sqwikinews","sqwikiquote","sqwiktionary","srnwiki","srwiki","srwikibooks","srwikinews","srwikiquote","srwikisource","srwiktionary","sswiki","sswiktionary","stqwiki","stwiki","stwiktionary","suwiki","suwikibooks","suwikiquote","suwikisource","suwiktionary","svwiki","svwikibooks","svwikinews","svwikiquote","svwikisource","svwikiversity","svwikivoyage","svwiktionary","swwiki","swwikibooks","swwiktionary","szlwiki","szywiki","tawiki","tawikibooks","tawikinews","tawikiquote","tawikisource","tawiktionary","taywiki","tcywiki","tetwiki","tewiki","tewikibooks","tewikiquote","tewikisource","tewiktionary","tgwiki","tgwikibooks","tgwiktionary","thwiki","thwikibooks","thwikinews","thwikiquote","thwikisource","thwiktionary","tiwiki","tiwiktionary","tkwiki","tkwikibooks","tkwikiquote","tkwiktionary","tlwiki","tlwikibooks","tlwikiquote","tlwiktionary","tlywiki","tnwiki","tnwiktionary","towiki","towiktionary","tpiwiki","tpiwiktionary","trvwiki","trwiki","trwikibooks","trwikinews","trwikiquote","trwikisource","trwikivoyage","trwiktionary","tswiki","tswiktionary","ttwiki","ttwikibooks","ttwikiquote","ttwiktionary","tumwiki","twwiki","twwiktionary","tyvwiki","tywiki","udmwiki","ugwiki","ugwikibooks","ugwikiquote","ugwiktionary","ukwiki","ukwikibooks","ukwikinews","ukwikiquote","ukwikisource","ukwikivoyage","ukwiktionary","urwiki","urwikibooks","urwikiquote","urwiktionary","uzwiki","uzwikibooks","uzwikiquote","uzwiktionary","vecwiki","vecwikisource","vecwiktionary","vepwiki","vewiki","viwiki","viwikibooks","viwikiquote","viwikisource","viwikivoyage","viwiktionary","vlswiki","vowiki","vowikibooks","vowikiquote","vowiktionary","warwiki","wawiki","wawikibooks","wawikisource","wawiktionary","wikidatawiki","wikifunctionswiki","wikimaniawiki","wowiki","wowikiquote","wowiktionary","wuuwiki","xalwiki","xhwiki","xhwikibooks","xhwiktionary","xmfwiki","yiwiki","yiwikisource","yiwiktionary","yowiki","yowikibooks","yowiktionary","yuewiktionary","zawiki","zawikibooks","zawikiquote","zawiktionary","zeawiki","zghwiki","zh_classicalwiki","zh_min_nanwiki","zh_min_nanwikibooks","zh_min_nanwikiquote","zh_min_nanwikisource","zh_min_nanwiktionary","zh_yuewiki","zhwiki","zhwikibooks","zhwikinews","zhwikiquote","zhwikisource","zhwikiversity","zhwikivoyage","zhwiktionary","zuwiki","zuwikibooks","zuwiktionary"],WA="https://www.wikidata.org/wiki/";function x6({site:t,title:e}){if(io(arguments),!t)throw new Error("missing a site");if(!e)throw new Error("missing a title");if(Ey(_p,t))return _p[t](e);const r=t.replace(/wiki$/,"");if(Ey(_p,r))return _p[r](e);const{lang:n,project:a}=S6(t);return e=e6(bA(e)),`https://${n}.${a}.org/wiki/${e}`}const Xo=t=>e=>`https://${t}.wikimedia.org/wiki/${e}`,_p={commons:Xo("commons"),foundation:Xo("foundation"),mediawiki:t=>`https://www.mediawiki.org/wiki/${t}`,meta:Xo("meta"),outreach:Xo("outreach"),sources:t=>`https://wikisource.org/wiki/${t}`,species:Xo("species"),wikidata:t=>{const e=qA[t[0]];let r=e?`${e}:${t}`:t;return r=r.replace("-","#"),`${WA}${r}`},wikifunctions:Xo("wikifunctions"),wikimania:Xo("wikimania")},qA={E:"EntitySchema",L:"Lexeme",P:"Property"},HA=/^https?:\/\/([\w-]{2,10})\.(\w+)\.org\/\w+\/(.*)/;function S6(t){if(t.startsWith("http")){const e=t,r=e.match(HA);if(!r)throw new Error(`invalid sitelink url: ${e}`);let[n,a,i]=r.slice(1);if(i=decodeURIComponent(i),n==="commons")return{lang:"en",project:"commons",key:"commons",title:i,url:e};if(!vc(YA,a))throw new Error(`project is unknown: ${a}`);if(n==="www")return{lang:"en",project:a,key:a,title:i,url:e};const s=`${n.replace(/-/g,"_")}${a}`.replace("wikipedia","wiki");return{lang:n,project:a,key:s,title:i,url:e}}else{if(Ey(Ly,t))return{lang:"en",project:Ly[t],key:t};if(!vc(Fy,t))throw new Error(`site not found: ${t}. Updating wikibase-sdk to a more recent version might fix the issue.`);let[e,r,n]=t.split("wik");if(n!=null)throw new Error(`invalid sitelink key: ${t}`);e=e.replace(/_/g,"-");const a=_6[r];if(!a)throw new Error(`sitelink project not found: ${a}`);return{lang:e,project:a,key:t}}}const C6=t=>vc(Fy,t),KA=C6,_6={i:"wikipedia",isource:"wikisource",iquote:"wikiquote",tionary:"wiktionary",ibooks:"wikibooks",iversity:"wikiversity",ivoyage:"wikivoyage",inews:"wikinews"},YA=[...Object.values(_6),...Object.values(Ly)],QA=Object.freeze(Object.defineProperty({__proto__:null,getSitelinkData:S6,getSitelinkUrl:x6,isSite:C6,isSitelinkKey:KA},Symbol.toStringTag,{value:"Module"}));function E6(t,e={}){let{addUrl:r,keepBadges:n,keepAll:a}=e;return n=n||a,Object.keys(t).reduce(ZA({sitelinks:t,addUrl:r,keepBadges:n}),{})}const ZA=({sitelinks:t,addUrl:e,keepBadges:r})=>(n,a)=>{if(t[a]==null)return n[a]=t[a],n;const{title:i,badges:s}=t[a];return e||r?(n[a]={title:i},e&&(n[a].url=x6({site:a,title:i})),r&&(n[a].badges=s)):n[a]=i,n},XA={labels:h6,descriptions:f6,aliases:p6,claims:xl,statements:xl,sitelinks:E6,lemmas:g6,forms:b6,senses:k6},P6=(t,e={})=>{const{type:r}=t,n={id:t.id,type:r,modified:t.modified};return r==="item"?(Hr(t,n,"labels"),Hr(t,n,"descriptions"),Hr(t,n,"aliases"),Hr(t,n,"claims",e),Hr(t,n,"sitelinks",e)):r==="property"?(n.datatype=t.datatype,Hr(t,n,"labels"),Hr(t,n,"descriptions"),Hr(t,n,"aliases"),Hr(t,n,"claims",e)):r==="lexeme"?(Hr(t,n,"lemmas"),n.lexicalCategory=t.lexicalCategory,n.language=t.language,Hr(t,n,"claims",e),Hr(t,n,"forms",e),Hr(t,n,"senses",e)):r==="mediainfo"&&(Hr(t,n,"labels"),Hr(t,n,"descriptions"),Hr(t,n,"statements",e)),n},Hr=(t,e,r,n)=>{t[r]!=null&&(e[r]=XA[r](t[r],n))},M6=(t,e={})=>{t.entities&&(t=t.entities);const{entityPrefix:r}=e,n={};for(const[a,i]of Object.entries(t)){const s=r?`${r}:${a}`:a;n[s]=P6(i,e)}return n};function JA(t){t=t.body||t;const{entities:e}=t;return M6(e)}function eD(t){return t=t.body||t,t.query.search.map(e=>e.title)}const tD=Object.freeze(Object.defineProperty({__proto__:null,entities:JA,pagesTitles:eD},Symbol.toStringTag,{value:"Module"}));function rD(t,e={}){typeof t=="string"&&(t=JSON.parse(t));const{vars:r}=t.head,n=t.results.bindings;if(r.length===1&&e.minimize){const u=r[0];return n.map(c=>jy(c[u])).filter(c=>c!=null)}const{richVars:a,associatedVars:i,standaloneVars:s}=iD(r);return n.map(u=>oD(a,i,s,u))}function jy(t){if(!t||t.type==="bnode")return null;const{value:e}=t;if(t.type==="uri")return nD(e);const r=(t.datatype||"").replace("http://www.w3.org/2001/XMLSchema#","");return r==="decimal"||r==="integer"||r==="float"||r==="double"?parseFloat(e):r==="boolean"?e==="true":e}function nD(t){return t.match(/http.*\/entity\/statement\//)?aD(t):t.replace(/^https?:\/\/.*\/entity\//,"").replace(/^https?:\/\/.*\/prop\/direct\//,"")}function aD(t){t=t.replace(/^https?:\/\/.*\/entity\/statement\//,"");const e=t.split("-");return e[0]+"$"+e.slice(1).join("-")}function iD(t){let e=t.filter(i=>{const s=new RegExp(`^${i}[A-Z]\\w+`);return t.some(u=>s.test(u))});e=e.filter(i=>!e.some(s=>i!==s&&i.startsWith(s)));const r=new RegExp(`^(${e.join("|")})[A-Z]`),n=t.filter(i=>r.test(i)),a=t.filter(i=>!e.includes(i)&&!r.test(i));return{richVars:e,associatedVars:n,standaloneVars:a}}function oD(t,e,r,n){const a={};for(const i of t){const s={},u=jy(n[i]);u!=null&&(s.value=u);for(const c of e)c.startsWith(i)&&sD(n,i,c,s);Object.keys(s).length>0&&(a[i]=s)}for(const i of r){const s=jy(n[i]);s!=null&&(a[i]=s)}return a}function sD(t,e,r,n){let a=r.split(e)[1];a=a[0].toLowerCase()+a.slice(1),a=a==="altLabel"?"aliases":a;const i=t[r];i!=null&&(n[a]=i.value)}const lD=Object.freeze(Object.defineProperty({__proto__:null,aliases:p6,claim:Ty,claims:xl,descriptions:f6,entities:M6,entity:P6,form:y6,forms:b6,glosses:v6,labels:h6,lemmas:g6,propertyClaims:l6,propertyQualifiers:BA,propertySnaks:l6,qualifier:UA,qualifiers:u6,references:c6,representations:m6,sense:w6,senses:k6,sitelinks:E6,snak:Ty,snaks:xl,sparqlResults:rD},Symbol.toStringTag,{value:"Module"})),uD=/^\d+[|\d]*$/;function cD(t){return function(e){io(arguments);for(const[y,b]of Object.entries(e))if(y.startsWith("sr")){const S=y.replace(/^sr/,"");if(e[S]!=null)throw new Error(`${S} and ${y} are the same`);e[S]=b}const{search:r,haswbstatement:n,format:a="json",limit:i,offset:s,profile:u,sort:c}=e;let{namespace:d,prop:f}=e;if(!(r||n))throw new Error('missing "search" or "haswbstatement" parameter');let m="";if(r&&(m+=r),n){const y=n instanceof Array?n:[n];for(const b of y)b[0]==="-"?m+=` -haswbstatement:${b.slice(1)}`:m+=` haswbstatement:${b}`}if(i!=null&&(typeof i!="number"||i<1))throw new Error(`invalid limit: ${i}`);if(s!=null&&(typeof s!="number"||s<0))throw new Error(`invalid offset: ${s}`);if(d instanceof Array?d=d.join("|"):typeof d=="number"&&(d=d.toString()),d&&!uD.test(d))throw new Error(`invalid namespace: ${d}`);if(u!=null&&typeof u!="string")throw new Error(`invalid profile: ${u} (${typeof u}, expected string)`);if(c!=null&&typeof c!="string")throw new Error(`invalid sort: ${c} (${typeof c}, expected string)`);let v;if(f!=null){if(f instanceof Array&&(f=f.join("|")),typeof f!="string")throw new Error(`invalid prop: ${f} (${typeof f}, expected string)`);v=f.toString()}return t({action:"query",list:"search",srsearch:m.trim(),format:a,srnamespace:d,srlimit:i,sroffset:s,srqiprofile:u,srsort:c,srprop:v})}}function Ep(t,e){return function(r){if(!e(r))throw new Error(`invalid ${t}: ${r} (type: ${pD(r)})`)}}const I6=Ep("entity id",_y),dD=Ep("property id",Sp),hD=Ep("entity page title",X8),fD=Ep("revision id",Q8);function pD(t){const e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Array)return"array";if(t instanceof Promise)return"promise"}return e==="number"&&Number.isNaN(t)?"NaN":e}function N6(t){return function({ids:e,languages:r,props:n,format:a="json",redirects:i}){if(io(arguments),!(e&&e.length>0))throw new Error("no id provided");e=Pa(e),e.forEach(u=>I6(u)),e.length>50&&console.warn(`getEntities accepts 50 ids max to match Wikidata API limitations: diff --git a/index-EacnxzqJ.js b/index-kb1q0BGh.js similarity index 99% rename from index-EacnxzqJ.js rename to index-kb1q0BGh.js index a9396e2..9003d16 100644 --- a/index-EacnxzqJ.js +++ b/index-kb1q0BGh.js @@ -1,4 +1,4 @@ -var ns=Object.defineProperty;var ss=(ie,Z,ee)=>Z in ie?ns(ie,Z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):ie[Z]=ee;var Vi=(ie,Z,ee)=>(ss(ie,typeof Z!="symbol"?Z+"":Z,ee),ee);import{r as reactExports,a as reactDomExports,$ as $2AODx$react,e as e$1,c as commonjsGlobal,g as getAugmentedNamespace,b as getDefaultExportFromCjs$1,d as $7SXl2$reactdom}from"./index-fvYXRG4m.js";var __defProp=Object.defineProperty,__defNormalProp=(ie,Z,ee)=>Z in ie?__defProp(ie,Z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):ie[Z]=ee,__publicField=(ie,Z,ee)=>(__defNormalProp(ie,typeof Z!="symbol"?Z+"":Z,ee),ee);const EMPTY=[];Object.freeze(EMPTY);const emptyAnnotationPage={id:"https://iiif-parser/annotation-page",type:"AnnotationPage",behavior:EMPTY,motivation:null,label:null,thumbnail:EMPTY,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,provider:EMPTY,items:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,rendering:EMPTY,service:EMPTY},emptyCanvas={id:"https://iiif-parser/empty-canvas",type:"Canvas",label:null,behavior:EMPTY,motivation:null,thumbnail:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,navDate:null,provider:EMPTY,items:EMPTY,annotations:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,partOf:EMPTY,rendering:EMPTY,service:EMPTY,duration:0,height:0,width:0},emptyCollection={id:"https://iiif-parser/empty-collection",type:"Collection",label:null,viewingDirection:"left-to-right",behavior:EMPTY,motivation:null,thumbnail:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,navDate:null,provider:EMPTY,items:EMPTY,annotations:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,partOf:EMPTY,rendering:EMPTY,service:EMPTY,services:EMPTY},emptyManifest={id:"https://iiif-parser/empty-manifest",type:"Manifest",annotations:EMPTY,behavior:EMPTY,homepage:EMPTY,items:EMPTY,label:null,logo:EMPTY,metadata:EMPTY,motivation:null,navDate:null,provider:EMPTY,partOf:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,rendering:EMPTY,requiredStatement:null,rights:null,seeAlso:EMPTY,service:EMPTY,services:EMPTY,start:null,structures:EMPTY,summary:null,thumbnail:EMPTY,viewingDirection:"left-to-right"},emptyRange={id:"https://iiif-parser/empty-canvas",type:"Range",label:null,behavior:EMPTY,motivation:null,thumbnail:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,navDate:null,provider:EMPTY,items:EMPTY,annotations:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,partOf:EMPTY,rendering:EMPTY,service:EMPTY,start:null,supplementary:null,viewingDirection:"left-to-right"},emptyAgent={id:"https://iiif-parser/empty-agent",type:"Agent",label:{},logo:EMPTY,seeAlso:EMPTY,homepage:EMPTY};function ensureArray$1(ie){return Array.isArray(ie)?ie:[ie]}const types$1=["Collection","Manifest","Canvas","AnnotationPage","AnnotationCollection","Annotation","ContentResource","Range","Service","Selector","Agent"];function identifyResource$1(ie){if(typeof ie>"u"||ie===null)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(ie))throw new Error("Array is not a valid entity");if(typeof ie!="object")throw new Error(`${typeof ie} is not a valid entity`);if(typeof ie.type=="string"){const Z=types$1.indexOf(ie.type);if(Z!==-1)return types$1[Z]}if(ie.profile)return"Service";throw new Error("Resource type is not known")}class Traverse$1{constructor(Z,ee={}){__publicField(this,"traversals"),__publicField(this,"options"),this.traversals={collection:[],manifest:[],canvas:[],annotationCollection:[],annotationPage:[],annotation:[],contentResource:[],choice:[],range:[],service:[],agent:[],...Z},this.options={allowUndefinedReturn:!1,...ee}}static all(Z){return new Traverse$1({collection:[Z],manifest:[Z],canvas:[Z],annotationCollection:[Z],annotationPage:[Z],annotation:[Z],contentResource:[Z],choice:[Z],range:[Z],service:[Z]})}traverseDescriptive(Z){return Z.thumbnail&&(Z.thumbnail=Z.thumbnail.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.provider&&(Z.provider=Z.provider.map(ee=>this.traverseAgent(ee))),Z}traverseLinking(Z){return Z.seeAlso&&(Z.seeAlso=Z.seeAlso.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.service&&(Z.service=ensureArray$1(Z.service).map(ee=>this.traverseType(ee,this.traversals.service))),Z.services&&(Z.services=Z.services.map(ee=>this.traverseType(ee,this.traversals.service))),Z.logo&&(Z.logo=Z.logo.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.homepage&&(Z.homepage=Z.homepage.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.partOf&&(Z.partOf=Z.partOf.map(ee=>typeof ee=="string"||!ee.type?this.traverseType(ee,this.traversals.contentResource):ee.type==="Canvas"?this.traverseType(ee,this.traversals.canvas):ee.type==="AnnotationCollection"?this.traverseType(ee,this.traversals.annotationCollection):ee.type==="Collection"?this.traverseType(ee,this.traversals.collection):this.traverseType(ee,this.traversals.contentResource))),Z.start&&(Z.start=Z.start?this.traverseType(Z.start,this.traversals.canvas):null),Z.rendering&&(Z.rendering=Z.rendering.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.supplementary&&(Z.supplementary=Z.supplementary.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z}traverseCollectionItems(Z){return Z.items&&Z.items.map(ee=>ee.type==="Collection"?this.traverseCollection(ee):this.traverseManifest(ee)),Z}traverseCollection(Z){return this.traverseType(this.traverseDescriptive(this.traverseInlineAnnotationPages(this.traverseLinking(this.traversePosterCanvas(this.traverseCollectionItems(Z))))),this.traversals.collection)}traverseManifestItems(Z){return Z.items&&(Z.items=Z.items.map(ee=>this.traverseCanvas(ee))),Z}traverseManifestStructures(Z){return Z.structures&&(Z.structures=Z.structures.map(ee=>this.traverseRange(ee))),Z}traverseManifest(Z){return this.traverseType(this.traverseInlineAnnotationPages(this.traverseManifestStructures(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(Z)))))),this.traversals.manifest)}traverseCanvasItems(Z){return Z.items=(Z.items||[]).map(ee=>this.traverseAnnotationPage(ee)),Z}traverseInlineAnnotationPages(Z){return typeof Z=="string"||!Z||Z.annotations&&(Z.annotations=Z.annotations.map(ee=>this.traverseAnnotationPage(ee))),Z}traverseCanvas(Z){return this.traverseType(this.traverseInlineAnnotationPages(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(Z))))),this.traversals.canvas)}traverseAnnotationPageItems(Z){return Z.items&&(Z.items=Z.items.map(ee=>this.traverseAnnotation(ee))),Z}traverseAnnotationPage(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationPageItems(Z))),this.traversals.annotationPage)}traverseAnnotationBody(Z){return Array.isArray(Z.body)?Z.body=Z.body.map(ee=>this.traverseContentResource(ee)):Z.body&&(Z.body=this.traverseContentResource(Z.body)),Z}traversePosterCanvas(Z){return Z.posterCanvas&&(Z.posterCanvas=this.traverseCanvas(Z.posterCanvas)),Z.placeholderCanvas&&(Z.placeholderCanvas=this.traverseCanvas(Z.placeholderCanvas)),Z.accompanyingCanvas&&(Z.accompanyingCanvas=this.traverseCanvas(Z.accompanyingCanvas)),Z}traverseAnnotation(Z){return this.traverseType(this.traverseLinking(this.traverseAnnotationBody(Z)),this.traversals.annotation)}traverseContentResourceLinking(Z){return typeof Z=="string"||!Z||Z&&Z.service&&(Z.service=ensureArray$1(Z.service||[]).map(ee=>this.traverseType(ee,this.traversals.service))),Z}traverseContentResource(Z){return Z.type==="Choice"&&(Z.items=Z.items.map(ee=>this.traverseContentResource(ee))),this.traverseType(this.traverseInlineAnnotationPages(this.traverseContentResourceLinking(Z)),this.traversals.contentResource)}traverseRangeRanges(Z){return Z.items&&(Z.items=Z.items.map(ee=>typeof ee=="string"?this.traverseCanvas({id:ee,type:"Canvas"}):ee.type==="Manifest"?this.traverseManifest(ee):this.traverseRange(ee))),Z}traverseRange(Z){return this.traverseType(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseRangeRanges(Z)))),this.traversals.range)}traverseAgent(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(Z)),this.traversals.agent)}traverseType(Z,ee){return ee.reduce((ae,ve)=>{const ye=ve(ae);return typeof ye>"u"&&!this.options.allowUndefinedReturn?ae:ye},Z)}traverseService(Z){return this.traverseType(Z,this.traversals.service)}traverseUnknown(Z){const ee=identifyResource$1(Z);switch(ee){case"Collection":return this.traverseCollection(Z);case"Manifest":return this.traverseManifest(Z);case"Canvas":return this.traverseCanvas(Z);case"AnnotationPage":return this.traverseAnnotationPage(Z);case"Annotation":return this.traverseAnnotation(Z);case"ContentResource":return this.traverseContentResource(Z);case"Range":return this.traverseRange(Z);case"Service":return this.traverseService(Z);case"Agent":return this.traverseAgent(Z);default:throw new Error(`Unknown or unsupported resource type of ${ee}`)}}}const types=["sc:Collection","sc:Manifest","sc:Canvas","sc:AnnotationList","oa:Annotation","sc:Range","sc:Layer","sc:Sequence","oa:Choice","Service","ContentResource"];function identifyResource(ie){if(typeof ie>"u"||ie===null)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(ie))throw new Error("Array is not a valid entity");if(typeof ie!="object")throw new Error(`${typeof ie} is not a valid entity`);if(typeof ie["@type"]=="string"){const Z=types.indexOf(ie["@type"]);if(Z!==-1)return types[Z]}if(ie.profile)return"Service";if(ie.format||ie["@type"])return"ContentResource";throw new Error("Resource type is not known")}class Traverse{constructor(Z,ee={}){__publicField(this,"traversals"),__publicField(this,"options"),this.traversals={collection:[],manifest:[],canvas:[],annotationList:[],sequence:[],annotation:[],contentResource:[],choice:[],range:[],service:[],layer:[],...Z},this.options={convertPropsToArray:!0,mergeMemberProperties:!0,allowUndefinedReturn:!1,...ee}}static all(Z){return new Traverse({collection:[Z],manifest:[Z],canvas:[Z],annotationList:[Z],sequence:[Z],annotation:[Z],contentResource:[Z],choice:[Z],range:[Z],service:[Z],layer:[Z]})}traverseCollection(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCollectionItems(Z))),this.traversals.collection)}traverseCollectionItems(Z){if(this.options.mergeMemberProperties){const ee=[...(Z.manifests||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Manifest"}:ae),...(Z.collections||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Collection"}:ae),...Z.members||[]];delete Z.collections,delete Z.manifests,Z.members=ee}return Z.manifests&&(Z.manifests=Z.manifests.map(ee=>this.traverseManifest(typeof ee=="string"?{"@id":ee,"@type":"sc:Manifest"}:ee))),Z.collections&&(Z.collections=Z.collections.map(ee=>this.traverseCollection(typeof ee=="string"?{"@id":ee,"@type":"sc:Collection"}:ee))),Z.members&&(Z.members=Z.members.map(ee=>typeof ee=="string"?ee:this.traverseUnknown(ee))),Z}traverseManifest(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(Z))),this.traversals.manifest)}traverseManifestItems(Z){return Z.sequences&&(Z.sequences=Z.sequences.map(ee=>this.traverseSequence(ee))),Z.structures&&(Z.structures=Z.structures.map(ee=>this.traverseRange(ee))),Z}traverseSequence(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseSequenceItems(Z))),this.traversals.sequence)}traverseSequenceItems(Z){return Z.canvases&&(Z.canvases=Z.canvases.map(ee=>this.traverseCanvas(ee))),Z}traverseCanvas(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(Z))),this.traversals.canvas)}traverseCanvasItems(Z){return Z.images&&(Z.images=Z.images.map(ee=>this.traverseAnnotation(ee))),Z.otherContent&&(Z.otherContent=Z.otherContent.map(ee=>this.traverseAnnotationList(ee))),Z}traverseRange(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseRangeItems(Z))),this.traversals.range)}traverseRangeItems(Z){if(this.options.mergeMemberProperties){const ee=[...(Z.ranges||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Range"}:ae),...(Z.canvases||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Canvas"}:ae),...Z.members||[]];delete Z.ranges,delete Z.canvases,Z.members=ee.length?ee.map(ae=>this.traverseUnknown(ae)):void 0}return Z}traverseAnnotationList(Z){const ee=typeof Z=="string"?{"@id":Z,"@type":"sc:AnnotationList"}:Z;return this.traverseType(this.traverseDescriptive(this.traverseAnnotationListItems(ee)),this.traversals.annotationList)}traverseAnnotationListItems(Z){return Z.resources&&(Z.resources=Z.resources.map(ee=>this.traverseAnnotation(ee))),Z}traverseAnnotation(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationItems(Z))),this.traversals.annotation)}traverseAnnotationItems(Z){return Z.resource&&(Array.isArray(Z.resource)?Z.resource=Z.resource.map(ee=>this.traverseContentResource(ee)):Z.resource=this.traverseContentResource(Z.resource)),Z.on,Z}traverseLayer(Z){return this.traverseType(this.traverseLinking(this.traverseLayerItems(Z)),this.traversals.layer)}traverseLayerItems(Z){return Z.otherContent&&(Z.otherContent=Z.otherContent.map(ee=>this.traverseAnnotationList(ee))),Z}traverseChoice(Z){return this.traverseType(this.traverseChoiceItems(Z),this.traversals.choice)}traverseChoiceItems(Z){return Z.default&&Z.default!=="rdf:nil"&&(Z.default=this.traverseContentResource(Z.default)),Z.item&&Z.item!=="rdf:nil"&&(Z.item=Z.item.map(ee=>this.traverseContentResource(ee))),Z}traverseService(Z){return this.traverseType(this.traverseLinking(Z),this.traversals.service)}traverseContentResource(Z){return Z["@type"]==="oa:Choice"?this.traverseChoice(Z):this.traverseType(this.traverseDescriptive(this.traverseLinking(Z)),this.traversals.contentResource)}traverseUnknown(Z){if(!Z["@type"]||typeof Z=="string")return Z;switch(identifyResource(Z)){case"sc:Collection":return this.traverseCollection(Z);case"sc:Manifest":return this.traverseManifest(Z);case"sc:Canvas":return this.traverseCanvas(Z);case"sc:Sequence":return this.traverseSequence(Z);case"sc:Range":return this.traverseRange(Z);case"oa:Annotation":return this.traverseAnnotation(Z);case"sc:AnnotationList":return this.traverseAnnotationList(Z);case"sc:Layer":return this.traverseLayer(Z);case"Service":return this.traverseService(Z);case"oa:Choice":return this.traverseChoice(Z);case"ContentResource":return this.traverseContentResource(Z)}return Z.profile?this.traverseService(Z):Z}traverseImageResource(Z){const ee=Array.isArray(Z),ae=Array.isArray(Z)?Z:[Z],ve=[];for(const ye of ae)typeof ye=="string"?ve.push(this.traverseContentResource({"@id":ye,"@type":"dctypes:Image"})):ve.push(this.traverseContentResource(ye));return!ee&&!this.options.convertPropsToArray?ve[0]:ve}traverseDescriptive(Z){return Z.thumbnail&&(Z.thumbnail=this.traverseImageResource(Z.thumbnail)),Z.logo&&(Z.logo=this.traverseImageResource(Z.logo)),Z}traverseOneOrMoreServices(Z){const ee=Array.isArray(Z),ae=Array.isArray(Z)?Z:[Z],ve=[];for(const ye of ae)ve.push(this.traverseService(ye));return!ee&&!this.options.convertPropsToArray?ve[0]:ve}traverseLinking(Z){return Z.related&&(Z.related=this.traverseOneOrManyType(Z.related,this.traversals.contentResource)),Z.rendering&&(Z.rendering=this.traverseOneOrManyType(Z.rendering,this.traversals.contentResource)),Z.service&&(Z.service=this.traverseOneOrMoreServices(Z.service)),Z.seeAlso&&(Z.seeAlso=this.traverseOneOrManyType(Z.seeAlso,this.traversals.contentResource)),Z.within&&(typeof Z.within=="string"||(Z.within=this.traverseOneOrManyType(Z.within,this.traversals.contentResource))),Z.startCanvas&&(typeof Z.startCanvas=="string"?Z.startCanvas=this.traverseType({"@id":Z.startCanvas,"@type":"sc:Canvas"},this.traversals.canvas):Z.startCanvas&&this.traverseType(Z.startCanvas,this.traversals.canvas)),Z.contentLayer&&(typeof Z.contentLayer=="string"?Z.contentLayer=this.traverseLayer({"@id":Z.contentLayer,"@type":"sc:Layer"}):Z.contentLayer=this.traverseLayer(Z.contentLayer)),Z}traverseOneOrManyType(Z,ee){if(!Array.isArray(Z))if(this.options.convertPropsToArray)Z=[Z];else return this.traverseType(Z,ee);return Z.map(ae=>this.traverseType(ae,ee))}traverseType(Z,ee){return ee.reduce((ae,ve)=>{const ye=ve(ae);return typeof ye>"u"&&!this.options.allowUndefinedReturn?ae:ye},Z)}}const STANFORD_IIIF_IMAGE_COMPLIANCE_0="http://library.stanford.edu/iiif/image-api/compliance.html#level0",STANFORD_IIIF_IMAGE_COMPLIANCE_1="http://library.stanford.edu/iiif/image-api/compliance.html#level1",STANFORD_IIIF_IMAGE_COMPLIANCE_2="http://library.stanford.edu/iiif/image-api/compliance.html#level2",STANFORD_IIIF_IMAGE_CONFORMANCE_0="http://library.stanford.edu/iiif/image-api/conformance.html#level0",STANFORD_IIIF_IMAGE_CONFORMANCE_1="http://library.stanford.edu/iiif/image-api/conformance.html#level1",STANFORD_IIIF_IMAGE_CONFORMANCE_2="http://library.stanford.edu/iiif/image-api/conformance.html#level2",STANFORD_IIIF_1_IMAGE_COMPLIANCE_0="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",STANFORD_IIIF_1_IMAGE_COMPLIANCE_1="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",STANFORD_IIIF_1_IMAGE_COMPLIANCE_2="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",STANFORD_IIIF_1_IMAGE_CONFORMANCE_0="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",STANFORD_IIIF_1_IMAGE_CONFORMANCE_1="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",STANFORD_IIIF_1_IMAGE_CONFORMANCE_2="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",IIIF_1_IMAGE_LEVEL_0="http://iiif.io/api/image/1/level0.json",IIIF_1_IMAGE_LEVEL_0_PROFILE="http://iiif.io/api/image/1/profiles/level0.json",IIIF_1_IMAGE_LEVEL_1="http://iiif.io/api/image/1/level1.json",IIIF_1_IMAGE_LEVEL_1_PROFILE="http://iiif.io/api/image/1/profiles/level1.json",IIIF_1_IMAGE_LEVEL_2="http://iiif.io/api/image/1/level2.json",IIIF_1_IMAGE_LEVEL_2_PROFILE="http://iiif.io/api/image/1/profiles/level2.json",IIIF_2_IMAGE_LEVEL_0="http://iiif.io/api/image/2/level0.json",IIIF_2_IMAGE_LEVEL_0_PROFILE="http://iiif.io/api/image/2/profiles/level0.json",IIIF_2_IMAGE_LEVEL_1="http://iiif.io/api/image/2/level1.json",IIIF_2_IMAGE_LEVEL_1_PROFILE="http://iiif.io/api/image/2/profiles/level1.json",IIIF_2_IMAGE_LEVEL_2="http://iiif.io/api/image/2/level2.json",IIIF_2_IMAGE_LEVEL_2_PROFILE="http://iiif.io/api/image/2/profiles/level2.json",IIIF_3_IMAGE_LEVEL_0="level0",IIIF_3_IMAGE_LEVEL_1="level1",IIIF_3_IMAGE_LEVEL_2="level2",IIIF_2_IMAGE_LEVEL_0_NO_JSON="http://iiif.io/api/image/2/level0",IIIF_2_IMAGE_LEVEL_1_NO_JSON="http://iiif.io/api/image/2/level1",IIIF_2_IMAGE_LEVEL_2_NO_JSON="http://iiif.io/api/image/2/level2",level1Support=[IIIF_2_IMAGE_LEVEL_1_NO_JSON,IIIF_2_IMAGE_LEVEL_2_NO_JSON,STANFORD_IIIF_IMAGE_COMPLIANCE_1,STANFORD_IIIF_IMAGE_COMPLIANCE_2,STANFORD_IIIF_IMAGE_CONFORMANCE_1,STANFORD_IIIF_IMAGE_CONFORMANCE_2,STANFORD_IIIF_1_IMAGE_COMPLIANCE_1,STANFORD_IIIF_1_IMAGE_COMPLIANCE_2,STANFORD_IIIF_1_IMAGE_CONFORMANCE_1,STANFORD_IIIF_1_IMAGE_CONFORMANCE_2,IIIF_1_IMAGE_LEVEL_1,IIIF_1_IMAGE_LEVEL_1_PROFILE,IIIF_1_IMAGE_LEVEL_2,IIIF_1_IMAGE_LEVEL_2_PROFILE,IIIF_2_IMAGE_LEVEL_1,IIIF_2_IMAGE_LEVEL_1_PROFILE,IIIF_2_IMAGE_LEVEL_2,IIIF_2_IMAGE_LEVEL_2_PROFILE,IIIF_3_IMAGE_LEVEL_1,IIIF_3_IMAGE_LEVEL_2],imageServiceProfiles=[IIIF_2_IMAGE_LEVEL_0_NO_JSON,IIIF_2_IMAGE_LEVEL_1_NO_JSON,IIIF_2_IMAGE_LEVEL_2_NO_JSON,STANFORD_IIIF_IMAGE_COMPLIANCE_0,STANFORD_IIIF_IMAGE_COMPLIANCE_1,STANFORD_IIIF_IMAGE_COMPLIANCE_2,STANFORD_IIIF_IMAGE_CONFORMANCE_0,STANFORD_IIIF_IMAGE_CONFORMANCE_1,STANFORD_IIIF_IMAGE_CONFORMANCE_2,STANFORD_IIIF_1_IMAGE_COMPLIANCE_0,STANFORD_IIIF_1_IMAGE_COMPLIANCE_1,STANFORD_IIIF_1_IMAGE_COMPLIANCE_2,STANFORD_IIIF_1_IMAGE_CONFORMANCE_0,STANFORD_IIIF_1_IMAGE_CONFORMANCE_1,STANFORD_IIIF_1_IMAGE_CONFORMANCE_2,IIIF_1_IMAGE_LEVEL_0,IIIF_1_IMAGE_LEVEL_0_PROFILE,IIIF_1_IMAGE_LEVEL_1,IIIF_1_IMAGE_LEVEL_1_PROFILE,IIIF_1_IMAGE_LEVEL_2,IIIF_1_IMAGE_LEVEL_2_PROFILE,IIIF_2_IMAGE_LEVEL_0,IIIF_2_IMAGE_LEVEL_0_PROFILE,IIIF_2_IMAGE_LEVEL_1,IIIF_2_IMAGE_LEVEL_1_PROFILE,IIIF_2_IMAGE_LEVEL_2,IIIF_2_IMAGE_LEVEL_2_PROFILE,IIIF_3_IMAGE_LEVEL_0,IIIF_3_IMAGE_LEVEL_1,IIIF_3_IMAGE_LEVEL_2],configuration={attributionLabel:"Attribution",lang:"none",providerId:"http://example.org/provider",providerName:"Unknown"};function convertLanguageMapping(ie,Z="none"){if(!ie)return{};const ee=Array.isArray(ie)?ie:[ie],ae={};for(const ve of ee){if(typeof ve=="string"){ae[Z]=ae[Z]?ae[Z]:[],ae[Z].push(ve||"");continue}if(!ve["@language"]){ae[Z]=ae[Z]?ae[Z]:[],ae[Z].push(ve["@value"]||"");continue}const ye=ve["@language"];ae[ye]=ae[ye]?ae[ye]:[],ae[ye].push(ve["@value"]||"")}return ae}function getProfile(ie){if(Array.isArray(ie))return getProfile(ie.find(Z=>typeof Z=="string"));if(imageServiceProfiles.indexOf(ie)!==-1)return"level2";if(level1Support.indexOf(ie)!==-1)return"level1";if(typeof ie=="string")return ie}function getTypeFromContext(ie){const Z=Array.isArray(ie)?ie:[ie];for(const ee of Z)switch(ee){case"http://iiif.io/api/image/2/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2":return"ImageService2";case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":return"ImageService1";case"http://iiif.io/api/annex/openannotation/context.json":return"ImageApiSelector"}}function getTypeFromProfile(ie){switch(ie){case"http://iiif.io/api/image/2/level0.json":case"http://iiif.io/api/image/2/level1.json":case"http://iiif.io/api/image/2/level2.json":return"ImageService2";case"http://iiif.io/api/auth/1/kiosk":case"http://iiif.io/api/auth/1/login":case"http://iiif.io/api/auth/1/clickthrough":case"http://iiif.io/api/auth/1/external":case"http://iiif.io/api/auth/0/kiosk":case"http://iiif.io/api/auth/0/login":case"http://iiif.io/api/auth/0/clickthrough":case"http://iiif.io/api/auth/0/external":return"AuthCookieService1";case"http://iiif.io/api/auth/1/token":case"http://iiif.io/api/auth/0/token":return"AuthTokenService1";case"http://iiif.io/api/auth/1/logout":case"http://iiif.io/api/auth/0/logout":return"AuthLogoutService1";case"http://iiif.io/api/search/1/search":case"http://iiif.io/api/search/0/search":return"SearchService1";case"http://iiif.io/api/search/1/autocomplete":case"http://iiif.io/api/search/0/autocomplete":return"AutoCompleteService1"}}function removePrefix(ie){for(const Z of["sc","oa","dcterms","dctypes","iiif"])if(ie.startsWith(`${Z}:`))return ie.slice(Z.length+1);return ie}const knownTypes=["Collection","Manifest","Annotation","AnnotationPage","Range","Service"];function getNewType(ie){const Z=ie["@id"]||ie.id;let ee=ie["@type"]||ie.type;const ae=ie.profile||void 0,ve=ie["@context"]||void 0;if(ae){const ye=getTypeFromProfile(ae);if(ye)return ye}if(ve){const ye=getTypeFromContext(ve);if(ye)return ye}if(ee){if(Array.isArray(ee)){if(ee.indexOf("oa:CssStylesheet")!==-1)return"CssStylesheet";if(ee.indexOf("cnt:ContentAsText")!==-1)return"TextualBody";ee=ee[0]}for(const ye of["sc","oa","dcterms","dctypes","iiif"])if(ee.startsWith(`${ye}:`)){ee=ee.slice(ye.length+1);break}switch(ee){case"Layer":return"AnnotationCollection";case"AnnotationList":return"AnnotationPage";case"cnt:ContentAsText":return"TextualBody"}}if(ee&&knownTypes.indexOf(ee)!==-1)return ee;if(ie.format){if(ie.format.startsWith("image/"))return"Image";if(ie.format.startsWith("text/")||ie.format==="application/pdf")return"Text";if(ie.format.startsWith("application/"))return"Dataset"}return Z&&(Z.endsWith(".jpg")||Z.endsWith(".png")||Z.endsWith(".jpeg"))?"Image":ee||"unknown"}const licenseRegex=/http(s)?:\/\/(creativecommons.org|rightsstatements.org)[^"'\\<\n]+/gm;function extractLicense(ie){const Z=ie.match(licenseRegex);return Z?Z[0]:ie}function fixLicense(ie,Z="Rights/License",ee="none"){let ae=null;const ve=[],ye=Array.isArray(ie)?ie:[ie];for(const be of ye){const Ke=be?extractLicense(be):void 0;if(Ke&&(Ke.indexOf("creativecommons.org")!==-1||Ke.indexOf("rightsstatements.org")!==-1)){Ke.startsWith("https://")?ae=`http://${Ke.slice(8)}`:ae=Ke;continue}Ke&&ve.push({label:{[ee]:[Z]},value:{[ee]:[Ke]}})}return[ae,ve]}const removeContexts=["http://iiif.io/api/presentation/2/context.json","http://iiif.io/api/image/2/context.json","http://iiif.io/api/image/1/context.json","http://library.stanford.edu/iiif/image-api/1.1/context.json","http://iiif.io/api/search/1/context.json","http://iiif.io/api/search/0/context.json","http://iiif.io/api/auth/1/context.json","http://iiif.io/api/auth/0/context.json","http://iiif.io/api/annex/openannotation/context.json"];function fixContext(ie){if(ie){const Z=Array.isArray(ie)?ie:[ie],ee=[];for(const ae of Z)ae==="http://iiif.io/api/presentation/2/context.json"&&ee.push("http://iiif.io/api/presentation/3/context.json"),removeContexts.indexOf(ae)===-1&&ee.push(ae);if(Z.length)return ee.length===1?ee[0]:ee}}function convertMetadata(ie){return ie?ie.map(Z=>({label:convertLanguageMapping(Z.label),value:convertLanguageMapping(Z.value)})):[]}function removeUndefinedProperties(ie){for(const Z in ie)(typeof ie[Z]>"u"||ie[Z]===null)&&delete ie[Z];return ie}let mintedIdCounter=0;function mintNewIdFromResource(ie,Z){const ee=encodeURI(ie.id||ie["@id"]||"").trim();return ee&&Z?`${ee}/${Z}`:ee||(mintedIdCounter++,`http://example.org/${ie["@type"]}${Z?`/${Z}`:""}/${mintedIdCounter}`)}function technicalProperties$2(ie){const Z=[...ie.behavior||[]];ie.viewingHint&&Z.push(ie.viewingHint);let ee;return Array.isArray(ie.motivation)?ee=ie.motivation.map(removePrefix):ie.motivation&&(ee=removePrefix(ie.motivation)),{"@context":ie["@context"]?fixContext(ie["@context"]):void 0,id:(ie["@id"]||mintNewIdFromResource(ie)).trim(),type:getNewType(ie),behavior:Z.length?Z:void 0,height:ie.height?ie.height:void 0,width:ie.width?ie.width:void 0,motivation:ee,viewingDirection:ie.viewingDirection,profile:ie.profile,format:ie.format?ie.format:void 0,duration:void 0,timeMode:void 0}}function descriptiveProperties$2(ie){const[Z,ee]=fixLicense(ie.license),ae=[...ie.metadata?convertMetadata(ie.metadata):[],...ee];return{rights:Z,metadata:ae.length?ae:void 0,label:ie.label?convertLanguageMapping(ie.label):void 0,requiredStatement:ie.attribution?{label:convertLanguageMapping(configuration.attributionLabel),value:convertLanguageMapping(ie.attribution)}:void 0,navDate:ie.navDate,summary:ie.description?convertLanguageMapping(ie.description):void 0,thumbnail:ie.thumbnail}}function parseWithin(ie){if(!ie.within)return;const Z=Array.isArray(ie.within)?ie.within:[ie.within],ee=[];for(const ae of Z)if(typeof ae=="string"){if(ae)switch(ie["@type"]){case"sc:Manifest":ee.push({id:ae,type:"Collection"});break}}else ae["@id"]&&ee.push({id:ae["@id"],type:getNewType(ae)});return ee.length?ee:void 0}function linkingProperties$2(ie){const Z=ie.related?Array.isArray(ie.related)?ie.related:[ie.related]:[],ee=ie.contentLayer;return{provider:ie.logo||Z.length?[{id:configuration.providerId,type:"Agent",homepage:Z.length?[Z[0]]:void 0,logo:ie.logo?Array.isArray(ie.logo)?ie.logo:[ie.logo]:void 0,label:convertLanguageMapping(configuration.providerName)}]:void 0,partOf:parseWithin(ie),rendering:ie.rendering,seeAlso:ie.seeAlso,start:ie.startCanvas,service:ie.service?ensureArray$1(ie.service):void 0,supplementary:ee?[ee]:void 0}}function embeddedContentProperties(ie){return{chars:ie.chars,format:ie.format?ie.format:void 0,language:ie.language}}function upgradeCollection(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:ie.members})}function upgradeManifest(ie){const Z=[],ee=[];for(const ve of ie.sequences||[])ve.canvases.length&&Z.push(...ve.canvases),ve.behavior&&ee.push(...ve.behavior);const ae=technicalProperties$2(ie);return ee.length&&(ae.behavior?ae.behavior.push(...ee):ae.behavior=ee),removeUndefinedProperties({...ae,...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:Z,structures:ie.structures})}function upgradeCanvas(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),annotations:ie.otherContent&&ie.otherContent.length?ie.otherContent:void 0,items:ie.images&&ie.images.length?[{id:mintNewIdFromResource(ie,"annotation-page"),type:"AnnotationPage",items:ie.images}]:void 0})}function upgradeAnnotationList(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:ie.resources&&ie.resources.length?ie.resources:void 0})}function upgradeSequence(ie){return!ie.canvases||ie.canvases.length===0?{canvases:[],behavior:[]}:{canvases:ie.canvases,behavior:ie.viewingHint?[ie.viewingHint]:[]}}function upgradeAnnotation(ie){function Z(ee){if(Array.isArray(ee)){if(ee.length>1)return{type:"List",items:ee.map(Z)};ee=ee[0]}if(typeof ee=="string")return encodeURI(ee).trim();if("@type"in ee){let ae;if(typeof ee.full=="string")ae=ee.full;else if(ee.full["@type"]==="dctypes:Image")ae={id:ee.full["@id"],type:"Image"};else if(ee.full["@type"]==="sc:Canvas")ae={id:ee.full["@id"],type:"Canvas"};else throw new Error(`Unsupported source type on annotation: ${ee.full["@type"]}`);return{type:"SpecificResource",source:ae,selector:upgradeSelector(ee.selector)}}else return encodeURI(ee["@id"]).trim()}return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),target:Z(ie.on),body:Array.isArray(ie.resource)?ie.resource.map(upgradeContentResource):upgradeContentResource(ie.resource)})}function upgradeContentResource(ie){const Z=ie;return removeUndefinedProperties({...technicalProperties$2(Z),...descriptiveProperties$2(Z),...linkingProperties$2(Z),...embeddedContentProperties(Z)})}function upgradeChoice(ie){const Z=[];return ie.default&&ie.default!=="rdf:nil"&&Z.push(ie.default),ie.item&&ie.item!=="rdf:nil"&&Z.push(...ie.item),{...technicalProperties$2(ie),...descriptiveProperties$2(ie),items:Z}}function upgradeRange(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:ie.members})}function upgradeService(ie){const{"@id":Z,"@type":ee,"@context":ae,profile:ve,...ye}=ie,be={};return Z&&(be["@id"]=Z),be["@type"]=getNewType(ie),be["@type"]==="unknown"&&(ae&&ae.length&&(be["@context"]=ae),be["@type"]="Service"),ve&&(be.profile=getProfile(ve)),removeUndefinedProperties({...be,...ye})}function upgradeLayer(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie)})}const presentation2to3=new Traverse({collection:[upgradeCollection],manifest:[upgradeManifest],canvas:[upgradeCanvas],annotationList:[upgradeAnnotationList],sequence:[upgradeSequence],annotation:[upgradeAnnotation],contentResource:[upgradeContentResource],choice:[upgradeChoice],range:[upgradeRange],service:[upgradeService],layer:[upgradeLayer]});function convertPresentation2(ie){return ie&&ie["@context"]&&(ie["@context"]==="http://iiif.io/api/presentation/2/context.json"||ie["@context"].indexOf("http://iiif.io/api/presentation/2/context.json")!==-1||ie["@context"]==="http://www.shared-canvas.org/ns/context.json")||ie["@context"]==="http://iiif.io/api/image/2/context.json"?presentation2to3.traverseUnknown(ie):ie}function upgradeSelector(ie){if((Array.isArray(ie["@type"])&&ie["@type"].includes("oa:SvgSelector")||ie["@type"]=="oa:SvgSelector")&&("chars"in ie||"value"in ie))return{type:"SvgSelector",value:"chars"in ie?ie.chars:ie.value};if(ie["@type"]==="oa:FragmentSelector")return{type:"FragmentSelector",value:ie.value};if(ie["@type"]==="oa:Choice")return[upgradeSelector(ie.default),...(Array.isArray(ie.item)?ie.item:[ie.item]).map(upgradeSelector)];if(ie["@type"]=="iiif:ImageApiSelector")return{type:"ImageApiSelector",region:"region"in ie?ie.region:void 0,rotation:"rotation"in ie?ie.rotation:void 0};throw new Error(`Unsupported selector type: ${ie["@type"]}`)}function getDefaultEntities$1(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}function getResource(ie,Z){if(typeof ie=="string")return{id:ie,type:Z};if(!ie.id)throw new Error(`Invalid resource does not have an ID (${Z})`);return ie}function mapToEntities(ie){return(Z,ee)=>{const ae=ie[Z]?ie[Z]:{};return ve=>{const ye=getResource(ve,ee||Z);return ye&&ye.id&&Z?(ae[ye.id]=ae[ye.id]?mergeEntities(ae[ye.id],ye):Object.assign({},ye),{id:ye.id,type:Z==="ContentResource"?Z:ye.type}):ye}}}function merge(ie,Z){if(!Z)return ie;if(Array.isArray(ie)){if(!Array.isArray(Z))throw new Error("Cannot merge array with non-array");const ee=[...ie];for(const ae of Z)if(ae!=null)if(Array.isArray(ae))ee.push(ae);else if(typeof ae=="object"&&ae.id&&ae.type){const ve=ee.findIndex(ye=>ye.id===ae.id&&ye.type===ae.type);ve>=0&&(ee[ve]=merge(ee[ve],ae))}else ie.indexOf(ae)===-1&&ee.push(ae);return ee}else if(typeof ie=="object"){if(Array.isArray(Z)||typeof Z!="object")throw new Error("Cannot merge object with non-object");const ee={...ie};for(const[ae,ve]of Object.entries(Z)){const ye=ee[ae];ye===EMPTY||!ye?ee[ae]=ve:ee[ae]=merge(ye,ve)}return ee}else if(ie)return ie;return Z}function mergeEntities(ie,Z){if(typeof ie=="string")return ie;if(Z.id!==ie.id||Z.type!==ie.type)throw new Error("Can only merge entities with identical identifiers and type!");return merge({...ie},Z)}function recordTypeInMapping(ie){return(Z,ee)=>ae=>{const{id:ve,type:ye}=getResource(ae,ee||Z);if(typeof ve>"u")throw new Error("Found invalid entity without an ID.");return Z==="ContentResource"?ie[ve]=Z:ie[ve]=ye,ae}}function hash$1(ie){const Z=JSON.stringify(ie);let ee=5381,ae=Z.length;for(;ae;)ee=ee*33^Z.charCodeAt(--ae);const ye=(ee>>>0).toString(16);return ye.length%2?"0"+ye:ye}function addMissingIdToContentResource(ie){return Z=>typeof Z=="string"?{id:Z,type:ie}:Z.id?Z.type?Z:{type:ie,...Z}:{id:`vault://${hash$1(Z)}`,type:ie,...Z}}function ensureDefaultFields(ie){return Z=>({...ie,...Z})}function ensureArray(ie){return Array.isArray(ie)?ie:[ie]}function ensureArrayOnAnnotation(ie){return ie.body&&(ie.body=ensureArray(ie.body)),ie.seeAlso&&(ie.seeAlso=ensureArray(ie.seeAlso)),ie.body&&(ie.body=ensureArray(ie.body)),ie.audience&&(ie.audience=ensureArray(ie.audience)),ie.accessibility&&(ie.accessibility=ensureArray(ie.accessibility)),ie.motivation&&(ie.motivation=ensureArray(ie.motivation)),ie}function normalize(ie){const Z=convertPresentation2(ie),ee=getDefaultEntities$1(),ae={},ve=mapToEntities(ee),ye=recordTypeInMapping(ae),Ke=new Traverse$1({collection:[ensureDefaultFields(emptyCollection),ye("Collection"),ve("Collection")],manifest:[ensureDefaultFields(emptyManifest),ye("Manifest"),ve("Manifest")],canvas:[ensureDefaultFields(emptyCanvas),ye("Canvas"),ve("Canvas")],annotationPage:[addMissingIdToContentResource("AnnotationPage"),ensureDefaultFields(emptyAnnotationPage),ye("AnnotationPage"),ve("AnnotationPage")],annotation:[addMissingIdToContentResource("Annotation"),ensureArrayOnAnnotation,ye("Annotation"),ve("Annotation")],contentResource:[addMissingIdToContentResource("ContentResource"),ye("ContentResource"),ve("ContentResource")],range:[ensureDefaultFields(emptyRange),ye("Range","Canvas"),ve("Range","Canvas")],agent:[ensureDefaultFields(emptyAgent),ye("Agent"),ve("Agent")]}).traverseUnknown(Z);return{entities:ee,resource:Ke,mapping:ae}}const UNSET="__$UNSET$__",UNWRAP="__$UNWRAP$__";function resolveIfExists$1(ie,Z){const ee=ie.requests[Z],ae=ie.mapping[Z];if(!(!ae||ee&&ee.resourceUri&&!ie.entities[ae][ee.resourceUri]))return ie.entities[ae][ee?ee.resourceUri:Z]}function serializedFieldsToObject(ie){const Z={};for(const[ee,ae]of ie){if(ee===UNWRAP&&ae!==UNSET)return ae;ae!==UNSET&&typeof ae<"u"&&ae!==null&&(Z[ee]=ae)}return Z}function serialize(ie,Z,ee){if(!Z.type||!Z.id)throw new Error("Unknown entity");if(!ee[Z.type])throw new Error(`Serializer not found for ${Z.type}`);function ae(ve){const ye=ee[ve.type];if(!ye)return UNSET;const be=resolveIfExists$1(ie,ve.id)||(ve.id&&ve.type?ve:null);if(!be)return UNSET;const Ke=ye(be,ie,{isTopLevel:Z.id===ve.id});let Ye=Ke.next();for(;!Ye.done;){const Xe=Ye.value;let Qe=UNSET;if(Xe)if(Array.isArray(Xe)){const et=[];for(const Je of Xe)et.push(ae(Je));Qe=et}else Qe=ae(Xe);Ye=Ke.next(Qe)}return Ye.value===UNSET?UNSET:serializedFieldsToObject(Ye.value)}return ae(Z)}function languageString2to3(ie){if(!ie)return;const Z=Object.keys(ie);if(Z.length!==0){if(Z.length===1){const ee=Z[0];if(!ee)return"";const ae=(ie[ee]||[]).join("");return ee==="@none"||ee==="none"||ee==="en"?ae:{"@language":ee,"@value":ae}}return Z.map(ee=>({"@language":ee,"@value":(ie[ee]||[]).join("")}))}}function parseCanvasTarget(ie){return Array.isArray(ie)?ie.map(Z=>parseCanvasTarget(Z)):typeof ie=="string"?ie:ie.type&&ie.type==="Canvas"?ie.id:ie}function unNestArray(ie,Z=!1){if(ie)return ie.length>1&&!Z?ie:ie[0]||void 0}function convertService(ie){if(ie){if(typeof ie=="string")return{"@id":ie};if("@id"in ie){const Z={...ie};return delete Z["@type"],Z}return{"@context":"http://iiif.io/api/image/2/context.json","@id":ie.id,profile:`http://iiif.io/api/image/2/profiles/${ie.profile}.json`}}}function technicalProperties$1(ie,Z){return[["@id",ie.id],["@type",Z],["format",ie.format],["height",ie.height],["width",ie.width],["viewingDirection",ie.viewingDirection!=="left-to-right"?ie.viewingDirection:void 0]]}function*descriptiveProperties$1(ie){const Z=ie.provider?yield ie.provider[0]:void 0;return[["label",languageString2to3(ie.label)],["metadata",ie.metadata&&ie.metadata.length?ie.metadata.map(ee=>({label:languageString2to3(ee.label)||"",value:languageString2to3(ee.value)||""})):void 0],["description",languageString2to3(ie.summary)],["thumbnail",unNestArray(yield ie.thumbnail)],["navDate",ie.navDate],["logo",Z?unNestArray(Z.logo):void 0],["homepage",Z?Z.homepage:void 0],["attribution",ie.requiredStatement?languageString2to3(ie.requiredStatement.value):void 0]]}function*linkingProperties$1(ie){return[["seeAlso",unNestArray(yield ie.seeAlso)],["service",unNestArray((ie.service||[]).map(convertService))],["rendering",unNestArray(yield ie.rendering)],["startCanvas",ie.start?ie.start.id:void 0]]}const serializeConfigPresentation2={Manifest:function*(ie){return[...technicalProperties$1(ie,"sc:Manifest"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["sequences",[{"@id":`${ie.id}/sequence0`,"@type":"sc:Sequence",canvases:yield ie.items}]],["structures",yield ie.structures]]},Canvas:function*(ie){const ee=(yield ie.items)[0];return[...technicalProperties$1(ie,"sc:Canvas"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["images",ee?[ee.resources]:void 0],["annotations",ie.annotations&&ie.annotations.length?unNestArray(yield ie.annotations):void 0]]},AnnotationPage:function*(ie){return[...technicalProperties$1(ie,"sc:AnnotationList"),...yield*descriptiveProperties$1(ie),["resources",ie.items&&ie.items.length?unNestArray(yield ie.items):void 0]]},Annotation:function*(ie){return[["@id",ie.id],["@type","oa:Annotation"],["motivation","sc:painting"],["on",parseCanvasTarget(ie.target)],["resource",unNestArray(yield ie.body,!0)]]},ContentResource:function*(ie){switch(ie.type){case"Image":return[...technicalProperties$1(ie,"dctypes:Image"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie)];case"Text":case"Dataset":default:return[...technicalProperties$1(ie,void 0),...yield*descriptiveProperties$1(ie)]}},AnnotationCollection:function*(ie){return[["@id",ie.id],["@type","sc:Layer"],["label",languageString2to3(ie.label)]]},Collection:function*(ie){return[...technicalProperties$1(ie,"sc:Collection"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["members",yield*ie.items]]},Range:function*(ie){const Z=[],ee=[];if(ie.items)for(const ae of ie.items){const ve=yield ae;Z.push({"@id":ae.id,"@type":ae.type,label:ve?ve.label:void 0,within:ie.id}),ae.type==="Canvas"&&ee.push(ae.id)}return[...technicalProperties$1(ie,"sc:Range"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["canvases",ee.length===Z.length?ee:void 0],["members",ee.length!==Z.length?Z:void 0]]}};function technicalProperties(ie){var Z;return[["id",(Z=ie.id)!=null&&Z.startsWith("vault://")?void 0:ie.id],["type",ie.type],["format",ie.format],["profile",ie.profile],["height",ie.height],["width",ie.width],["duration",ie.duration||void 0],["viewingDirection",ie.viewingDirection!=="left-to-right"?ie.viewingDirection:void 0],["behavior",ie.behavior&&ie.behavior.length?ie.behavior:void 0],["timeMode",ie.timeMode],["motivation",Array.isArray(ie.motivation)?ie.motivation[0]:ie.motivation]]}function filterEmpty(ie){if(!(!ie||ie.length===0))return ie}function service2compat(ie){if(ie&&ie.type&&ie.type==="ImageService2"){const{id:Z,type:ee,profile:ae,...ve}=ie,ye=typeof ae=="string"?ae:Array.isArray(ae)?ae.find(be=>typeof be=="string"):"";return{"@id":Z,"@type":ee,profile:ye?ye.startsWith("http")?ye:`http://iiif.io/api/image/2/${ye}.json`:"http://iiif.io/api/image/2/level0.json",...ve}}return ie}function filterService2Compat(ie){if(!(!ie||ie.length===0))return ie.map(service2compat)}function*descriptiveProperties(ie){return[["label",ie.label],["metadata",filterEmpty(ie.metadata)],["summary",ie.summary],["requiredStatement",ie.requiredStatement],["rights",ie.rights],["navDate",ie.navDate],["language",ie.language],["thumbnail",filterEmpty(yield ie.thumbnail)],["placeholderCanvas",yield ie.placeholderCanvas],["accompanyingCanvas",yield ie.accompanyingCanvas],["provider",filterEmpty(yield ie.provider)]]}function*linkingProperties(ie){return[["seeAlso",filterEmpty(yield ie.seeAlso)],["service",filterService2Compat(ie.service)],["services",filterService2Compat(ie.services)],["rendering",filterEmpty(yield ie.rendering)],["supplementary",filterEmpty(yield ie.supplementary)],["homepage",filterEmpty(yield ie.homepage)],["logo",filterEmpty(yield ie.logo)],["partOf",filterEmpty(yield ie.partOf)],["start",ie.start]]}const serializeConfigPresentation3={Manifest:function*(ie,Z,{isTopLevel:ee}){return ee?[["@context","http://iiif.io/api/presentation/3/context.json"],...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",yield ie.items],["structures",filterEmpty(yield ie.structures)],["annotations",filterEmpty(yield ie.annotations)]]:[...technicalProperties(ie),...yield*descriptiveProperties(ie)]},Canvas:function*(ie){return[...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",yield ie.items],["annotations",filterEmpty(yield ie.annotations)]]},Agent:function*(ie){return[["id",ie.id],["type","Agent"],["label",ie.label],...yield*linkingProperties(ie)]},AnnotationPage:function*(ie){return[...Object.entries(ie).map(([ee,ae])=>[ee,Array.isArray(ae)?filterEmpty(ae):ae]).filter(([ee,ae])=>ee!=="items"),...yield*linkingProperties(ie),["items",yield ie.items]]},Service:function*(ie){return[[UNWRAP,service2compat(ie)]]},Annotation:function*(ie){const Z=Object.entries(ie).map(([ae,ve])=>ae==="motivation"?[ae,Array.isArray(ve)?ve[0]:ve]:[ae,Array.isArray(ve)?filterEmpty(ve):ve]).filter(([ae])=>ae!=="body"),ee=yield ie.body;return[...Z,["body",ee.length===1?ee[0]:ee]]},ContentResource:function*(ie){return[...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["annotations",filterEmpty(yield ie.annotations)],["items",filterEmpty(yield ie.items)]]},AnnotationCollection:function*(ie){return[["id",ie.id],["type","AnnotationCollection"],["label",ie.label]]},Collection:function*(ie,Z,{isTopLevel:ee}){return ee?[["@context","http://iiif.io/api/presentation/3/context.json"],...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",filterEmpty(yield ie.items)]]:[...technicalProperties(ie),...yield*descriptiveProperties(ie)]},Range:function*(ie){const Z=[];for(const ee of ie.items)ee.type==="Range"?Z.push(yield ee):Z.push(ee);return[...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",Z],["annotations",filterEmpty(yield ie.annotations)]]}};function n$1(ie){return ie==null}function t$1(ie){throw new Error("Argument "+ie+" is empty.")}function o$1(ie){return typeof ie=="string"||typeof ie=="symbol"}function u$1(ie){return!o$1(ie)}function a$1(ie){throw new Error("Argument "+ie+" is invalid, it should be an action type of type: string | symbol")}function s$1(ie,Z){return n$1(ie)&&t$1(1),u$1(ie)&&a$1(1),Object.assign(function(){var ee=Z!=null?Z.apply(void 0,arguments):void 0;return Object.assign({type:ie},ee)},{getType:function(){return ie},toString:function(){return ie}})}function y$1(ie,Z,ee){return n$1(ie)&&t$1(1),u$1(ie)&&a$1(1),function(){return s$1(ie,function(){var ae=arguments.length<=0?void 0:arguments[0],ve=arguments.length<=1?void 0:arguments[1];return Z==null&&ee==null||(ae=Z!=null?Z.apply(void 0,arguments):void 0,ve=ee!=null?ee.apply(void 0,arguments):void 0),Object.assign({},ae!==void 0&&{payload:ae},{},ve!==void 0&&{meta:ve})})}}function _typeof(ie){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},_typeof(ie)}function toPrimitive(ie,Z){if(_typeof(ie)!="object"||!ie)return ie;var ee=ie[Symbol.toPrimitive];if(ee!==void 0){var ae=ee.call(ie,Z||"default");if(_typeof(ae)!="object")return ae;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Z==="string"?String:Number)(ie)}function toPropertyKey(ie){var Z=toPrimitive(ie,"string");return _typeof(Z)=="symbol"?Z:String(Z)}function _defineProperty$1(ie,Z,ee){return Z=toPropertyKey(Z),Z in ie?Object.defineProperty(ie,Z,{value:ee,enumerable:!0,configurable:!0,writable:!0}):ie[Z]=ee,ie}function ownKeys$1(ie,Z){var ee=Object.keys(ie);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(ie);Z&&(ae=ae.filter(function(ve){return Object.getOwnPropertyDescriptor(ie,ve).enumerable})),ee.push.apply(ee,ae)}return ee}function _objectSpread2$1(ie){for(var Z=1;Z"u"&&(ee=Z,Z=void 0),typeof ee<"u"){if(typeof ee!="function")throw new Error(formatProdErrorMessage(1));return ee(createStore$1)(ie,Z)}if(typeof ie!="function")throw new Error(formatProdErrorMessage(2));var ve=ie,ye=Z,be=[],Ke=be,Ye=!1;function Xe(){Ke===be&&(Ke=be.slice())}function Qe(){if(Ye)throw new Error(formatProdErrorMessage(3));return ye}function et(nt){if(typeof nt!="function")throw new Error(formatProdErrorMessage(4));if(Ye)throw new Error(formatProdErrorMessage(5));var tt=!0;return Xe(),Ke.push(nt),function(){if(tt){if(Ye)throw new Error(formatProdErrorMessage(6));tt=!1,Xe();var ot=Ke.indexOf(nt);Ke.splice(ot,1),be=null}}}function Je(nt){if(!isPlainObject$3(nt))throw new Error(formatProdErrorMessage(7));if(typeof nt.type>"u")throw new Error(formatProdErrorMessage(8));if(Ye)throw new Error(formatProdErrorMessage(9));try{Ye=!0,ye=ve(ye,nt)}finally{Ye=!1}for(var tt=be=Ke,st=0;st"u")throw new Error(formatProdErrorMessage(12));if(typeof ee(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers(ie){for(var Z=Object.keys(ie),ee={},ae=0;ae"u")throw Xe&&Xe.type,new Error(formatProdErrorMessage(14));et[rt]=tt,Qe=Qe||tt!==nt}return Qe=Qe||ye.length!==Object.keys(Ye).length,Qe?et:Ye}}function compose(){for(var ie=arguments.length,Z=new Array(ie),ee=0;ee{const{entities:ee,resource:ae,mapping:ve}=normalize(Z);if(ae.id===void 0)return[requestError({id:ie,message:"ID is not defined in resource."})];const ye=[importEntities({entities:ee}),addMappings({mapping:ve})];return ae.id!==ie&&(ye.push(addMapping({id:ie,type:ae.type})),ye.push(requestMismatch({requestId:ie,actualId:ae.id}))),ye.push(requestComplete({id:ie})),ye},safeIsNaN=Number.isNaN||function(Z){return typeof Z=="number"&&Z!==Z};function isEqual(ie,Z){return!!(ie===Z||safeIsNaN(ie)&&safeIsNaN(Z))}function areInputsEqual(ie,Z){if(!Array.isArray(ie)||!Array.isArray(Z))return ie===Z;if(ie.length!==Z.length)return!1;for(let ee=0;ee{const ye=ie.getState(),be=ye.iiif.requests[ae];if(be)switch(be.loadingState){case RESOURCE_ERROR:break;case RESOURCE_LOADING:{let Ke,Ye=!1;try{const Xe=await Promise.race([new Promise((Qe,et)=>{Ye||(Ke=ie.subscribe(()=>{const Je=ie.getState();if(Je.iiif.requests[ae].loadingState===RESOURCE_ERROR){et();return}if(Je.iiif.requests[ae].loadingState===RESOURCE_READY){const rt=resolveIfExists(Je,ae);rt?Qe(rt):et()}}))}),new Promise((Qe,et)=>setTimeout(()=>{Ye=!0,et()},ee*60))]);if(Ke&&Ke(),Xe)return Xe}catch{Ke&&Ke();break}break}case RESOURCE_READY:{const Ke=resolveIfExists(ye,ae);if(Ke)return Ke;break}}ie.dispatch(requestResource({id:ae}));try{const Ke=await Z(ae,ve);!Ke.id&&!Ke["@id"]&&(Ke["@type"]&&(Ke["@id"]=ae),Ke.id=ae);const Ye=actionListFromResource(ae,Ke);return ie.dispatch(batchActions({actions:Ye})),resolveIfExists(ie.getState(),ae)}catch(Ke){throw ie.dispatch(requestError({id:ae,message:Ke.toString()})),Ke}}}function getDefaultEntities(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}const mappingReducer=(ie={},Z)=>{switch(Z.type){case ADD_MAPPING:return{...ie,[Z.payload.id]:Z.payload.type};case ADD_MAPPINGS:return{...ie,...Z.payload.mapping};default:return ie}};function isReferenceList(ie,Z,ee,ae){return!(!ie[ee]||!ie[ee][Z]||!ie[ee][Z][ae]||!Array.isArray(ie[ee][Z][ae]))}function quickMerge(ie,Z){const ee={},ae=[];for(const[ve,ye]of Object.entries(ie||{})){ae.push(ve);const be=(Z||{})[ve];if(!be||be.length===0){ee[ve]=ye;continue}ee[ve]=be}for(const[ve,ye]of Object.entries(Z||{}))ae.indexOf(ve)===-1&&(ee[ve]=ye);return ee}const entitiesReducer=(ie=getDefaultEntities(),Z)=>{var ee;switch(Z.type){case MODIFY_ENTITY_FIELD:{if(!ie[Z.payload.type]||!ie[Z.payload.type][Z.payload.id])return ie;const ae=ie[Z.payload.type][Z.payload.id];return typeof ae=="string"?ie:{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:Z.payload.value}}}}case REORDER_ENTITY_FIELD:{if(!isReferenceList(ie,Z.payload.id,Z.payload.type,Z.payload.key))return ie;const ae=ie[Z.payload.type][Z.payload.id];if(typeof ae=="string")return ie;const ve=Array.from(ae[Z.payload.key]),[ye]=ve.splice(Z.payload.startIndex,1);return ve.splice(Z.payload.endIndex,0,ye),{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:ve}}}}case IMPORT_ENTITIES:{const ae=Object.keys(Z.payload.entities),ve={...ie};for(const ye of ae){const be=Z.payload.entities[ye],Ke={...ie[ye]||{}};let Ye=!1;const Xe=Object.keys(be||{})||[];if(be&&Xe){for(const Qe of Xe)Ye=!0,Ke[Qe]=ie[ye][Qe]?quickMerge(ie[ye][Qe],be[Qe]):be[Qe];Ye&&(ve[ye]=Ke)}}return ve}case ADD_REFERENCE:{if(!isReferenceList(ie,Z.payload.id,Z.payload.type,Z.payload.key))return ie;const ae=ie[Z.payload.type][Z.payload.id],ve=Array.from(ae[Z.payload.key]);return ve.splice(Z.payload.index||ve.length+1,0,Z.payload.reference),{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:ve}}}}case REMOVE_REFERENCE:{if(!isReferenceList(ie,Z.payload.id,Z.payload.type,Z.payload.key))return ie;const ae=ie[Z.payload.type][Z.payload.id],ve=Array.from(ae[Z.payload.key]),ye=Z.payload.index||ve.findIndex(be=>be&&be.id===Z.payload.reference.id);return ye===-1||((ee=ve[ye])==null?void 0:ee.id)!==Z.payload.reference.id?ie:(ve.splice(ye,1),{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:ve}}})}default:return ie}},requestReducer=(ie={},Z)=>{switch(Z.type){case REQUEST_RESOURCE:case REQUEST_OFFLINE_RESOURCE:return{...ie,[Z.payload.id]:{requestUri:Z.payload.id,loadingState:RESOURCE_LOADING,uriMismatch:!1,resourceUri:Z.payload.id}};case REQUEST_MISMATCH:return{...ie,[Z.payload.requestId]:{...ie[Z.payload.requestId]||{},uriMismatch:!0,resourceUri:Z.payload.actualId},[Z.payload.actualId]:{requestUri:Z.payload.requestId,loadingState:ie[Z.payload.requestId].loadingState,uriMismatch:!0,resourceUri:Z.payload.actualId}};case REQUEST_ERROR:return{...ie,[Z.payload.id]:{...ie[Z.payload.id]||{},loadingState:RESOURCE_ERROR,error:Z.payload.message}};case REQUEST_COMPLETE:return{...ie,[Z.payload.id]:{...ie[Z.payload.id]||{},loadingState:RESOURCE_READY,error:void 0}}}return ie},metaReducer=(ie={},Z)=>{const{id:ee,updateValue:ae,value:ve,meta:ye,key:be}=Z&&Z.payload||{};switch(Z.type){case SET_META_VALUE:return{...ie,[ee]:{...ie[ee]||{},[ye]:{...ie[ee]?ie[ee][ye]||{}:{},[be]:ve}}};case SET_META_VALUE_DYNAMIC:return{...ie,[ee]:{...ie[ee]||{},[ye]:{...ie[ee]?ie[ee][ye]||{}:{},[be]:ie[ee]&&ie[ee][ye]?ae(ie[ee][ye][be]):ae(void 0)}}};case UNSET_META_VALUE:return ie[ee]&&ie[ee][ye]&&ie[ee][ye][be]?{...ie,[ee]:{...ie[ee]||{},[ye]:{...ie[ee]?ie[ee][ye]||{}:{},[be]:void 0}}}:ie;default:return ie}};function createBatchReducer(ie){return(Z,ee)=>ee&&ee.type===BATCH_ACTIONS?ee.payload.actions.reduce(ie,Z):ee&&ee.type===BATCH_IMPORT?ee.payload.state:ie(Z,ee)}const reducers=combineReducers({mapping:mappingReducer,entities:entitiesReducer,requests:requestReducer,meta:metaReducer}),composeEnhancers=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||compose;function createStore(ie={}){const{enableDevtools:Z=!0,iiifStoreName:ee="iiif",defaultState:ae={},extraMiddleware:ve=[],customReducers:ye={}}=ie,be=combineReducers({[ee]:reducers,...ye});return createStore$1(createBatchReducer(be),ae,Z?composeEnhancers(applyMiddleware(...ve)):compose(applyMiddleware(...ve)))}function mitt(ie){return{all:ie=ie||new Map,on:function(Z,ee){var ae=ie.get(Z);ae?ae.push(ee):ie.set(Z,[ee])},off:function(Z,ee){var ae=ie.get(Z);ae&&(ee?ae.splice(ae.indexOf(ee)>>>0,1):ie.set(Z,[]))},emit:function(Z,ee){var ae=ie.get(Z);ae&&ae.slice().map(function(ve){ve(ee)}),(ae=ie.get("*"))&&ae.slice().map(function(ve){ve(Z,ee)})}}}class Vault{constructor(Z,ee){Vi(this,"options");Vi(this,"store");Vi(this,"emitter");Vi(this,"isBatching",!1);Vi(this,"batchQueue",[]);Vi(this,"remoteFetcher");Vi(this,"staticFetcher");Vi(this,"defaultFetcher",Z=>fetch(Z).then(ee=>ee.json()));Vi(this,"middleware",Z=>ee=>ae=>{if(ae.type===BATCH_ACTIONS){for(const be of ae.payload.actions)this.emitter.emit(be.type,{realAction:be,state:Z.getState()});const ye=ee(ae);for(const be of ae.payload.actions)this.emitter.emit(`after:${ae.type}`,{action:ae,state:ye});return ye}this.emitter.emit(ae.type,{action:ae,state:Z.getState()});const ve=ee(ae);return this.emitter.emit(`after:${ae.type}`,{action:ae,state:ve}),ve});this.options=Object.assign({reducers:{},middleware:[],defaultState:{},customFetcher:this.defaultFetcher,enableDevtools:!0},Z||{}),this.store=ee||createStore({customReducers:this.options.reducers,extraMiddleware:[...this.options.middleware,this.middleware],defaultState:this.options.defaultState,enableDevtools:this.options.enableDevtools}),this.emitter=mitt(),this.remoteFetcher=createFetchHelper(this.store,this.options.customFetcher),this.staticFetcher=createFetchHelper(this.store,(ae,ve)=>ve)}batch(Z){this.isBatching=!0;try{Z(this),this.store.dispatch(batchActions({actions:this.batchQueue}))}catch(ee){throw this.batchQueue=[],this.isBatching=!1,ee}this.batchQueue=[],this.isBatching=!1}async asyncBatch(Z){this.isBatching=!0;try{await Z(this),this.store.dispatch(batchActions({actions:this.batchQueue}))}catch(ee){throw this.batchQueue=[],this.isBatching=!1,ee}this.batchQueue=[],this.isBatching=!1}modifyEntityField(Z,ee,ae){this.dispatch(entityActions.modifyEntityField({id:Z.id,type:Z.type,key:ee,value:ae}))}dispatch(Z){this.isBatching?this.batchQueue.push(Z):this.store.dispatch(Z)}serialize(Z,ee){return serialize(this.getState().iiif,Z,ee)}toPresentation2(Z){return this.serialize(Z,serializeConfigPresentation2)}toPresentation3(Z){return this.serialize(Z,serializeConfigPresentation3)}hydrate(Z,ee){return this.get(Z,ee,{skipSelfReturn:!1})}get(Z,ee,ae={}){typeof ee!="string"&&(ae=ee||{},ee=void 0);const{skipSelfReturn:ve=!0}=ae||{};if(Array.isArray(Z))return Z.map(Xe=>this.get(Xe,ae));const ye=this.getState();if(typeof Z=="string"){const Xe=ee||ye.iiif.mapping[Z];if(!Xe)return ve?null:{id:Z,type:"unknown"};Z={id:Z,type:Xe}}const be=ee||Z.type,Ke=Z.id,Ye=ye.iiif.entities[be];if(!Ye){const Xe=ye.iiif.requests[Ke];return Xe&&Xe.resourceUri!==Ke?this.get(Xe.resourceUri,ae):ve?null:Z}return Ye[Z.id]||(ve?null:Z)}select(Z){return Z(this.getState())}getStore(){return this.store}getState(){return this.store.getState()}loadManifest(Z,ee){const ae=typeof Z=="string"?Z:Z.id;return this.load(ae,ee)}loadCollection(Z,ee){const ae=typeof Z=="string"?Z:Z.id;return this.load(ae,ee)}load(Z,ee){const ae=typeof Z=="string"?Z:Z.id;return ee?this.staticFetcher(ae,ee):this.remoteFetcher(ae)}areInputsEqual(Z,ee){return areInputsEqual(Z,ee)}subscribe(Z,ee,ae){typeof ae>"u"&&(typeof ee>"u"||ee===!1||ee===!0)&&(ae=ee,ee=Z,Z=ye=>ye);let ve=ae?null:Z(this.store.getState());return ae||ee(ve,this),this.store.subscribe(()=>{const ye=this.store.getState(),be=Z(ye);ve!==be&&!areInputsEqual(ve,be)&&ee(be,this),ve=be})}async ensureLoaded(Z){const ee=typeof Z=="string"?Z:Z.id;this.requestStatus(ee)||await this.load(ee)}requestStatus(Z){return this.select(ee=>ee.iiif.requests[Z])}getResourceMeta(Z,ee){const ae=this.getState().iiif.meta[Z];if(ae)return ee?ae[ee]:ae}setMetaValue([Z,ee,ae],ve){this.dispatch(typeof ve=="function"?metaActions.setMetaValueDynamic({id:Z,meta:ee,key:ae,updateValue:ve}):metaActions.setMetaValue({id:Z,meta:ee,key:ae,value:ve}))}}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(ie){for(var Z=1;Zit,Object.values(it));return reactExports.createElement(nt.Provider,{value:tt},rt)}function Qe(et,Je){const rt=(Je==null?void 0:Je[ie][Ye])||Ke,it=reactExports.useContext(rt);if(it)return it;if(be!==void 0)return be;throw new Error(`\`${et}\` must be used within \`${ye}\``)}return Xe.displayName=ye+"Provider",[Xe,Qe]}const ve=()=>{const ye=ee.map(be=>reactExports.createContext(be));return function(Ke){const Ye=(Ke==null?void 0:Ke[ie])||ye;return reactExports.useMemo(()=>({[`__scope${ie}`]:{...Ke,[ie]:Ye}}),[Ke,Ye])}};return ve.scopeName=ie,[ae,$c512c27ab02ef895$var$composeContextScopes(ve,...Z)]}function $c512c27ab02ef895$var$composeContextScopes(...ie){const Z=ie[0];if(ie.length===1)return Z;const ee=()=>{const ae=ie.map(ve=>({useScope:ve(),scopeName:ve.scopeName}));return function(ye){const be=ae.reduce((Ke,{useScope:Ye,scopeName:Xe})=>{const et=Ye(ye)[`__scope${Xe}`];return{...Ke,...et}},{});return reactExports.useMemo(()=>({[`__scope${Z.scopeName}`]:be}),[be])}};return ee.scopeName=Z.scopeName,ee}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(ie){const Z=reactExports.useRef(ie);return reactExports.useEffect(()=>{Z.current=ie}),reactExports.useMemo(()=>(...ee)=>{var ae;return(ae=Z.current)===null||ae===void 0?void 0:ae.call(Z,...ee)},[])}function $71cd76cc60e0454e$export$6f32135080cb4c3({prop:ie,defaultProp:Z,onChange:ee=()=>{}}){const[ae,ve]=$71cd76cc60e0454e$var$useUncontrolledState({defaultProp:Z,onChange:ee}),ye=ie!==void 0,be=ye?ie:ae,Ke=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(ee),Ye=reactExports.useCallback(Xe=>{if(ye){const et=typeof Xe=="function"?Xe(ie):Xe;et!==ie&&Ke(et)}else ve(Xe)},[ye,ie,ve,Ke]);return[be,Ye]}function $71cd76cc60e0454e$var$useUncontrolledState({defaultProp:ie,onChange:Z}){const ee=reactExports.useState(ie),[ae]=ee,ve=reactExports.useRef(ae),ye=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(Z);return reactExports.useEffect(()=>{ve.current!==ae&&(ye(ae),ve.current=ae)},[ae,ve,ye]),ee}const $9f79659886946c16$export$e5c5a5f917a5871c=globalThis!=null&&globalThis.document?reactExports.useLayoutEffect:()=>{};function $6ed0406888f73fc4$var$setRef(ie,Z){typeof ie=="function"?ie(Z):ie!=null&&(ie.current=Z)}function $6ed0406888f73fc4$export$43e446d32b3d21af(...ie){return Z=>ie.forEach(ee=>$6ed0406888f73fc4$var$setRef(ee,Z))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...ie){return reactExports.useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...ie),ie)}const $5e63c961fc1ce211$export$8c6ed5c666ac1360=reactExports.forwardRef((ie,Z)=>{const{children:ee,...ae}=ie,ve=reactExports.Children.toArray(ee),ye=ve.find($5e63c961fc1ce211$var$isSlottable);if(ye){const be=ye.props.children,Ke=ve.map(Ye=>Ye===ye?reactExports.Children.count(be)>1?reactExports.Children.only(null):reactExports.isValidElement(be)?be.props.children:null:Ye);return reactExports.createElement($5e63c961fc1ce211$var$SlotClone,_extends$1({},ae,{ref:Z}),reactExports.isValidElement(be)?reactExports.cloneElement(be,void 0,Ke):null)}return reactExports.createElement($5e63c961fc1ce211$var$SlotClone,_extends$1({},ae,{ref:Z}),ee)});$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName="Slot";const $5e63c961fc1ce211$var$SlotClone=reactExports.forwardRef((ie,Z)=>{const{children:ee,...ae}=ie;return reactExports.isValidElement(ee)?reactExports.cloneElement(ee,{...$5e63c961fc1ce211$var$mergeProps(ae,ee.props),ref:Z?$6ed0406888f73fc4$export$43e446d32b3d21af(Z,ee.ref):ee.ref}):reactExports.Children.count(ee)>1?reactExports.Children.only(null):null});$5e63c961fc1ce211$var$SlotClone.displayName="SlotClone";const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children:ie})=>reactExports.createElement(reactExports.Fragment,null,ie);function $5e63c961fc1ce211$var$isSlottable(ie){return reactExports.isValidElement(ie)&&ie.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(ie,Z){const ee={...Z};for(const ae in Z){const ve=ie[ae],ye=Z[ae];/^on[A-Z]/.test(ae)?ve&&ye?ee[ae]=(...Ke)=>{ye(...Ke),ve(...Ke)}:ve&&(ee[ae]=ve):ae==="style"?ee[ae]={...ve,...ye}:ae==="className"&&(ee[ae]=[ve,ye].filter(Boolean).join(" "))}return{...ie,...ee}}const $8927f6f2acc4f386$var$NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$8927f6f2acc4f386$export$250ffa63cdc0d034=$8927f6f2acc4f386$var$NODES.reduce((ie,Z)=>{const ee=reactExports.forwardRef((ae,ve)=>{const{asChild:ye,...be}=ae,Ke=ye?$5e63c961fc1ce211$export$8c6ed5c666ac1360:Z;return reactExports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),reactExports.createElement(Ke,_extends$1({},be,{ref:ve}))});return ee.displayName=`Primitive.${Z}`,{...ie,[Z]:ee}},{});function $8927f6f2acc4f386$export$6d1a0317bde7de7f(ie,Z){ie&&reactDomExports.flushSync(()=>ie.dispatchEvent(Z))}function $fe963b355347cc68$export$3e6543de14f8614f(ie,Z){return reactExports.useReducer((ee,ae)=>{const ve=Z[ee][ae];return ve??ee},ie)}const $921a889cee6df7e8$export$99c2b779aa4e8b8b=ie=>{const{present:Z,children:ee}=ie,ae=$921a889cee6df7e8$var$usePresence(Z),ve=typeof ee=="function"?ee({present:ae.isPresent}):reactExports.Children.only(ee),ye=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(ae.ref,ve.ref);return typeof ee=="function"||ae.isPresent?reactExports.cloneElement(ve,{ref:ye}):null};$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";function $921a889cee6df7e8$var$usePresence(ie){const[Z,ee]=reactExports.useState(),ae=reactExports.useRef({}),ve=reactExports.useRef(ie),ye=reactExports.useRef("none"),be=ie?"mounted":"unmounted",[Ke,Ye]=$fe963b355347cc68$export$3e6543de14f8614f(be,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return reactExports.useEffect(()=>{const Xe=$921a889cee6df7e8$var$getAnimationName(ae.current);ye.current=Ke==="mounted"?Xe:"none"},[Ke]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{const Xe=ae.current,Qe=ve.current;if(Qe!==ie){const Je=ye.current,rt=$921a889cee6df7e8$var$getAnimationName(Xe);ie?Ye("MOUNT"):rt==="none"||(Xe==null?void 0:Xe.display)==="none"?Ye("UNMOUNT"):Ye(Qe&&Je!==rt?"ANIMATION_OUT":"UNMOUNT"),ve.current=ie}},[ie,Ye]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{if(Z){const Xe=et=>{const rt=$921a889cee6df7e8$var$getAnimationName(ae.current).includes(et.animationName);et.target===Z&&rt&&reactDomExports.flushSync(()=>Ye("ANIMATION_END"))},Qe=et=>{et.target===Z&&(ye.current=$921a889cee6df7e8$var$getAnimationName(ae.current))};return Z.addEventListener("animationstart",Qe),Z.addEventListener("animationcancel",Xe),Z.addEventListener("animationend",Xe),()=>{Z.removeEventListener("animationstart",Qe),Z.removeEventListener("animationcancel",Xe),Z.removeEventListener("animationend",Xe)}}else Ye("ANIMATION_END")},[Z,Ye]),{isPresent:["mounted","unmountSuspended"].includes(Ke),ref:reactExports.useCallback(Xe=>{Xe&&(ae.current=getComputedStyle(Xe)),ee(Xe)},[])}}function $921a889cee6df7e8$var$getAnimationName(ie){return(ie==null?void 0:ie.animationName)||"none"}const $1746a345f3d73bb7$var$useReactId=$2AODx$react.useId||(()=>{});let $1746a345f3d73bb7$var$count=0;function $1746a345f3d73bb7$export$f680877a34711e37(ie){const[Z,ee]=reactExports.useState($1746a345f3d73bb7$var$useReactId());return $9f79659886946c16$export$e5c5a5f917a5871c(()=>{ie||ee(ae=>ae??String($1746a345f3d73bb7$var$count++))},[ie]),ie||(Z?`radix-${Z}`:"")}const $409067139f391064$var$COLLAPSIBLE_NAME="Collapsible",[$409067139f391064$var$createCollapsibleContext,$409067139f391064$export$952b32dcbe73087a]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($409067139f391064$var$COLLAPSIBLE_NAME),[$409067139f391064$var$CollapsibleProvider,$409067139f391064$var$useCollapsibleContext]=$409067139f391064$var$createCollapsibleContext($409067139f391064$var$COLLAPSIBLE_NAME),$409067139f391064$export$6eb0f7ddcda6131f=reactExports.forwardRef((ie,Z)=>{const{__scopeCollapsible:ee,open:ae,defaultOpen:ve,disabled:ye,onOpenChange:be,...Ke}=ie,[Ye=!1,Xe]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:ae,defaultProp:ve,onChange:be});return reactExports.createElement($409067139f391064$var$CollapsibleProvider,{scope:ee,disabled:ye,contentId:$1746a345f3d73bb7$export$f680877a34711e37(),open:Ye,onOpenToggle:reactExports.useCallback(()=>Xe(Qe=>!Qe),[Xe])},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({"data-state":$409067139f391064$var$getState(Ye),"data-disabled":ye?"":void 0},Ke,{ref:Z})))}),$409067139f391064$var$TRIGGER_NAME="CollapsibleTrigger",$409067139f391064$export$c135dce7b15bbbdc=reactExports.forwardRef((ie,Z)=>{const{__scopeCollapsible:ee,...ae}=ie,ve=$409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME,ee);return reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,_extends$1({type:"button","aria-controls":ve.contentId,"aria-expanded":ve.open||!1,"data-state":$409067139f391064$var$getState(ve.open),"data-disabled":ve.disabled?"":void 0,disabled:ve.disabled},ae,{ref:Z,onClick:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onClick,ve.onOpenToggle)}))}),$409067139f391064$var$CONTENT_NAME="CollapsibleContent",$409067139f391064$export$aadde00976f34151=reactExports.forwardRef((ie,Z)=>{const{forceMount:ee,...ae}=ie,ve=$409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME,ie.__scopeCollapsible);return reactExports.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:ee||ve.open},({present:ye})=>reactExports.createElement($409067139f391064$var$CollapsibleContentImpl,_extends$1({},ae,{ref:Z,present:ye})))}),$409067139f391064$var$CollapsibleContentImpl=reactExports.forwardRef((ie,Z)=>{const{__scopeCollapsible:ee,present:ae,children:ve,...ye}=ie,be=$409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME,ee),[Ke,Ye]=reactExports.useState(ae),Xe=reactExports.useRef(null),Qe=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(Z,Xe),et=reactExports.useRef(0),Je=et.current,rt=reactExports.useRef(0),it=rt.current,nt=be.open||Ke,tt=reactExports.useRef(nt),st=reactExports.useRef();return reactExports.useEffect(()=>{const ot=requestAnimationFrame(()=>tt.current=!1);return()=>cancelAnimationFrame(ot)},[]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{const ot=Xe.current;if(ot){st.current=st.current||{transitionDuration:ot.style.transitionDuration,animationName:ot.style.animationName},ot.style.transitionDuration="0s",ot.style.animationName="none";const ut=ot.getBoundingClientRect();et.current=ut.height,rt.current=ut.width,tt.current||(ot.style.transitionDuration=st.current.transitionDuration,ot.style.animationName=st.current.animationName),Ye(ae)}},[be.open,ae]),reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({"data-state":$409067139f391064$var$getState(be.open),"data-disabled":be.disabled?"":void 0,id:be.contentId,hidden:!nt},ye,{ref:Qe,style:{"--radix-collapsible-content-height":Je?`${Je}px`:void 0,"--radix-collapsible-content-width":it?`${it}px`:void 0,...ie.style}}),nt&&ve)});function $409067139f391064$var$getState(ie){return ie?"open":"closed"}const $409067139f391064$export$be92b6f5f03c0fe9=$409067139f391064$export$6eb0f7ddcda6131f,$409067139f391064$export$41fb9f06171c75f4=$409067139f391064$export$c135dce7b15bbbdc,$409067139f391064$export$7c6e2c02157bb7d2=$409067139f391064$export$aadde00976f34151,ErrorBoundaryContext=reactExports.createContext(null),initialState={didCatch:!1,error:null};class ErrorBoundary extends reactExports.Component{constructor(Z){super(Z),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=initialState}static getDerivedStateFromError(Z){return{didCatch:!0,error:Z}}resetErrorBoundary(){const{error:Z}=this.state;if(Z!==null){for(var ee,ae,ve=arguments.length,ye=new Array(ve),be=0;be0&&arguments[0]!==void 0?arguments[0]:[],Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return ie.length!==Z.length||ie.some((ee,ae)=>!Object.is(ee,Z[ae]))}var e="colors",t="sizes",r="space",n={gap:r,gridGap:r,columnGap:r,gridColumnGap:r,rowGap:r,gridRowGap:r,inset:r,insetBlock:r,insetBlockEnd:r,insetBlockStart:r,insetInline:r,insetInlineEnd:r,insetInlineStart:r,margin:r,marginTop:r,marginRight:r,marginBottom:r,marginLeft:r,marginBlock:r,marginBlockEnd:r,marginBlockStart:r,marginInline:r,marginInlineEnd:r,marginInlineStart:r,padding:r,paddingTop:r,paddingRight:r,paddingBottom:r,paddingLeft:r,paddingBlock:r,paddingBlockEnd:r,paddingBlockStart:r,paddingInline:r,paddingInlineEnd:r,paddingInlineStart:r,top:r,right:r,bottom:r,left:r,scrollMargin:r,scrollMarginTop:r,scrollMarginRight:r,scrollMarginBottom:r,scrollMarginLeft:r,scrollMarginX:r,scrollMarginY:r,scrollMarginBlock:r,scrollMarginBlockEnd:r,scrollMarginBlockStart:r,scrollMarginInline:r,scrollMarginInlineEnd:r,scrollMarginInlineStart:r,scrollPadding:r,scrollPaddingTop:r,scrollPaddingRight:r,scrollPaddingBottom:r,scrollPaddingLeft:r,scrollPaddingX:r,scrollPaddingY:r,scrollPaddingBlock:r,scrollPaddingBlockEnd:r,scrollPaddingBlockStart:r,scrollPaddingInline:r,scrollPaddingInlineEnd:r,scrollPaddingInlineStart:r,fontSize:"fontSizes",background:e,backgroundColor:e,backgroundImage:e,borderImage:e,border:e,borderBlock:e,borderBlockEnd:e,borderBlockStart:e,borderBottom:e,borderBottomColor:e,borderColor:e,borderInline:e,borderInlineEnd:e,borderInlineStart:e,borderLeft:e,borderLeftColor:e,borderRight:e,borderRightColor:e,borderTop:e,borderTopColor:e,caretColor:e,color:e,columnRuleColor:e,fill:e,outline:e,outlineColor:e,stroke:e,textDecorationColor:e,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:t,minBlockSize:t,maxBlockSize:t,inlineSize:t,minInlineSize:t,maxInlineSize:t,width:t,minWidth:t,maxWidth:t,height:t,minHeight:t,maxHeight:t,flexBasis:t,gridTemplateColumns:t,gridTemplateRows:t,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},i=(ie,Z)=>typeof Z=="function"?{"()":Function.prototype.toString.call(Z)}:Z,o=()=>{const ie=Object.create(null);return(Z,ee,...ae)=>{const ve=(ye=>JSON.stringify(ye,i))(Z);return ve in ie?ie[ve]:ie[ve]=ee(Z,...ae)}},l=Symbol.for("sxs.internal"),s=(ie,Z)=>Object.defineProperties(ie,Object.getOwnPropertyDescriptors(Z)),a=ie=>{for(const Z in ie)return!0;return!1},{hasOwnProperty:c}=Object.prototype,d=ie=>ie.includes("-")?ie:ie.replace(/[A-Z]/g,Z=>"-"+Z.toLowerCase()),g=/\s+(?![^()]*\))/,p=ie=>Z=>ie(...typeof Z=="string"?String(Z).split(g):[Z]),u={appearance:ie=>({WebkitAppearance:ie,appearance:ie}),backfaceVisibility:ie=>({WebkitBackfaceVisibility:ie,backfaceVisibility:ie}),backdropFilter:ie=>({WebkitBackdropFilter:ie,backdropFilter:ie}),backgroundClip:ie=>({WebkitBackgroundClip:ie,backgroundClip:ie}),boxDecorationBreak:ie=>({WebkitBoxDecorationBreak:ie,boxDecorationBreak:ie}),clipPath:ie=>({WebkitClipPath:ie,clipPath:ie}),content:ie=>({content:ie.includes('"')||ie.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(ie)?ie:`"${ie}"`}),hyphens:ie=>({WebkitHyphens:ie,hyphens:ie}),maskImage:ie=>({WebkitMaskImage:ie,maskImage:ie}),maskSize:ie=>({WebkitMaskSize:ie,maskSize:ie}),tabSize:ie=>({MozTabSize:ie,tabSize:ie}),textSizeAdjust:ie=>({WebkitTextSizeAdjust:ie,textSizeAdjust:ie}),userSelect:ie=>({WebkitUserSelect:ie,userSelect:ie}),marginBlock:p((ie,Z)=>({marginBlockStart:ie,marginBlockEnd:Z||ie})),marginInline:p((ie,Z)=>({marginInlineStart:ie,marginInlineEnd:Z||ie})),maxSize:p((ie,Z)=>({maxBlockSize:ie,maxInlineSize:Z||ie})),minSize:p((ie,Z)=>({minBlockSize:ie,minInlineSize:Z||ie})),paddingBlock:p((ie,Z)=>({paddingBlockStart:ie,paddingBlockEnd:Z||ie})),paddingInline:p((ie,Z)=>({paddingInlineStart:ie,paddingInlineEnd:Z||ie}))},h=/([\d.]+)([^]*)/,f=(ie,Z)=>ie.length?ie.reduce((ee,ae)=>(ee.push(...Z.map(ve=>ve.includes("&")?ve.replace(/&/g,/[ +>|~]/.test(ae)&&/&.*&/.test(ve)?`:is(${ae})`:ae):ae+" "+ve)),ee),[]):Z,m$1=(ie,Z)=>ie in b&&typeof Z=="string"?Z.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(ee,ae,ve,ye)=>ae+(ve==="stretch"?`-moz-available${ye};${d(ie)}:${ae}-webkit-fill-available`:`-moz-fit-content${ye};${d(ie)}:${ae}fit-content`)+ye):String(Z),b={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},S$1=ie=>ie?ie+"-":"",k$1=(ie,Z,ee)=>ie.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(ae,ve,ye,be,Ke)=>be=="$"==!!ye?ae:(ve||be=="--"?"calc(":"")+"var(--"+(be==="$"?S$1(Z)+(Ke.includes("$")?"":S$1(ee))+Ke.replace(/\$/g,"-"):Ke)+")"+(ve||be=="--"?"*"+(ve||"")+(ye||"1")+")":"")),y=/\s*,\s*(?![^()]*\))/,B=Object.prototype.toString,$=(ie,Z,ee,ae,ve)=>{let ye,be,Ke;const Ye=(Xe,Qe,et)=>{let Je,rt;const it=nt=>{for(Je in nt){const ot=Je.charCodeAt(0)===64,ut=ot&&Array.isArray(nt[Je])?nt[Je]:[nt[Je]];for(rt of ut){const ft=/[A-Z]/.test(st=Je)?st:st.replace(/-[^]/g,Xr=>Xr[1].toUpperCase()),pt=typeof rt=="object"&&rt&&rt.toString===B&&(!ae.utils[ft]||!Qe.length);if(ft in ae.utils&&!pt){const Xr=ae.utils[ft];if(Xr!==be){be=Xr,it(Xr(rt)),be=null;continue}}else if(ft in u){const Xr=u[ft];if(Xr!==Ke){Ke=Xr,it(Xr(rt)),Ke=null;continue}}if(ot&&(tt=Je.slice(1)in ae.media?"@media "+ae.media[Je.slice(1)]:Je,Je=tt.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(Xr,mt,Yr,ri,Zr,_r)=>{const Kr=h.test(mt),si=.0625*(Kr?-1:1),[oi,Qr]=Kr?[ri,mt]:[mt,ri];return"("+(Yr[0]==="="?"":Yr[0]===">"===Kr?"max-":"min-")+oi+":"+(Yr[0]!=="="&&Yr.length===1?Qr.replace(h,(ii,ti,ni)=>Number(ti)+si*(Yr===">"?1:-1)+ni):Qr)+(Zr?") and ("+(Zr[0]===">"?"min-":"max-")+oi+":"+(Zr.length===1?_r.replace(h,(ii,ti,ni)=>Number(ti)+si*(Zr===">"?-1:1)+ni):_r):"")+")"})),pt){const Xr=ot?et.concat(Je):[...et],mt=ot?[...Qe]:f(Qe,Je.split(y));ye!==void 0&&ve(x$1(...ye)),ye=void 0,Ye(rt,mt,Xr)}else ye===void 0&&(ye=[[],Qe,et]),Je=ot||Je.charCodeAt(0)!==36?Je:`--${S$1(ae.prefix)}${Je.slice(1).replace(/\$/g,"-")}`,rt=pt?rt:typeof rt=="number"?rt&&ft in I?String(rt)+"px":String(rt):k$1(m$1(ft,rt??""),ae.prefix,ae.themeMap[ft]),ye[0].push(`${ot?`${Je} `:`${d(Je)}:`}${rt}`)}}var tt,st};it(Xe),ye!==void 0&&ve(x$1(...ye)),ye=void 0};Ye(ie,Z,ee)},x$1=(ie,Z,ee)=>`${ee.map(ae=>`${ae}{`).join("")}${Z.length?`${Z.join(",")}{`:""}${ie.join(";")}${Z.length?"}":""}${Array(ee.length?ee.length+1:0).join("}")}`,I={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},R$1=ie=>String.fromCharCode(ie+(ie>25?39:97)),z$1=ie=>(Z=>{let ee,ae="";for(ee=Math.abs(Z);ee>52;ee=ee/52|0)ae=R$1(ee%52)+ae;return R$1(ee%52)+ae})(((Z,ee)=>{let ae=ee.length;for(;ae;)Z=33*Z^ee.charCodeAt(--ae);return Z})(5381,JSON.stringify(ie))>>>0),W$1=["themed","global","styled","onevar","resonevar","allvar","inline"],j$1=ie=>{if(ie.href&&!ie.href.startsWith(location.origin))return!1;try{return!!ie.cssRules}catch{return!1}},E=ie=>{let Z;const ee=()=>{const{cssRules:ve}=Z.sheet;return[].map.call(ve,(ye,be)=>{const{cssText:Ke}=ye;let Ye="";if(Ke.startsWith("--sxs"))return"";if(ve[be-1]&&(Ye=ve[be-1].cssText).startsWith("--sxs")){if(!ye.cssRules.length)return"";for(const Xe in Z.rules)if(Z.rules[Xe].group===ye)return`--sxs{--sxs:${[...Z.rules[Xe].cache].join(" ")}}${Ke}`;return ye.cssRules.length?`${Ye}${Ke}`:""}return Ke}).join("")},ae=()=>{if(Z){const{rules:Ke,sheet:Ye}=Z;if(!Ye.deleteRule){for(;Object(Object(Ye.cssRules)[0]).type===3;)Ye.cssRules.splice(0,1);Ye.cssRules=[]}for(const Xe in Ke)delete Ke[Xe]}const ve=Object(ie).styleSheets||[];for(const Ke of ve)if(j$1(Ke)){for(let Ye=0,Xe=Ke.cssRules;Xe[Ye];++Ye){const Qe=Object(Xe[Ye]);if(Qe.type!==1)continue;const et=Object(Xe[Ye+1]);if(et.type!==4)continue;++Ye;const{cssText:Je}=Qe;if(!Je.startsWith("--sxs"))continue;const rt=Je.slice(14,-3).trim().split(/\s+/),it=W$1[rt[0]];it&&(Z||(Z={sheet:Ke,reset:ae,rules:{},toString:ee}),Z.rules[it]={group:et,index:Ye,cache:new Set(rt)})}if(Z)break}if(!Z){const Ke=(Ye,Xe)=>({type:Xe,cssRules:[],insertRule(Qe,et){this.cssRules.splice(et,0,Ke(Qe,{import:3,undefined:1}[(Qe.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return Ye==="@media{}"?`@media{${[].map.call(this.cssRules,Qe=>Qe.cssText).join("")}}`:Ye}});Z={sheet:ie?(ie.head||ie).appendChild(document.createElement("style")).sheet:Ke("","text/css"),rules:{},reset:ae,toString:ee}}const{sheet:ye,rules:be}=Z;for(let Ke=W$1.length-1;Ke>=0;--Ke){const Ye=W$1[Ke];if(!be[Ye]){const Xe=W$1[Ke+1],Qe=be[Xe]?be[Xe].index:ye.cssRules.length;ye.insertRule("@media{}",Qe),ye.insertRule(`--sxs{--sxs:${Ke}}`,Qe),be[Ye]={group:ye.cssRules[Qe+1],index:Qe,cache:new Set([Ke])}}v(be[Ye])}};return ae(),Z},v=ie=>{const Z=ie.group;let ee=Z.cssRules.length;ie.apply=ae=>{try{Z.insertRule(ae,ee),++ee}catch{}}},T$1=Symbol(),w=o(),M=(ie,Z)=>w(ie,()=>(...ee)=>{let ae={type:null,composers:new Set};for(const ve of ee)if(ve!=null)if(ve[l]){ae.type==null&&(ae.type=ve[l].type);for(const ye of ve[l].composers)ae.composers.add(ye)}else ve.constructor!==Object||ve.$$typeof?ae.type==null&&(ae.type=ve):ae.composers.add(C(ve,ie));return ae.type==null&&(ae.type="span"),ae.composers.size||ae.composers.add(["PJLV",{},[],[],{},[]]),P(ie,ae,Z)}),C=({variants:ie,compoundVariants:Z,defaultVariants:ee,...ae},ve)=>{const ye=`${S$1(ve.prefix)}c-${z$1(ae)}`,be=[],Ke=[],Ye=Object.create(null),Xe=[];for(const Je in ee)Ye[Je]=String(ee[Je]);if(typeof ie=="object"&&ie)for(const Je in ie){Qe=Ye,et=Je,c.call(Qe,et)||(Ye[Je]="undefined");const rt=ie[Je];for(const it in rt){const nt={[Je]:String(it)};String(it)==="undefined"&&Xe.push(Je);const tt=rt[it],st=[nt,tt,!a(tt)];be.push(st)}}var Qe,et;if(typeof Z=="object"&&Z)for(const Je of Z){let{css:rt,...it}=Je;rt=typeof rt=="object"&&rt||{};for(const tt in it)it[tt]=String(it[tt]);const nt=[it,rt,!a(rt)];Ke.push(nt)}return[ye,ae,be,Ke,Ye,Xe]},P=(ie,Z,ee)=>{const[ae,ve,ye,be]=L$1(Z.composers),Ke=typeof Z.type=="function"||Z.type.$$typeof?(et=>{function Je(){for(let rt=0;rtJe.rules[rt]={apply:it=>Je[T$1].push([rt,it])}),Je})(ee):null,Ye=(Ke||ee).rules,Xe=`.${ae}${ve.length>1?`:where(.${ve.slice(1).join(".")})`:""}`,Qe=et=>{et=typeof et=="object"&&et||A;const{css:Je,...rt}=et,it={};for(const st in ye)if(delete rt[st],st in et){let ot=et[st];typeof ot=="object"&&ot?it[st]={"@initial":ye[st],...ot}:(ot=String(ot),it[st]=ot!=="undefined"||be.has(st)?ot:ye[st])}else it[st]=ye[st];const nt=new Set([...ve]);for(const[st,ot,ut,ft]of Z.composers){ee.rules.styled.cache.has(st)||(ee.rules.styled.cache.add(st),$(ot,[`.${st}`],[],ie,mt=>{Ye.styled.apply(mt)}));const pt=O$1(ut,it,ie.media),Xr=O$1(ft,it,ie.media,!0);for(const mt of pt)if(mt!==void 0)for(const[Yr,ri,Zr]of mt){const _r=`${st}-${z$1(ri)}-${Yr}`;nt.add(_r);const Kr=(Zr?ee.rules.resonevar:ee.rules.onevar).cache,si=Zr?Ye.resonevar:Ye.onevar;Kr.has(_r)||(Kr.add(_r),$(ri,[`.${_r}`],[],ie,oi=>{si.apply(oi)}))}for(const mt of Xr)if(mt!==void 0)for(const[Yr,ri]of mt){const Zr=`${st}-${z$1(ri)}-${Yr}`;nt.add(Zr),ee.rules.allvar.cache.has(Zr)||(ee.rules.allvar.cache.add(Zr),$(ri,[`.${Zr}`],[],ie,_r=>{Ye.allvar.apply(_r)}))}}if(typeof Je=="object"&&Je){const st=`${ae}-i${z$1(Je)}-css`;nt.add(st),ee.rules.inline.cache.has(st)||(ee.rules.inline.cache.add(st),$(Je,[`.${st}`],[],ie,ot=>{Ye.inline.apply(ot)}))}for(const st of String(et.className||"").trim().split(/\s+/))st&&nt.add(st);const tt=rt.className=[...nt].join(" ");return{type:Z.type,className:tt,selector:Xe,props:rt,toString:()=>tt,deferredInjector:Ke}};return s(Qe,{className:ae,selector:Xe,[l]:Z,toString:()=>(ee.rules.styled.cache.has(ae)||Qe(),ae)})},L$1=ie=>{let Z="";const ee=[],ae={},ve=[];for(const[ye,,,,be,Ke]of ie){Z===""&&(Z=ye),ee.push(ye),ve.push(...Ke);for(const Ye in be){const Xe=be[Ye];(ae[Ye]===void 0||Xe!=="undefined"||Ke.includes(Xe))&&(ae[Ye]=Xe)}}return[Z,ee,ae,new Set(ve)]},O$1=(ie,Z,ee,ae)=>{const ve=[];e:for(let[ye,be,Ke]of ie){if(Ke)continue;let Ye,Xe=0,Qe=!1;for(Ye in ye){const et=ye[Ye];let Je=Z[Ye];if(Je!==et){if(typeof Je!="object"||!Je)continue e;{let rt,it,nt=0;for(const tt in Je){if(et===String(Je[tt])){if(tt!=="@initial"){const st=tt.slice(1);(it=it||[]).push(st in ee?ee[st]:tt.replace(/^@media ?/,"")),Qe=!0}Xe+=nt,rt=!0}++nt}if(it&&it.length&&(be={["@media "+it.join(", ")]:be}),!rt)continue e}}}(ve[Xe]=ve[Xe]||[]).push([ae?"cv":`${Ye}-${ye[Ye]}`,be,Qe])}return ve},A={},N$1=o(),D$1=(ie,Z)=>N$1(ie,()=>(...ee)=>{const ae=()=>{for(let ve of ee){ve=typeof ve=="object"&&ve||{};let ye=z$1(ve);if(!Z.rules.global.cache.has(ye)){if(Z.rules.global.cache.add(ye),"@import"in ve){let be=[].indexOf.call(Z.sheet.cssRules,Z.rules.themed.group)-1;for(let Ke of[].concat(ve["@import"]))Ke=Ke.includes('"')||Ke.includes("'")?Ke:`"${Ke}"`,Z.sheet.insertRule(`@import ${Ke};`,be++);delete ve["@import"]}$(ve,[],[],ie,be=>{Z.rules.global.apply(be)})}}return""};return s(ae,{toString:ae})}),H=o(),V=(ie,Z)=>H(ie,()=>ee=>{const ae=`${S$1(ie.prefix)}k-${z$1(ee)}`,ve=()=>{if(!Z.rules.global.cache.has(ae)){Z.rules.global.cache.add(ae);const ye=[];$(ee,[],[],ie,Ke=>ye.push(Ke));const be=`@keyframes ${ae}{${ye.join("")}}`;Z.rules.global.apply(be)}return ae};return s(ve,{get name(){return ve()},toString:ve})}),G=class{constructor(ie,Z,ee,ae){this.token=ie==null?"":String(ie),this.value=Z==null?"":String(Z),this.scale=ee==null?"":String(ee),this.prefix=ae==null?"":String(ae)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+S$1(this.prefix)+S$1(this.scale)+this.token}toString(){return this.computedValue}},F=o(),J$1=(ie,Z)=>F(ie,()=>(ee,ae)=>{ae=typeof ee=="object"&&ee||Object(ae);const ve=`.${ee=(ee=typeof ee=="string"?ee:"")||`${S$1(ie.prefix)}t-${z$1(ae)}`}`,ye={},be=[];for(const Ye in ae){ye[Ye]={};for(const Xe in ae[Ye]){const Qe=`--${S$1(ie.prefix)}${Ye}-${Xe}`,et=k$1(String(ae[Ye][Xe]),ie.prefix,Ye);ye[Ye][Xe]=new G(Xe,et,Ye,ie.prefix),be.push(`${Qe}:${et}`)}}const Ke=()=>{if(be.length&&!Z.rules.themed.cache.has(ee)){Z.rules.themed.cache.add(ee);const Ye=`${ae===ie.theme?":root,":""}.${ee}{${be.join(";")}}`;Z.rules.themed.apply(Ye)}return ee};return{...ye,get className(){return Ke()},selector:ve,toString:Ke}}),U=o(),X$1,Y$1=o(),q=ie=>{const Z=(ee=>{let ae=!1;const ve=U(ee,ye=>{ae=!0;const be="prefix"in(ye=typeof ye=="object"&&ye||{})?String(ye.prefix):"",Ke=typeof ye.media=="object"&&ye.media||{},Ye=typeof ye.root=="object"?ye.root||null:globalThis.document||null,Xe=typeof ye.theme=="object"&&ye.theme||{},Qe={prefix:be,media:Ke,theme:Xe,themeMap:typeof ye.themeMap=="object"&&ye.themeMap||{...n},utils:typeof ye.utils=="object"&&ye.utils||{}},et=E(Ye),Je={css:M(Qe,et),globalCss:D$1(Qe,et),keyframes:V(Qe,et),createTheme:J$1(Qe,et),reset(){et.reset(),Je.theme.toString()},theme:{},sheet:et,config:Qe,prefix:be,getCssText:et.toString,toString:et.toString};return String(Je.theme=Je.createTheme(Xe)),Je});return ae||ve.reset(),ve})(ie);return Z.styled=(({config:ee,sheet:ae})=>Y$1(ee,()=>{const ve=M(ee,ae);return(...ye)=>{const be=ve(...ye),Ke=be[l].type,Ye=e$1.forwardRef((Xe,Qe)=>{const et=Xe&&Xe.as||Ke,{props:Je,deferredInjector:rt}=be(Xe);return delete Je.as,Je.ref=Qe,rt?e$1.createElement(e$1.Fragment,null,e$1.createElement(et,Je),e$1.createElement(rt,null)):e$1.createElement(et,Je)});return Ye.className=be.className,Ye.displayName=`Styled.${Ke.displayName||Ke.name||Ke}`,Ye.selector=be.selector,Ye.toString=()=>be.selector,Ye[l]=be[l],Ye}}))(Z),Z},K$1=()=>X$1||(X$1=q()),Q$1=(...ie)=>K$1().createTheme(...ie);function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(ie){const Z=ie+"CollectionProvider",[ee,ae]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(Z),[ve,ye]=ee(Z,{collectionRef:{current:null},itemMap:new Map}),be=rt=>{const{scope:it,children:nt}=rt,tt=e$1.useRef(null),st=e$1.useRef(new Map).current;return e$1.createElement(ve,{scope:it,itemMap:st,collectionRef:tt},nt)},Ke=ie+"CollectionSlot",Ye=e$1.forwardRef((rt,it)=>{const{scope:nt,children:tt}=rt,st=ye(Ke,nt),ot=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(it,st.collectionRef);return e$1.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360,{ref:ot},tt)}),Xe=ie+"CollectionItemSlot",Qe="data-radix-collection-item",et=e$1.forwardRef((rt,it)=>{const{scope:nt,children:tt,...st}=rt,ot=e$1.useRef(null),ut=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(it,ot),ft=ye(Xe,nt);return e$1.useEffect(()=>(ft.itemMap.set(ot,{ref:ot,...st}),()=>void ft.itemMap.delete(ot))),e$1.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360,{[Qe]:"",ref:ut},tt)});function Je(rt){const it=ye(ie+"CollectionConsumer",rt);return e$1.useCallback(()=>{const tt=it.collectionRef.current;if(!tt)return[];const st=Array.from(tt.querySelectorAll(`[${Qe}]`));return Array.from(it.itemMap.values()).sort((ft,pt)=>st.indexOf(ft.ref.current)-st.indexOf(pt.ref.current))},[it.collectionRef,it.itemMap])}return[{Provider:be,Slot:Ye,ItemSlot:et},Je,ae]}const $f631663db3294ace$var$DirectionContext=reactExports.createContext(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(ie){const Z=reactExports.useContext($f631663db3294ace$var$DirectionContext);return ie||Z||"ltr"}const $d7bdfb9eb0fdf311$var$ENTRY_FOCUS="rovingFocusGroup.onEntryFocus",$d7bdfb9eb0fdf311$var$EVENT_OPTIONS={bubbles:!1,cancelable:!0},$d7bdfb9eb0fdf311$var$GROUP_NAME="RovingFocusGroup",[$d7bdfb9eb0fdf311$var$Collection,$d7bdfb9eb0fdf311$var$useCollection,$d7bdfb9eb0fdf311$var$createCollectionScope]=$e02a7d9cb1dc128c$export$c74125a8e3af6bb2($d7bdfb9eb0fdf311$var$GROUP_NAME),[$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext,$d7bdfb9eb0fdf311$export$c7109489551a4f4]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($d7bdfb9eb0fdf311$var$GROUP_NAME,[$d7bdfb9eb0fdf311$var$createCollectionScope]),[$d7bdfb9eb0fdf311$var$RovingFocusProvider,$d7bdfb9eb0fdf311$var$useRovingFocusContext]=$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext($d7bdfb9eb0fdf311$var$GROUP_NAME),$d7bdfb9eb0fdf311$export$8699f7c8af148338=reactExports.forwardRef((ie,Z)=>reactExports.createElement($d7bdfb9eb0fdf311$var$Collection.Provider,{scope:ie.__scopeRovingFocusGroup},reactExports.createElement($d7bdfb9eb0fdf311$var$Collection.Slot,{scope:ie.__scopeRovingFocusGroup},reactExports.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl,_extends$1({},ie,{ref:Z}))))),$d7bdfb9eb0fdf311$var$RovingFocusGroupImpl=reactExports.forwardRef((ie,Z)=>{const{__scopeRovingFocusGroup:ee,orientation:ae,loop:ve=!1,dir:ye,currentTabStopId:be,defaultCurrentTabStopId:Ke,onCurrentTabStopIdChange:Ye,onEntryFocus:Xe,...Qe}=ie,et=reactExports.useRef(null),Je=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(Z,et),rt=$f631663db3294ace$export$b39126d51d94e6f3(ye),[it=null,nt]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:be,defaultProp:Ke,onChange:Ye}),[tt,st]=reactExports.useState(!1),ot=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(Xe),ut=$d7bdfb9eb0fdf311$var$useCollection(ee),ft=reactExports.useRef(!1),[pt,Xr]=reactExports.useState(0);return reactExports.useEffect(()=>{const mt=et.current;if(mt)return mt.addEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS,ot),()=>mt.removeEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS,ot)},[ot]),reactExports.createElement($d7bdfb9eb0fdf311$var$RovingFocusProvider,{scope:ee,orientation:ae,dir:rt,loop:ve,currentTabStopId:it,onItemFocus:reactExports.useCallback(mt=>nt(mt),[nt]),onItemShiftTab:reactExports.useCallback(()=>st(!0),[]),onFocusableItemAdd:reactExports.useCallback(()=>Xr(mt=>mt+1),[]),onFocusableItemRemove:reactExports.useCallback(()=>Xr(mt=>mt-1),[])},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({tabIndex:tt||pt===0?-1:0,"data-orientation":ae},Qe,{ref:Je,style:{outline:"none",...ie.style},onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onMouseDown,()=>{ft.current=!0}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onFocus,mt=>{const Yr=!ft.current;if(mt.target===mt.currentTarget&&Yr&&!tt){const ri=new CustomEvent($d7bdfb9eb0fdf311$var$ENTRY_FOCUS,$d7bdfb9eb0fdf311$var$EVENT_OPTIONS);if(mt.currentTarget.dispatchEvent(ri),!ri.defaultPrevented){const Zr=ut().filter(Qr=>Qr.focusable),_r=Zr.find(Qr=>Qr.active),Kr=Zr.find(Qr=>Qr.id===it),oi=[_r,Kr,...Zr].filter(Boolean).map(Qr=>Qr.ref.current);$d7bdfb9eb0fdf311$var$focusFirst(oi)}}ft.current=!1}),onBlur:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onBlur,()=>st(!1))})))}),$d7bdfb9eb0fdf311$var$ITEM_NAME="RovingFocusGroupItem",$d7bdfb9eb0fdf311$export$ab9df7c53fe8454=reactExports.forwardRef((ie,Z)=>{const{__scopeRovingFocusGroup:ee,focusable:ae=!0,active:ve=!1,tabStopId:ye,...be}=ie,Ke=$1746a345f3d73bb7$export$f680877a34711e37(),Ye=ye||Ke,Xe=$d7bdfb9eb0fdf311$var$useRovingFocusContext($d7bdfb9eb0fdf311$var$ITEM_NAME,ee),Qe=Xe.currentTabStopId===Ye,et=$d7bdfb9eb0fdf311$var$useCollection(ee),{onFocusableItemAdd:Je,onFocusableItemRemove:rt}=Xe;return reactExports.useEffect(()=>{if(ae)return Je(),()=>rt()},[ae,Je,rt]),reactExports.createElement($d7bdfb9eb0fdf311$var$Collection.ItemSlot,{scope:ee,id:Ye,focusable:ae,active:ve},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span,_extends$1({tabIndex:Qe?0:-1,"data-orientation":Xe.orientation},be,{ref:Z,onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onMouseDown,it=>{ae?Xe.onItemFocus(Ye):it.preventDefault()}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onFocus,()=>Xe.onItemFocus(Ye)),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onKeyDown,it=>{if(it.key==="Tab"&&it.shiftKey){Xe.onItemShiftTab();return}if(it.target!==it.currentTarget)return;const nt=$d7bdfb9eb0fdf311$var$getFocusIntent(it,Xe.orientation,Xe.dir);if(nt!==void 0){it.preventDefault();let st=et().filter(ot=>ot.focusable).map(ot=>ot.ref.current);if(nt==="last")st.reverse();else if(nt==="prev"||nt==="next"){nt==="prev"&&st.reverse();const ot=st.indexOf(it.currentTarget);st=Xe.loop?$d7bdfb9eb0fdf311$var$wrapArray(st,ot+1):st.slice(ot+1)}setTimeout(()=>$d7bdfb9eb0fdf311$var$focusFirst(st))}})})))}),$d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $d7bdfb9eb0fdf311$var$getDirectionAwareKey(ie,Z){return Z!=="rtl"?ie:ie==="ArrowLeft"?"ArrowRight":ie==="ArrowRight"?"ArrowLeft":ie}function $d7bdfb9eb0fdf311$var$getFocusIntent(ie,Z,ee){const ae=$d7bdfb9eb0fdf311$var$getDirectionAwareKey(ie.key,ee);if(!(Z==="vertical"&&["ArrowLeft","ArrowRight"].includes(ae))&&!(Z==="horizontal"&&["ArrowUp","ArrowDown"].includes(ae)))return $d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT[ae]}function $d7bdfb9eb0fdf311$var$focusFirst(ie){const Z=document.activeElement;for(const ee of ie)if(ee===Z||(ee.focus(),document.activeElement!==Z))return}function $d7bdfb9eb0fdf311$var$wrapArray(ie,Z){return ie.map((ee,ae)=>ie[(Z+ae)%ie.length])}const $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9=$d7bdfb9eb0fdf311$export$8699f7c8af148338,$d7bdfb9eb0fdf311$export$6d08773d2e66f8f2=$d7bdfb9eb0fdf311$export$ab9df7c53fe8454,$69cb30bb0017df05$var$TABS_NAME="Tabs",[$69cb30bb0017df05$var$createTabsContext,$69cb30bb0017df05$export$355f5bd209d7b13a]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($69cb30bb0017df05$var$TABS_NAME,[$d7bdfb9eb0fdf311$export$c7109489551a4f4]),$69cb30bb0017df05$var$useRovingFocusGroupScope=$d7bdfb9eb0fdf311$export$c7109489551a4f4(),[$69cb30bb0017df05$var$TabsProvider,$69cb30bb0017df05$var$useTabsContext]=$69cb30bb0017df05$var$createTabsContext($69cb30bb0017df05$var$TABS_NAME),$69cb30bb0017df05$export$b2539bed5023c21c=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,value:ae,onValueChange:ve,defaultValue:ye,orientation:be="horizontal",dir:Ke,activationMode:Ye="automatic",...Xe}=ie,Qe=$f631663db3294ace$export$b39126d51d94e6f3(Ke),[et,Je]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:ae,onChange:ve,defaultProp:ye});return reactExports.createElement($69cb30bb0017df05$var$TabsProvider,{scope:ee,baseId:$1746a345f3d73bb7$export$f680877a34711e37(),value:et,onValueChange:Je,orientation:be,dir:Qe,activationMode:Ye},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({dir:Qe,"data-orientation":be},Xe,{ref:Z})))}),$69cb30bb0017df05$var$TAB_LIST_NAME="TabsList",$69cb30bb0017df05$export$9712d22edc0d78c1=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,loop:ae=!0,...ve}=ie,ye=$69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TAB_LIST_NAME,ee),be=$69cb30bb0017df05$var$useRovingFocusGroupScope(ee);return reactExports.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9,_extends$1({asChild:!0},be,{orientation:ye.orientation,dir:ye.dir,loop:ae}),reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({role:"tablist","aria-orientation":ye.orientation},ve,{ref:Z})))}),$69cb30bb0017df05$var$TRIGGER_NAME="TabsTrigger",$69cb30bb0017df05$export$8114b9fdfdf9f3ba=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,value:ae,disabled:ve=!1,...ye}=ie,be=$69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TRIGGER_NAME,ee),Ke=$69cb30bb0017df05$var$useRovingFocusGroupScope(ee),Ye=$69cb30bb0017df05$var$makeTriggerId(be.baseId,ae),Xe=$69cb30bb0017df05$var$makeContentId(be.baseId,ae),Qe=ae===be.value;return reactExports.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2,_extends$1({asChild:!0},Ke,{focusable:!ve,active:Qe}),reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,_extends$1({type:"button",role:"tab","aria-selected":Qe,"aria-controls":Xe,"data-state":Qe?"active":"inactive","data-disabled":ve?"":void 0,disabled:ve,id:Ye},ye,{ref:Z,onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onMouseDown,et=>{!ve&&et.button===0&&et.ctrlKey===!1?be.onValueChange(ae):et.preventDefault()}),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onKeyDown,et=>{[" ","Enter"].includes(et.key)&&be.onValueChange(ae)}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onFocus,()=>{const et=be.activationMode!=="manual";!Qe&&!ve&&et&&be.onValueChange(ae)})})))}),$69cb30bb0017df05$var$CONTENT_NAME="TabsContent",$69cb30bb0017df05$export$bd905d70e8fd2ebb=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,value:ae,forceMount:ve,children:ye,...be}=ie,Ke=$69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$CONTENT_NAME,ee),Ye=$69cb30bb0017df05$var$makeTriggerId(Ke.baseId,ae),Xe=$69cb30bb0017df05$var$makeContentId(Ke.baseId,ae),Qe=ae===Ke.value,et=reactExports.useRef(Qe);return reactExports.useEffect(()=>{const Je=requestAnimationFrame(()=>et.current=!1);return()=>cancelAnimationFrame(Je)},[]),reactExports.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:ve||Qe},({present:Je})=>reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({"data-state":Qe?"active":"inactive","data-orientation":Ke.orientation,role:"tabpanel","aria-labelledby":Ye,hidden:!Je,id:Xe,tabIndex:0},be,{ref:Z,style:{...ie.style,animationDuration:et.current?"0s":void 0}}),Je&&ye))});function $69cb30bb0017df05$var$makeTriggerId(ie,Z){return`${ie}-trigger-${Z}`}function $69cb30bb0017df05$var$makeContentId(ie,Z){return`${ie}-content-${Z}`}const $69cb30bb0017df05$export$be92b6f5f03c0fe9=$69cb30bb0017df05$export$b2539bed5023c21c,$69cb30bb0017df05$export$54c2e3dc7acea9f5=$69cb30bb0017df05$export$9712d22edc0d78c1,$69cb30bb0017df05$export$41fb9f06171c75f4=$69cb30bb0017df05$export$8114b9fdfdf9f3ba,$69cb30bb0017df05$export$7c6e2c02157bb7d2=$69cb30bb0017df05$export$bd905d70e8fd2ebb;var lib$5={},Parser$3={},Tokenizer={},decode={},decodeDataHtml={};Object.defineProperty(decodeDataHtml,"__esModule",{value:!0});decodeDataHtml.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(ie){return ie.charCodeAt(0)}));var decodeDataXml={};Object.defineProperty(decodeDataXml,"__esModule",{value:!0});decodeDataXml.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(ie){return ie.charCodeAt(0)}));var decode_codepoint={};(function(ie){var Z;Object.defineProperty(ie,"__esModule",{value:!0}),ie.replaceCodePoint=ie.fromCodePoint=void 0;var ee=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);ie.fromCodePoint=(Z=String.fromCodePoint)!==null&&Z!==void 0?Z:function(ye){var be="";return ye>65535&&(ye-=65536,be+=String.fromCharCode(ye>>>10&1023|55296),ye=56320|ye&1023),be+=String.fromCharCode(ye),be};function ae(ye){var be;return ye>=55296&&ye<=57343||ye>1114111?65533:(be=ee.get(ye))!==null&&be!==void 0?be:ye}ie.replaceCodePoint=ae;function ve(ye){return(0,ie.fromCodePoint)(ae(ye))}ie.default=ve})(decode_codepoint);(function(ie){var Z=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_r,Kr,si,oi){oi===void 0&&(oi=si);var Qr=Object.getOwnPropertyDescriptor(Kr,si);(!Qr||("get"in Qr?!Kr.__esModule:Qr.writable||Qr.configurable))&&(Qr={enumerable:!0,get:function(){return Kr[si]}}),Object.defineProperty(_r,oi,Qr)}:function(_r,Kr,si,oi){oi===void 0&&(oi=si),_r[oi]=Kr[si]}),ee=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_r,Kr){Object.defineProperty(_r,"default",{enumerable:!0,value:Kr})}:function(_r,Kr){_r.default=Kr}),ae=commonjsGlobal&&commonjsGlobal.__importStar||function(_r){if(_r&&_r.__esModule)return _r;var Kr={};if(_r!=null)for(var si in _r)si!=="default"&&Object.prototype.hasOwnProperty.call(_r,si)&&Z(Kr,_r,si);return ee(Kr,_r),Kr},ve=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(ie,"__esModule",{value:!0}),ie.decodeXML=ie.decodeHTMLStrict=ie.decodeHTMLAttribute=ie.decodeHTML=ie.determineBranch=ie.EntityDecoder=ie.DecodingMode=ie.BinTrieFlags=ie.fromCodePoint=ie.replaceCodePoint=ie.decodeCodePoint=ie.xmlDecodeTree=ie.htmlDecodeTree=void 0;var ye=ve(decodeDataHtml);ie.htmlDecodeTree=ye.default;var be=ve(decodeDataXml);ie.xmlDecodeTree=be.default;var Ke=ae(decode_codepoint);ie.decodeCodePoint=Ke.default;var Ye=decode_codepoint;Object.defineProperty(ie,"replaceCodePoint",{enumerable:!0,get:function(){return Ye.replaceCodePoint}}),Object.defineProperty(ie,"fromCodePoint",{enumerable:!0,get:function(){return Ye.fromCodePoint}});var Xe;(function(_r){_r[_r.NUM=35]="NUM",_r[_r.SEMI=59]="SEMI",_r[_r.EQUALS=61]="EQUALS",_r[_r.ZERO=48]="ZERO",_r[_r.NINE=57]="NINE",_r[_r.LOWER_A=97]="LOWER_A",_r[_r.LOWER_F=102]="LOWER_F",_r[_r.LOWER_X=120]="LOWER_X",_r[_r.LOWER_Z=122]="LOWER_Z",_r[_r.UPPER_A=65]="UPPER_A",_r[_r.UPPER_F=70]="UPPER_F",_r[_r.UPPER_Z=90]="UPPER_Z"})(Xe||(Xe={}));var Qe=32,et;(function(_r){_r[_r.VALUE_LENGTH=49152]="VALUE_LENGTH",_r[_r.BRANCH_LENGTH=16256]="BRANCH_LENGTH",_r[_r.JUMP_TABLE=127]="JUMP_TABLE"})(et=ie.BinTrieFlags||(ie.BinTrieFlags={}));function Je(_r){return _r>=Xe.ZERO&&_r<=Xe.NINE}function rt(_r){return _r>=Xe.UPPER_A&&_r<=Xe.UPPER_F||_r>=Xe.LOWER_A&&_r<=Xe.LOWER_F}function it(_r){return _r>=Xe.UPPER_A&&_r<=Xe.UPPER_Z||_r>=Xe.LOWER_A&&_r<=Xe.LOWER_Z||Je(_r)}function nt(_r){return _r===Xe.EQUALS||it(_r)}var tt;(function(_r){_r[_r.EntityStart=0]="EntityStart",_r[_r.NumericStart=1]="NumericStart",_r[_r.NumericDecimal=2]="NumericDecimal",_r[_r.NumericHex=3]="NumericHex",_r[_r.NamedEntity=4]="NamedEntity"})(tt||(tt={}));var st;(function(_r){_r[_r.Legacy=0]="Legacy",_r[_r.Strict=1]="Strict",_r[_r.Attribute=2]="Attribute"})(st=ie.DecodingMode||(ie.DecodingMode={}));var ot=function(){function _r(Kr,si,oi){this.decodeTree=Kr,this.emitCodePoint=si,this.errors=oi,this.state=tt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=st.Strict}return _r.prototype.startEntity=function(Kr){this.decodeMode=Kr,this.state=tt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},_r.prototype.write=function(Kr,si){switch(this.state){case tt.EntityStart:return Kr.charCodeAt(si)===Xe.NUM?(this.state=tt.NumericStart,this.consumed+=1,this.stateNumericStart(Kr,si+1)):(this.state=tt.NamedEntity,this.stateNamedEntity(Kr,si));case tt.NumericStart:return this.stateNumericStart(Kr,si);case tt.NumericDecimal:return this.stateNumericDecimal(Kr,si);case tt.NumericHex:return this.stateNumericHex(Kr,si);case tt.NamedEntity:return this.stateNamedEntity(Kr,si)}},_r.prototype.stateNumericStart=function(Kr,si){return si>=Kr.length?-1:(Kr.charCodeAt(si)|Qe)===Xe.LOWER_X?(this.state=tt.NumericHex,this.consumed+=1,this.stateNumericHex(Kr,si+1)):(this.state=tt.NumericDecimal,this.stateNumericDecimal(Kr,si))},_r.prototype.addToNumericResult=function(Kr,si,oi,Qr){if(si!==oi){var ii=oi-si;this.result=this.result*Math.pow(Qr,ii)+parseInt(Kr.substr(si,ii),Qr),this.consumed+=ii}},_r.prototype.stateNumericHex=function(Kr,si){for(var oi=si;si>14;si>14,ii!==0){if(ti===Xe.SEMI)return this.emitNamedEntityData(this.treeIndex,ii,this.consumed+this.excess);this.decodeMode!==st.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},_r.prototype.emitNotTerminatedNamedEntity=function(){var Kr,si=this,oi=si.result,Qr=si.decodeTree,ii=(Qr[oi]&et.VALUE_LENGTH)>>14;return this.emitNamedEntityData(oi,ii,this.consumed),(Kr=this.errors)===null||Kr===void 0||Kr.missingSemicolonAfterCharacterReference(),this.consumed},_r.prototype.emitNamedEntityData=function(Kr,si,oi){var Qr=this.decodeTree;return this.emitCodePoint(si===1?Qr[Kr]&~et.VALUE_LENGTH:Qr[Kr+1],oi),si===3&&this.emitCodePoint(Qr[Kr+2],oi),oi},_r.prototype.end=function(){var Kr;switch(this.state){case tt.NamedEntity:return this.result!==0&&(this.decodeMode!==st.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case tt.NumericDecimal:return this.emitNumericEntity(0,2);case tt.NumericHex:return this.emitNumericEntity(0,3);case tt.NumericStart:return(Kr=this.errors)===null||Kr===void 0||Kr.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tt.EntityStart:return 0}},_r}();ie.EntityDecoder=ot;function ut(_r){var Kr="",si=new ot(_r,function(oi){return Kr+=(0,Ke.fromCodePoint)(oi)});return function(Qr,ii){for(var ti=0,ni=0;(ni=Qr.indexOf("&",ni))>=0;){Kr+=Qr.slice(ti,ni),si.startEntity(ii);var ui=si.write(Qr,ni+1);if(ui<0){ti=ni+si.end();break}ti=ni+ui,ni=ui===0?ti+1:ti}var yi=Kr+Qr.slice(ti);return Kr="",yi}}function ft(_r,Kr,si,oi){var Qr=(Kr&et.BRANCH_LENGTH)>>7,ii=Kr&et.JUMP_TABLE;if(Qr===0)return ii!==0&&oi===ii?si:-1;if(ii){var ti=oi-ii;return ti<0||ti>=Qr?-1:_r[si+ti]-1}for(var ni=si,ui=ni+Qr-1;ni<=ui;){var yi=ni+ui>>>1,pi=_r[yi];if(pioi)ui=yi-1;else return _r[yi+Qr]}return-1}ie.determineBranch=ft;var pt=ut(ye.default),Xr=ut(be.default);function mt(_r,Kr){return Kr===void 0&&(Kr=st.Legacy),pt(_r,Kr)}ie.decodeHTML=mt;function Yr(_r){return pt(_r,st.Attribute)}ie.decodeHTMLAttribute=Yr;function ri(_r){return pt(_r,st.Strict)}ie.decodeHTMLStrict=ri;function Zr(_r){return Xr(_r,st.Strict)}ie.decodeXML=Zr})(decode);(function(ie){Object.defineProperty(ie,"__esModule",{value:!0}),ie.QuoteType=void 0;var Z=decode,ee;(function(Je){Je[Je.Tab=9]="Tab",Je[Je.NewLine=10]="NewLine",Je[Je.FormFeed=12]="FormFeed",Je[Je.CarriageReturn=13]="CarriageReturn",Je[Je.Space=32]="Space",Je[Je.ExclamationMark=33]="ExclamationMark",Je[Je.Number=35]="Number",Je[Je.Amp=38]="Amp",Je[Je.SingleQuote=39]="SingleQuote",Je[Je.DoubleQuote=34]="DoubleQuote",Je[Je.Dash=45]="Dash",Je[Je.Slash=47]="Slash",Je[Je.Zero=48]="Zero",Je[Je.Nine=57]="Nine",Je[Je.Semi=59]="Semi",Je[Je.Lt=60]="Lt",Je[Je.Eq=61]="Eq",Je[Je.Gt=62]="Gt",Je[Je.Questionmark=63]="Questionmark",Je[Je.UpperA=65]="UpperA",Je[Je.LowerA=97]="LowerA",Je[Je.UpperF=70]="UpperF",Je[Je.LowerF=102]="LowerF",Je[Je.UpperZ=90]="UpperZ",Je[Je.LowerZ=122]="LowerZ",Je[Je.LowerX=120]="LowerX",Je[Je.OpeningSquareBracket=91]="OpeningSquareBracket"})(ee||(ee={}));var ae;(function(Je){Je[Je.Text=1]="Text",Je[Je.BeforeTagName=2]="BeforeTagName",Je[Je.InTagName=3]="InTagName",Je[Je.InSelfClosingTag=4]="InSelfClosingTag",Je[Je.BeforeClosingTagName=5]="BeforeClosingTagName",Je[Je.InClosingTagName=6]="InClosingTagName",Je[Je.AfterClosingTagName=7]="AfterClosingTagName",Je[Je.BeforeAttributeName=8]="BeforeAttributeName",Je[Je.InAttributeName=9]="InAttributeName",Je[Je.AfterAttributeName=10]="AfterAttributeName",Je[Je.BeforeAttributeValue=11]="BeforeAttributeValue",Je[Je.InAttributeValueDq=12]="InAttributeValueDq",Je[Je.InAttributeValueSq=13]="InAttributeValueSq",Je[Je.InAttributeValueNq=14]="InAttributeValueNq",Je[Je.BeforeDeclaration=15]="BeforeDeclaration",Je[Je.InDeclaration=16]="InDeclaration",Je[Je.InProcessingInstruction=17]="InProcessingInstruction",Je[Je.BeforeComment=18]="BeforeComment",Je[Je.CDATASequence=19]="CDATASequence",Je[Je.InSpecialComment=20]="InSpecialComment",Je[Je.InCommentLike=21]="InCommentLike",Je[Je.BeforeSpecialS=22]="BeforeSpecialS",Je[Je.SpecialStartSequence=23]="SpecialStartSequence",Je[Je.InSpecialTag=24]="InSpecialTag",Je[Je.BeforeEntity=25]="BeforeEntity",Je[Je.BeforeNumericEntity=26]="BeforeNumericEntity",Je[Je.InNamedEntity=27]="InNamedEntity",Je[Je.InNumericEntity=28]="InNumericEntity",Je[Je.InHexEntity=29]="InHexEntity"})(ae||(ae={}));function ve(Je){return Je===ee.Space||Je===ee.NewLine||Je===ee.Tab||Je===ee.FormFeed||Je===ee.CarriageReturn}function ye(Je){return Je===ee.Slash||Je===ee.Gt||ve(Je)}function be(Je){return Je>=ee.Zero&&Je<=ee.Nine}function Ke(Je){return Je>=ee.LowerA&&Je<=ee.LowerZ||Je>=ee.UpperA&&Je<=ee.UpperZ}function Ye(Je){return Je>=ee.UpperA&&Je<=ee.UpperF||Je>=ee.LowerA&&Je<=ee.LowerF}var Xe;(function(Je){Je[Je.NoValue=0]="NoValue",Je[Je.Unquoted=1]="Unquoted",Je[Je.Single=2]="Single",Je[Je.Double=3]="Double"})(Xe=ie.QuoteType||(ie.QuoteType={}));var Qe={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},et=function(){function Je(rt,it){var nt=rt.xmlMode,tt=nt===void 0?!1:nt,st=rt.decodeEntities,ot=st===void 0?!0:st;this.cbs=it,this.state=ae.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ae.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=tt,this.decodeEntities=ot,this.entityTrie=tt?Z.xmlDecodeTree:Z.htmlDecodeTree}return Je.prototype.reset=function(){this.state=ae.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ae.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},Je.prototype.write=function(rt){this.offset+=this.buffer.length,this.buffer=rt,this.parse()},Je.prototype.end=function(){this.running&&this.finish()},Je.prototype.pause=function(){this.running=!1},Je.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ae.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&rt===ee.Amp&&(this.state=ae.BeforeEntity)},Je.prototype.stateSpecialStartSequence=function(rt){var it=this.sequenceIndex===this.currentSequence.length,nt=it?ye(rt):(rt|32)===this.currentSequence[this.sequenceIndex];if(!nt)this.isSpecial=!1;else if(!it){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=ae.InTagName,this.stateInTagName(rt)},Je.prototype.stateInSpecialTag=function(rt){if(this.sequenceIndex===this.currentSequence.length){if(rt===ee.Gt||ve(rt)){var it=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&rt!==ee.Semi)this.trieIndex+=nt;else{var tt=this.index-this.entityExcess+1;tt>this.sectionStart&&this.emitPartial(this.sectionStart,tt),this.entityResult=this.trieIndex,this.trieIndex+=nt,this.entityExcess=0,this.sectionStart=this.index+1,nt===0&&this.emitNamedEntity()}}},Je.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var rt=(this.entityTrie[this.entityResult]&Z.BinTrieFlags.VALUE_LENGTH)>>14;switch(rt){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~Z.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},Je.prototype.stateBeforeNumericEntity=function(rt){(rt|32)===ee.LowerX?(this.entityExcess++,this.state=ae.InHexEntity):(this.state=ae.InNumericEntity,this.stateInNumericEntity(rt))},Je.prototype.emitNumericEntity=function(rt){var it=this.index-this.entityExcess-1,nt=it+2+ +(this.state===ae.InHexEntity);nt!==this.index&&(it>this.sectionStart&&this.emitPartial(this.sectionStart,it),this.sectionStart=this.index+Number(rt),this.emitCodePoint((0,Z.replaceCodePoint)(this.entityResult))),this.state=this.baseState},Je.prototype.stateInNumericEntity=function(rt){rt===ee.Semi?this.emitNumericEntity(!0):be(rt)?(this.entityResult=this.entityResult*10+(rt-ee.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},Je.prototype.stateInHexEntity=function(rt){rt===ee.Semi?this.emitNumericEntity(!0):be(rt)?(this.entityResult=this.entityResult*16+(rt-ee.Zero),this.entityExcess++):Ye(rt)?(this.entityResult=this.entityResult*16+((rt|32)-ee.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},Je.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===ae.Text||this.baseState===ae.InSpecialTag)},Je.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===ae.Text||this.state===ae.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===ae.InAttributeValueDq||this.state===ae.InAttributeValueSq||this.state===ae.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},Je.prototype.shouldContinue=function(){return this.index0&&be.has(this.stack[this.stack.length-1]);){var Ke=this.stack.pop();(ae=(ee=this.cbs).onclosetag)===null||ae===void 0||ae.call(ee,Ke,!0)}this.isVoidElement(Z)||(this.stack.push(Z),foreignContextElements.has(Z)?this.foreignContext.push(!0):htmlIntegrationElements.has(Z)&&this.foreignContext.push(!1)),(ye=(ve=this.cbs).onopentagname)===null||ye===void 0||ye.call(ve,Z),this.cbs.onopentag&&(this.attribs={})},ie.prototype.endOpenTag=function(Z){var ee,ae;this.startIndex=this.openTagStart,this.attribs&&((ae=(ee=this.cbs).onopentag)===null||ae===void 0||ae.call(ee,this.tagname,this.attribs,Z),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},ie.prototype.onopentagend=function(Z){this.endIndex=Z,this.endOpenTag(!1),this.startIndex=Z+1},ie.prototype.onclosetag=function(Z,ee){var ae,ve,ye,be,Ke,Ye;this.endIndex=ee;var Xe=this.getSlice(Z,ee);if(this.lowerCaseTagNames&&(Xe=Xe.toLowerCase()),(foreignContextElements.has(Xe)||htmlIntegrationElements.has(Xe))&&this.foreignContext.pop(),this.isVoidElement(Xe))!this.options.xmlMode&&Xe==="br"&&((ve=(ae=this.cbs).onopentagname)===null||ve===void 0||ve.call(ae,"br"),(be=(ye=this.cbs).onopentag)===null||be===void 0||be.call(ye,"br",{},!0),(Ye=(Ke=this.cbs).onclosetag)===null||Ye===void 0||Ye.call(Ke,"br",!1));else{var Qe=this.stack.lastIndexOf(Xe);if(Qe!==-1)if(this.cbs.onclosetag)for(var et=this.stack.length-Qe;et--;)this.cbs.onclosetag(this.stack.pop(),et!==0);else this.stack.length=Qe;else!this.options.xmlMode&&Xe==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=ee+1},ie.prototype.onselfclosingtag=function(Z){this.endIndex=Z,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=Z+1):this.onopentagend(Z)},ie.prototype.closeCurrentTag=function(Z){var ee,ae,ve=this.tagname;this.endOpenTag(Z),this.stack[this.stack.length-1]===ve&&((ae=(ee=this.cbs).onclosetag)===null||ae===void 0||ae.call(ee,ve,!Z),this.stack.pop())},ie.prototype.onattribname=function(Z,ee){this.startIndex=Z;var ae=this.getSlice(Z,ee);this.attribname=this.lowerCaseAttributeNames?ae.toLowerCase():ae},ie.prototype.onattribdata=function(Z,ee){this.attribvalue+=this.getSlice(Z,ee)},ie.prototype.onattribentity=function(Z){this.attribvalue+=(0,decode_js_1.fromCodePoint)(Z)},ie.prototype.onattribend=function(Z,ee){var ae,ve;this.endIndex=ee,(ve=(ae=this.cbs).onattribute)===null||ve===void 0||ve.call(ae,this.attribname,this.attribvalue,Z===Tokenizer_js_1.QuoteType.Double?'"':Z===Tokenizer_js_1.QuoteType.Single?"'":Z===Tokenizer_js_1.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},ie.prototype.getInstructionName=function(Z){var ee=Z.search(reNameEnd),ae=ee<0?Z:Z.substr(0,ee);return this.lowerCaseTagNames&&(ae=ae.toLowerCase()),ae},ie.prototype.ondeclaration=function(Z,ee){this.endIndex=ee;var ae=this.getSlice(Z,ee);if(this.cbs.onprocessinginstruction){var ve=this.getInstructionName(ae);this.cbs.onprocessinginstruction("!".concat(ve),"!".concat(ae))}this.startIndex=ee+1},ie.prototype.onprocessinginstruction=function(Z,ee){this.endIndex=ee;var ae=this.getSlice(Z,ee);if(this.cbs.onprocessinginstruction){var ve=this.getInstructionName(ae);this.cbs.onprocessinginstruction("?".concat(ve),"?".concat(ae))}this.startIndex=ee+1},ie.prototype.oncomment=function(Z,ee,ae){var ve,ye,be,Ke;this.endIndex=ee,(ye=(ve=this.cbs).oncomment)===null||ye===void 0||ye.call(ve,this.getSlice(Z,ee-ae)),(Ke=(be=this.cbs).oncommentend)===null||Ke===void 0||Ke.call(be),this.startIndex=ee+1},ie.prototype.oncdata=function(Z,ee,ae){var ve,ye,be,Ke,Ye,Xe,Qe,et,Je,rt;this.endIndex=ee;var it=this.getSlice(Z,ee-ae);this.options.xmlMode||this.options.recognizeCDATA?((ye=(ve=this.cbs).oncdatastart)===null||ye===void 0||ye.call(ve),(Ke=(be=this.cbs).ontext)===null||Ke===void 0||Ke.call(be,it),(Xe=(Ye=this.cbs).oncdataend)===null||Xe===void 0||Xe.call(Ye)):((et=(Qe=this.cbs).oncomment)===null||et===void 0||et.call(Qe,"[CDATA[".concat(it,"]]")),(rt=(Je=this.cbs).oncommentend)===null||rt===void 0||rt.call(Je)),this.startIndex=ee+1},ie.prototype.onend=function(){var Z,ee;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var ae=this.stack.length;ae>0;this.cbs.onclosetag(this.stack[--ae],!0));}(ee=(Z=this.cbs).onend)===null||ee===void 0||ee.call(Z)},ie.prototype.reset=function(){var Z,ee,ae,ve;(ee=(Z=this.cbs).onreset)===null||ee===void 0||ee.call(Z),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(ve=(ae=this.cbs).onparserinit)===null||ve===void 0||ve.call(ae,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},ie.prototype.parseComplete=function(Z){this.reset(),this.end(Z)},ie.prototype.getSlice=function(Z,ee){for(;Z-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var ae=this.buffers[0].slice(Z-this.bufferOffset,ee-this.bufferOffset);ee-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),ae+=this.buffers[0].slice(0,ee-this.bufferOffset);return ae},ie.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},ie.prototype.write=function(Z){var ee,ae;if(this.ended){(ae=(ee=this.cbs).onerror)===null||ae===void 0||ae.call(ee,new Error(".write() after done!"));return}this.buffers.push(Z),this.tokenizer.running&&(this.tokenizer.write(Z),this.writeIndex++)},ie.prototype.end=function(Z){var ee,ae;if(this.ended){(ae=(ee=this.cbs).onerror)===null||ae===void 0||ae.call(ee,new Error(".end() after done!"));return}Z&&this.write(Z),this.ended=!0,this.tokenizer.end()},ie.prototype.pause=function(){this.tokenizer.pause()},ie.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"childNodes",{get:function(){return this.children},set:function(ee){this.children=ee},enumerable:!1,configurable:!0}),Z}(Node$6);node$1.NodeWithChildren=NodeWithChildren;var CDATA=function(ie){__extends(Z,ie);function Z(){var ee=ie!==null&&ie.apply(this,arguments)||this;return ee.type=domelementtype_1$1.ElementType.CDATA,ee}return Object.defineProperty(Z.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),Z}(NodeWithChildren);node$1.CDATA=CDATA;var Document$4=function(ie){__extends(Z,ie);function Z(){var ee=ie!==null&&ie.apply(this,arguments)||this;return ee.type=domelementtype_1$1.ElementType.Root,ee}return Object.defineProperty(Z.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),Z}(NodeWithChildren);node$1.Document=Document$4;var Element$1=function(ie){__extends(Z,ie);function Z(ee,ae,ve,ye){ve===void 0&&(ve=[]),ye===void 0&&(ye=ee==="script"?domelementtype_1$1.ElementType.Script:ee==="style"?domelementtype_1$1.ElementType.Style:domelementtype_1$1.ElementType.Tag);var be=ie.call(this,ve)||this;return be.name=ee,be.attribs=ae,be.type=ye,be}return Object.defineProperty(Z.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"tagName",{get:function(){return this.name},set:function(ee){this.name=ee},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"attributes",{get:function(){var ee=this;return Object.keys(this.attribs).map(function(ae){var ve,ye;return{name:ae,value:ee.attribs[ae],namespace:(ve=ee["x-attribsNamespace"])===null||ve===void 0?void 0:ve[ae],prefix:(ye=ee["x-attribsPrefix"])===null||ye===void 0?void 0:ye[ae]}})},enumerable:!1,configurable:!0}),Z}(NodeWithChildren);node$1.Element=Element$1;function isTag(ie){return(0,domelementtype_1$1.isTag)(ie)}node$1.isTag=isTag;function isCDATA(ie){return ie.type===domelementtype_1$1.ElementType.CDATA}node$1.isCDATA=isCDATA;function isText(ie){return ie.type===domelementtype_1$1.ElementType.Text}node$1.isText=isText;function isComment(ie){return ie.type===domelementtype_1$1.ElementType.Comment}node$1.isComment=isComment;function isDirective(ie){return ie.type===domelementtype_1$1.ElementType.Directive}node$1.isDirective=isDirective;function isDocument(ie){return ie.type===domelementtype_1$1.ElementType.Root}node$1.isDocument=isDocument;function hasChildren(ie){return Object.prototype.hasOwnProperty.call(ie,"children")}node$1.hasChildren=hasChildren;function cloneNode$1(ie,Z){Z===void 0&&(Z=!1);var ee;if(isText(ie))ee=new Text(ie.data);else if(isComment(ie))ee=new Comment$5(ie.data);else if(isTag(ie)){var ae=Z?cloneChildren(ie.children):[],ve=new Element$1(ie.name,__assign$2({},ie.attribs),ae);ae.forEach(function(Ye){return Ye.parent=ve}),ie.namespace!=null&&(ve.namespace=ie.namespace),ie["x-attribsNamespace"]&&(ve["x-attribsNamespace"]=__assign$2({},ie["x-attribsNamespace"])),ie["x-attribsPrefix"]&&(ve["x-attribsPrefix"]=__assign$2({},ie["x-attribsPrefix"])),ee=ve}else if(isCDATA(ie)){var ae=Z?cloneChildren(ie.children):[],ye=new CDATA(ae);ae.forEach(function(Xe){return Xe.parent=ye}),ee=ye}else if(isDocument(ie)){var ae=Z?cloneChildren(ie.children):[],be=new Document$4(ae);ae.forEach(function(Xe){return Xe.parent=be}),ie["x-mode"]&&(be["x-mode"]=ie["x-mode"]),ee=be}else if(isDirective(ie)){var Ke=new ProcessingInstruction(ie.name,ie.data);ie["x-name"]!=null&&(Ke["x-name"]=ie["x-name"],Ke["x-publicId"]=ie["x-publicId"],Ke["x-systemId"]=ie["x-systemId"]),ee=Ke}else throw new Error("Not implemented yet: ".concat(ie.type));return ee.startIndex=ie.startIndex,ee.endIndex=ie.endIndex,ie.sourceCodeLocation!=null&&(ee.sourceCodeLocation=ie.sourceCodeLocation),ee}node$1.cloneNode=cloneNode$1;function cloneChildren(ie){for(var Z=ie.map(function(ae){return cloneNode$1(ae,!0)}),ee=1;ee$\x80-\uFFFF]/g;var Z=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);ie.getCodePoint=String.prototype.codePointAt!=null?function(ve,ye){return ve.codePointAt(ye)}:function(ve,ye){return(ve.charCodeAt(ye)&64512)===55296?(ve.charCodeAt(ye)-55296)*1024+ve.charCodeAt(ye+1)-56320+65536:ve.charCodeAt(ye)};function ee(ve){for(var ye="",be=0,Ke;(Ke=ie.xmlReplacer.exec(ve))!==null;){var Ye=Ke.index,Xe=ve.charCodeAt(Ye),Qe=Z.get(Xe);Qe!==void 0?(ye+=ve.substring(be,Ye)+Qe,be=Ye+1):(ye+="".concat(ve.substring(be,Ye),"&#x").concat((0,ie.getCodePoint)(ve,Ye).toString(16),";"),be=ie.xmlReplacer.lastIndex+=+((Xe&64512)===55296))}return ye+ve.substr(be)}ie.encodeXML=ee,ie.escape=ee;function ae(ve,ye){return function(Ke){for(var Ye,Xe=0,Qe="";Ye=ve.exec(Ke);)Xe!==Ye.index&&(Qe+=Ke.substring(Xe,Ye.index)),Qe+=ye.get(Ye[0].charCodeAt(0)),Xe=Ye.index+1;return Qe+Ke.substring(Xe)}}ie.escapeUTF8=ae(/[&<>'"]/g,Z),ie.escapeAttribute=ae(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),ie.escapeText=ae(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(_escape);var __importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(ie){return ie&&ie.__esModule?ie:{default:ie}};Object.defineProperty(encode,"__esModule",{value:!0});encode.encodeNonAsciiHTML=encode.encodeHTML=void 0;var encode_html_js_1=__importDefault$1(encodeHtml),escape_js_1=_escape,htmlReplacer=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function encodeHTML(ie){return encodeHTMLTrieRe(htmlReplacer,ie)}encode.encodeHTML=encodeHTML;function encodeNonAsciiHTML(ie){return encodeHTMLTrieRe(escape_js_1.xmlReplacer,ie)}encode.encodeNonAsciiHTML=encodeNonAsciiHTML;function encodeHTMLTrieRe(ie,Z){for(var ee="",ae=0,ve;(ve=ie.exec(Z))!==null;){var ye=ve.index;ee+=Z.substring(ae,ye);var be=Z.charCodeAt(ye),Ke=encode_html_js_1.default.get(be);if(typeof Ke=="object"){if(ye+10&&(ae+=render(ie.children,Z)),(Z.xmlMode||!singleTag.has(ie.name))&&(ae+=""))),ae}function renderDirective(ie){return"<".concat(ie.data,">")}function renderText(ie,Z){var ee,ae=ie.data||"";return((ee=Z.encodeEntities)!==null&&ee!==void 0?ee:Z.decodeEntities)!==!1&&!(!Z.xmlMode&&ie.parent&&unencodedElements.has(ie.parent.name))&&(ae=Z.xmlMode||Z.encodeEntities!=="utf8"?(0,entities_1.encodeXML)(ae):(0,entities_1.escapeText)(ae)),ae}function renderCdata(ie){return"")}function renderComment(ie){return"")}var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(ie){return ie&&ie.__esModule?ie:{default:ie}};Object.defineProperty(stringify$5,"__esModule",{value:!0});stringify$5.innerText=stringify$5.textContent=stringify$5.getText=stringify$5.getInnerHTML=stringify$5.getOuterHTML=void 0;var domhandler_1$3=lib$4,dom_serializer_1=__importDefault(lib$1),domelementtype_1=lib$3;function getOuterHTML(ie,Z){return(0,dom_serializer_1.default)(ie,Z)}stringify$5.getOuterHTML=getOuterHTML;function getInnerHTML(ie,Z){return(0,domhandler_1$3.hasChildren)(ie)?ie.children.map(function(ee){return getOuterHTML(ee,Z)}).join(""):""}stringify$5.getInnerHTML=getInnerHTML;function getText(ie){return Array.isArray(ie)?ie.map(getText).join(""):(0,domhandler_1$3.isTag)(ie)?ie.name==="br"?` +var ns=Object.defineProperty;var ss=(ie,Z,ee)=>Z in ie?ns(ie,Z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):ie[Z]=ee;var Vi=(ie,Z,ee)=>(ss(ie,typeof Z!="symbol"?Z+"":Z,ee),ee);import{r as reactExports,a as reactDomExports,$ as $2AODx$react,e as e$1,c as commonjsGlobal,g as getAugmentedNamespace,b as getDefaultExportFromCjs$1,d as $7SXl2$reactdom}from"./index-8QsdpE8Q.js";var __defProp=Object.defineProperty,__defNormalProp=(ie,Z,ee)=>Z in ie?__defProp(ie,Z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):ie[Z]=ee,__publicField=(ie,Z,ee)=>(__defNormalProp(ie,typeof Z!="symbol"?Z+"":Z,ee),ee);const EMPTY=[];Object.freeze(EMPTY);const emptyAnnotationPage={id:"https://iiif-parser/annotation-page",type:"AnnotationPage",behavior:EMPTY,motivation:null,label:null,thumbnail:EMPTY,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,provider:EMPTY,items:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,rendering:EMPTY,service:EMPTY},emptyCanvas={id:"https://iiif-parser/empty-canvas",type:"Canvas",label:null,behavior:EMPTY,motivation:null,thumbnail:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,navDate:null,provider:EMPTY,items:EMPTY,annotations:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,partOf:EMPTY,rendering:EMPTY,service:EMPTY,duration:0,height:0,width:0},emptyCollection={id:"https://iiif-parser/empty-collection",type:"Collection",label:null,viewingDirection:"left-to-right",behavior:EMPTY,motivation:null,thumbnail:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,navDate:null,provider:EMPTY,items:EMPTY,annotations:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,partOf:EMPTY,rendering:EMPTY,service:EMPTY,services:EMPTY},emptyManifest={id:"https://iiif-parser/empty-manifest",type:"Manifest",annotations:EMPTY,behavior:EMPTY,homepage:EMPTY,items:EMPTY,label:null,logo:EMPTY,metadata:EMPTY,motivation:null,navDate:null,provider:EMPTY,partOf:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,rendering:EMPTY,requiredStatement:null,rights:null,seeAlso:EMPTY,service:EMPTY,services:EMPTY,start:null,structures:EMPTY,summary:null,thumbnail:EMPTY,viewingDirection:"left-to-right"},emptyRange={id:"https://iiif-parser/empty-canvas",type:"Range",label:null,behavior:EMPTY,motivation:null,thumbnail:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,navDate:null,provider:EMPTY,items:EMPTY,annotations:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,partOf:EMPTY,rendering:EMPTY,service:EMPTY,start:null,supplementary:null,viewingDirection:"left-to-right"},emptyAgent={id:"https://iiif-parser/empty-agent",type:"Agent",label:{},logo:EMPTY,seeAlso:EMPTY,homepage:EMPTY};function ensureArray$1(ie){return Array.isArray(ie)?ie:[ie]}const types$1=["Collection","Manifest","Canvas","AnnotationPage","AnnotationCollection","Annotation","ContentResource","Range","Service","Selector","Agent"];function identifyResource$1(ie){if(typeof ie>"u"||ie===null)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(ie))throw new Error("Array is not a valid entity");if(typeof ie!="object")throw new Error(`${typeof ie} is not a valid entity`);if(typeof ie.type=="string"){const Z=types$1.indexOf(ie.type);if(Z!==-1)return types$1[Z]}if(ie.profile)return"Service";throw new Error("Resource type is not known")}class Traverse$1{constructor(Z,ee={}){__publicField(this,"traversals"),__publicField(this,"options"),this.traversals={collection:[],manifest:[],canvas:[],annotationCollection:[],annotationPage:[],annotation:[],contentResource:[],choice:[],range:[],service:[],agent:[],...Z},this.options={allowUndefinedReturn:!1,...ee}}static all(Z){return new Traverse$1({collection:[Z],manifest:[Z],canvas:[Z],annotationCollection:[Z],annotationPage:[Z],annotation:[Z],contentResource:[Z],choice:[Z],range:[Z],service:[Z]})}traverseDescriptive(Z){return Z.thumbnail&&(Z.thumbnail=Z.thumbnail.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.provider&&(Z.provider=Z.provider.map(ee=>this.traverseAgent(ee))),Z}traverseLinking(Z){return Z.seeAlso&&(Z.seeAlso=Z.seeAlso.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.service&&(Z.service=ensureArray$1(Z.service).map(ee=>this.traverseType(ee,this.traversals.service))),Z.services&&(Z.services=Z.services.map(ee=>this.traverseType(ee,this.traversals.service))),Z.logo&&(Z.logo=Z.logo.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.homepage&&(Z.homepage=Z.homepage.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.partOf&&(Z.partOf=Z.partOf.map(ee=>typeof ee=="string"||!ee.type?this.traverseType(ee,this.traversals.contentResource):ee.type==="Canvas"?this.traverseType(ee,this.traversals.canvas):ee.type==="AnnotationCollection"?this.traverseType(ee,this.traversals.annotationCollection):ee.type==="Collection"?this.traverseType(ee,this.traversals.collection):this.traverseType(ee,this.traversals.contentResource))),Z.start&&(Z.start=Z.start?this.traverseType(Z.start,this.traversals.canvas):null),Z.rendering&&(Z.rendering=Z.rendering.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.supplementary&&(Z.supplementary=Z.supplementary.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z}traverseCollectionItems(Z){return Z.items&&Z.items.map(ee=>ee.type==="Collection"?this.traverseCollection(ee):this.traverseManifest(ee)),Z}traverseCollection(Z){return this.traverseType(this.traverseDescriptive(this.traverseInlineAnnotationPages(this.traverseLinking(this.traversePosterCanvas(this.traverseCollectionItems(Z))))),this.traversals.collection)}traverseManifestItems(Z){return Z.items&&(Z.items=Z.items.map(ee=>this.traverseCanvas(ee))),Z}traverseManifestStructures(Z){return Z.structures&&(Z.structures=Z.structures.map(ee=>this.traverseRange(ee))),Z}traverseManifest(Z){return this.traverseType(this.traverseInlineAnnotationPages(this.traverseManifestStructures(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(Z)))))),this.traversals.manifest)}traverseCanvasItems(Z){return Z.items=(Z.items||[]).map(ee=>this.traverseAnnotationPage(ee)),Z}traverseInlineAnnotationPages(Z){return typeof Z=="string"||!Z||Z.annotations&&(Z.annotations=Z.annotations.map(ee=>this.traverseAnnotationPage(ee))),Z}traverseCanvas(Z){return this.traverseType(this.traverseInlineAnnotationPages(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(Z))))),this.traversals.canvas)}traverseAnnotationPageItems(Z){return Z.items&&(Z.items=Z.items.map(ee=>this.traverseAnnotation(ee))),Z}traverseAnnotationPage(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationPageItems(Z))),this.traversals.annotationPage)}traverseAnnotationBody(Z){return Array.isArray(Z.body)?Z.body=Z.body.map(ee=>this.traverseContentResource(ee)):Z.body&&(Z.body=this.traverseContentResource(Z.body)),Z}traversePosterCanvas(Z){return Z.posterCanvas&&(Z.posterCanvas=this.traverseCanvas(Z.posterCanvas)),Z.placeholderCanvas&&(Z.placeholderCanvas=this.traverseCanvas(Z.placeholderCanvas)),Z.accompanyingCanvas&&(Z.accompanyingCanvas=this.traverseCanvas(Z.accompanyingCanvas)),Z}traverseAnnotation(Z){return this.traverseType(this.traverseLinking(this.traverseAnnotationBody(Z)),this.traversals.annotation)}traverseContentResourceLinking(Z){return typeof Z=="string"||!Z||Z&&Z.service&&(Z.service=ensureArray$1(Z.service||[]).map(ee=>this.traverseType(ee,this.traversals.service))),Z}traverseContentResource(Z){return Z.type==="Choice"&&(Z.items=Z.items.map(ee=>this.traverseContentResource(ee))),this.traverseType(this.traverseInlineAnnotationPages(this.traverseContentResourceLinking(Z)),this.traversals.contentResource)}traverseRangeRanges(Z){return Z.items&&(Z.items=Z.items.map(ee=>typeof ee=="string"?this.traverseCanvas({id:ee,type:"Canvas"}):ee.type==="Manifest"?this.traverseManifest(ee):this.traverseRange(ee))),Z}traverseRange(Z){return this.traverseType(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseRangeRanges(Z)))),this.traversals.range)}traverseAgent(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(Z)),this.traversals.agent)}traverseType(Z,ee){return ee.reduce((ae,ve)=>{const ye=ve(ae);return typeof ye>"u"&&!this.options.allowUndefinedReturn?ae:ye},Z)}traverseService(Z){return this.traverseType(Z,this.traversals.service)}traverseUnknown(Z){const ee=identifyResource$1(Z);switch(ee){case"Collection":return this.traverseCollection(Z);case"Manifest":return this.traverseManifest(Z);case"Canvas":return this.traverseCanvas(Z);case"AnnotationPage":return this.traverseAnnotationPage(Z);case"Annotation":return this.traverseAnnotation(Z);case"ContentResource":return this.traverseContentResource(Z);case"Range":return this.traverseRange(Z);case"Service":return this.traverseService(Z);case"Agent":return this.traverseAgent(Z);default:throw new Error(`Unknown or unsupported resource type of ${ee}`)}}}const types=["sc:Collection","sc:Manifest","sc:Canvas","sc:AnnotationList","oa:Annotation","sc:Range","sc:Layer","sc:Sequence","oa:Choice","Service","ContentResource"];function identifyResource(ie){if(typeof ie>"u"||ie===null)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(ie))throw new Error("Array is not a valid entity");if(typeof ie!="object")throw new Error(`${typeof ie} is not a valid entity`);if(typeof ie["@type"]=="string"){const Z=types.indexOf(ie["@type"]);if(Z!==-1)return types[Z]}if(ie.profile)return"Service";if(ie.format||ie["@type"])return"ContentResource";throw new Error("Resource type is not known")}class Traverse{constructor(Z,ee={}){__publicField(this,"traversals"),__publicField(this,"options"),this.traversals={collection:[],manifest:[],canvas:[],annotationList:[],sequence:[],annotation:[],contentResource:[],choice:[],range:[],service:[],layer:[],...Z},this.options={convertPropsToArray:!0,mergeMemberProperties:!0,allowUndefinedReturn:!1,...ee}}static all(Z){return new Traverse({collection:[Z],manifest:[Z],canvas:[Z],annotationList:[Z],sequence:[Z],annotation:[Z],contentResource:[Z],choice:[Z],range:[Z],service:[Z],layer:[Z]})}traverseCollection(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCollectionItems(Z))),this.traversals.collection)}traverseCollectionItems(Z){if(this.options.mergeMemberProperties){const ee=[...(Z.manifests||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Manifest"}:ae),...(Z.collections||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Collection"}:ae),...Z.members||[]];delete Z.collections,delete Z.manifests,Z.members=ee}return Z.manifests&&(Z.manifests=Z.manifests.map(ee=>this.traverseManifest(typeof ee=="string"?{"@id":ee,"@type":"sc:Manifest"}:ee))),Z.collections&&(Z.collections=Z.collections.map(ee=>this.traverseCollection(typeof ee=="string"?{"@id":ee,"@type":"sc:Collection"}:ee))),Z.members&&(Z.members=Z.members.map(ee=>typeof ee=="string"?ee:this.traverseUnknown(ee))),Z}traverseManifest(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(Z))),this.traversals.manifest)}traverseManifestItems(Z){return Z.sequences&&(Z.sequences=Z.sequences.map(ee=>this.traverseSequence(ee))),Z.structures&&(Z.structures=Z.structures.map(ee=>this.traverseRange(ee))),Z}traverseSequence(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseSequenceItems(Z))),this.traversals.sequence)}traverseSequenceItems(Z){return Z.canvases&&(Z.canvases=Z.canvases.map(ee=>this.traverseCanvas(ee))),Z}traverseCanvas(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(Z))),this.traversals.canvas)}traverseCanvasItems(Z){return Z.images&&(Z.images=Z.images.map(ee=>this.traverseAnnotation(ee))),Z.otherContent&&(Z.otherContent=Z.otherContent.map(ee=>this.traverseAnnotationList(ee))),Z}traverseRange(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseRangeItems(Z))),this.traversals.range)}traverseRangeItems(Z){if(this.options.mergeMemberProperties){const ee=[...(Z.ranges||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Range"}:ae),...(Z.canvases||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Canvas"}:ae),...Z.members||[]];delete Z.ranges,delete Z.canvases,Z.members=ee.length?ee.map(ae=>this.traverseUnknown(ae)):void 0}return Z}traverseAnnotationList(Z){const ee=typeof Z=="string"?{"@id":Z,"@type":"sc:AnnotationList"}:Z;return this.traverseType(this.traverseDescriptive(this.traverseAnnotationListItems(ee)),this.traversals.annotationList)}traverseAnnotationListItems(Z){return Z.resources&&(Z.resources=Z.resources.map(ee=>this.traverseAnnotation(ee))),Z}traverseAnnotation(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationItems(Z))),this.traversals.annotation)}traverseAnnotationItems(Z){return Z.resource&&(Array.isArray(Z.resource)?Z.resource=Z.resource.map(ee=>this.traverseContentResource(ee)):Z.resource=this.traverseContentResource(Z.resource)),Z.on,Z}traverseLayer(Z){return this.traverseType(this.traverseLinking(this.traverseLayerItems(Z)),this.traversals.layer)}traverseLayerItems(Z){return Z.otherContent&&(Z.otherContent=Z.otherContent.map(ee=>this.traverseAnnotationList(ee))),Z}traverseChoice(Z){return this.traverseType(this.traverseChoiceItems(Z),this.traversals.choice)}traverseChoiceItems(Z){return Z.default&&Z.default!=="rdf:nil"&&(Z.default=this.traverseContentResource(Z.default)),Z.item&&Z.item!=="rdf:nil"&&(Z.item=Z.item.map(ee=>this.traverseContentResource(ee))),Z}traverseService(Z){return this.traverseType(this.traverseLinking(Z),this.traversals.service)}traverseContentResource(Z){return Z["@type"]==="oa:Choice"?this.traverseChoice(Z):this.traverseType(this.traverseDescriptive(this.traverseLinking(Z)),this.traversals.contentResource)}traverseUnknown(Z){if(!Z["@type"]||typeof Z=="string")return Z;switch(identifyResource(Z)){case"sc:Collection":return this.traverseCollection(Z);case"sc:Manifest":return this.traverseManifest(Z);case"sc:Canvas":return this.traverseCanvas(Z);case"sc:Sequence":return this.traverseSequence(Z);case"sc:Range":return this.traverseRange(Z);case"oa:Annotation":return this.traverseAnnotation(Z);case"sc:AnnotationList":return this.traverseAnnotationList(Z);case"sc:Layer":return this.traverseLayer(Z);case"Service":return this.traverseService(Z);case"oa:Choice":return this.traverseChoice(Z);case"ContentResource":return this.traverseContentResource(Z)}return Z.profile?this.traverseService(Z):Z}traverseImageResource(Z){const ee=Array.isArray(Z),ae=Array.isArray(Z)?Z:[Z],ve=[];for(const ye of ae)typeof ye=="string"?ve.push(this.traverseContentResource({"@id":ye,"@type":"dctypes:Image"})):ve.push(this.traverseContentResource(ye));return!ee&&!this.options.convertPropsToArray?ve[0]:ve}traverseDescriptive(Z){return Z.thumbnail&&(Z.thumbnail=this.traverseImageResource(Z.thumbnail)),Z.logo&&(Z.logo=this.traverseImageResource(Z.logo)),Z}traverseOneOrMoreServices(Z){const ee=Array.isArray(Z),ae=Array.isArray(Z)?Z:[Z],ve=[];for(const ye of ae)ve.push(this.traverseService(ye));return!ee&&!this.options.convertPropsToArray?ve[0]:ve}traverseLinking(Z){return Z.related&&(Z.related=this.traverseOneOrManyType(Z.related,this.traversals.contentResource)),Z.rendering&&(Z.rendering=this.traverseOneOrManyType(Z.rendering,this.traversals.contentResource)),Z.service&&(Z.service=this.traverseOneOrMoreServices(Z.service)),Z.seeAlso&&(Z.seeAlso=this.traverseOneOrManyType(Z.seeAlso,this.traversals.contentResource)),Z.within&&(typeof Z.within=="string"||(Z.within=this.traverseOneOrManyType(Z.within,this.traversals.contentResource))),Z.startCanvas&&(typeof Z.startCanvas=="string"?Z.startCanvas=this.traverseType({"@id":Z.startCanvas,"@type":"sc:Canvas"},this.traversals.canvas):Z.startCanvas&&this.traverseType(Z.startCanvas,this.traversals.canvas)),Z.contentLayer&&(typeof Z.contentLayer=="string"?Z.contentLayer=this.traverseLayer({"@id":Z.contentLayer,"@type":"sc:Layer"}):Z.contentLayer=this.traverseLayer(Z.contentLayer)),Z}traverseOneOrManyType(Z,ee){if(!Array.isArray(Z))if(this.options.convertPropsToArray)Z=[Z];else return this.traverseType(Z,ee);return Z.map(ae=>this.traverseType(ae,ee))}traverseType(Z,ee){return ee.reduce((ae,ve)=>{const ye=ve(ae);return typeof ye>"u"&&!this.options.allowUndefinedReturn?ae:ye},Z)}}const STANFORD_IIIF_IMAGE_COMPLIANCE_0="http://library.stanford.edu/iiif/image-api/compliance.html#level0",STANFORD_IIIF_IMAGE_COMPLIANCE_1="http://library.stanford.edu/iiif/image-api/compliance.html#level1",STANFORD_IIIF_IMAGE_COMPLIANCE_2="http://library.stanford.edu/iiif/image-api/compliance.html#level2",STANFORD_IIIF_IMAGE_CONFORMANCE_0="http://library.stanford.edu/iiif/image-api/conformance.html#level0",STANFORD_IIIF_IMAGE_CONFORMANCE_1="http://library.stanford.edu/iiif/image-api/conformance.html#level1",STANFORD_IIIF_IMAGE_CONFORMANCE_2="http://library.stanford.edu/iiif/image-api/conformance.html#level2",STANFORD_IIIF_1_IMAGE_COMPLIANCE_0="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",STANFORD_IIIF_1_IMAGE_COMPLIANCE_1="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",STANFORD_IIIF_1_IMAGE_COMPLIANCE_2="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",STANFORD_IIIF_1_IMAGE_CONFORMANCE_0="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",STANFORD_IIIF_1_IMAGE_CONFORMANCE_1="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",STANFORD_IIIF_1_IMAGE_CONFORMANCE_2="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",IIIF_1_IMAGE_LEVEL_0="http://iiif.io/api/image/1/level0.json",IIIF_1_IMAGE_LEVEL_0_PROFILE="http://iiif.io/api/image/1/profiles/level0.json",IIIF_1_IMAGE_LEVEL_1="http://iiif.io/api/image/1/level1.json",IIIF_1_IMAGE_LEVEL_1_PROFILE="http://iiif.io/api/image/1/profiles/level1.json",IIIF_1_IMAGE_LEVEL_2="http://iiif.io/api/image/1/level2.json",IIIF_1_IMAGE_LEVEL_2_PROFILE="http://iiif.io/api/image/1/profiles/level2.json",IIIF_2_IMAGE_LEVEL_0="http://iiif.io/api/image/2/level0.json",IIIF_2_IMAGE_LEVEL_0_PROFILE="http://iiif.io/api/image/2/profiles/level0.json",IIIF_2_IMAGE_LEVEL_1="http://iiif.io/api/image/2/level1.json",IIIF_2_IMAGE_LEVEL_1_PROFILE="http://iiif.io/api/image/2/profiles/level1.json",IIIF_2_IMAGE_LEVEL_2="http://iiif.io/api/image/2/level2.json",IIIF_2_IMAGE_LEVEL_2_PROFILE="http://iiif.io/api/image/2/profiles/level2.json",IIIF_3_IMAGE_LEVEL_0="level0",IIIF_3_IMAGE_LEVEL_1="level1",IIIF_3_IMAGE_LEVEL_2="level2",IIIF_2_IMAGE_LEVEL_0_NO_JSON="http://iiif.io/api/image/2/level0",IIIF_2_IMAGE_LEVEL_1_NO_JSON="http://iiif.io/api/image/2/level1",IIIF_2_IMAGE_LEVEL_2_NO_JSON="http://iiif.io/api/image/2/level2",level1Support=[IIIF_2_IMAGE_LEVEL_1_NO_JSON,IIIF_2_IMAGE_LEVEL_2_NO_JSON,STANFORD_IIIF_IMAGE_COMPLIANCE_1,STANFORD_IIIF_IMAGE_COMPLIANCE_2,STANFORD_IIIF_IMAGE_CONFORMANCE_1,STANFORD_IIIF_IMAGE_CONFORMANCE_2,STANFORD_IIIF_1_IMAGE_COMPLIANCE_1,STANFORD_IIIF_1_IMAGE_COMPLIANCE_2,STANFORD_IIIF_1_IMAGE_CONFORMANCE_1,STANFORD_IIIF_1_IMAGE_CONFORMANCE_2,IIIF_1_IMAGE_LEVEL_1,IIIF_1_IMAGE_LEVEL_1_PROFILE,IIIF_1_IMAGE_LEVEL_2,IIIF_1_IMAGE_LEVEL_2_PROFILE,IIIF_2_IMAGE_LEVEL_1,IIIF_2_IMAGE_LEVEL_1_PROFILE,IIIF_2_IMAGE_LEVEL_2,IIIF_2_IMAGE_LEVEL_2_PROFILE,IIIF_3_IMAGE_LEVEL_1,IIIF_3_IMAGE_LEVEL_2],imageServiceProfiles=[IIIF_2_IMAGE_LEVEL_0_NO_JSON,IIIF_2_IMAGE_LEVEL_1_NO_JSON,IIIF_2_IMAGE_LEVEL_2_NO_JSON,STANFORD_IIIF_IMAGE_COMPLIANCE_0,STANFORD_IIIF_IMAGE_COMPLIANCE_1,STANFORD_IIIF_IMAGE_COMPLIANCE_2,STANFORD_IIIF_IMAGE_CONFORMANCE_0,STANFORD_IIIF_IMAGE_CONFORMANCE_1,STANFORD_IIIF_IMAGE_CONFORMANCE_2,STANFORD_IIIF_1_IMAGE_COMPLIANCE_0,STANFORD_IIIF_1_IMAGE_COMPLIANCE_1,STANFORD_IIIF_1_IMAGE_COMPLIANCE_2,STANFORD_IIIF_1_IMAGE_CONFORMANCE_0,STANFORD_IIIF_1_IMAGE_CONFORMANCE_1,STANFORD_IIIF_1_IMAGE_CONFORMANCE_2,IIIF_1_IMAGE_LEVEL_0,IIIF_1_IMAGE_LEVEL_0_PROFILE,IIIF_1_IMAGE_LEVEL_1,IIIF_1_IMAGE_LEVEL_1_PROFILE,IIIF_1_IMAGE_LEVEL_2,IIIF_1_IMAGE_LEVEL_2_PROFILE,IIIF_2_IMAGE_LEVEL_0,IIIF_2_IMAGE_LEVEL_0_PROFILE,IIIF_2_IMAGE_LEVEL_1,IIIF_2_IMAGE_LEVEL_1_PROFILE,IIIF_2_IMAGE_LEVEL_2,IIIF_2_IMAGE_LEVEL_2_PROFILE,IIIF_3_IMAGE_LEVEL_0,IIIF_3_IMAGE_LEVEL_1,IIIF_3_IMAGE_LEVEL_2],configuration={attributionLabel:"Attribution",lang:"none",providerId:"http://example.org/provider",providerName:"Unknown"};function convertLanguageMapping(ie,Z="none"){if(!ie)return{};const ee=Array.isArray(ie)?ie:[ie],ae={};for(const ve of ee){if(typeof ve=="string"){ae[Z]=ae[Z]?ae[Z]:[],ae[Z].push(ve||"");continue}if(!ve["@language"]){ae[Z]=ae[Z]?ae[Z]:[],ae[Z].push(ve["@value"]||"");continue}const ye=ve["@language"];ae[ye]=ae[ye]?ae[ye]:[],ae[ye].push(ve["@value"]||"")}return ae}function getProfile(ie){if(Array.isArray(ie))return getProfile(ie.find(Z=>typeof Z=="string"));if(imageServiceProfiles.indexOf(ie)!==-1)return"level2";if(level1Support.indexOf(ie)!==-1)return"level1";if(typeof ie=="string")return ie}function getTypeFromContext(ie){const Z=Array.isArray(ie)?ie:[ie];for(const ee of Z)switch(ee){case"http://iiif.io/api/image/2/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2":return"ImageService2";case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":return"ImageService1";case"http://iiif.io/api/annex/openannotation/context.json":return"ImageApiSelector"}}function getTypeFromProfile(ie){switch(ie){case"http://iiif.io/api/image/2/level0.json":case"http://iiif.io/api/image/2/level1.json":case"http://iiif.io/api/image/2/level2.json":return"ImageService2";case"http://iiif.io/api/auth/1/kiosk":case"http://iiif.io/api/auth/1/login":case"http://iiif.io/api/auth/1/clickthrough":case"http://iiif.io/api/auth/1/external":case"http://iiif.io/api/auth/0/kiosk":case"http://iiif.io/api/auth/0/login":case"http://iiif.io/api/auth/0/clickthrough":case"http://iiif.io/api/auth/0/external":return"AuthCookieService1";case"http://iiif.io/api/auth/1/token":case"http://iiif.io/api/auth/0/token":return"AuthTokenService1";case"http://iiif.io/api/auth/1/logout":case"http://iiif.io/api/auth/0/logout":return"AuthLogoutService1";case"http://iiif.io/api/search/1/search":case"http://iiif.io/api/search/0/search":return"SearchService1";case"http://iiif.io/api/search/1/autocomplete":case"http://iiif.io/api/search/0/autocomplete":return"AutoCompleteService1"}}function removePrefix(ie){for(const Z of["sc","oa","dcterms","dctypes","iiif"])if(ie.startsWith(`${Z}:`))return ie.slice(Z.length+1);return ie}const knownTypes=["Collection","Manifest","Annotation","AnnotationPage","Range","Service"];function getNewType(ie){const Z=ie["@id"]||ie.id;let ee=ie["@type"]||ie.type;const ae=ie.profile||void 0,ve=ie["@context"]||void 0;if(ae){const ye=getTypeFromProfile(ae);if(ye)return ye}if(ve){const ye=getTypeFromContext(ve);if(ye)return ye}if(ee){if(Array.isArray(ee)){if(ee.indexOf("oa:CssStylesheet")!==-1)return"CssStylesheet";if(ee.indexOf("cnt:ContentAsText")!==-1)return"TextualBody";ee=ee[0]}for(const ye of["sc","oa","dcterms","dctypes","iiif"])if(ee.startsWith(`${ye}:`)){ee=ee.slice(ye.length+1);break}switch(ee){case"Layer":return"AnnotationCollection";case"AnnotationList":return"AnnotationPage";case"cnt:ContentAsText":return"TextualBody"}}if(ee&&knownTypes.indexOf(ee)!==-1)return ee;if(ie.format){if(ie.format.startsWith("image/"))return"Image";if(ie.format.startsWith("text/")||ie.format==="application/pdf")return"Text";if(ie.format.startsWith("application/"))return"Dataset"}return Z&&(Z.endsWith(".jpg")||Z.endsWith(".png")||Z.endsWith(".jpeg"))?"Image":ee||"unknown"}const licenseRegex=/http(s)?:\/\/(creativecommons.org|rightsstatements.org)[^"'\\<\n]+/gm;function extractLicense(ie){const Z=ie.match(licenseRegex);return Z?Z[0]:ie}function fixLicense(ie,Z="Rights/License",ee="none"){let ae=null;const ve=[],ye=Array.isArray(ie)?ie:[ie];for(const be of ye){const Ke=be?extractLicense(be):void 0;if(Ke&&(Ke.indexOf("creativecommons.org")!==-1||Ke.indexOf("rightsstatements.org")!==-1)){Ke.startsWith("https://")?ae=`http://${Ke.slice(8)}`:ae=Ke;continue}Ke&&ve.push({label:{[ee]:[Z]},value:{[ee]:[Ke]}})}return[ae,ve]}const removeContexts=["http://iiif.io/api/presentation/2/context.json","http://iiif.io/api/image/2/context.json","http://iiif.io/api/image/1/context.json","http://library.stanford.edu/iiif/image-api/1.1/context.json","http://iiif.io/api/search/1/context.json","http://iiif.io/api/search/0/context.json","http://iiif.io/api/auth/1/context.json","http://iiif.io/api/auth/0/context.json","http://iiif.io/api/annex/openannotation/context.json"];function fixContext(ie){if(ie){const Z=Array.isArray(ie)?ie:[ie],ee=[];for(const ae of Z)ae==="http://iiif.io/api/presentation/2/context.json"&&ee.push("http://iiif.io/api/presentation/3/context.json"),removeContexts.indexOf(ae)===-1&&ee.push(ae);if(Z.length)return ee.length===1?ee[0]:ee}}function convertMetadata(ie){return ie?ie.map(Z=>({label:convertLanguageMapping(Z.label),value:convertLanguageMapping(Z.value)})):[]}function removeUndefinedProperties(ie){for(const Z in ie)(typeof ie[Z]>"u"||ie[Z]===null)&&delete ie[Z];return ie}let mintedIdCounter=0;function mintNewIdFromResource(ie,Z){const ee=encodeURI(ie.id||ie["@id"]||"").trim();return ee&&Z?`${ee}/${Z}`:ee||(mintedIdCounter++,`http://example.org/${ie["@type"]}${Z?`/${Z}`:""}/${mintedIdCounter}`)}function technicalProperties$2(ie){const Z=[...ie.behavior||[]];ie.viewingHint&&Z.push(ie.viewingHint);let ee;return Array.isArray(ie.motivation)?ee=ie.motivation.map(removePrefix):ie.motivation&&(ee=removePrefix(ie.motivation)),{"@context":ie["@context"]?fixContext(ie["@context"]):void 0,id:(ie["@id"]||mintNewIdFromResource(ie)).trim(),type:getNewType(ie),behavior:Z.length?Z:void 0,height:ie.height?ie.height:void 0,width:ie.width?ie.width:void 0,motivation:ee,viewingDirection:ie.viewingDirection,profile:ie.profile,format:ie.format?ie.format:void 0,duration:void 0,timeMode:void 0}}function descriptiveProperties$2(ie){const[Z,ee]=fixLicense(ie.license),ae=[...ie.metadata?convertMetadata(ie.metadata):[],...ee];return{rights:Z,metadata:ae.length?ae:void 0,label:ie.label?convertLanguageMapping(ie.label):void 0,requiredStatement:ie.attribution?{label:convertLanguageMapping(configuration.attributionLabel),value:convertLanguageMapping(ie.attribution)}:void 0,navDate:ie.navDate,summary:ie.description?convertLanguageMapping(ie.description):void 0,thumbnail:ie.thumbnail}}function parseWithin(ie){if(!ie.within)return;const Z=Array.isArray(ie.within)?ie.within:[ie.within],ee=[];for(const ae of Z)if(typeof ae=="string"){if(ae)switch(ie["@type"]){case"sc:Manifest":ee.push({id:ae,type:"Collection"});break}}else ae["@id"]&&ee.push({id:ae["@id"],type:getNewType(ae)});return ee.length?ee:void 0}function linkingProperties$2(ie){const Z=ie.related?Array.isArray(ie.related)?ie.related:[ie.related]:[],ee=ie.contentLayer;return{provider:ie.logo||Z.length?[{id:configuration.providerId,type:"Agent",homepage:Z.length?[Z[0]]:void 0,logo:ie.logo?Array.isArray(ie.logo)?ie.logo:[ie.logo]:void 0,label:convertLanguageMapping(configuration.providerName)}]:void 0,partOf:parseWithin(ie),rendering:ie.rendering,seeAlso:ie.seeAlso,start:ie.startCanvas,service:ie.service?ensureArray$1(ie.service):void 0,supplementary:ee?[ee]:void 0}}function embeddedContentProperties(ie){return{chars:ie.chars,format:ie.format?ie.format:void 0,language:ie.language}}function upgradeCollection(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:ie.members})}function upgradeManifest(ie){const Z=[],ee=[];for(const ve of ie.sequences||[])ve.canvases.length&&Z.push(...ve.canvases),ve.behavior&&ee.push(...ve.behavior);const ae=technicalProperties$2(ie);return ee.length&&(ae.behavior?ae.behavior.push(...ee):ae.behavior=ee),removeUndefinedProperties({...ae,...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:Z,structures:ie.structures})}function upgradeCanvas(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),annotations:ie.otherContent&&ie.otherContent.length?ie.otherContent:void 0,items:ie.images&&ie.images.length?[{id:mintNewIdFromResource(ie,"annotation-page"),type:"AnnotationPage",items:ie.images}]:void 0})}function upgradeAnnotationList(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:ie.resources&&ie.resources.length?ie.resources:void 0})}function upgradeSequence(ie){return!ie.canvases||ie.canvases.length===0?{canvases:[],behavior:[]}:{canvases:ie.canvases,behavior:ie.viewingHint?[ie.viewingHint]:[]}}function upgradeAnnotation(ie){function Z(ee){if(Array.isArray(ee)){if(ee.length>1)return{type:"List",items:ee.map(Z)};ee=ee[0]}if(typeof ee=="string")return encodeURI(ee).trim();if("@type"in ee){let ae;if(typeof ee.full=="string")ae=ee.full;else if(ee.full["@type"]==="dctypes:Image")ae={id:ee.full["@id"],type:"Image"};else if(ee.full["@type"]==="sc:Canvas")ae={id:ee.full["@id"],type:"Canvas"};else throw new Error(`Unsupported source type on annotation: ${ee.full["@type"]}`);return{type:"SpecificResource",source:ae,selector:upgradeSelector(ee.selector)}}else return encodeURI(ee["@id"]).trim()}return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),target:Z(ie.on),body:Array.isArray(ie.resource)?ie.resource.map(upgradeContentResource):upgradeContentResource(ie.resource)})}function upgradeContentResource(ie){const Z=ie;return removeUndefinedProperties({...technicalProperties$2(Z),...descriptiveProperties$2(Z),...linkingProperties$2(Z),...embeddedContentProperties(Z)})}function upgradeChoice(ie){const Z=[];return ie.default&&ie.default!=="rdf:nil"&&Z.push(ie.default),ie.item&&ie.item!=="rdf:nil"&&Z.push(...ie.item),{...technicalProperties$2(ie),...descriptiveProperties$2(ie),items:Z}}function upgradeRange(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:ie.members})}function upgradeService(ie){const{"@id":Z,"@type":ee,"@context":ae,profile:ve,...ye}=ie,be={};return Z&&(be["@id"]=Z),be["@type"]=getNewType(ie),be["@type"]==="unknown"&&(ae&&ae.length&&(be["@context"]=ae),be["@type"]="Service"),ve&&(be.profile=getProfile(ve)),removeUndefinedProperties({...be,...ye})}function upgradeLayer(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie)})}const presentation2to3=new Traverse({collection:[upgradeCollection],manifest:[upgradeManifest],canvas:[upgradeCanvas],annotationList:[upgradeAnnotationList],sequence:[upgradeSequence],annotation:[upgradeAnnotation],contentResource:[upgradeContentResource],choice:[upgradeChoice],range:[upgradeRange],service:[upgradeService],layer:[upgradeLayer]});function convertPresentation2(ie){return ie&&ie["@context"]&&(ie["@context"]==="http://iiif.io/api/presentation/2/context.json"||ie["@context"].indexOf("http://iiif.io/api/presentation/2/context.json")!==-1||ie["@context"]==="http://www.shared-canvas.org/ns/context.json")||ie["@context"]==="http://iiif.io/api/image/2/context.json"?presentation2to3.traverseUnknown(ie):ie}function upgradeSelector(ie){if((Array.isArray(ie["@type"])&&ie["@type"].includes("oa:SvgSelector")||ie["@type"]=="oa:SvgSelector")&&("chars"in ie||"value"in ie))return{type:"SvgSelector",value:"chars"in ie?ie.chars:ie.value};if(ie["@type"]==="oa:FragmentSelector")return{type:"FragmentSelector",value:ie.value};if(ie["@type"]==="oa:Choice")return[upgradeSelector(ie.default),...(Array.isArray(ie.item)?ie.item:[ie.item]).map(upgradeSelector)];if(ie["@type"]=="iiif:ImageApiSelector")return{type:"ImageApiSelector",region:"region"in ie?ie.region:void 0,rotation:"rotation"in ie?ie.rotation:void 0};throw new Error(`Unsupported selector type: ${ie["@type"]}`)}function getDefaultEntities$1(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}function getResource(ie,Z){if(typeof ie=="string")return{id:ie,type:Z};if(!ie.id)throw new Error(`Invalid resource does not have an ID (${Z})`);return ie}function mapToEntities(ie){return(Z,ee)=>{const ae=ie[Z]?ie[Z]:{};return ve=>{const ye=getResource(ve,ee||Z);return ye&&ye.id&&Z?(ae[ye.id]=ae[ye.id]?mergeEntities(ae[ye.id],ye):Object.assign({},ye),{id:ye.id,type:Z==="ContentResource"?Z:ye.type}):ye}}}function merge(ie,Z){if(!Z)return ie;if(Array.isArray(ie)){if(!Array.isArray(Z))throw new Error("Cannot merge array with non-array");const ee=[...ie];for(const ae of Z)if(ae!=null)if(Array.isArray(ae))ee.push(ae);else if(typeof ae=="object"&&ae.id&&ae.type){const ve=ee.findIndex(ye=>ye.id===ae.id&&ye.type===ae.type);ve>=0&&(ee[ve]=merge(ee[ve],ae))}else ie.indexOf(ae)===-1&&ee.push(ae);return ee}else if(typeof ie=="object"){if(Array.isArray(Z)||typeof Z!="object")throw new Error("Cannot merge object with non-object");const ee={...ie};for(const[ae,ve]of Object.entries(Z)){const ye=ee[ae];ye===EMPTY||!ye?ee[ae]=ve:ee[ae]=merge(ye,ve)}return ee}else if(ie)return ie;return Z}function mergeEntities(ie,Z){if(typeof ie=="string")return ie;if(Z.id!==ie.id||Z.type!==ie.type)throw new Error("Can only merge entities with identical identifiers and type!");return merge({...ie},Z)}function recordTypeInMapping(ie){return(Z,ee)=>ae=>{const{id:ve,type:ye}=getResource(ae,ee||Z);if(typeof ve>"u")throw new Error("Found invalid entity without an ID.");return Z==="ContentResource"?ie[ve]=Z:ie[ve]=ye,ae}}function hash$1(ie){const Z=JSON.stringify(ie);let ee=5381,ae=Z.length;for(;ae;)ee=ee*33^Z.charCodeAt(--ae);const ye=(ee>>>0).toString(16);return ye.length%2?"0"+ye:ye}function addMissingIdToContentResource(ie){return Z=>typeof Z=="string"?{id:Z,type:ie}:Z.id?Z.type?Z:{type:ie,...Z}:{id:`vault://${hash$1(Z)}`,type:ie,...Z}}function ensureDefaultFields(ie){return Z=>({...ie,...Z})}function ensureArray(ie){return Array.isArray(ie)?ie:[ie]}function ensureArrayOnAnnotation(ie){return ie.body&&(ie.body=ensureArray(ie.body)),ie.seeAlso&&(ie.seeAlso=ensureArray(ie.seeAlso)),ie.body&&(ie.body=ensureArray(ie.body)),ie.audience&&(ie.audience=ensureArray(ie.audience)),ie.accessibility&&(ie.accessibility=ensureArray(ie.accessibility)),ie.motivation&&(ie.motivation=ensureArray(ie.motivation)),ie}function normalize(ie){const Z=convertPresentation2(ie),ee=getDefaultEntities$1(),ae={},ve=mapToEntities(ee),ye=recordTypeInMapping(ae),Ke=new Traverse$1({collection:[ensureDefaultFields(emptyCollection),ye("Collection"),ve("Collection")],manifest:[ensureDefaultFields(emptyManifest),ye("Manifest"),ve("Manifest")],canvas:[ensureDefaultFields(emptyCanvas),ye("Canvas"),ve("Canvas")],annotationPage:[addMissingIdToContentResource("AnnotationPage"),ensureDefaultFields(emptyAnnotationPage),ye("AnnotationPage"),ve("AnnotationPage")],annotation:[addMissingIdToContentResource("Annotation"),ensureArrayOnAnnotation,ye("Annotation"),ve("Annotation")],contentResource:[addMissingIdToContentResource("ContentResource"),ye("ContentResource"),ve("ContentResource")],range:[ensureDefaultFields(emptyRange),ye("Range","Canvas"),ve("Range","Canvas")],agent:[ensureDefaultFields(emptyAgent),ye("Agent"),ve("Agent")]}).traverseUnknown(Z);return{entities:ee,resource:Ke,mapping:ae}}const UNSET="__$UNSET$__",UNWRAP="__$UNWRAP$__";function resolveIfExists$1(ie,Z){const ee=ie.requests[Z],ae=ie.mapping[Z];if(!(!ae||ee&&ee.resourceUri&&!ie.entities[ae][ee.resourceUri]))return ie.entities[ae][ee?ee.resourceUri:Z]}function serializedFieldsToObject(ie){const Z={};for(const[ee,ae]of ie){if(ee===UNWRAP&&ae!==UNSET)return ae;ae!==UNSET&&typeof ae<"u"&&ae!==null&&(Z[ee]=ae)}return Z}function serialize(ie,Z,ee){if(!Z.type||!Z.id)throw new Error("Unknown entity");if(!ee[Z.type])throw new Error(`Serializer not found for ${Z.type}`);function ae(ve){const ye=ee[ve.type];if(!ye)return UNSET;const be=resolveIfExists$1(ie,ve.id)||(ve.id&&ve.type?ve:null);if(!be)return UNSET;const Ke=ye(be,ie,{isTopLevel:Z.id===ve.id});let Ye=Ke.next();for(;!Ye.done;){const Xe=Ye.value;let Qe=UNSET;if(Xe)if(Array.isArray(Xe)){const et=[];for(const Je of Xe)et.push(ae(Je));Qe=et}else Qe=ae(Xe);Ye=Ke.next(Qe)}return Ye.value===UNSET?UNSET:serializedFieldsToObject(Ye.value)}return ae(Z)}function languageString2to3(ie){if(!ie)return;const Z=Object.keys(ie);if(Z.length!==0){if(Z.length===1){const ee=Z[0];if(!ee)return"";const ae=(ie[ee]||[]).join("");return ee==="@none"||ee==="none"||ee==="en"?ae:{"@language":ee,"@value":ae}}return Z.map(ee=>({"@language":ee,"@value":(ie[ee]||[]).join("")}))}}function parseCanvasTarget(ie){return Array.isArray(ie)?ie.map(Z=>parseCanvasTarget(Z)):typeof ie=="string"?ie:ie.type&&ie.type==="Canvas"?ie.id:ie}function unNestArray(ie,Z=!1){if(ie)return ie.length>1&&!Z?ie:ie[0]||void 0}function convertService(ie){if(ie){if(typeof ie=="string")return{"@id":ie};if("@id"in ie){const Z={...ie};return delete Z["@type"],Z}return{"@context":"http://iiif.io/api/image/2/context.json","@id":ie.id,profile:`http://iiif.io/api/image/2/profiles/${ie.profile}.json`}}}function technicalProperties$1(ie,Z){return[["@id",ie.id],["@type",Z],["format",ie.format],["height",ie.height],["width",ie.width],["viewingDirection",ie.viewingDirection!=="left-to-right"?ie.viewingDirection:void 0]]}function*descriptiveProperties$1(ie){const Z=ie.provider?yield ie.provider[0]:void 0;return[["label",languageString2to3(ie.label)],["metadata",ie.metadata&&ie.metadata.length?ie.metadata.map(ee=>({label:languageString2to3(ee.label)||"",value:languageString2to3(ee.value)||""})):void 0],["description",languageString2to3(ie.summary)],["thumbnail",unNestArray(yield ie.thumbnail)],["navDate",ie.navDate],["logo",Z?unNestArray(Z.logo):void 0],["homepage",Z?Z.homepage:void 0],["attribution",ie.requiredStatement?languageString2to3(ie.requiredStatement.value):void 0]]}function*linkingProperties$1(ie){return[["seeAlso",unNestArray(yield ie.seeAlso)],["service",unNestArray((ie.service||[]).map(convertService))],["rendering",unNestArray(yield ie.rendering)],["startCanvas",ie.start?ie.start.id:void 0]]}const serializeConfigPresentation2={Manifest:function*(ie){return[...technicalProperties$1(ie,"sc:Manifest"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["sequences",[{"@id":`${ie.id}/sequence0`,"@type":"sc:Sequence",canvases:yield ie.items}]],["structures",yield ie.structures]]},Canvas:function*(ie){const ee=(yield ie.items)[0];return[...technicalProperties$1(ie,"sc:Canvas"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["images",ee?[ee.resources]:void 0],["annotations",ie.annotations&&ie.annotations.length?unNestArray(yield ie.annotations):void 0]]},AnnotationPage:function*(ie){return[...technicalProperties$1(ie,"sc:AnnotationList"),...yield*descriptiveProperties$1(ie),["resources",ie.items&&ie.items.length?unNestArray(yield ie.items):void 0]]},Annotation:function*(ie){return[["@id",ie.id],["@type","oa:Annotation"],["motivation","sc:painting"],["on",parseCanvasTarget(ie.target)],["resource",unNestArray(yield ie.body,!0)]]},ContentResource:function*(ie){switch(ie.type){case"Image":return[...technicalProperties$1(ie,"dctypes:Image"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie)];case"Text":case"Dataset":default:return[...technicalProperties$1(ie,void 0),...yield*descriptiveProperties$1(ie)]}},AnnotationCollection:function*(ie){return[["@id",ie.id],["@type","sc:Layer"],["label",languageString2to3(ie.label)]]},Collection:function*(ie){return[...technicalProperties$1(ie,"sc:Collection"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["members",yield*ie.items]]},Range:function*(ie){const Z=[],ee=[];if(ie.items)for(const ae of ie.items){const ve=yield ae;Z.push({"@id":ae.id,"@type":ae.type,label:ve?ve.label:void 0,within:ie.id}),ae.type==="Canvas"&&ee.push(ae.id)}return[...technicalProperties$1(ie,"sc:Range"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["canvases",ee.length===Z.length?ee:void 0],["members",ee.length!==Z.length?Z:void 0]]}};function technicalProperties(ie){var Z;return[["id",(Z=ie.id)!=null&&Z.startsWith("vault://")?void 0:ie.id],["type",ie.type],["format",ie.format],["profile",ie.profile],["height",ie.height],["width",ie.width],["duration",ie.duration||void 0],["viewingDirection",ie.viewingDirection!=="left-to-right"?ie.viewingDirection:void 0],["behavior",ie.behavior&&ie.behavior.length?ie.behavior:void 0],["timeMode",ie.timeMode],["motivation",Array.isArray(ie.motivation)?ie.motivation[0]:ie.motivation]]}function filterEmpty(ie){if(!(!ie||ie.length===0))return ie}function service2compat(ie){if(ie&&ie.type&&ie.type==="ImageService2"){const{id:Z,type:ee,profile:ae,...ve}=ie,ye=typeof ae=="string"?ae:Array.isArray(ae)?ae.find(be=>typeof be=="string"):"";return{"@id":Z,"@type":ee,profile:ye?ye.startsWith("http")?ye:`http://iiif.io/api/image/2/${ye}.json`:"http://iiif.io/api/image/2/level0.json",...ve}}return ie}function filterService2Compat(ie){if(!(!ie||ie.length===0))return ie.map(service2compat)}function*descriptiveProperties(ie){return[["label",ie.label],["metadata",filterEmpty(ie.metadata)],["summary",ie.summary],["requiredStatement",ie.requiredStatement],["rights",ie.rights],["navDate",ie.navDate],["language",ie.language],["thumbnail",filterEmpty(yield ie.thumbnail)],["placeholderCanvas",yield ie.placeholderCanvas],["accompanyingCanvas",yield ie.accompanyingCanvas],["provider",filterEmpty(yield ie.provider)]]}function*linkingProperties(ie){return[["seeAlso",filterEmpty(yield ie.seeAlso)],["service",filterService2Compat(ie.service)],["services",filterService2Compat(ie.services)],["rendering",filterEmpty(yield ie.rendering)],["supplementary",filterEmpty(yield ie.supplementary)],["homepage",filterEmpty(yield ie.homepage)],["logo",filterEmpty(yield ie.logo)],["partOf",filterEmpty(yield ie.partOf)],["start",ie.start]]}const serializeConfigPresentation3={Manifest:function*(ie,Z,{isTopLevel:ee}){return ee?[["@context","http://iiif.io/api/presentation/3/context.json"],...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",yield ie.items],["structures",filterEmpty(yield ie.structures)],["annotations",filterEmpty(yield ie.annotations)]]:[...technicalProperties(ie),...yield*descriptiveProperties(ie)]},Canvas:function*(ie){return[...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",yield ie.items],["annotations",filterEmpty(yield ie.annotations)]]},Agent:function*(ie){return[["id",ie.id],["type","Agent"],["label",ie.label],...yield*linkingProperties(ie)]},AnnotationPage:function*(ie){return[...Object.entries(ie).map(([ee,ae])=>[ee,Array.isArray(ae)?filterEmpty(ae):ae]).filter(([ee,ae])=>ee!=="items"),...yield*linkingProperties(ie),["items",yield ie.items]]},Service:function*(ie){return[[UNWRAP,service2compat(ie)]]},Annotation:function*(ie){const Z=Object.entries(ie).map(([ae,ve])=>ae==="motivation"?[ae,Array.isArray(ve)?ve[0]:ve]:[ae,Array.isArray(ve)?filterEmpty(ve):ve]).filter(([ae])=>ae!=="body"),ee=yield ie.body;return[...Z,["body",ee.length===1?ee[0]:ee]]},ContentResource:function*(ie){return[...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["annotations",filterEmpty(yield ie.annotations)],["items",filterEmpty(yield ie.items)]]},AnnotationCollection:function*(ie){return[["id",ie.id],["type","AnnotationCollection"],["label",ie.label]]},Collection:function*(ie,Z,{isTopLevel:ee}){return ee?[["@context","http://iiif.io/api/presentation/3/context.json"],...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",filterEmpty(yield ie.items)]]:[...technicalProperties(ie),...yield*descriptiveProperties(ie)]},Range:function*(ie){const Z=[];for(const ee of ie.items)ee.type==="Range"?Z.push(yield ee):Z.push(ee);return[...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",Z],["annotations",filterEmpty(yield ie.annotations)]]}};function n$1(ie){return ie==null}function t$1(ie){throw new Error("Argument "+ie+" is empty.")}function o$1(ie){return typeof ie=="string"||typeof ie=="symbol"}function u$1(ie){return!o$1(ie)}function a$1(ie){throw new Error("Argument "+ie+" is invalid, it should be an action type of type: string | symbol")}function s$1(ie,Z){return n$1(ie)&&t$1(1),u$1(ie)&&a$1(1),Object.assign(function(){var ee=Z!=null?Z.apply(void 0,arguments):void 0;return Object.assign({type:ie},ee)},{getType:function(){return ie},toString:function(){return ie}})}function y$1(ie,Z,ee){return n$1(ie)&&t$1(1),u$1(ie)&&a$1(1),function(){return s$1(ie,function(){var ae=arguments.length<=0?void 0:arguments[0],ve=arguments.length<=1?void 0:arguments[1];return Z==null&&ee==null||(ae=Z!=null?Z.apply(void 0,arguments):void 0,ve=ee!=null?ee.apply(void 0,arguments):void 0),Object.assign({},ae!==void 0&&{payload:ae},{},ve!==void 0&&{meta:ve})})}}function _typeof(ie){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},_typeof(ie)}function toPrimitive(ie,Z){if(_typeof(ie)!="object"||!ie)return ie;var ee=ie[Symbol.toPrimitive];if(ee!==void 0){var ae=ee.call(ie,Z||"default");if(_typeof(ae)!="object")return ae;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Z==="string"?String:Number)(ie)}function toPropertyKey(ie){var Z=toPrimitive(ie,"string");return _typeof(Z)=="symbol"?Z:String(Z)}function _defineProperty$1(ie,Z,ee){return Z=toPropertyKey(Z),Z in ie?Object.defineProperty(ie,Z,{value:ee,enumerable:!0,configurable:!0,writable:!0}):ie[Z]=ee,ie}function ownKeys$1(ie,Z){var ee=Object.keys(ie);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(ie);Z&&(ae=ae.filter(function(ve){return Object.getOwnPropertyDescriptor(ie,ve).enumerable})),ee.push.apply(ee,ae)}return ee}function _objectSpread2$1(ie){for(var Z=1;Z"u"&&(ee=Z,Z=void 0),typeof ee<"u"){if(typeof ee!="function")throw new Error(formatProdErrorMessage(1));return ee(createStore$1)(ie,Z)}if(typeof ie!="function")throw new Error(formatProdErrorMessage(2));var ve=ie,ye=Z,be=[],Ke=be,Ye=!1;function Xe(){Ke===be&&(Ke=be.slice())}function Qe(){if(Ye)throw new Error(formatProdErrorMessage(3));return ye}function et(nt){if(typeof nt!="function")throw new Error(formatProdErrorMessage(4));if(Ye)throw new Error(formatProdErrorMessage(5));var tt=!0;return Xe(),Ke.push(nt),function(){if(tt){if(Ye)throw new Error(formatProdErrorMessage(6));tt=!1,Xe();var ot=Ke.indexOf(nt);Ke.splice(ot,1),be=null}}}function Je(nt){if(!isPlainObject$3(nt))throw new Error(formatProdErrorMessage(7));if(typeof nt.type>"u")throw new Error(formatProdErrorMessage(8));if(Ye)throw new Error(formatProdErrorMessage(9));try{Ye=!0,ye=ve(ye,nt)}finally{Ye=!1}for(var tt=be=Ke,st=0;st"u")throw new Error(formatProdErrorMessage(12));if(typeof ee(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers(ie){for(var Z=Object.keys(ie),ee={},ae=0;ae"u")throw Xe&&Xe.type,new Error(formatProdErrorMessage(14));et[rt]=tt,Qe=Qe||tt!==nt}return Qe=Qe||ye.length!==Object.keys(Ye).length,Qe?et:Ye}}function compose(){for(var ie=arguments.length,Z=new Array(ie),ee=0;ee{const{entities:ee,resource:ae,mapping:ve}=normalize(Z);if(ae.id===void 0)return[requestError({id:ie,message:"ID is not defined in resource."})];const ye=[importEntities({entities:ee}),addMappings({mapping:ve})];return ae.id!==ie&&(ye.push(addMapping({id:ie,type:ae.type})),ye.push(requestMismatch({requestId:ie,actualId:ae.id}))),ye.push(requestComplete({id:ie})),ye},safeIsNaN=Number.isNaN||function(Z){return typeof Z=="number"&&Z!==Z};function isEqual(ie,Z){return!!(ie===Z||safeIsNaN(ie)&&safeIsNaN(Z))}function areInputsEqual(ie,Z){if(!Array.isArray(ie)||!Array.isArray(Z))return ie===Z;if(ie.length!==Z.length)return!1;for(let ee=0;ee{const ye=ie.getState(),be=ye.iiif.requests[ae];if(be)switch(be.loadingState){case RESOURCE_ERROR:break;case RESOURCE_LOADING:{let Ke,Ye=!1;try{const Xe=await Promise.race([new Promise((Qe,et)=>{Ye||(Ke=ie.subscribe(()=>{const Je=ie.getState();if(Je.iiif.requests[ae].loadingState===RESOURCE_ERROR){et();return}if(Je.iiif.requests[ae].loadingState===RESOURCE_READY){const rt=resolveIfExists(Je,ae);rt?Qe(rt):et()}}))}),new Promise((Qe,et)=>setTimeout(()=>{Ye=!0,et()},ee*60))]);if(Ke&&Ke(),Xe)return Xe}catch{Ke&&Ke();break}break}case RESOURCE_READY:{const Ke=resolveIfExists(ye,ae);if(Ke)return Ke;break}}ie.dispatch(requestResource({id:ae}));try{const Ke=await Z(ae,ve);!Ke.id&&!Ke["@id"]&&(Ke["@type"]&&(Ke["@id"]=ae),Ke.id=ae);const Ye=actionListFromResource(ae,Ke);return ie.dispatch(batchActions({actions:Ye})),resolveIfExists(ie.getState(),ae)}catch(Ke){throw ie.dispatch(requestError({id:ae,message:Ke.toString()})),Ke}}}function getDefaultEntities(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}const mappingReducer=(ie={},Z)=>{switch(Z.type){case ADD_MAPPING:return{...ie,[Z.payload.id]:Z.payload.type};case ADD_MAPPINGS:return{...ie,...Z.payload.mapping};default:return ie}};function isReferenceList(ie,Z,ee,ae){return!(!ie[ee]||!ie[ee][Z]||!ie[ee][Z][ae]||!Array.isArray(ie[ee][Z][ae]))}function quickMerge(ie,Z){const ee={},ae=[];for(const[ve,ye]of Object.entries(ie||{})){ae.push(ve);const be=(Z||{})[ve];if(!be||be.length===0){ee[ve]=ye;continue}ee[ve]=be}for(const[ve,ye]of Object.entries(Z||{}))ae.indexOf(ve)===-1&&(ee[ve]=ye);return ee}const entitiesReducer=(ie=getDefaultEntities(),Z)=>{var ee;switch(Z.type){case MODIFY_ENTITY_FIELD:{if(!ie[Z.payload.type]||!ie[Z.payload.type][Z.payload.id])return ie;const ae=ie[Z.payload.type][Z.payload.id];return typeof ae=="string"?ie:{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:Z.payload.value}}}}case REORDER_ENTITY_FIELD:{if(!isReferenceList(ie,Z.payload.id,Z.payload.type,Z.payload.key))return ie;const ae=ie[Z.payload.type][Z.payload.id];if(typeof ae=="string")return ie;const ve=Array.from(ae[Z.payload.key]),[ye]=ve.splice(Z.payload.startIndex,1);return ve.splice(Z.payload.endIndex,0,ye),{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:ve}}}}case IMPORT_ENTITIES:{const ae=Object.keys(Z.payload.entities),ve={...ie};for(const ye of ae){const be=Z.payload.entities[ye],Ke={...ie[ye]||{}};let Ye=!1;const Xe=Object.keys(be||{})||[];if(be&&Xe){for(const Qe of Xe)Ye=!0,Ke[Qe]=ie[ye][Qe]?quickMerge(ie[ye][Qe],be[Qe]):be[Qe];Ye&&(ve[ye]=Ke)}}return ve}case ADD_REFERENCE:{if(!isReferenceList(ie,Z.payload.id,Z.payload.type,Z.payload.key))return ie;const ae=ie[Z.payload.type][Z.payload.id],ve=Array.from(ae[Z.payload.key]);return ve.splice(Z.payload.index||ve.length+1,0,Z.payload.reference),{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:ve}}}}case REMOVE_REFERENCE:{if(!isReferenceList(ie,Z.payload.id,Z.payload.type,Z.payload.key))return ie;const ae=ie[Z.payload.type][Z.payload.id],ve=Array.from(ae[Z.payload.key]),ye=Z.payload.index||ve.findIndex(be=>be&&be.id===Z.payload.reference.id);return ye===-1||((ee=ve[ye])==null?void 0:ee.id)!==Z.payload.reference.id?ie:(ve.splice(ye,1),{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:ve}}})}default:return ie}},requestReducer=(ie={},Z)=>{switch(Z.type){case REQUEST_RESOURCE:case REQUEST_OFFLINE_RESOURCE:return{...ie,[Z.payload.id]:{requestUri:Z.payload.id,loadingState:RESOURCE_LOADING,uriMismatch:!1,resourceUri:Z.payload.id}};case REQUEST_MISMATCH:return{...ie,[Z.payload.requestId]:{...ie[Z.payload.requestId]||{},uriMismatch:!0,resourceUri:Z.payload.actualId},[Z.payload.actualId]:{requestUri:Z.payload.requestId,loadingState:ie[Z.payload.requestId].loadingState,uriMismatch:!0,resourceUri:Z.payload.actualId}};case REQUEST_ERROR:return{...ie,[Z.payload.id]:{...ie[Z.payload.id]||{},loadingState:RESOURCE_ERROR,error:Z.payload.message}};case REQUEST_COMPLETE:return{...ie,[Z.payload.id]:{...ie[Z.payload.id]||{},loadingState:RESOURCE_READY,error:void 0}}}return ie},metaReducer=(ie={},Z)=>{const{id:ee,updateValue:ae,value:ve,meta:ye,key:be}=Z&&Z.payload||{};switch(Z.type){case SET_META_VALUE:return{...ie,[ee]:{...ie[ee]||{},[ye]:{...ie[ee]?ie[ee][ye]||{}:{},[be]:ve}}};case SET_META_VALUE_DYNAMIC:return{...ie,[ee]:{...ie[ee]||{},[ye]:{...ie[ee]?ie[ee][ye]||{}:{},[be]:ie[ee]&&ie[ee][ye]?ae(ie[ee][ye][be]):ae(void 0)}}};case UNSET_META_VALUE:return ie[ee]&&ie[ee][ye]&&ie[ee][ye][be]?{...ie,[ee]:{...ie[ee]||{},[ye]:{...ie[ee]?ie[ee][ye]||{}:{},[be]:void 0}}}:ie;default:return ie}};function createBatchReducer(ie){return(Z,ee)=>ee&&ee.type===BATCH_ACTIONS?ee.payload.actions.reduce(ie,Z):ee&&ee.type===BATCH_IMPORT?ee.payload.state:ie(Z,ee)}const reducers=combineReducers({mapping:mappingReducer,entities:entitiesReducer,requests:requestReducer,meta:metaReducer}),composeEnhancers=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||compose;function createStore(ie={}){const{enableDevtools:Z=!0,iiifStoreName:ee="iiif",defaultState:ae={},extraMiddleware:ve=[],customReducers:ye={}}=ie,be=combineReducers({[ee]:reducers,...ye});return createStore$1(createBatchReducer(be),ae,Z?composeEnhancers(applyMiddleware(...ve)):compose(applyMiddleware(...ve)))}function mitt(ie){return{all:ie=ie||new Map,on:function(Z,ee){var ae=ie.get(Z);ae?ae.push(ee):ie.set(Z,[ee])},off:function(Z,ee){var ae=ie.get(Z);ae&&(ee?ae.splice(ae.indexOf(ee)>>>0,1):ie.set(Z,[]))},emit:function(Z,ee){var ae=ie.get(Z);ae&&ae.slice().map(function(ve){ve(ee)}),(ae=ie.get("*"))&&ae.slice().map(function(ve){ve(Z,ee)})}}}class Vault{constructor(Z,ee){Vi(this,"options");Vi(this,"store");Vi(this,"emitter");Vi(this,"isBatching",!1);Vi(this,"batchQueue",[]);Vi(this,"remoteFetcher");Vi(this,"staticFetcher");Vi(this,"defaultFetcher",Z=>fetch(Z).then(ee=>ee.json()));Vi(this,"middleware",Z=>ee=>ae=>{if(ae.type===BATCH_ACTIONS){for(const be of ae.payload.actions)this.emitter.emit(be.type,{realAction:be,state:Z.getState()});const ye=ee(ae);for(const be of ae.payload.actions)this.emitter.emit(`after:${ae.type}`,{action:ae,state:ye});return ye}this.emitter.emit(ae.type,{action:ae,state:Z.getState()});const ve=ee(ae);return this.emitter.emit(`after:${ae.type}`,{action:ae,state:ve}),ve});this.options=Object.assign({reducers:{},middleware:[],defaultState:{},customFetcher:this.defaultFetcher,enableDevtools:!0},Z||{}),this.store=ee||createStore({customReducers:this.options.reducers,extraMiddleware:[...this.options.middleware,this.middleware],defaultState:this.options.defaultState,enableDevtools:this.options.enableDevtools}),this.emitter=mitt(),this.remoteFetcher=createFetchHelper(this.store,this.options.customFetcher),this.staticFetcher=createFetchHelper(this.store,(ae,ve)=>ve)}batch(Z){this.isBatching=!0;try{Z(this),this.store.dispatch(batchActions({actions:this.batchQueue}))}catch(ee){throw this.batchQueue=[],this.isBatching=!1,ee}this.batchQueue=[],this.isBatching=!1}async asyncBatch(Z){this.isBatching=!0;try{await Z(this),this.store.dispatch(batchActions({actions:this.batchQueue}))}catch(ee){throw this.batchQueue=[],this.isBatching=!1,ee}this.batchQueue=[],this.isBatching=!1}modifyEntityField(Z,ee,ae){this.dispatch(entityActions.modifyEntityField({id:Z.id,type:Z.type,key:ee,value:ae}))}dispatch(Z){this.isBatching?this.batchQueue.push(Z):this.store.dispatch(Z)}serialize(Z,ee){return serialize(this.getState().iiif,Z,ee)}toPresentation2(Z){return this.serialize(Z,serializeConfigPresentation2)}toPresentation3(Z){return this.serialize(Z,serializeConfigPresentation3)}hydrate(Z,ee){return this.get(Z,ee,{skipSelfReturn:!1})}get(Z,ee,ae={}){typeof ee!="string"&&(ae=ee||{},ee=void 0);const{skipSelfReturn:ve=!0}=ae||{};if(Array.isArray(Z))return Z.map(Xe=>this.get(Xe,ae));const ye=this.getState();if(typeof Z=="string"){const Xe=ee||ye.iiif.mapping[Z];if(!Xe)return ve?null:{id:Z,type:"unknown"};Z={id:Z,type:Xe}}const be=ee||Z.type,Ke=Z.id,Ye=ye.iiif.entities[be];if(!Ye){const Xe=ye.iiif.requests[Ke];return Xe&&Xe.resourceUri!==Ke?this.get(Xe.resourceUri,ae):ve?null:Z}return Ye[Z.id]||(ve?null:Z)}select(Z){return Z(this.getState())}getStore(){return this.store}getState(){return this.store.getState()}loadManifest(Z,ee){const ae=typeof Z=="string"?Z:Z.id;return this.load(ae,ee)}loadCollection(Z,ee){const ae=typeof Z=="string"?Z:Z.id;return this.load(ae,ee)}load(Z,ee){const ae=typeof Z=="string"?Z:Z.id;return ee?this.staticFetcher(ae,ee):this.remoteFetcher(ae)}areInputsEqual(Z,ee){return areInputsEqual(Z,ee)}subscribe(Z,ee,ae){typeof ae>"u"&&(typeof ee>"u"||ee===!1||ee===!0)&&(ae=ee,ee=Z,Z=ye=>ye);let ve=ae?null:Z(this.store.getState());return ae||ee(ve,this),this.store.subscribe(()=>{const ye=this.store.getState(),be=Z(ye);ve!==be&&!areInputsEqual(ve,be)&&ee(be,this),ve=be})}async ensureLoaded(Z){const ee=typeof Z=="string"?Z:Z.id;this.requestStatus(ee)||await this.load(ee)}requestStatus(Z){return this.select(ee=>ee.iiif.requests[Z])}getResourceMeta(Z,ee){const ae=this.getState().iiif.meta[Z];if(ae)return ee?ae[ee]:ae}setMetaValue([Z,ee,ae],ve){this.dispatch(typeof ve=="function"?metaActions.setMetaValueDynamic({id:Z,meta:ee,key:ae,updateValue:ve}):metaActions.setMetaValue({id:Z,meta:ee,key:ae,value:ve}))}}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(ie){for(var Z=1;Zit,Object.values(it));return reactExports.createElement(nt.Provider,{value:tt},rt)}function Qe(et,Je){const rt=(Je==null?void 0:Je[ie][Ye])||Ke,it=reactExports.useContext(rt);if(it)return it;if(be!==void 0)return be;throw new Error(`\`${et}\` must be used within \`${ye}\``)}return Xe.displayName=ye+"Provider",[Xe,Qe]}const ve=()=>{const ye=ee.map(be=>reactExports.createContext(be));return function(Ke){const Ye=(Ke==null?void 0:Ke[ie])||ye;return reactExports.useMemo(()=>({[`__scope${ie}`]:{...Ke,[ie]:Ye}}),[Ke,Ye])}};return ve.scopeName=ie,[ae,$c512c27ab02ef895$var$composeContextScopes(ve,...Z)]}function $c512c27ab02ef895$var$composeContextScopes(...ie){const Z=ie[0];if(ie.length===1)return Z;const ee=()=>{const ae=ie.map(ve=>({useScope:ve(),scopeName:ve.scopeName}));return function(ye){const be=ae.reduce((Ke,{useScope:Ye,scopeName:Xe})=>{const et=Ye(ye)[`__scope${Xe}`];return{...Ke,...et}},{});return reactExports.useMemo(()=>({[`__scope${Z.scopeName}`]:be}),[be])}};return ee.scopeName=Z.scopeName,ee}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(ie){const Z=reactExports.useRef(ie);return reactExports.useEffect(()=>{Z.current=ie}),reactExports.useMemo(()=>(...ee)=>{var ae;return(ae=Z.current)===null||ae===void 0?void 0:ae.call(Z,...ee)},[])}function $71cd76cc60e0454e$export$6f32135080cb4c3({prop:ie,defaultProp:Z,onChange:ee=()=>{}}){const[ae,ve]=$71cd76cc60e0454e$var$useUncontrolledState({defaultProp:Z,onChange:ee}),ye=ie!==void 0,be=ye?ie:ae,Ke=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(ee),Ye=reactExports.useCallback(Xe=>{if(ye){const et=typeof Xe=="function"?Xe(ie):Xe;et!==ie&&Ke(et)}else ve(Xe)},[ye,ie,ve,Ke]);return[be,Ye]}function $71cd76cc60e0454e$var$useUncontrolledState({defaultProp:ie,onChange:Z}){const ee=reactExports.useState(ie),[ae]=ee,ve=reactExports.useRef(ae),ye=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(Z);return reactExports.useEffect(()=>{ve.current!==ae&&(ye(ae),ve.current=ae)},[ae,ve,ye]),ee}const $9f79659886946c16$export$e5c5a5f917a5871c=globalThis!=null&&globalThis.document?reactExports.useLayoutEffect:()=>{};function $6ed0406888f73fc4$var$setRef(ie,Z){typeof ie=="function"?ie(Z):ie!=null&&(ie.current=Z)}function $6ed0406888f73fc4$export$43e446d32b3d21af(...ie){return Z=>ie.forEach(ee=>$6ed0406888f73fc4$var$setRef(ee,Z))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...ie){return reactExports.useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...ie),ie)}const $5e63c961fc1ce211$export$8c6ed5c666ac1360=reactExports.forwardRef((ie,Z)=>{const{children:ee,...ae}=ie,ve=reactExports.Children.toArray(ee),ye=ve.find($5e63c961fc1ce211$var$isSlottable);if(ye){const be=ye.props.children,Ke=ve.map(Ye=>Ye===ye?reactExports.Children.count(be)>1?reactExports.Children.only(null):reactExports.isValidElement(be)?be.props.children:null:Ye);return reactExports.createElement($5e63c961fc1ce211$var$SlotClone,_extends$1({},ae,{ref:Z}),reactExports.isValidElement(be)?reactExports.cloneElement(be,void 0,Ke):null)}return reactExports.createElement($5e63c961fc1ce211$var$SlotClone,_extends$1({},ae,{ref:Z}),ee)});$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName="Slot";const $5e63c961fc1ce211$var$SlotClone=reactExports.forwardRef((ie,Z)=>{const{children:ee,...ae}=ie;return reactExports.isValidElement(ee)?reactExports.cloneElement(ee,{...$5e63c961fc1ce211$var$mergeProps(ae,ee.props),ref:Z?$6ed0406888f73fc4$export$43e446d32b3d21af(Z,ee.ref):ee.ref}):reactExports.Children.count(ee)>1?reactExports.Children.only(null):null});$5e63c961fc1ce211$var$SlotClone.displayName="SlotClone";const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children:ie})=>reactExports.createElement(reactExports.Fragment,null,ie);function $5e63c961fc1ce211$var$isSlottable(ie){return reactExports.isValidElement(ie)&&ie.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(ie,Z){const ee={...Z};for(const ae in Z){const ve=ie[ae],ye=Z[ae];/^on[A-Z]/.test(ae)?ve&&ye?ee[ae]=(...Ke)=>{ye(...Ke),ve(...Ke)}:ve&&(ee[ae]=ve):ae==="style"?ee[ae]={...ve,...ye}:ae==="className"&&(ee[ae]=[ve,ye].filter(Boolean).join(" "))}return{...ie,...ee}}const $8927f6f2acc4f386$var$NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$8927f6f2acc4f386$export$250ffa63cdc0d034=$8927f6f2acc4f386$var$NODES.reduce((ie,Z)=>{const ee=reactExports.forwardRef((ae,ve)=>{const{asChild:ye,...be}=ae,Ke=ye?$5e63c961fc1ce211$export$8c6ed5c666ac1360:Z;return reactExports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),reactExports.createElement(Ke,_extends$1({},be,{ref:ve}))});return ee.displayName=`Primitive.${Z}`,{...ie,[Z]:ee}},{});function $8927f6f2acc4f386$export$6d1a0317bde7de7f(ie,Z){ie&&reactDomExports.flushSync(()=>ie.dispatchEvent(Z))}function $fe963b355347cc68$export$3e6543de14f8614f(ie,Z){return reactExports.useReducer((ee,ae)=>{const ve=Z[ee][ae];return ve??ee},ie)}const $921a889cee6df7e8$export$99c2b779aa4e8b8b=ie=>{const{present:Z,children:ee}=ie,ae=$921a889cee6df7e8$var$usePresence(Z),ve=typeof ee=="function"?ee({present:ae.isPresent}):reactExports.Children.only(ee),ye=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(ae.ref,ve.ref);return typeof ee=="function"||ae.isPresent?reactExports.cloneElement(ve,{ref:ye}):null};$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";function $921a889cee6df7e8$var$usePresence(ie){const[Z,ee]=reactExports.useState(),ae=reactExports.useRef({}),ve=reactExports.useRef(ie),ye=reactExports.useRef("none"),be=ie?"mounted":"unmounted",[Ke,Ye]=$fe963b355347cc68$export$3e6543de14f8614f(be,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return reactExports.useEffect(()=>{const Xe=$921a889cee6df7e8$var$getAnimationName(ae.current);ye.current=Ke==="mounted"?Xe:"none"},[Ke]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{const Xe=ae.current,Qe=ve.current;if(Qe!==ie){const Je=ye.current,rt=$921a889cee6df7e8$var$getAnimationName(Xe);ie?Ye("MOUNT"):rt==="none"||(Xe==null?void 0:Xe.display)==="none"?Ye("UNMOUNT"):Ye(Qe&&Je!==rt?"ANIMATION_OUT":"UNMOUNT"),ve.current=ie}},[ie,Ye]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{if(Z){const Xe=et=>{const rt=$921a889cee6df7e8$var$getAnimationName(ae.current).includes(et.animationName);et.target===Z&&rt&&reactDomExports.flushSync(()=>Ye("ANIMATION_END"))},Qe=et=>{et.target===Z&&(ye.current=$921a889cee6df7e8$var$getAnimationName(ae.current))};return Z.addEventListener("animationstart",Qe),Z.addEventListener("animationcancel",Xe),Z.addEventListener("animationend",Xe),()=>{Z.removeEventListener("animationstart",Qe),Z.removeEventListener("animationcancel",Xe),Z.removeEventListener("animationend",Xe)}}else Ye("ANIMATION_END")},[Z,Ye]),{isPresent:["mounted","unmountSuspended"].includes(Ke),ref:reactExports.useCallback(Xe=>{Xe&&(ae.current=getComputedStyle(Xe)),ee(Xe)},[])}}function $921a889cee6df7e8$var$getAnimationName(ie){return(ie==null?void 0:ie.animationName)||"none"}const $1746a345f3d73bb7$var$useReactId=$2AODx$react.useId||(()=>{});let $1746a345f3d73bb7$var$count=0;function $1746a345f3d73bb7$export$f680877a34711e37(ie){const[Z,ee]=reactExports.useState($1746a345f3d73bb7$var$useReactId());return $9f79659886946c16$export$e5c5a5f917a5871c(()=>{ie||ee(ae=>ae??String($1746a345f3d73bb7$var$count++))},[ie]),ie||(Z?`radix-${Z}`:"")}const $409067139f391064$var$COLLAPSIBLE_NAME="Collapsible",[$409067139f391064$var$createCollapsibleContext,$409067139f391064$export$952b32dcbe73087a]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($409067139f391064$var$COLLAPSIBLE_NAME),[$409067139f391064$var$CollapsibleProvider,$409067139f391064$var$useCollapsibleContext]=$409067139f391064$var$createCollapsibleContext($409067139f391064$var$COLLAPSIBLE_NAME),$409067139f391064$export$6eb0f7ddcda6131f=reactExports.forwardRef((ie,Z)=>{const{__scopeCollapsible:ee,open:ae,defaultOpen:ve,disabled:ye,onOpenChange:be,...Ke}=ie,[Ye=!1,Xe]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:ae,defaultProp:ve,onChange:be});return reactExports.createElement($409067139f391064$var$CollapsibleProvider,{scope:ee,disabled:ye,contentId:$1746a345f3d73bb7$export$f680877a34711e37(),open:Ye,onOpenToggle:reactExports.useCallback(()=>Xe(Qe=>!Qe),[Xe])},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({"data-state":$409067139f391064$var$getState(Ye),"data-disabled":ye?"":void 0},Ke,{ref:Z})))}),$409067139f391064$var$TRIGGER_NAME="CollapsibleTrigger",$409067139f391064$export$c135dce7b15bbbdc=reactExports.forwardRef((ie,Z)=>{const{__scopeCollapsible:ee,...ae}=ie,ve=$409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME,ee);return reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,_extends$1({type:"button","aria-controls":ve.contentId,"aria-expanded":ve.open||!1,"data-state":$409067139f391064$var$getState(ve.open),"data-disabled":ve.disabled?"":void 0,disabled:ve.disabled},ae,{ref:Z,onClick:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onClick,ve.onOpenToggle)}))}),$409067139f391064$var$CONTENT_NAME="CollapsibleContent",$409067139f391064$export$aadde00976f34151=reactExports.forwardRef((ie,Z)=>{const{forceMount:ee,...ae}=ie,ve=$409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME,ie.__scopeCollapsible);return reactExports.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:ee||ve.open},({present:ye})=>reactExports.createElement($409067139f391064$var$CollapsibleContentImpl,_extends$1({},ae,{ref:Z,present:ye})))}),$409067139f391064$var$CollapsibleContentImpl=reactExports.forwardRef((ie,Z)=>{const{__scopeCollapsible:ee,present:ae,children:ve,...ye}=ie,be=$409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME,ee),[Ke,Ye]=reactExports.useState(ae),Xe=reactExports.useRef(null),Qe=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(Z,Xe),et=reactExports.useRef(0),Je=et.current,rt=reactExports.useRef(0),it=rt.current,nt=be.open||Ke,tt=reactExports.useRef(nt),st=reactExports.useRef();return reactExports.useEffect(()=>{const ot=requestAnimationFrame(()=>tt.current=!1);return()=>cancelAnimationFrame(ot)},[]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{const ot=Xe.current;if(ot){st.current=st.current||{transitionDuration:ot.style.transitionDuration,animationName:ot.style.animationName},ot.style.transitionDuration="0s",ot.style.animationName="none";const ut=ot.getBoundingClientRect();et.current=ut.height,rt.current=ut.width,tt.current||(ot.style.transitionDuration=st.current.transitionDuration,ot.style.animationName=st.current.animationName),Ye(ae)}},[be.open,ae]),reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({"data-state":$409067139f391064$var$getState(be.open),"data-disabled":be.disabled?"":void 0,id:be.contentId,hidden:!nt},ye,{ref:Qe,style:{"--radix-collapsible-content-height":Je?`${Je}px`:void 0,"--radix-collapsible-content-width":it?`${it}px`:void 0,...ie.style}}),nt&&ve)});function $409067139f391064$var$getState(ie){return ie?"open":"closed"}const $409067139f391064$export$be92b6f5f03c0fe9=$409067139f391064$export$6eb0f7ddcda6131f,$409067139f391064$export$41fb9f06171c75f4=$409067139f391064$export$c135dce7b15bbbdc,$409067139f391064$export$7c6e2c02157bb7d2=$409067139f391064$export$aadde00976f34151,ErrorBoundaryContext=reactExports.createContext(null),initialState={didCatch:!1,error:null};class ErrorBoundary extends reactExports.Component{constructor(Z){super(Z),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=initialState}static getDerivedStateFromError(Z){return{didCatch:!0,error:Z}}resetErrorBoundary(){const{error:Z}=this.state;if(Z!==null){for(var ee,ae,ve=arguments.length,ye=new Array(ve),be=0;be0&&arguments[0]!==void 0?arguments[0]:[],Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return ie.length!==Z.length||ie.some((ee,ae)=>!Object.is(ee,Z[ae]))}var e="colors",t="sizes",r="space",n={gap:r,gridGap:r,columnGap:r,gridColumnGap:r,rowGap:r,gridRowGap:r,inset:r,insetBlock:r,insetBlockEnd:r,insetBlockStart:r,insetInline:r,insetInlineEnd:r,insetInlineStart:r,margin:r,marginTop:r,marginRight:r,marginBottom:r,marginLeft:r,marginBlock:r,marginBlockEnd:r,marginBlockStart:r,marginInline:r,marginInlineEnd:r,marginInlineStart:r,padding:r,paddingTop:r,paddingRight:r,paddingBottom:r,paddingLeft:r,paddingBlock:r,paddingBlockEnd:r,paddingBlockStart:r,paddingInline:r,paddingInlineEnd:r,paddingInlineStart:r,top:r,right:r,bottom:r,left:r,scrollMargin:r,scrollMarginTop:r,scrollMarginRight:r,scrollMarginBottom:r,scrollMarginLeft:r,scrollMarginX:r,scrollMarginY:r,scrollMarginBlock:r,scrollMarginBlockEnd:r,scrollMarginBlockStart:r,scrollMarginInline:r,scrollMarginInlineEnd:r,scrollMarginInlineStart:r,scrollPadding:r,scrollPaddingTop:r,scrollPaddingRight:r,scrollPaddingBottom:r,scrollPaddingLeft:r,scrollPaddingX:r,scrollPaddingY:r,scrollPaddingBlock:r,scrollPaddingBlockEnd:r,scrollPaddingBlockStart:r,scrollPaddingInline:r,scrollPaddingInlineEnd:r,scrollPaddingInlineStart:r,fontSize:"fontSizes",background:e,backgroundColor:e,backgroundImage:e,borderImage:e,border:e,borderBlock:e,borderBlockEnd:e,borderBlockStart:e,borderBottom:e,borderBottomColor:e,borderColor:e,borderInline:e,borderInlineEnd:e,borderInlineStart:e,borderLeft:e,borderLeftColor:e,borderRight:e,borderRightColor:e,borderTop:e,borderTopColor:e,caretColor:e,color:e,columnRuleColor:e,fill:e,outline:e,outlineColor:e,stroke:e,textDecorationColor:e,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:t,minBlockSize:t,maxBlockSize:t,inlineSize:t,minInlineSize:t,maxInlineSize:t,width:t,minWidth:t,maxWidth:t,height:t,minHeight:t,maxHeight:t,flexBasis:t,gridTemplateColumns:t,gridTemplateRows:t,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},i=(ie,Z)=>typeof Z=="function"?{"()":Function.prototype.toString.call(Z)}:Z,o=()=>{const ie=Object.create(null);return(Z,ee,...ae)=>{const ve=(ye=>JSON.stringify(ye,i))(Z);return ve in ie?ie[ve]:ie[ve]=ee(Z,...ae)}},l=Symbol.for("sxs.internal"),s=(ie,Z)=>Object.defineProperties(ie,Object.getOwnPropertyDescriptors(Z)),a=ie=>{for(const Z in ie)return!0;return!1},{hasOwnProperty:c}=Object.prototype,d=ie=>ie.includes("-")?ie:ie.replace(/[A-Z]/g,Z=>"-"+Z.toLowerCase()),g=/\s+(?![^()]*\))/,p=ie=>Z=>ie(...typeof Z=="string"?String(Z).split(g):[Z]),u={appearance:ie=>({WebkitAppearance:ie,appearance:ie}),backfaceVisibility:ie=>({WebkitBackfaceVisibility:ie,backfaceVisibility:ie}),backdropFilter:ie=>({WebkitBackdropFilter:ie,backdropFilter:ie}),backgroundClip:ie=>({WebkitBackgroundClip:ie,backgroundClip:ie}),boxDecorationBreak:ie=>({WebkitBoxDecorationBreak:ie,boxDecorationBreak:ie}),clipPath:ie=>({WebkitClipPath:ie,clipPath:ie}),content:ie=>({content:ie.includes('"')||ie.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(ie)?ie:`"${ie}"`}),hyphens:ie=>({WebkitHyphens:ie,hyphens:ie}),maskImage:ie=>({WebkitMaskImage:ie,maskImage:ie}),maskSize:ie=>({WebkitMaskSize:ie,maskSize:ie}),tabSize:ie=>({MozTabSize:ie,tabSize:ie}),textSizeAdjust:ie=>({WebkitTextSizeAdjust:ie,textSizeAdjust:ie}),userSelect:ie=>({WebkitUserSelect:ie,userSelect:ie}),marginBlock:p((ie,Z)=>({marginBlockStart:ie,marginBlockEnd:Z||ie})),marginInline:p((ie,Z)=>({marginInlineStart:ie,marginInlineEnd:Z||ie})),maxSize:p((ie,Z)=>({maxBlockSize:ie,maxInlineSize:Z||ie})),minSize:p((ie,Z)=>({minBlockSize:ie,minInlineSize:Z||ie})),paddingBlock:p((ie,Z)=>({paddingBlockStart:ie,paddingBlockEnd:Z||ie})),paddingInline:p((ie,Z)=>({paddingInlineStart:ie,paddingInlineEnd:Z||ie}))},h=/([\d.]+)([^]*)/,f=(ie,Z)=>ie.length?ie.reduce((ee,ae)=>(ee.push(...Z.map(ve=>ve.includes("&")?ve.replace(/&/g,/[ +>|~]/.test(ae)&&/&.*&/.test(ve)?`:is(${ae})`:ae):ae+" "+ve)),ee),[]):Z,m$1=(ie,Z)=>ie in b&&typeof Z=="string"?Z.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(ee,ae,ve,ye)=>ae+(ve==="stretch"?`-moz-available${ye};${d(ie)}:${ae}-webkit-fill-available`:`-moz-fit-content${ye};${d(ie)}:${ae}fit-content`)+ye):String(Z),b={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},S$1=ie=>ie?ie+"-":"",k$1=(ie,Z,ee)=>ie.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(ae,ve,ye,be,Ke)=>be=="$"==!!ye?ae:(ve||be=="--"?"calc(":"")+"var(--"+(be==="$"?S$1(Z)+(Ke.includes("$")?"":S$1(ee))+Ke.replace(/\$/g,"-"):Ke)+")"+(ve||be=="--"?"*"+(ve||"")+(ye||"1")+")":"")),y=/\s*,\s*(?![^()]*\))/,B=Object.prototype.toString,$=(ie,Z,ee,ae,ve)=>{let ye,be,Ke;const Ye=(Xe,Qe,et)=>{let Je,rt;const it=nt=>{for(Je in nt){const ot=Je.charCodeAt(0)===64,ut=ot&&Array.isArray(nt[Je])?nt[Je]:[nt[Je]];for(rt of ut){const ft=/[A-Z]/.test(st=Je)?st:st.replace(/-[^]/g,Xr=>Xr[1].toUpperCase()),pt=typeof rt=="object"&&rt&&rt.toString===B&&(!ae.utils[ft]||!Qe.length);if(ft in ae.utils&&!pt){const Xr=ae.utils[ft];if(Xr!==be){be=Xr,it(Xr(rt)),be=null;continue}}else if(ft in u){const Xr=u[ft];if(Xr!==Ke){Ke=Xr,it(Xr(rt)),Ke=null;continue}}if(ot&&(tt=Je.slice(1)in ae.media?"@media "+ae.media[Je.slice(1)]:Je,Je=tt.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(Xr,mt,Yr,ri,Zr,_r)=>{const Kr=h.test(mt),si=.0625*(Kr?-1:1),[oi,Qr]=Kr?[ri,mt]:[mt,ri];return"("+(Yr[0]==="="?"":Yr[0]===">"===Kr?"max-":"min-")+oi+":"+(Yr[0]!=="="&&Yr.length===1?Qr.replace(h,(ii,ti,ni)=>Number(ti)+si*(Yr===">"?1:-1)+ni):Qr)+(Zr?") and ("+(Zr[0]===">"?"min-":"max-")+oi+":"+(Zr.length===1?_r.replace(h,(ii,ti,ni)=>Number(ti)+si*(Zr===">"?-1:1)+ni):_r):"")+")"})),pt){const Xr=ot?et.concat(Je):[...et],mt=ot?[...Qe]:f(Qe,Je.split(y));ye!==void 0&&ve(x$1(...ye)),ye=void 0,Ye(rt,mt,Xr)}else ye===void 0&&(ye=[[],Qe,et]),Je=ot||Je.charCodeAt(0)!==36?Je:`--${S$1(ae.prefix)}${Je.slice(1).replace(/\$/g,"-")}`,rt=pt?rt:typeof rt=="number"?rt&&ft in I?String(rt)+"px":String(rt):k$1(m$1(ft,rt??""),ae.prefix,ae.themeMap[ft]),ye[0].push(`${ot?`${Je} `:`${d(Je)}:`}${rt}`)}}var tt,st};it(Xe),ye!==void 0&&ve(x$1(...ye)),ye=void 0};Ye(ie,Z,ee)},x$1=(ie,Z,ee)=>`${ee.map(ae=>`${ae}{`).join("")}${Z.length?`${Z.join(",")}{`:""}${ie.join(";")}${Z.length?"}":""}${Array(ee.length?ee.length+1:0).join("}")}`,I={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},R$1=ie=>String.fromCharCode(ie+(ie>25?39:97)),z$1=ie=>(Z=>{let ee,ae="";for(ee=Math.abs(Z);ee>52;ee=ee/52|0)ae=R$1(ee%52)+ae;return R$1(ee%52)+ae})(((Z,ee)=>{let ae=ee.length;for(;ae;)Z=33*Z^ee.charCodeAt(--ae);return Z})(5381,JSON.stringify(ie))>>>0),W$1=["themed","global","styled","onevar","resonevar","allvar","inline"],j$1=ie=>{if(ie.href&&!ie.href.startsWith(location.origin))return!1;try{return!!ie.cssRules}catch{return!1}},E=ie=>{let Z;const ee=()=>{const{cssRules:ve}=Z.sheet;return[].map.call(ve,(ye,be)=>{const{cssText:Ke}=ye;let Ye="";if(Ke.startsWith("--sxs"))return"";if(ve[be-1]&&(Ye=ve[be-1].cssText).startsWith("--sxs")){if(!ye.cssRules.length)return"";for(const Xe in Z.rules)if(Z.rules[Xe].group===ye)return`--sxs{--sxs:${[...Z.rules[Xe].cache].join(" ")}}${Ke}`;return ye.cssRules.length?`${Ye}${Ke}`:""}return Ke}).join("")},ae=()=>{if(Z){const{rules:Ke,sheet:Ye}=Z;if(!Ye.deleteRule){for(;Object(Object(Ye.cssRules)[0]).type===3;)Ye.cssRules.splice(0,1);Ye.cssRules=[]}for(const Xe in Ke)delete Ke[Xe]}const ve=Object(ie).styleSheets||[];for(const Ke of ve)if(j$1(Ke)){for(let Ye=0,Xe=Ke.cssRules;Xe[Ye];++Ye){const Qe=Object(Xe[Ye]);if(Qe.type!==1)continue;const et=Object(Xe[Ye+1]);if(et.type!==4)continue;++Ye;const{cssText:Je}=Qe;if(!Je.startsWith("--sxs"))continue;const rt=Je.slice(14,-3).trim().split(/\s+/),it=W$1[rt[0]];it&&(Z||(Z={sheet:Ke,reset:ae,rules:{},toString:ee}),Z.rules[it]={group:et,index:Ye,cache:new Set(rt)})}if(Z)break}if(!Z){const Ke=(Ye,Xe)=>({type:Xe,cssRules:[],insertRule(Qe,et){this.cssRules.splice(et,0,Ke(Qe,{import:3,undefined:1}[(Qe.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return Ye==="@media{}"?`@media{${[].map.call(this.cssRules,Qe=>Qe.cssText).join("")}}`:Ye}});Z={sheet:ie?(ie.head||ie).appendChild(document.createElement("style")).sheet:Ke("","text/css"),rules:{},reset:ae,toString:ee}}const{sheet:ye,rules:be}=Z;for(let Ke=W$1.length-1;Ke>=0;--Ke){const Ye=W$1[Ke];if(!be[Ye]){const Xe=W$1[Ke+1],Qe=be[Xe]?be[Xe].index:ye.cssRules.length;ye.insertRule("@media{}",Qe),ye.insertRule(`--sxs{--sxs:${Ke}}`,Qe),be[Ye]={group:ye.cssRules[Qe+1],index:Qe,cache:new Set([Ke])}}v(be[Ye])}};return ae(),Z},v=ie=>{const Z=ie.group;let ee=Z.cssRules.length;ie.apply=ae=>{try{Z.insertRule(ae,ee),++ee}catch{}}},T$1=Symbol(),w=o(),M=(ie,Z)=>w(ie,()=>(...ee)=>{let ae={type:null,composers:new Set};for(const ve of ee)if(ve!=null)if(ve[l]){ae.type==null&&(ae.type=ve[l].type);for(const ye of ve[l].composers)ae.composers.add(ye)}else ve.constructor!==Object||ve.$$typeof?ae.type==null&&(ae.type=ve):ae.composers.add(C(ve,ie));return ae.type==null&&(ae.type="span"),ae.composers.size||ae.composers.add(["PJLV",{},[],[],{},[]]),P(ie,ae,Z)}),C=({variants:ie,compoundVariants:Z,defaultVariants:ee,...ae},ve)=>{const ye=`${S$1(ve.prefix)}c-${z$1(ae)}`,be=[],Ke=[],Ye=Object.create(null),Xe=[];for(const Je in ee)Ye[Je]=String(ee[Je]);if(typeof ie=="object"&&ie)for(const Je in ie){Qe=Ye,et=Je,c.call(Qe,et)||(Ye[Je]="undefined");const rt=ie[Je];for(const it in rt){const nt={[Je]:String(it)};String(it)==="undefined"&&Xe.push(Je);const tt=rt[it],st=[nt,tt,!a(tt)];be.push(st)}}var Qe,et;if(typeof Z=="object"&&Z)for(const Je of Z){let{css:rt,...it}=Je;rt=typeof rt=="object"&&rt||{};for(const tt in it)it[tt]=String(it[tt]);const nt=[it,rt,!a(rt)];Ke.push(nt)}return[ye,ae,be,Ke,Ye,Xe]},P=(ie,Z,ee)=>{const[ae,ve,ye,be]=L$1(Z.composers),Ke=typeof Z.type=="function"||Z.type.$$typeof?(et=>{function Je(){for(let rt=0;rtJe.rules[rt]={apply:it=>Je[T$1].push([rt,it])}),Je})(ee):null,Ye=(Ke||ee).rules,Xe=`.${ae}${ve.length>1?`:where(.${ve.slice(1).join(".")})`:""}`,Qe=et=>{et=typeof et=="object"&&et||A;const{css:Je,...rt}=et,it={};for(const st in ye)if(delete rt[st],st in et){let ot=et[st];typeof ot=="object"&&ot?it[st]={"@initial":ye[st],...ot}:(ot=String(ot),it[st]=ot!=="undefined"||be.has(st)?ot:ye[st])}else it[st]=ye[st];const nt=new Set([...ve]);for(const[st,ot,ut,ft]of Z.composers){ee.rules.styled.cache.has(st)||(ee.rules.styled.cache.add(st),$(ot,[`.${st}`],[],ie,mt=>{Ye.styled.apply(mt)}));const pt=O$1(ut,it,ie.media),Xr=O$1(ft,it,ie.media,!0);for(const mt of pt)if(mt!==void 0)for(const[Yr,ri,Zr]of mt){const _r=`${st}-${z$1(ri)}-${Yr}`;nt.add(_r);const Kr=(Zr?ee.rules.resonevar:ee.rules.onevar).cache,si=Zr?Ye.resonevar:Ye.onevar;Kr.has(_r)||(Kr.add(_r),$(ri,[`.${_r}`],[],ie,oi=>{si.apply(oi)}))}for(const mt of Xr)if(mt!==void 0)for(const[Yr,ri]of mt){const Zr=`${st}-${z$1(ri)}-${Yr}`;nt.add(Zr),ee.rules.allvar.cache.has(Zr)||(ee.rules.allvar.cache.add(Zr),$(ri,[`.${Zr}`],[],ie,_r=>{Ye.allvar.apply(_r)}))}}if(typeof Je=="object"&&Je){const st=`${ae}-i${z$1(Je)}-css`;nt.add(st),ee.rules.inline.cache.has(st)||(ee.rules.inline.cache.add(st),$(Je,[`.${st}`],[],ie,ot=>{Ye.inline.apply(ot)}))}for(const st of String(et.className||"").trim().split(/\s+/))st&&nt.add(st);const tt=rt.className=[...nt].join(" ");return{type:Z.type,className:tt,selector:Xe,props:rt,toString:()=>tt,deferredInjector:Ke}};return s(Qe,{className:ae,selector:Xe,[l]:Z,toString:()=>(ee.rules.styled.cache.has(ae)||Qe(),ae)})},L$1=ie=>{let Z="";const ee=[],ae={},ve=[];for(const[ye,,,,be,Ke]of ie){Z===""&&(Z=ye),ee.push(ye),ve.push(...Ke);for(const Ye in be){const Xe=be[Ye];(ae[Ye]===void 0||Xe!=="undefined"||Ke.includes(Xe))&&(ae[Ye]=Xe)}}return[Z,ee,ae,new Set(ve)]},O$1=(ie,Z,ee,ae)=>{const ve=[];e:for(let[ye,be,Ke]of ie){if(Ke)continue;let Ye,Xe=0,Qe=!1;for(Ye in ye){const et=ye[Ye];let Je=Z[Ye];if(Je!==et){if(typeof Je!="object"||!Je)continue e;{let rt,it,nt=0;for(const tt in Je){if(et===String(Je[tt])){if(tt!=="@initial"){const st=tt.slice(1);(it=it||[]).push(st in ee?ee[st]:tt.replace(/^@media ?/,"")),Qe=!0}Xe+=nt,rt=!0}++nt}if(it&&it.length&&(be={["@media "+it.join(", ")]:be}),!rt)continue e}}}(ve[Xe]=ve[Xe]||[]).push([ae?"cv":`${Ye}-${ye[Ye]}`,be,Qe])}return ve},A={},N$1=o(),D$1=(ie,Z)=>N$1(ie,()=>(...ee)=>{const ae=()=>{for(let ve of ee){ve=typeof ve=="object"&&ve||{};let ye=z$1(ve);if(!Z.rules.global.cache.has(ye)){if(Z.rules.global.cache.add(ye),"@import"in ve){let be=[].indexOf.call(Z.sheet.cssRules,Z.rules.themed.group)-1;for(let Ke of[].concat(ve["@import"]))Ke=Ke.includes('"')||Ke.includes("'")?Ke:`"${Ke}"`,Z.sheet.insertRule(`@import ${Ke};`,be++);delete ve["@import"]}$(ve,[],[],ie,be=>{Z.rules.global.apply(be)})}}return""};return s(ae,{toString:ae})}),H=o(),V=(ie,Z)=>H(ie,()=>ee=>{const ae=`${S$1(ie.prefix)}k-${z$1(ee)}`,ve=()=>{if(!Z.rules.global.cache.has(ae)){Z.rules.global.cache.add(ae);const ye=[];$(ee,[],[],ie,Ke=>ye.push(Ke));const be=`@keyframes ${ae}{${ye.join("")}}`;Z.rules.global.apply(be)}return ae};return s(ve,{get name(){return ve()},toString:ve})}),G=class{constructor(ie,Z,ee,ae){this.token=ie==null?"":String(ie),this.value=Z==null?"":String(Z),this.scale=ee==null?"":String(ee),this.prefix=ae==null?"":String(ae)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+S$1(this.prefix)+S$1(this.scale)+this.token}toString(){return this.computedValue}},F=o(),J$1=(ie,Z)=>F(ie,()=>(ee,ae)=>{ae=typeof ee=="object"&&ee||Object(ae);const ve=`.${ee=(ee=typeof ee=="string"?ee:"")||`${S$1(ie.prefix)}t-${z$1(ae)}`}`,ye={},be=[];for(const Ye in ae){ye[Ye]={};for(const Xe in ae[Ye]){const Qe=`--${S$1(ie.prefix)}${Ye}-${Xe}`,et=k$1(String(ae[Ye][Xe]),ie.prefix,Ye);ye[Ye][Xe]=new G(Xe,et,Ye,ie.prefix),be.push(`${Qe}:${et}`)}}const Ke=()=>{if(be.length&&!Z.rules.themed.cache.has(ee)){Z.rules.themed.cache.add(ee);const Ye=`${ae===ie.theme?":root,":""}.${ee}{${be.join(";")}}`;Z.rules.themed.apply(Ye)}return ee};return{...ye,get className(){return Ke()},selector:ve,toString:Ke}}),U=o(),X$1,Y$1=o(),q=ie=>{const Z=(ee=>{let ae=!1;const ve=U(ee,ye=>{ae=!0;const be="prefix"in(ye=typeof ye=="object"&&ye||{})?String(ye.prefix):"",Ke=typeof ye.media=="object"&&ye.media||{},Ye=typeof ye.root=="object"?ye.root||null:globalThis.document||null,Xe=typeof ye.theme=="object"&&ye.theme||{},Qe={prefix:be,media:Ke,theme:Xe,themeMap:typeof ye.themeMap=="object"&&ye.themeMap||{...n},utils:typeof ye.utils=="object"&&ye.utils||{}},et=E(Ye),Je={css:M(Qe,et),globalCss:D$1(Qe,et),keyframes:V(Qe,et),createTheme:J$1(Qe,et),reset(){et.reset(),Je.theme.toString()},theme:{},sheet:et,config:Qe,prefix:be,getCssText:et.toString,toString:et.toString};return String(Je.theme=Je.createTheme(Xe)),Je});return ae||ve.reset(),ve})(ie);return Z.styled=(({config:ee,sheet:ae})=>Y$1(ee,()=>{const ve=M(ee,ae);return(...ye)=>{const be=ve(...ye),Ke=be[l].type,Ye=e$1.forwardRef((Xe,Qe)=>{const et=Xe&&Xe.as||Ke,{props:Je,deferredInjector:rt}=be(Xe);return delete Je.as,Je.ref=Qe,rt?e$1.createElement(e$1.Fragment,null,e$1.createElement(et,Je),e$1.createElement(rt,null)):e$1.createElement(et,Je)});return Ye.className=be.className,Ye.displayName=`Styled.${Ke.displayName||Ke.name||Ke}`,Ye.selector=be.selector,Ye.toString=()=>be.selector,Ye[l]=be[l],Ye}}))(Z),Z},K$1=()=>X$1||(X$1=q()),Q$1=(...ie)=>K$1().createTheme(...ie);function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(ie){const Z=ie+"CollectionProvider",[ee,ae]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(Z),[ve,ye]=ee(Z,{collectionRef:{current:null},itemMap:new Map}),be=rt=>{const{scope:it,children:nt}=rt,tt=e$1.useRef(null),st=e$1.useRef(new Map).current;return e$1.createElement(ve,{scope:it,itemMap:st,collectionRef:tt},nt)},Ke=ie+"CollectionSlot",Ye=e$1.forwardRef((rt,it)=>{const{scope:nt,children:tt}=rt,st=ye(Ke,nt),ot=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(it,st.collectionRef);return e$1.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360,{ref:ot},tt)}),Xe=ie+"CollectionItemSlot",Qe="data-radix-collection-item",et=e$1.forwardRef((rt,it)=>{const{scope:nt,children:tt,...st}=rt,ot=e$1.useRef(null),ut=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(it,ot),ft=ye(Xe,nt);return e$1.useEffect(()=>(ft.itemMap.set(ot,{ref:ot,...st}),()=>void ft.itemMap.delete(ot))),e$1.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360,{[Qe]:"",ref:ut},tt)});function Je(rt){const it=ye(ie+"CollectionConsumer",rt);return e$1.useCallback(()=>{const tt=it.collectionRef.current;if(!tt)return[];const st=Array.from(tt.querySelectorAll(`[${Qe}]`));return Array.from(it.itemMap.values()).sort((ft,pt)=>st.indexOf(ft.ref.current)-st.indexOf(pt.ref.current))},[it.collectionRef,it.itemMap])}return[{Provider:be,Slot:Ye,ItemSlot:et},Je,ae]}const $f631663db3294ace$var$DirectionContext=reactExports.createContext(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(ie){const Z=reactExports.useContext($f631663db3294ace$var$DirectionContext);return ie||Z||"ltr"}const $d7bdfb9eb0fdf311$var$ENTRY_FOCUS="rovingFocusGroup.onEntryFocus",$d7bdfb9eb0fdf311$var$EVENT_OPTIONS={bubbles:!1,cancelable:!0},$d7bdfb9eb0fdf311$var$GROUP_NAME="RovingFocusGroup",[$d7bdfb9eb0fdf311$var$Collection,$d7bdfb9eb0fdf311$var$useCollection,$d7bdfb9eb0fdf311$var$createCollectionScope]=$e02a7d9cb1dc128c$export$c74125a8e3af6bb2($d7bdfb9eb0fdf311$var$GROUP_NAME),[$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext,$d7bdfb9eb0fdf311$export$c7109489551a4f4]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($d7bdfb9eb0fdf311$var$GROUP_NAME,[$d7bdfb9eb0fdf311$var$createCollectionScope]),[$d7bdfb9eb0fdf311$var$RovingFocusProvider,$d7bdfb9eb0fdf311$var$useRovingFocusContext]=$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext($d7bdfb9eb0fdf311$var$GROUP_NAME),$d7bdfb9eb0fdf311$export$8699f7c8af148338=reactExports.forwardRef((ie,Z)=>reactExports.createElement($d7bdfb9eb0fdf311$var$Collection.Provider,{scope:ie.__scopeRovingFocusGroup},reactExports.createElement($d7bdfb9eb0fdf311$var$Collection.Slot,{scope:ie.__scopeRovingFocusGroup},reactExports.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl,_extends$1({},ie,{ref:Z}))))),$d7bdfb9eb0fdf311$var$RovingFocusGroupImpl=reactExports.forwardRef((ie,Z)=>{const{__scopeRovingFocusGroup:ee,orientation:ae,loop:ve=!1,dir:ye,currentTabStopId:be,defaultCurrentTabStopId:Ke,onCurrentTabStopIdChange:Ye,onEntryFocus:Xe,...Qe}=ie,et=reactExports.useRef(null),Je=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(Z,et),rt=$f631663db3294ace$export$b39126d51d94e6f3(ye),[it=null,nt]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:be,defaultProp:Ke,onChange:Ye}),[tt,st]=reactExports.useState(!1),ot=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(Xe),ut=$d7bdfb9eb0fdf311$var$useCollection(ee),ft=reactExports.useRef(!1),[pt,Xr]=reactExports.useState(0);return reactExports.useEffect(()=>{const mt=et.current;if(mt)return mt.addEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS,ot),()=>mt.removeEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS,ot)},[ot]),reactExports.createElement($d7bdfb9eb0fdf311$var$RovingFocusProvider,{scope:ee,orientation:ae,dir:rt,loop:ve,currentTabStopId:it,onItemFocus:reactExports.useCallback(mt=>nt(mt),[nt]),onItemShiftTab:reactExports.useCallback(()=>st(!0),[]),onFocusableItemAdd:reactExports.useCallback(()=>Xr(mt=>mt+1),[]),onFocusableItemRemove:reactExports.useCallback(()=>Xr(mt=>mt-1),[])},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({tabIndex:tt||pt===0?-1:0,"data-orientation":ae},Qe,{ref:Je,style:{outline:"none",...ie.style},onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onMouseDown,()=>{ft.current=!0}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onFocus,mt=>{const Yr=!ft.current;if(mt.target===mt.currentTarget&&Yr&&!tt){const ri=new CustomEvent($d7bdfb9eb0fdf311$var$ENTRY_FOCUS,$d7bdfb9eb0fdf311$var$EVENT_OPTIONS);if(mt.currentTarget.dispatchEvent(ri),!ri.defaultPrevented){const Zr=ut().filter(Qr=>Qr.focusable),_r=Zr.find(Qr=>Qr.active),Kr=Zr.find(Qr=>Qr.id===it),oi=[_r,Kr,...Zr].filter(Boolean).map(Qr=>Qr.ref.current);$d7bdfb9eb0fdf311$var$focusFirst(oi)}}ft.current=!1}),onBlur:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onBlur,()=>st(!1))})))}),$d7bdfb9eb0fdf311$var$ITEM_NAME="RovingFocusGroupItem",$d7bdfb9eb0fdf311$export$ab9df7c53fe8454=reactExports.forwardRef((ie,Z)=>{const{__scopeRovingFocusGroup:ee,focusable:ae=!0,active:ve=!1,tabStopId:ye,...be}=ie,Ke=$1746a345f3d73bb7$export$f680877a34711e37(),Ye=ye||Ke,Xe=$d7bdfb9eb0fdf311$var$useRovingFocusContext($d7bdfb9eb0fdf311$var$ITEM_NAME,ee),Qe=Xe.currentTabStopId===Ye,et=$d7bdfb9eb0fdf311$var$useCollection(ee),{onFocusableItemAdd:Je,onFocusableItemRemove:rt}=Xe;return reactExports.useEffect(()=>{if(ae)return Je(),()=>rt()},[ae,Je,rt]),reactExports.createElement($d7bdfb9eb0fdf311$var$Collection.ItemSlot,{scope:ee,id:Ye,focusable:ae,active:ve},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span,_extends$1({tabIndex:Qe?0:-1,"data-orientation":Xe.orientation},be,{ref:Z,onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onMouseDown,it=>{ae?Xe.onItemFocus(Ye):it.preventDefault()}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onFocus,()=>Xe.onItemFocus(Ye)),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onKeyDown,it=>{if(it.key==="Tab"&&it.shiftKey){Xe.onItemShiftTab();return}if(it.target!==it.currentTarget)return;const nt=$d7bdfb9eb0fdf311$var$getFocusIntent(it,Xe.orientation,Xe.dir);if(nt!==void 0){it.preventDefault();let st=et().filter(ot=>ot.focusable).map(ot=>ot.ref.current);if(nt==="last")st.reverse();else if(nt==="prev"||nt==="next"){nt==="prev"&&st.reverse();const ot=st.indexOf(it.currentTarget);st=Xe.loop?$d7bdfb9eb0fdf311$var$wrapArray(st,ot+1):st.slice(ot+1)}setTimeout(()=>$d7bdfb9eb0fdf311$var$focusFirst(st))}})})))}),$d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $d7bdfb9eb0fdf311$var$getDirectionAwareKey(ie,Z){return Z!=="rtl"?ie:ie==="ArrowLeft"?"ArrowRight":ie==="ArrowRight"?"ArrowLeft":ie}function $d7bdfb9eb0fdf311$var$getFocusIntent(ie,Z,ee){const ae=$d7bdfb9eb0fdf311$var$getDirectionAwareKey(ie.key,ee);if(!(Z==="vertical"&&["ArrowLeft","ArrowRight"].includes(ae))&&!(Z==="horizontal"&&["ArrowUp","ArrowDown"].includes(ae)))return $d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT[ae]}function $d7bdfb9eb0fdf311$var$focusFirst(ie){const Z=document.activeElement;for(const ee of ie)if(ee===Z||(ee.focus(),document.activeElement!==Z))return}function $d7bdfb9eb0fdf311$var$wrapArray(ie,Z){return ie.map((ee,ae)=>ie[(Z+ae)%ie.length])}const $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9=$d7bdfb9eb0fdf311$export$8699f7c8af148338,$d7bdfb9eb0fdf311$export$6d08773d2e66f8f2=$d7bdfb9eb0fdf311$export$ab9df7c53fe8454,$69cb30bb0017df05$var$TABS_NAME="Tabs",[$69cb30bb0017df05$var$createTabsContext,$69cb30bb0017df05$export$355f5bd209d7b13a]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($69cb30bb0017df05$var$TABS_NAME,[$d7bdfb9eb0fdf311$export$c7109489551a4f4]),$69cb30bb0017df05$var$useRovingFocusGroupScope=$d7bdfb9eb0fdf311$export$c7109489551a4f4(),[$69cb30bb0017df05$var$TabsProvider,$69cb30bb0017df05$var$useTabsContext]=$69cb30bb0017df05$var$createTabsContext($69cb30bb0017df05$var$TABS_NAME),$69cb30bb0017df05$export$b2539bed5023c21c=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,value:ae,onValueChange:ve,defaultValue:ye,orientation:be="horizontal",dir:Ke,activationMode:Ye="automatic",...Xe}=ie,Qe=$f631663db3294ace$export$b39126d51d94e6f3(Ke),[et,Je]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:ae,onChange:ve,defaultProp:ye});return reactExports.createElement($69cb30bb0017df05$var$TabsProvider,{scope:ee,baseId:$1746a345f3d73bb7$export$f680877a34711e37(),value:et,onValueChange:Je,orientation:be,dir:Qe,activationMode:Ye},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({dir:Qe,"data-orientation":be},Xe,{ref:Z})))}),$69cb30bb0017df05$var$TAB_LIST_NAME="TabsList",$69cb30bb0017df05$export$9712d22edc0d78c1=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,loop:ae=!0,...ve}=ie,ye=$69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TAB_LIST_NAME,ee),be=$69cb30bb0017df05$var$useRovingFocusGroupScope(ee);return reactExports.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9,_extends$1({asChild:!0},be,{orientation:ye.orientation,dir:ye.dir,loop:ae}),reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({role:"tablist","aria-orientation":ye.orientation},ve,{ref:Z})))}),$69cb30bb0017df05$var$TRIGGER_NAME="TabsTrigger",$69cb30bb0017df05$export$8114b9fdfdf9f3ba=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,value:ae,disabled:ve=!1,...ye}=ie,be=$69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TRIGGER_NAME,ee),Ke=$69cb30bb0017df05$var$useRovingFocusGroupScope(ee),Ye=$69cb30bb0017df05$var$makeTriggerId(be.baseId,ae),Xe=$69cb30bb0017df05$var$makeContentId(be.baseId,ae),Qe=ae===be.value;return reactExports.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2,_extends$1({asChild:!0},Ke,{focusable:!ve,active:Qe}),reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,_extends$1({type:"button",role:"tab","aria-selected":Qe,"aria-controls":Xe,"data-state":Qe?"active":"inactive","data-disabled":ve?"":void 0,disabled:ve,id:Ye},ye,{ref:Z,onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onMouseDown,et=>{!ve&&et.button===0&&et.ctrlKey===!1?be.onValueChange(ae):et.preventDefault()}),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onKeyDown,et=>{[" ","Enter"].includes(et.key)&&be.onValueChange(ae)}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onFocus,()=>{const et=be.activationMode!=="manual";!Qe&&!ve&&et&&be.onValueChange(ae)})})))}),$69cb30bb0017df05$var$CONTENT_NAME="TabsContent",$69cb30bb0017df05$export$bd905d70e8fd2ebb=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,value:ae,forceMount:ve,children:ye,...be}=ie,Ke=$69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$CONTENT_NAME,ee),Ye=$69cb30bb0017df05$var$makeTriggerId(Ke.baseId,ae),Xe=$69cb30bb0017df05$var$makeContentId(Ke.baseId,ae),Qe=ae===Ke.value,et=reactExports.useRef(Qe);return reactExports.useEffect(()=>{const Je=requestAnimationFrame(()=>et.current=!1);return()=>cancelAnimationFrame(Je)},[]),reactExports.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:ve||Qe},({present:Je})=>reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({"data-state":Qe?"active":"inactive","data-orientation":Ke.orientation,role:"tabpanel","aria-labelledby":Ye,hidden:!Je,id:Xe,tabIndex:0},be,{ref:Z,style:{...ie.style,animationDuration:et.current?"0s":void 0}}),Je&&ye))});function $69cb30bb0017df05$var$makeTriggerId(ie,Z){return`${ie}-trigger-${Z}`}function $69cb30bb0017df05$var$makeContentId(ie,Z){return`${ie}-content-${Z}`}const $69cb30bb0017df05$export$be92b6f5f03c0fe9=$69cb30bb0017df05$export$b2539bed5023c21c,$69cb30bb0017df05$export$54c2e3dc7acea9f5=$69cb30bb0017df05$export$9712d22edc0d78c1,$69cb30bb0017df05$export$41fb9f06171c75f4=$69cb30bb0017df05$export$8114b9fdfdf9f3ba,$69cb30bb0017df05$export$7c6e2c02157bb7d2=$69cb30bb0017df05$export$bd905d70e8fd2ebb;var lib$5={},Parser$3={},Tokenizer={},decode={},decodeDataHtml={};Object.defineProperty(decodeDataHtml,"__esModule",{value:!0});decodeDataHtml.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(ie){return ie.charCodeAt(0)}));var decodeDataXml={};Object.defineProperty(decodeDataXml,"__esModule",{value:!0});decodeDataXml.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(ie){return ie.charCodeAt(0)}));var decode_codepoint={};(function(ie){var Z;Object.defineProperty(ie,"__esModule",{value:!0}),ie.replaceCodePoint=ie.fromCodePoint=void 0;var ee=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);ie.fromCodePoint=(Z=String.fromCodePoint)!==null&&Z!==void 0?Z:function(ye){var be="";return ye>65535&&(ye-=65536,be+=String.fromCharCode(ye>>>10&1023|55296),ye=56320|ye&1023),be+=String.fromCharCode(ye),be};function ae(ye){var be;return ye>=55296&&ye<=57343||ye>1114111?65533:(be=ee.get(ye))!==null&&be!==void 0?be:ye}ie.replaceCodePoint=ae;function ve(ye){return(0,ie.fromCodePoint)(ae(ye))}ie.default=ve})(decode_codepoint);(function(ie){var Z=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_r,Kr,si,oi){oi===void 0&&(oi=si);var Qr=Object.getOwnPropertyDescriptor(Kr,si);(!Qr||("get"in Qr?!Kr.__esModule:Qr.writable||Qr.configurable))&&(Qr={enumerable:!0,get:function(){return Kr[si]}}),Object.defineProperty(_r,oi,Qr)}:function(_r,Kr,si,oi){oi===void 0&&(oi=si),_r[oi]=Kr[si]}),ee=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_r,Kr){Object.defineProperty(_r,"default",{enumerable:!0,value:Kr})}:function(_r,Kr){_r.default=Kr}),ae=commonjsGlobal&&commonjsGlobal.__importStar||function(_r){if(_r&&_r.__esModule)return _r;var Kr={};if(_r!=null)for(var si in _r)si!=="default"&&Object.prototype.hasOwnProperty.call(_r,si)&&Z(Kr,_r,si);return ee(Kr,_r),Kr},ve=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(ie,"__esModule",{value:!0}),ie.decodeXML=ie.decodeHTMLStrict=ie.decodeHTMLAttribute=ie.decodeHTML=ie.determineBranch=ie.EntityDecoder=ie.DecodingMode=ie.BinTrieFlags=ie.fromCodePoint=ie.replaceCodePoint=ie.decodeCodePoint=ie.xmlDecodeTree=ie.htmlDecodeTree=void 0;var ye=ve(decodeDataHtml);ie.htmlDecodeTree=ye.default;var be=ve(decodeDataXml);ie.xmlDecodeTree=be.default;var Ke=ae(decode_codepoint);ie.decodeCodePoint=Ke.default;var Ye=decode_codepoint;Object.defineProperty(ie,"replaceCodePoint",{enumerable:!0,get:function(){return Ye.replaceCodePoint}}),Object.defineProperty(ie,"fromCodePoint",{enumerable:!0,get:function(){return Ye.fromCodePoint}});var Xe;(function(_r){_r[_r.NUM=35]="NUM",_r[_r.SEMI=59]="SEMI",_r[_r.EQUALS=61]="EQUALS",_r[_r.ZERO=48]="ZERO",_r[_r.NINE=57]="NINE",_r[_r.LOWER_A=97]="LOWER_A",_r[_r.LOWER_F=102]="LOWER_F",_r[_r.LOWER_X=120]="LOWER_X",_r[_r.LOWER_Z=122]="LOWER_Z",_r[_r.UPPER_A=65]="UPPER_A",_r[_r.UPPER_F=70]="UPPER_F",_r[_r.UPPER_Z=90]="UPPER_Z"})(Xe||(Xe={}));var Qe=32,et;(function(_r){_r[_r.VALUE_LENGTH=49152]="VALUE_LENGTH",_r[_r.BRANCH_LENGTH=16256]="BRANCH_LENGTH",_r[_r.JUMP_TABLE=127]="JUMP_TABLE"})(et=ie.BinTrieFlags||(ie.BinTrieFlags={}));function Je(_r){return _r>=Xe.ZERO&&_r<=Xe.NINE}function rt(_r){return _r>=Xe.UPPER_A&&_r<=Xe.UPPER_F||_r>=Xe.LOWER_A&&_r<=Xe.LOWER_F}function it(_r){return _r>=Xe.UPPER_A&&_r<=Xe.UPPER_Z||_r>=Xe.LOWER_A&&_r<=Xe.LOWER_Z||Je(_r)}function nt(_r){return _r===Xe.EQUALS||it(_r)}var tt;(function(_r){_r[_r.EntityStart=0]="EntityStart",_r[_r.NumericStart=1]="NumericStart",_r[_r.NumericDecimal=2]="NumericDecimal",_r[_r.NumericHex=3]="NumericHex",_r[_r.NamedEntity=4]="NamedEntity"})(tt||(tt={}));var st;(function(_r){_r[_r.Legacy=0]="Legacy",_r[_r.Strict=1]="Strict",_r[_r.Attribute=2]="Attribute"})(st=ie.DecodingMode||(ie.DecodingMode={}));var ot=function(){function _r(Kr,si,oi){this.decodeTree=Kr,this.emitCodePoint=si,this.errors=oi,this.state=tt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=st.Strict}return _r.prototype.startEntity=function(Kr){this.decodeMode=Kr,this.state=tt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},_r.prototype.write=function(Kr,si){switch(this.state){case tt.EntityStart:return Kr.charCodeAt(si)===Xe.NUM?(this.state=tt.NumericStart,this.consumed+=1,this.stateNumericStart(Kr,si+1)):(this.state=tt.NamedEntity,this.stateNamedEntity(Kr,si));case tt.NumericStart:return this.stateNumericStart(Kr,si);case tt.NumericDecimal:return this.stateNumericDecimal(Kr,si);case tt.NumericHex:return this.stateNumericHex(Kr,si);case tt.NamedEntity:return this.stateNamedEntity(Kr,si)}},_r.prototype.stateNumericStart=function(Kr,si){return si>=Kr.length?-1:(Kr.charCodeAt(si)|Qe)===Xe.LOWER_X?(this.state=tt.NumericHex,this.consumed+=1,this.stateNumericHex(Kr,si+1)):(this.state=tt.NumericDecimal,this.stateNumericDecimal(Kr,si))},_r.prototype.addToNumericResult=function(Kr,si,oi,Qr){if(si!==oi){var ii=oi-si;this.result=this.result*Math.pow(Qr,ii)+parseInt(Kr.substr(si,ii),Qr),this.consumed+=ii}},_r.prototype.stateNumericHex=function(Kr,si){for(var oi=si;si>14;si>14,ii!==0){if(ti===Xe.SEMI)return this.emitNamedEntityData(this.treeIndex,ii,this.consumed+this.excess);this.decodeMode!==st.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},_r.prototype.emitNotTerminatedNamedEntity=function(){var Kr,si=this,oi=si.result,Qr=si.decodeTree,ii=(Qr[oi]&et.VALUE_LENGTH)>>14;return this.emitNamedEntityData(oi,ii,this.consumed),(Kr=this.errors)===null||Kr===void 0||Kr.missingSemicolonAfterCharacterReference(),this.consumed},_r.prototype.emitNamedEntityData=function(Kr,si,oi){var Qr=this.decodeTree;return this.emitCodePoint(si===1?Qr[Kr]&~et.VALUE_LENGTH:Qr[Kr+1],oi),si===3&&this.emitCodePoint(Qr[Kr+2],oi),oi},_r.prototype.end=function(){var Kr;switch(this.state){case tt.NamedEntity:return this.result!==0&&(this.decodeMode!==st.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case tt.NumericDecimal:return this.emitNumericEntity(0,2);case tt.NumericHex:return this.emitNumericEntity(0,3);case tt.NumericStart:return(Kr=this.errors)===null||Kr===void 0||Kr.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tt.EntityStart:return 0}},_r}();ie.EntityDecoder=ot;function ut(_r){var Kr="",si=new ot(_r,function(oi){return Kr+=(0,Ke.fromCodePoint)(oi)});return function(Qr,ii){for(var ti=0,ni=0;(ni=Qr.indexOf("&",ni))>=0;){Kr+=Qr.slice(ti,ni),si.startEntity(ii);var ui=si.write(Qr,ni+1);if(ui<0){ti=ni+si.end();break}ti=ni+ui,ni=ui===0?ti+1:ti}var yi=Kr+Qr.slice(ti);return Kr="",yi}}function ft(_r,Kr,si,oi){var Qr=(Kr&et.BRANCH_LENGTH)>>7,ii=Kr&et.JUMP_TABLE;if(Qr===0)return ii!==0&&oi===ii?si:-1;if(ii){var ti=oi-ii;return ti<0||ti>=Qr?-1:_r[si+ti]-1}for(var ni=si,ui=ni+Qr-1;ni<=ui;){var yi=ni+ui>>>1,pi=_r[yi];if(pioi)ui=yi-1;else return _r[yi+Qr]}return-1}ie.determineBranch=ft;var pt=ut(ye.default),Xr=ut(be.default);function mt(_r,Kr){return Kr===void 0&&(Kr=st.Legacy),pt(_r,Kr)}ie.decodeHTML=mt;function Yr(_r){return pt(_r,st.Attribute)}ie.decodeHTMLAttribute=Yr;function ri(_r){return pt(_r,st.Strict)}ie.decodeHTMLStrict=ri;function Zr(_r){return Xr(_r,st.Strict)}ie.decodeXML=Zr})(decode);(function(ie){Object.defineProperty(ie,"__esModule",{value:!0}),ie.QuoteType=void 0;var Z=decode,ee;(function(Je){Je[Je.Tab=9]="Tab",Je[Je.NewLine=10]="NewLine",Je[Je.FormFeed=12]="FormFeed",Je[Je.CarriageReturn=13]="CarriageReturn",Je[Je.Space=32]="Space",Je[Je.ExclamationMark=33]="ExclamationMark",Je[Je.Number=35]="Number",Je[Je.Amp=38]="Amp",Je[Je.SingleQuote=39]="SingleQuote",Je[Je.DoubleQuote=34]="DoubleQuote",Je[Je.Dash=45]="Dash",Je[Je.Slash=47]="Slash",Je[Je.Zero=48]="Zero",Je[Je.Nine=57]="Nine",Je[Je.Semi=59]="Semi",Je[Je.Lt=60]="Lt",Je[Je.Eq=61]="Eq",Je[Je.Gt=62]="Gt",Je[Je.Questionmark=63]="Questionmark",Je[Je.UpperA=65]="UpperA",Je[Je.LowerA=97]="LowerA",Je[Je.UpperF=70]="UpperF",Je[Je.LowerF=102]="LowerF",Je[Je.UpperZ=90]="UpperZ",Je[Je.LowerZ=122]="LowerZ",Je[Je.LowerX=120]="LowerX",Je[Je.OpeningSquareBracket=91]="OpeningSquareBracket"})(ee||(ee={}));var ae;(function(Je){Je[Je.Text=1]="Text",Je[Je.BeforeTagName=2]="BeforeTagName",Je[Je.InTagName=3]="InTagName",Je[Je.InSelfClosingTag=4]="InSelfClosingTag",Je[Je.BeforeClosingTagName=5]="BeforeClosingTagName",Je[Je.InClosingTagName=6]="InClosingTagName",Je[Je.AfterClosingTagName=7]="AfterClosingTagName",Je[Je.BeforeAttributeName=8]="BeforeAttributeName",Je[Je.InAttributeName=9]="InAttributeName",Je[Je.AfterAttributeName=10]="AfterAttributeName",Je[Je.BeforeAttributeValue=11]="BeforeAttributeValue",Je[Je.InAttributeValueDq=12]="InAttributeValueDq",Je[Je.InAttributeValueSq=13]="InAttributeValueSq",Je[Je.InAttributeValueNq=14]="InAttributeValueNq",Je[Je.BeforeDeclaration=15]="BeforeDeclaration",Je[Je.InDeclaration=16]="InDeclaration",Je[Je.InProcessingInstruction=17]="InProcessingInstruction",Je[Je.BeforeComment=18]="BeforeComment",Je[Je.CDATASequence=19]="CDATASequence",Je[Je.InSpecialComment=20]="InSpecialComment",Je[Je.InCommentLike=21]="InCommentLike",Je[Je.BeforeSpecialS=22]="BeforeSpecialS",Je[Je.SpecialStartSequence=23]="SpecialStartSequence",Je[Je.InSpecialTag=24]="InSpecialTag",Je[Je.BeforeEntity=25]="BeforeEntity",Je[Je.BeforeNumericEntity=26]="BeforeNumericEntity",Je[Je.InNamedEntity=27]="InNamedEntity",Je[Je.InNumericEntity=28]="InNumericEntity",Je[Je.InHexEntity=29]="InHexEntity"})(ae||(ae={}));function ve(Je){return Je===ee.Space||Je===ee.NewLine||Je===ee.Tab||Je===ee.FormFeed||Je===ee.CarriageReturn}function ye(Je){return Je===ee.Slash||Je===ee.Gt||ve(Je)}function be(Je){return Je>=ee.Zero&&Je<=ee.Nine}function Ke(Je){return Je>=ee.LowerA&&Je<=ee.LowerZ||Je>=ee.UpperA&&Je<=ee.UpperZ}function Ye(Je){return Je>=ee.UpperA&&Je<=ee.UpperF||Je>=ee.LowerA&&Je<=ee.LowerF}var Xe;(function(Je){Je[Je.NoValue=0]="NoValue",Je[Je.Unquoted=1]="Unquoted",Je[Je.Single=2]="Single",Je[Je.Double=3]="Double"})(Xe=ie.QuoteType||(ie.QuoteType={}));var Qe={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},et=function(){function Je(rt,it){var nt=rt.xmlMode,tt=nt===void 0?!1:nt,st=rt.decodeEntities,ot=st===void 0?!0:st;this.cbs=it,this.state=ae.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ae.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=tt,this.decodeEntities=ot,this.entityTrie=tt?Z.xmlDecodeTree:Z.htmlDecodeTree}return Je.prototype.reset=function(){this.state=ae.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ae.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},Je.prototype.write=function(rt){this.offset+=this.buffer.length,this.buffer=rt,this.parse()},Je.prototype.end=function(){this.running&&this.finish()},Je.prototype.pause=function(){this.running=!1},Je.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ae.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&rt===ee.Amp&&(this.state=ae.BeforeEntity)},Je.prototype.stateSpecialStartSequence=function(rt){var it=this.sequenceIndex===this.currentSequence.length,nt=it?ye(rt):(rt|32)===this.currentSequence[this.sequenceIndex];if(!nt)this.isSpecial=!1;else if(!it){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=ae.InTagName,this.stateInTagName(rt)},Je.prototype.stateInSpecialTag=function(rt){if(this.sequenceIndex===this.currentSequence.length){if(rt===ee.Gt||ve(rt)){var it=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&rt!==ee.Semi)this.trieIndex+=nt;else{var tt=this.index-this.entityExcess+1;tt>this.sectionStart&&this.emitPartial(this.sectionStart,tt),this.entityResult=this.trieIndex,this.trieIndex+=nt,this.entityExcess=0,this.sectionStart=this.index+1,nt===0&&this.emitNamedEntity()}}},Je.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var rt=(this.entityTrie[this.entityResult]&Z.BinTrieFlags.VALUE_LENGTH)>>14;switch(rt){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~Z.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},Je.prototype.stateBeforeNumericEntity=function(rt){(rt|32)===ee.LowerX?(this.entityExcess++,this.state=ae.InHexEntity):(this.state=ae.InNumericEntity,this.stateInNumericEntity(rt))},Je.prototype.emitNumericEntity=function(rt){var it=this.index-this.entityExcess-1,nt=it+2+ +(this.state===ae.InHexEntity);nt!==this.index&&(it>this.sectionStart&&this.emitPartial(this.sectionStart,it),this.sectionStart=this.index+Number(rt),this.emitCodePoint((0,Z.replaceCodePoint)(this.entityResult))),this.state=this.baseState},Je.prototype.stateInNumericEntity=function(rt){rt===ee.Semi?this.emitNumericEntity(!0):be(rt)?(this.entityResult=this.entityResult*10+(rt-ee.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},Je.prototype.stateInHexEntity=function(rt){rt===ee.Semi?this.emitNumericEntity(!0):be(rt)?(this.entityResult=this.entityResult*16+(rt-ee.Zero),this.entityExcess++):Ye(rt)?(this.entityResult=this.entityResult*16+((rt|32)-ee.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},Je.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===ae.Text||this.baseState===ae.InSpecialTag)},Je.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===ae.Text||this.state===ae.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===ae.InAttributeValueDq||this.state===ae.InAttributeValueSq||this.state===ae.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},Je.prototype.shouldContinue=function(){return this.index0&&be.has(this.stack[this.stack.length-1]);){var Ke=this.stack.pop();(ae=(ee=this.cbs).onclosetag)===null||ae===void 0||ae.call(ee,Ke,!0)}this.isVoidElement(Z)||(this.stack.push(Z),foreignContextElements.has(Z)?this.foreignContext.push(!0):htmlIntegrationElements.has(Z)&&this.foreignContext.push(!1)),(ye=(ve=this.cbs).onopentagname)===null||ye===void 0||ye.call(ve,Z),this.cbs.onopentag&&(this.attribs={})},ie.prototype.endOpenTag=function(Z){var ee,ae;this.startIndex=this.openTagStart,this.attribs&&((ae=(ee=this.cbs).onopentag)===null||ae===void 0||ae.call(ee,this.tagname,this.attribs,Z),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},ie.prototype.onopentagend=function(Z){this.endIndex=Z,this.endOpenTag(!1),this.startIndex=Z+1},ie.prototype.onclosetag=function(Z,ee){var ae,ve,ye,be,Ke,Ye;this.endIndex=ee;var Xe=this.getSlice(Z,ee);if(this.lowerCaseTagNames&&(Xe=Xe.toLowerCase()),(foreignContextElements.has(Xe)||htmlIntegrationElements.has(Xe))&&this.foreignContext.pop(),this.isVoidElement(Xe))!this.options.xmlMode&&Xe==="br"&&((ve=(ae=this.cbs).onopentagname)===null||ve===void 0||ve.call(ae,"br"),(be=(ye=this.cbs).onopentag)===null||be===void 0||be.call(ye,"br",{},!0),(Ye=(Ke=this.cbs).onclosetag)===null||Ye===void 0||Ye.call(Ke,"br",!1));else{var Qe=this.stack.lastIndexOf(Xe);if(Qe!==-1)if(this.cbs.onclosetag)for(var et=this.stack.length-Qe;et--;)this.cbs.onclosetag(this.stack.pop(),et!==0);else this.stack.length=Qe;else!this.options.xmlMode&&Xe==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=ee+1},ie.prototype.onselfclosingtag=function(Z){this.endIndex=Z,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=Z+1):this.onopentagend(Z)},ie.prototype.closeCurrentTag=function(Z){var ee,ae,ve=this.tagname;this.endOpenTag(Z),this.stack[this.stack.length-1]===ve&&((ae=(ee=this.cbs).onclosetag)===null||ae===void 0||ae.call(ee,ve,!Z),this.stack.pop())},ie.prototype.onattribname=function(Z,ee){this.startIndex=Z;var ae=this.getSlice(Z,ee);this.attribname=this.lowerCaseAttributeNames?ae.toLowerCase():ae},ie.prototype.onattribdata=function(Z,ee){this.attribvalue+=this.getSlice(Z,ee)},ie.prototype.onattribentity=function(Z){this.attribvalue+=(0,decode_js_1.fromCodePoint)(Z)},ie.prototype.onattribend=function(Z,ee){var ae,ve;this.endIndex=ee,(ve=(ae=this.cbs).onattribute)===null||ve===void 0||ve.call(ae,this.attribname,this.attribvalue,Z===Tokenizer_js_1.QuoteType.Double?'"':Z===Tokenizer_js_1.QuoteType.Single?"'":Z===Tokenizer_js_1.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},ie.prototype.getInstructionName=function(Z){var ee=Z.search(reNameEnd),ae=ee<0?Z:Z.substr(0,ee);return this.lowerCaseTagNames&&(ae=ae.toLowerCase()),ae},ie.prototype.ondeclaration=function(Z,ee){this.endIndex=ee;var ae=this.getSlice(Z,ee);if(this.cbs.onprocessinginstruction){var ve=this.getInstructionName(ae);this.cbs.onprocessinginstruction("!".concat(ve),"!".concat(ae))}this.startIndex=ee+1},ie.prototype.onprocessinginstruction=function(Z,ee){this.endIndex=ee;var ae=this.getSlice(Z,ee);if(this.cbs.onprocessinginstruction){var ve=this.getInstructionName(ae);this.cbs.onprocessinginstruction("?".concat(ve),"?".concat(ae))}this.startIndex=ee+1},ie.prototype.oncomment=function(Z,ee,ae){var ve,ye,be,Ke;this.endIndex=ee,(ye=(ve=this.cbs).oncomment)===null||ye===void 0||ye.call(ve,this.getSlice(Z,ee-ae)),(Ke=(be=this.cbs).oncommentend)===null||Ke===void 0||Ke.call(be),this.startIndex=ee+1},ie.prototype.oncdata=function(Z,ee,ae){var ve,ye,be,Ke,Ye,Xe,Qe,et,Je,rt;this.endIndex=ee;var it=this.getSlice(Z,ee-ae);this.options.xmlMode||this.options.recognizeCDATA?((ye=(ve=this.cbs).oncdatastart)===null||ye===void 0||ye.call(ve),(Ke=(be=this.cbs).ontext)===null||Ke===void 0||Ke.call(be,it),(Xe=(Ye=this.cbs).oncdataend)===null||Xe===void 0||Xe.call(Ye)):((et=(Qe=this.cbs).oncomment)===null||et===void 0||et.call(Qe,"[CDATA[".concat(it,"]]")),(rt=(Je=this.cbs).oncommentend)===null||rt===void 0||rt.call(Je)),this.startIndex=ee+1},ie.prototype.onend=function(){var Z,ee;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var ae=this.stack.length;ae>0;this.cbs.onclosetag(this.stack[--ae],!0));}(ee=(Z=this.cbs).onend)===null||ee===void 0||ee.call(Z)},ie.prototype.reset=function(){var Z,ee,ae,ve;(ee=(Z=this.cbs).onreset)===null||ee===void 0||ee.call(Z),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(ve=(ae=this.cbs).onparserinit)===null||ve===void 0||ve.call(ae,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},ie.prototype.parseComplete=function(Z){this.reset(),this.end(Z)},ie.prototype.getSlice=function(Z,ee){for(;Z-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var ae=this.buffers[0].slice(Z-this.bufferOffset,ee-this.bufferOffset);ee-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),ae+=this.buffers[0].slice(0,ee-this.bufferOffset);return ae},ie.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},ie.prototype.write=function(Z){var ee,ae;if(this.ended){(ae=(ee=this.cbs).onerror)===null||ae===void 0||ae.call(ee,new Error(".write() after done!"));return}this.buffers.push(Z),this.tokenizer.running&&(this.tokenizer.write(Z),this.writeIndex++)},ie.prototype.end=function(Z){var ee,ae;if(this.ended){(ae=(ee=this.cbs).onerror)===null||ae===void 0||ae.call(ee,new Error(".end() after done!"));return}Z&&this.write(Z),this.ended=!0,this.tokenizer.end()},ie.prototype.pause=function(){this.tokenizer.pause()},ie.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"childNodes",{get:function(){return this.children},set:function(ee){this.children=ee},enumerable:!1,configurable:!0}),Z}(Node$6);node$1.NodeWithChildren=NodeWithChildren;var CDATA=function(ie){__extends(Z,ie);function Z(){var ee=ie!==null&&ie.apply(this,arguments)||this;return ee.type=domelementtype_1$1.ElementType.CDATA,ee}return Object.defineProperty(Z.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),Z}(NodeWithChildren);node$1.CDATA=CDATA;var Document$4=function(ie){__extends(Z,ie);function Z(){var ee=ie!==null&&ie.apply(this,arguments)||this;return ee.type=domelementtype_1$1.ElementType.Root,ee}return Object.defineProperty(Z.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),Z}(NodeWithChildren);node$1.Document=Document$4;var Element$1=function(ie){__extends(Z,ie);function Z(ee,ae,ve,ye){ve===void 0&&(ve=[]),ye===void 0&&(ye=ee==="script"?domelementtype_1$1.ElementType.Script:ee==="style"?domelementtype_1$1.ElementType.Style:domelementtype_1$1.ElementType.Tag);var be=ie.call(this,ve)||this;return be.name=ee,be.attribs=ae,be.type=ye,be}return Object.defineProperty(Z.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"tagName",{get:function(){return this.name},set:function(ee){this.name=ee},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"attributes",{get:function(){var ee=this;return Object.keys(this.attribs).map(function(ae){var ve,ye;return{name:ae,value:ee.attribs[ae],namespace:(ve=ee["x-attribsNamespace"])===null||ve===void 0?void 0:ve[ae],prefix:(ye=ee["x-attribsPrefix"])===null||ye===void 0?void 0:ye[ae]}})},enumerable:!1,configurable:!0}),Z}(NodeWithChildren);node$1.Element=Element$1;function isTag(ie){return(0,domelementtype_1$1.isTag)(ie)}node$1.isTag=isTag;function isCDATA(ie){return ie.type===domelementtype_1$1.ElementType.CDATA}node$1.isCDATA=isCDATA;function isText(ie){return ie.type===domelementtype_1$1.ElementType.Text}node$1.isText=isText;function isComment(ie){return ie.type===domelementtype_1$1.ElementType.Comment}node$1.isComment=isComment;function isDirective(ie){return ie.type===domelementtype_1$1.ElementType.Directive}node$1.isDirective=isDirective;function isDocument(ie){return ie.type===domelementtype_1$1.ElementType.Root}node$1.isDocument=isDocument;function hasChildren(ie){return Object.prototype.hasOwnProperty.call(ie,"children")}node$1.hasChildren=hasChildren;function cloneNode$1(ie,Z){Z===void 0&&(Z=!1);var ee;if(isText(ie))ee=new Text(ie.data);else if(isComment(ie))ee=new Comment$5(ie.data);else if(isTag(ie)){var ae=Z?cloneChildren(ie.children):[],ve=new Element$1(ie.name,__assign$2({},ie.attribs),ae);ae.forEach(function(Ye){return Ye.parent=ve}),ie.namespace!=null&&(ve.namespace=ie.namespace),ie["x-attribsNamespace"]&&(ve["x-attribsNamespace"]=__assign$2({},ie["x-attribsNamespace"])),ie["x-attribsPrefix"]&&(ve["x-attribsPrefix"]=__assign$2({},ie["x-attribsPrefix"])),ee=ve}else if(isCDATA(ie)){var ae=Z?cloneChildren(ie.children):[],ye=new CDATA(ae);ae.forEach(function(Xe){return Xe.parent=ye}),ee=ye}else if(isDocument(ie)){var ae=Z?cloneChildren(ie.children):[],be=new Document$4(ae);ae.forEach(function(Xe){return Xe.parent=be}),ie["x-mode"]&&(be["x-mode"]=ie["x-mode"]),ee=be}else if(isDirective(ie)){var Ke=new ProcessingInstruction(ie.name,ie.data);ie["x-name"]!=null&&(Ke["x-name"]=ie["x-name"],Ke["x-publicId"]=ie["x-publicId"],Ke["x-systemId"]=ie["x-systemId"]),ee=Ke}else throw new Error("Not implemented yet: ".concat(ie.type));return ee.startIndex=ie.startIndex,ee.endIndex=ie.endIndex,ie.sourceCodeLocation!=null&&(ee.sourceCodeLocation=ie.sourceCodeLocation),ee}node$1.cloneNode=cloneNode$1;function cloneChildren(ie){for(var Z=ie.map(function(ae){return cloneNode$1(ae,!0)}),ee=1;ee$\x80-\uFFFF]/g;var Z=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);ie.getCodePoint=String.prototype.codePointAt!=null?function(ve,ye){return ve.codePointAt(ye)}:function(ve,ye){return(ve.charCodeAt(ye)&64512)===55296?(ve.charCodeAt(ye)-55296)*1024+ve.charCodeAt(ye+1)-56320+65536:ve.charCodeAt(ye)};function ee(ve){for(var ye="",be=0,Ke;(Ke=ie.xmlReplacer.exec(ve))!==null;){var Ye=Ke.index,Xe=ve.charCodeAt(Ye),Qe=Z.get(Xe);Qe!==void 0?(ye+=ve.substring(be,Ye)+Qe,be=Ye+1):(ye+="".concat(ve.substring(be,Ye),"&#x").concat((0,ie.getCodePoint)(ve,Ye).toString(16),";"),be=ie.xmlReplacer.lastIndex+=+((Xe&64512)===55296))}return ye+ve.substr(be)}ie.encodeXML=ee,ie.escape=ee;function ae(ve,ye){return function(Ke){for(var Ye,Xe=0,Qe="";Ye=ve.exec(Ke);)Xe!==Ye.index&&(Qe+=Ke.substring(Xe,Ye.index)),Qe+=ye.get(Ye[0].charCodeAt(0)),Xe=Ye.index+1;return Qe+Ke.substring(Xe)}}ie.escapeUTF8=ae(/[&<>'"]/g,Z),ie.escapeAttribute=ae(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),ie.escapeText=ae(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(_escape);var __importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(ie){return ie&&ie.__esModule?ie:{default:ie}};Object.defineProperty(encode,"__esModule",{value:!0});encode.encodeNonAsciiHTML=encode.encodeHTML=void 0;var encode_html_js_1=__importDefault$1(encodeHtml),escape_js_1=_escape,htmlReplacer=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function encodeHTML(ie){return encodeHTMLTrieRe(htmlReplacer,ie)}encode.encodeHTML=encodeHTML;function encodeNonAsciiHTML(ie){return encodeHTMLTrieRe(escape_js_1.xmlReplacer,ie)}encode.encodeNonAsciiHTML=encodeNonAsciiHTML;function encodeHTMLTrieRe(ie,Z){for(var ee="",ae=0,ve;(ve=ie.exec(Z))!==null;){var ye=ve.index;ee+=Z.substring(ae,ye);var be=Z.charCodeAt(ye),Ke=encode_html_js_1.default.get(be);if(typeof Ke=="object"){if(ye+10&&(ae+=render(ie.children,Z)),(Z.xmlMode||!singleTag.has(ie.name))&&(ae+=""))),ae}function renderDirective(ie){return"<".concat(ie.data,">")}function renderText(ie,Z){var ee,ae=ie.data||"";return((ee=Z.encodeEntities)!==null&&ee!==void 0?ee:Z.decodeEntities)!==!1&&!(!Z.xmlMode&&ie.parent&&unencodedElements.has(ie.parent.name))&&(ae=Z.xmlMode||Z.encodeEntities!=="utf8"?(0,entities_1.encodeXML)(ae):(0,entities_1.escapeText)(ae)),ae}function renderCdata(ie){return"")}function renderComment(ie){return"")}var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(ie){return ie&&ie.__esModule?ie:{default:ie}};Object.defineProperty(stringify$5,"__esModule",{value:!0});stringify$5.innerText=stringify$5.textContent=stringify$5.getText=stringify$5.getInnerHTML=stringify$5.getOuterHTML=void 0;var domhandler_1$3=lib$4,dom_serializer_1=__importDefault(lib$1),domelementtype_1=lib$3;function getOuterHTML(ie,Z){return(0,dom_serializer_1.default)(ie,Z)}stringify$5.getOuterHTML=getOuterHTML;function getInnerHTML(ie,Z){return(0,domhandler_1$3.hasChildren)(ie)?ie.children.map(function(ee){return getOuterHTML(ee,Z)}).join(""):""}stringify$5.getInnerHTML=getInnerHTML;function getText(ie){return Array.isArray(ie)?ie.map(getText).join(""):(0,domhandler_1$3.isTag)(ie)?ie.name==="br"?` `:getText(ie.children):(0,domhandler_1$3.isCDATA)(ie)?getText(ie.children):(0,domhandler_1$3.isText)(ie)?ie.data:""}stringify$5.getText=getText;function textContent(ie){return Array.isArray(ie)?ie.map(textContent).join(""):(0,domhandler_1$3.hasChildren)(ie)&&!(0,domhandler_1$3.isComment)(ie)?textContent(ie.children):(0,domhandler_1$3.isText)(ie)?ie.data:""}stringify$5.textContent=textContent;function innerText(ie){return Array.isArray(ie)?ie.map(innerText).join(""):(0,domhandler_1$3.hasChildren)(ie)&&(ie.type===domelementtype_1.ElementType.Tag||(0,domhandler_1$3.isCDATA)(ie))?innerText(ie.children):(0,domhandler_1$3.isText)(ie)?ie.data:""}stringify$5.innerText=innerText;var traversal={};Object.defineProperty(traversal,"__esModule",{value:!0});traversal.prevElementSibling=traversal.nextElementSibling=traversal.getName=traversal.hasAttrib=traversal.getAttributeValue=traversal.getSiblings=traversal.getParent=traversal.getChildren=void 0;var domhandler_1$2=lib$4;function getChildren(ie){return(0,domhandler_1$2.hasChildren)(ie)?ie.children:[]}traversal.getChildren=getChildren;function getParent(ie){return ie.parent||null}traversal.getParent=getParent;function getSiblings(ie){var Z,ee,ae=getParent(ie);if(ae!=null)return getChildren(ae);for(var ve=[ie],ye=ie.prev,be=ie.next;ye!=null;)ve.unshift(ye),Z=ye,ye=Z.prev;for(;be!=null;)ve.push(be),ee=be,be=ee.next;return ve}traversal.getSiblings=getSiblings;function getAttributeValue(ie,Z){var ee;return(ee=ie.attribs)===null||ee===void 0?void 0:ee[Z]}traversal.getAttributeValue=getAttributeValue;function hasAttrib(ie,Z){return ie.attribs!=null&&Object.prototype.hasOwnProperty.call(ie.attribs,Z)&&ie.attribs[Z]!=null}traversal.hasAttrib=hasAttrib;function getName(ie){return ie.name}traversal.getName=getName;function nextElementSibling(ie){for(var Z,ee=ie.next;ee!==null&&!(0,domhandler_1$2.isTag)(ee);)Z=ee,ee=Z.next;return ee}traversal.nextElementSibling=nextElementSibling;function prevElementSibling(ie){for(var Z,ee=ie.prev;ee!==null&&!(0,domhandler_1$2.isTag)(ee);)Z=ee,ee=Z.prev;return ee}traversal.prevElementSibling=prevElementSibling;var manipulation={};Object.defineProperty(manipulation,"__esModule",{value:!0});manipulation.prepend=manipulation.prependChild=manipulation.append=manipulation.appendChild=manipulation.replaceElement=manipulation.removeElement=void 0;function removeElement(ie){if(ie.prev&&(ie.prev.next=ie.next),ie.next&&(ie.next.prev=ie.prev),ie.parent){var Z=ie.parent.children,ee=Z.lastIndexOf(ie);ee>=0&&Z.splice(ee,1)}ie.next=null,ie.prev=null,ie.parent=null}manipulation.removeElement=removeElement;function replaceElement(ie,Z){var ee=Z.prev=ie.prev;ee&&(ee.next=Z);var ae=Z.next=ie.next;ae&&(ae.prev=Z);var ve=Z.parent=ie.parent;if(ve){var ye=ve.children;ye[ye.lastIndexOf(ie)]=Z,ie.parent=null}}manipulation.replaceElement=replaceElement;function appendChild(ie,Z){if(removeElement(Z),Z.next=null,Z.parent=ie,ie.children.push(Z)>1){var ee=ie.children[ie.children.length-2];ee.next=Z,Z.prev=ee}else Z.prev=null}manipulation.appendChild=appendChild;function append(ie,Z){removeElement(Z);var ee=ie.parent,ae=ie.next;if(Z.next=ae,Z.prev=ie,ie.next=Z,Z.parent=ee,ae){if(ae.prev=Z,ee){var ve=ee.children;ve.splice(ve.lastIndexOf(ae),0,Z)}}else ee&&ee.children.push(Z)}manipulation.append=append;function prependChild(ie,Z){if(removeElement(Z),Z.parent=ie,Z.prev=null,ie.children.unshift(Z)!==1){var ee=ie.children[1];ee.prev=Z,Z.next=ee}else Z.next=null}manipulation.prependChild=prependChild;function prepend(ie,Z){removeElement(Z);var ee=ie.parent;if(ee){var ae=ee.children;ae.splice(ae.indexOf(ie),0,Z)}ie.prev&&(ie.prev.next=Z),Z.parent=ee,Z.prev=ie.prev,Z.next=ie,ie.prev=Z}manipulation.prepend=prepend;var querying={};Object.defineProperty(querying,"__esModule",{value:!0});querying.findAll=querying.existsOne=querying.findOne=querying.findOneChild=querying.find=querying.filter=void 0;var domhandler_1$1=lib$4;function filter$1(ie,Z,ee,ae){return ee===void 0&&(ee=!0),ae===void 0&&(ae=1/0),find(ie,Array.isArray(Z)?Z:[Z],ee,ae)}querying.filter=filter$1;function find(ie,Z,ee,ae){for(var ve=[],ye=[Z],be=[0];;){if(be[0]>=ye[0].length){if(be.length===1)return ve;ye.shift(),be.shift();continue}var Ke=ye[0][be[0]++];if(ie(Ke)&&(ve.push(Ke),--ae<=0))return ve;ee&&(0,domhandler_1$1.hasChildren)(Ke)&&Ke.children.length>0&&(be.unshift(0),ye.unshift(Ke.children))}}querying.find=find;function findOneChild(ie,Z){return Z.find(ie)}querying.findOneChild=findOneChild;function findOne(ie,Z,ee){ee===void 0&&(ee=!0);for(var ae=null,ve=0;ve0&&(ae=findOne(ie,ye.children,!0));else continue}return ae}querying.findOne=findOne;function existsOne(ie,Z){return Z.some(function(ee){return(0,domhandler_1$1.isTag)(ee)&&(ie(ee)||existsOne(ie,ee.children))})}querying.existsOne=existsOne;function findAll(ie,Z){for(var ee=[],ae=[Z],ve=[0];;){if(ve[0]>=ae[0].length){if(ae.length===1)return ee;ae.shift(),ve.shift();continue}var ye=ae[0][ve[0]++];(0,domhandler_1$1.isTag)(ye)&&(ie(ye)&&ee.push(ye),ye.children.length>0&&(ve.unshift(0),ae.unshift(ye.children)))}}querying.findAll=findAll;var legacy={};Object.defineProperty(legacy,"__esModule",{value:!0});legacy.getElementsByTagType=legacy.getElementsByTagName=legacy.getElementById=legacy.getElements=legacy.testElement=void 0;var domhandler_1=lib$4,querying_js_1=querying,Checks={tag_name:function(ie){return typeof ie=="function"?function(Z){return(0,domhandler_1.isTag)(Z)&&ie(Z.name)}:ie==="*"?domhandler_1.isTag:function(Z){return(0,domhandler_1.isTag)(Z)&&Z.name===ie}},tag_type:function(ie){return typeof ie=="function"?function(Z){return ie(Z.type)}:function(Z){return Z.type===ie}},tag_contains:function(ie){return typeof ie=="function"?function(Z){return(0,domhandler_1.isText)(Z)&&ie(Z.data)}:function(Z){return(0,domhandler_1.isText)(Z)&&Z.data===ie}}};function getAttribCheck(ie,Z){return typeof Z=="function"?function(ee){return(0,domhandler_1.isTag)(ee)&&Z(ee.attribs[ie])}:function(ee){return(0,domhandler_1.isTag)(ee)&&ee.attribs[ie]===Z}}function combineFuncs(ie,Z){return function(ee){return ie(ee)||Z(ee)}}function compileTest(ie){var Z=Object.keys(ie).map(function(ee){var ae=ie[ee];return Object.prototype.hasOwnProperty.call(Checks,ee)?Checks[ee](ae):getAttribCheck(ee,ae)});return Z.length===0?null:Z.reduce(combineFuncs)}function testElement(ie,Z){var ee=compileTest(ie);return ee?ee(Z):!0}legacy.testElement=testElement;function getElements(ie,Z,ee,ae){ae===void 0&&(ae=1/0);var ve=compileTest(ie);return ve?(0,querying_js_1.filter)(ve,Z,ee,ae):[]}legacy.getElements=getElements;function getElementById(ie,Z,ee){return ee===void 0&&(ee=!0),Array.isArray(Z)||(Z=[Z]),(0,querying_js_1.findOne)(getAttribCheck("id",ie),Z,ee)}legacy.getElementById=getElementById;function getElementsByTagName(ie,Z,ee,ae){return ee===void 0&&(ee=!0),ae===void 0&&(ae=1/0),(0,querying_js_1.filter)(Checks.tag_name(ie),Z,ee,ae)}legacy.getElementsByTagName=getElementsByTagName;function getElementsByTagType(ie,Z,ee,ae){return ee===void 0&&(ee=!0),ae===void 0&&(ae=1/0),(0,querying_js_1.filter)(Checks.tag_type(ie),Z,ee,ae)}legacy.getElementsByTagType=getElementsByTagType;var helpers={};(function(ie){Object.defineProperty(ie,"__esModule",{value:!0}),ie.uniqueSort=ie.compareDocumentPosition=ie.DocumentPosition=ie.removeSubsets=void 0;var Z=lib$4;function ee(be){for(var Ke=be.length;--Ke>=0;){var Ye=be[Ke];if(Ke>0&&be.lastIndexOf(Ye,Ke-1)>=0){be.splice(Ke,1);continue}for(var Xe=Ye.parent;Xe;Xe=Xe.parent)if(be.includes(Xe)){be.splice(Ke,1);break}}return be}ie.removeSubsets=ee;var ae;(function(be){be[be.DISCONNECTED=1]="DISCONNECTED",be[be.PRECEDING=2]="PRECEDING",be[be.FOLLOWING=4]="FOLLOWING",be[be.CONTAINS=8]="CONTAINS",be[be.CONTAINED_BY=16]="CONTAINED_BY"})(ae=ie.DocumentPosition||(ie.DocumentPosition={}));function ve(be,Ke){var Ye=[],Xe=[];if(be===Ke)return 0;for(var Qe=(0,Z.hasChildren)(be)?be:be.parent;Qe;)Ye.unshift(Qe),Qe=Qe.parent;for(Qe=(0,Z.hasChildren)(Ke)?Ke:Ke.parent;Qe;)Xe.unshift(Qe),Qe=Qe.parent;for(var et=Math.min(Ye.length,Xe.length),Je=0;Jeit.indexOf(tt)?rt===Ke?ae.FOLLOWING|ae.CONTAINED_BY:ae.FOLLOWING:rt===be?ae.PRECEDING|ae.CONTAINS:ae.PRECEDING}ie.compareDocumentPosition=ve;function ye(be){return be=be.filter(function(Ke,Ye,Xe){return!Xe.includes(Ke,Ye+1)}),be.sort(function(Ke,Ye){var Xe=ve(Ke,Ye);return Xe&ae.PRECEDING?-1:Xe&ae.FOLLOWING?1:0}),be}ie.uniqueSort=ye})(helpers);var feeds={};Object.defineProperty(feeds,"__esModule",{value:!0});feeds.getFeed=void 0;var stringify_js_1=stringify$5,legacy_js_1=legacy;function getFeed(ie){var Z=getOneElement(isValidFeed,ie);return Z?Z.name==="feed"?getAtomFeed(Z):getRssFeed(Z):null}feeds.getFeed=getFeed;function getAtomFeed(ie){var Z,ee=ie.children,ae={type:"atom",items:(0,legacy_js_1.getElementsByTagName)("entry",ee).map(function(be){var Ke,Ye=be.children,Xe={media:getMediaElements(Ye)};addConditionally(Xe,"id","id",Ye),addConditionally(Xe,"title","title",Ye);var Qe=(Ke=getOneElement("link",Ye))===null||Ke===void 0?void 0:Ke.attribs.href;Qe&&(Xe.link=Qe);var et=fetch$1("summary",Ye)||fetch$1("content",Ye);et&&(Xe.description=et);var Je=fetch$1("updated",Ye);return Je&&(Xe.pubDate=new Date(Je)),Xe})};addConditionally(ae,"id","id",ee),addConditionally(ae,"title","title",ee);var ve=(Z=getOneElement("link",ee))===null||Z===void 0?void 0:Z.attribs.href;ve&&(ae.link=ve),addConditionally(ae,"description","subtitle",ee);var ye=fetch$1("updated",ee);return ye&&(ae.updated=new Date(ye)),addConditionally(ae,"author","email",ee,!0),ae}function getRssFeed(ie){var Z,ee,ae=(ee=(Z=getOneElement("channel",ie.children))===null||Z===void 0?void 0:Z.children)!==null&&ee!==void 0?ee:[],ve={type:ie.name.substr(0,3),id:"",items:(0,legacy_js_1.getElementsByTagName)("item",ie.children).map(function(be){var Ke=be.children,Ye={media:getMediaElements(Ke)};addConditionally(Ye,"id","guid",Ke),addConditionally(Ye,"title","title",Ke),addConditionally(Ye,"link","link",Ke),addConditionally(Ye,"description","description",Ke);var Xe=fetch$1("pubDate",Ke)||fetch$1("dc:date",Ke);return Xe&&(Ye.pubDate=new Date(Xe)),Ye})};addConditionally(ve,"title","title",ae),addConditionally(ve,"link","link",ae),addConditionally(ve,"description","description",ae);var ye=fetch$1("lastBuildDate",ae);return ye&&(ve.updated=new Date(ye)),addConditionally(ve,"author","managingEditor",ae,!0),ve}var MEDIA_KEYS_STRING=["url","type","lang"],MEDIA_KEYS_INT=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function getMediaElements(ie){return(0,legacy_js_1.getElementsByTagName)("media:content",ie).map(function(Z){for(var ee=Z.attribs,ae={medium:ee.medium,isDefault:!!ee.isDefault},ve=0,ye=MEDIA_KEYS_STRING;ve{if(typeof ie!="string")throw new TypeError("Expected a string");return ie.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},isPlainObject$2={};Object.defineProperty(isPlainObject$2,"__esModule",{value:!0});/*! * is-plain-object * diff --git a/index.html b/index.html index 604569d..5bef41f 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ - + diff --git a/sw.js b/sw.js index 25a2975..7f42d59 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let r,l={};const d=(e,s)=>(e=new URL(e+".js",s).href,l[e]||new Promise(n=>{if("document"in self){const i=document.createElement("script");i.src=e,i.onload=n,document.head.appendChild(i)}else r=e,importScripts(e),n()}).then(()=>{let n=l[e];if(!n)throw new Error(`Module ${e} didn\u2019t register its module`);return n}));self.define=(e,s)=>{const n=r||("document"in self?document.currentScript.src:"")||location.href;if(l[n])return;let i={};const o=t=>d(t,n),u={module:{uri:n},exports:i,require:o};l[n]=Promise.all(e.map(t=>u[t]||o(t))).then(t=>(s(...t),i))}}define(["./workbox-3e911b1d"],function(r){"use strict";self.skipWaiting(),r.clientsClaim(),r.precacheAndRoute([{url:"index-_QMEegZy.css",revision:null},{url:"index-EacnxzqJ.js",revision:null},{url:"index-fvYXRG4m.js",revision:null},{url:"index.html",revision:null},{url:"registerSW.js",revision:null},{url:"pwa-64x64.png",revision:"5b92749999a938c2f00c73135ef89c6b"},{url:"pwa-192x192.png",revision:"5d2322dbd5722c6f6809b5b5d46429f2"},{url:"pwa-512x512.png",revision:"921f5fadb70da56f69bb4539140fd572"},{url:"maskable-icon-512x512.png",revision:"084b31041f64392a2d2beb089908caa8"},{url:"manifest.webmanifest",revision:"4a167b547c64347d26602cc33d7243f2"}],{}),r.cleanupOutdatedCaches(),r.registerRoute(new r.NavigationRoute(r.createHandlerBoundToURL("index.html")))}); +if(!self.define){let n,l={};const d=(e,s)=>(e=new URL(e+".js",s).href,l[e]||new Promise(i=>{if("document"in self){const r=document.createElement("script");r.src=e,r.onload=i,document.head.appendChild(r)}else n=e,importScripts(e),i()}).then(()=>{let i=l[e];if(!i)throw new Error(`Module ${e} didn\u2019t register its module`);return i}));self.define=(e,s)=>{const i=n||("document"in self?document.currentScript.src:"")||location.href;if(l[i])return;let r={};const o=t=>d(t,i),u={module:{uri:i},exports:r,require:o};l[i]=Promise.all(e.map(t=>u[t]||o(t))).then(t=>(s(...t),r))}}define(["./workbox-3e911b1d"],function(n){"use strict";self.skipWaiting(),n.clientsClaim(),n.precacheAndRoute([{url:"index-_QMEegZy.css",revision:null},{url:"index-8QsdpE8Q.js",revision:null},{url:"index-kb1q0BGh.js",revision:null},{url:"index.html",revision:null},{url:"registerSW.js",revision:null},{url:"pwa-64x64.png",revision:"5b92749999a938c2f00c73135ef89c6b"},{url:"pwa-192x192.png",revision:"5d2322dbd5722c6f6809b5b5d46429f2"},{url:"pwa-512x512.png",revision:"921f5fadb70da56f69bb4539140fd572"},{url:"maskable-icon-512x512.png",revision:"084b31041f64392a2d2beb089908caa8"},{url:"manifest.webmanifest",revision:"4a167b547c64347d26602cc33d7243f2"}],{}),n.cleanupOutdatedCaches(),n.registerRoute(new n.NavigationRoute(n.createHandlerBoundToURL("index.html")))});