@oliasoft-open-source/react-ui-library 4.6.7 → 4.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/404.html +1 -1
  2. package/dist/assets/{index-2LJjuVRB.css → index-ChHypG1u.css} +50 -49
  3. package/dist/assets/{index-21EwET8E.js → index-KqPTwgKR.js} +29 -29
  4. package/dist/index.html +1 -1
  5. package/dist/index.js +12 -38
  6. package/dist/index.js.map +1 -1
  7. package/dist/storybook/assets/{Color-6VNJS4EI-hQgbfk1_.js → Color-6VNJS4EI-_XHGQV47.js} +1 -1
  8. package/dist/storybook/assets/{DocsRenderer-NNNQARDV-qVZ0Szzp.js → DocsRenderer-NNNQARDV-cfGqinew.js} +1 -1
  9. package/dist/storybook/assets/{WithTooltip-V3YHNWJZ-EVkXusH9.js → WithTooltip-V3YHNWJZ-ZTQBXxNR.js} +1 -1
  10. package/dist/storybook/assets/{accordion.stories-Je6TgVbI.js → accordion.stories-HoJi9xXG.js} +1 -1
  11. package/dist/storybook/assets/{actions-mOcj9IlF.js → actions-Cy7Captj.js} +1 -1
  12. package/dist/storybook/assets/actions-ZOs51LZe.css +1 -0
  13. package/dist/storybook/assets/{actions.stories-ER0_rAT3.js → actions.stories-mmLprOrc.js} +1 -1
  14. package/dist/storybook/assets/{afe.stories-yjkRmCqu.js → afe.stories-nIkUZsMw.js} +1 -1
  15. package/dist/storybook/assets/{blowout.stories-fjMitjld.js → blowout.stories-K5R8kVct.js} +1 -1
  16. package/dist/storybook/assets/{buttons-and-links-Htqi06fE.js → buttons-and-links-Jylkt3nD.js} +1 -1
  17. package/dist/storybook/assets/{casing-loads.stories-rv-r7qUR.js → casing-loads.stories-46CXI4aZ.js} +1 -1
  18. package/dist/storybook/assets/{cell.stories-ntUcZ9Z2.js → cell.stories-C1tveY5w.js} +1 -1
  19. package/dist/storybook/assets/{chunk-HLWAVYOI-XUXGp0n7.js → chunk-HLWAVYOI-FrcsKrLW.js} +1 -1
  20. package/dist/storybook/assets/{color-l-jFB8qa.js → color-uzmk99ma.js} +1 -1
  21. package/dist/storybook/assets/{drawer.stories-XWMoCncm.js → drawer.stories-AeAkrCFI.js} +1 -1
  22. package/dist/storybook/assets/{file-input.stories-lKF1ABXX.js → file-input.stories-8w1taUk6.js} +1 -1
  23. package/dist/storybook/assets/{footer.stories-txHcy_rz.js → footer.stories-DPV_HAIB.js} +1 -1
  24. package/dist/storybook/assets/{form.stories-AikCzsZc.js → form.stories-T72WR2v0.js} +1 -1
  25. package/dist/storybook/assets/{formation.stories-WYUKooZj.js → formation.stories-xkw070py.js} +1 -1
  26. package/dist/storybook/assets/{formatter-SWP5E3XI-2jpDZ32o.js → formatter-SWP5E3XI-3x_m0MHq.js} +1 -1
  27. package/dist/storybook/assets/{iframe-afwDQcyf.js → iframe-fXetAaxg.js} +2 -2
  28. package/dist/storybook/assets/{index-WQN43Pdc.js → index-_9baus51.js} +5 -5
  29. package/dist/storybook/assets/{input-group.stories-gJFYuvVb.js → input-group.stories-ZCPg9gHm.js} +1 -1
  30. package/dist/storybook/assets/{input-validation-1C25NF0D.js → input-validation-y9wnVCSF.js} +1 -1
  31. package/dist/storybook/assets/{inputs-dvl3Vxzi.js → inputs-32MVspNo.js} +1 -1
  32. package/dist/storybook/assets/{layout-forms-aQDJspiu.js → layout-forms-U3Za-S0I.js} +1 -1
  33. package/dist/storybook/assets/{layout-general-glx7j38t.js → layout-general-5TGR9rlf.js} +1 -1
  34. package/dist/storybook/assets/{list-PShi-3TE.js → list-eMd89hZr.js} +1 -1
  35. package/dist/storybook/assets/{list.stories-TLnvjaYU.js → list.stories-5vI2E33l.js} +1 -1
  36. package/dist/storybook/assets/{list.stories-data-Qc3oehAh.js → list.stories-data-gXsTw-L1.js} +1 -1
  37. package/dist/storybook/assets/{menu.stories-ppWN2JgO.js → menu.stories-KNXjeX3D.js} +1 -1
  38. package/dist/storybook/assets/{meta-content-lUynpOsR.js → meta-content-OgN1pVSn.js} +1 -1
  39. package/dist/storybook/assets/{modal.stories-DDey1uF7.js → modal.stories-ecMxj8hU.js} +1 -1
  40. package/dist/storybook/assets/{number-input.stories-AU1jlL6D.js → number-input.stories-xWiHlnuR.js} +1 -1
  41. package/dist/storybook/assets/{option-dropdown.stories-n7CDZevX.js → option-dropdown.stories-fgx84uaW.js} +1 -1
  42. package/dist/storybook/assets/{padding-and-spacing-nDPUVOhE.js → padding-and-spacing-1V9JCfVv.js} +1 -1
  43. package/dist/storybook/assets/{page.stories-UQlnuZid.js → page.stories-hiXNhyVn.js} +1 -1
  44. package/dist/storybook/assets/{pagination-tnyyuMkB.js → pagination-tAcEoG5j.js} +1 -1
  45. package/dist/storybook/assets/{pagination.stories-c7jbEB_j.js → pagination.stories-BTlZGHei.js} +1 -1
  46. package/dist/storybook/assets/{popover.stories-1JvlWYFM.js → popover.stories-kWytlrCP.js} +1 -1
  47. package/dist/storybook/assets/{preview-8iAUReLe.js → preview-I81TAmqM.js} +1 -1
  48. package/dist/storybook/assets/{preview-NgqKh_bR.js → preview-u5AhJYxz.js} +2 -2
  49. package/dist/storybook/assets/{projects.stories-epAPUAg1.js → projects.stories-Um9RxRPP.js} +1 -1
  50. package/dist/storybook/assets/{reservoirs.stories-TKohSiCU.js → reservoirs.stories-NvfXEnD5.js} +1 -1
  51. package/dist/storybook/assets/{rich-text-input.stories-EbjoMb2s.js → rich-text-input.stories-C2MT1NxQ.js} +1 -1
  52. package/dist/storybook/assets/{row.stories-s3mq4p3b.js → row.stories-0vvHxyvF.js} +1 -1
  53. package/dist/storybook/assets/{select-DZdWUrCW.js → select-rLnO-bZV.js} +1 -1
  54. package/dist/storybook/assets/{select.stories-QOxuHSmz.js → select.stories-c55YtO23.js} +1 -1
  55. package/dist/storybook/assets/{site.stories-Qfujz1ST.js → site.stories-7D7SQQg5.js} +1 -1
  56. package/dist/storybook/assets/{syntaxhighlighter-B5GMVT5T-sSZfeghu.js → syntaxhighlighter-B5GMVT5T-NrCkP84H.js} +1 -1
  57. package/dist/storybook/assets/{table-5HZEOUW_.js → table--nqv8IDq.js} +1 -1
  58. package/dist/storybook/assets/{table.stories-wP0SdJzJ.js → table.stories-O7tV23uw.js} +1 -1
  59. package/dist/storybook/assets/{table.stories-data-NfE_v-gH.js → table.stories-data-yhSjAoox.js} +1 -1
  60. package/dist/storybook/assets/{textarea-TSoWqDT8.js → textarea-gwm6gdQO.js} +1 -1
  61. package/dist/storybook/assets/{textarea.stories-w6XYooLd.js → textarea.stories-eOTtHmL4.js} +1 -1
  62. package/dist/storybook/assets/{title.stories-CDtRZqWr.js → title.stories-qu_is7wC.js} +1 -1
  63. package/dist/storybook/assets/{tooltip.test-case.stories-g9fe1-Ut.js → tooltip.test-case.stories-omlRb7-I.js} +1 -1
  64. package/dist/storybook/assets/{top-bar-ywJJBf-H.js → top-bar-_mjkSOvn.js} +1 -1
  65. package/dist/storybook/assets/{top-bar.stories-KkBPu_h3.js → top-bar.stories-hLq3tLY-.js} +1 -1
  66. package/dist/storybook/assets/{top-bar.testcase.stories-RJkl6c8Z.js → top-bar.testcase.stories-CIYqVCVB.js} +1 -1
  67. package/dist/storybook/assets/{tree.stories-UiERA8eJ.js → tree.stories-piq-HVR4.js} +1 -1
  68. package/dist/storybook/assets/{unit-input.stories-NxlXJaPc.js → unit-input.stories-0xZHxkeM.js} +1 -1
  69. package/dist/storybook/assets/{unit-table.stories-M8TmG1IT.js → unit-table.stories-19SAMwbG.js} +1 -1
  70. package/dist/storybook/iframe.html +1 -1
  71. package/dist/storybook/project.json +1 -1
  72. package/package.json +1 -1
  73. package/dist/storybook/assets/actions-W12osUP0.css +0 -1
@@ -1,4 +1,4 @@
1
- import{j as _}from"./jsx-runtime-FsUICBgo.js";import{r as m,R as N,g as _u}from"./index-RfLt4OUa.js";import{I as Fu,T as ju,a as Bu}from"./icon-8EQazuuW.js";import{e as ku}from"./index-cCpkwrS5.js";import{a as w,b as k,c as Ea,d as ee,_ as le}from"./tslib.es6-OIsz3r9a.js";import{c as li}from"./index-VW3EWkuE.js";import{C as Hu,I as Nr}from"./common-types-U65vzrrz.js";import{l as ie,M as zu,L as Uu}from"./meta-content-lUynpOsR.js";import{A as $u}from"./actions-mOcj9IlF.js";import{B as Ca}from"./button-shH4xakS.js";import{c as Wu}from"./redux-F5dueAP3.js";import{T as qu}from"./text-6KQ6ntOV.js";import"./objectWithoutPropertiesLoose-9Q1jwsKS.js";import"./inheritsLoose-8sb_A2v4.js";import"./index-4QtD-hFu.js";import"./disabled-context-urNQThQz.js";import"./heading-jZsIIJF0.js";import"./help-icon-SKky6KLV.js";import"./tooltip-HEHiU__l.js";import"./index-miLrID2P.js";import"./badge-23Ty_zBt.js";import"./lodash-Bmg8FrMx.js";import"./types-VB5zD18b.js";import"./types-5uVBABF4.js";import"./spinner-R8Il4aRe.js";import"./objectSpread2-93s0nBry.js";const Oa=m.createContext({dragDropManager:void 0});function M(e,t,...r){if(Gu()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let n;if(t===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;n=new Error(t.replace(/%s/g,function(){return r[i++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function Gu(){return typeof process<"u"&&!0}function Yu(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function Xu(e,t){return e.filter(r=>r!==t)}function xa(e){return typeof e=="object"}function Ku(e,t){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function Zu(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Ln="dnd-core/INIT_COORDS",br="dnd-core/BEGIN_DRAG",Vn="dnd-core/PUBLISH_DRAG_SOURCE",Tr="dnd-core/HOVER",Sr="dnd-core/DROP",Dr="dnd-core/END_DRAG";function ci(e,t){return{type:Ln,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const Ju={type:Ln,payload:{clientOffset:null,sourceClientOffset:null}};function Qu(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,s=e.getMonitor(),u=e.getRegistry();e.dispatch(ci(o)),el(r,s,u);const l=nl(r,s);if(l==null){e.dispatch(Ju);return}let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");tl(a),c=a(l)}e.dispatch(ci(o,c));const h=u.getSource(l).beginDrag(s,l);if(h==null)return;rl(h),u.pinSource(l);const f=u.getSourceType(l);return{type:br,payload:{itemType:f,item:h,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}function el(e,t,r){M(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){M(r.getSource(n),"Expected sourceIds to be registered.")})}function tl(e){M(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function rl(e){M(xa(e),"Item must be an object.")}function nl(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function il(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ol(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){il(e,i,r[i])})}return e}function al(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();sl(n),cl(n).forEach((a,s)=>{const u=ul(a,s,i,n),l={type:Sr,payload:{dropResult:ol({},r,u)}};e.dispatch(l)})}}function sl(e){M(e.isDragging(),"Cannot call drop while not dragging."),M(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function ul(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return ll(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function ll(e){M(typeof e>"u"||xa(e),"Drop result must either be an object or undefined.")}function cl(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function dl(e){return function(){const r=e.getMonitor(),n=e.getRegistry();fl(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:Dr}}}function fl(e){M(e.isDragging(),"Cannot call endDrag while not dragging.")}function nn(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function hl(e){return function(r,{clientOffset:n}={}){pl(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return gl(i,a,s),vl(i,o,a),ml(i,o,a),{type:Tr,payload:{targetIds:i,clientOffset:n||null}}}}function pl(e){M(Array.isArray(e),"Expected targetIds to be an array.")}function vl(e,t,r){M(t.isDragging(),"Cannot call hover while not dragging."),M(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const i=e[n];M(e.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);M(o,"Expected targetIds to be registered.")}}function gl(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);nn(o,r)||e.splice(n,1)}}function ml(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function yl(e){return function(){if(e.getMonitor().isDragging())return{type:Vn}}}function bl(e){return{beginDrag:Qu(e),publishDragSource:yl(e),hover:hl(e),drop:al(e),endDrag:dl(e)}}class Tl{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const s=o.apply(t,a);typeof s<"u"&&r(s)}}const i=bl(this);return Object.keys(i).reduce((o,a)=>{const s=i[a];return o[a]=n(s),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function Sl(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Ia(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Dl(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:Ia(Sl(t,n),r)}function wl(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:Ia(t,r)}const ht=[],Nn=[];ht.__IS_NONE__=!0;Nn.__IS_ALL__=!0;function El(e,t){return e===ht?!1:e===Nn||typeof t>"u"?!0:Zu(t,e).length>0}class Cl{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;M(typeof t=="function","listener must be a function."),M(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),s=a.stateId;try{s===i||s===i+1&&!El(a.dirtyHandlerIds,n)||t()}finally{i=s}};return this.store.subscribe(o)}subscribeToOffsetChange(t){M(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,t())};return this.store.subscribe(n)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return M(r,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(M(r,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(t),i=this.getItemType();return nn(n,i)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(M(r,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(t),i=this.getItemType();return n!==i?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!nn(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const s=a.indexOf(t);return n?s===a.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return Dl(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return wl(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const di=typeof global<"u"?global:self,Pa=di.MutationObserver||di.WebKitMutationObserver;function Ra(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function Ol(e){let t=1;const r=new Pa(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const xl=typeof Pa=="function"?Ol:Ra;class Il{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,i=t.length-this.index;n<i;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=xl(this.flush),this.requestErrorThrow=Ra(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Pl{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Rl{create(t){const r=this.freeTasks,n=r.length?r.pop():new Pl(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Ma=new Il,Ml=new Rl(Ma.registerPendingError);function Al(e){Ma.enqueueTask(Ml.create(e))}const _n="dnd-core/ADD_SOURCE",Fn="dnd-core/ADD_TARGET",jn="dnd-core/REMOVE_SOURCE",wr="dnd-core/REMOVE_TARGET";function Ll(e){return{type:_n,payload:{sourceId:e}}}function Vl(e){return{type:Fn,payload:{targetId:e}}}function Nl(e){return{type:jn,payload:{sourceId:e}}}function _l(e){return{type:wr,payload:{targetId:e}}}function Fl(e){M(typeof e.canDrag=="function","Expected canDrag to be a function."),M(typeof e.beginDrag=="function","Expected beginDrag to be a function."),M(typeof e.endDrag=="function","Expected endDrag to be a function.")}function jl(e){M(typeof e.canDrop=="function","Expected canDrop to be a function."),M(typeof e.hover=="function","Expected hover to be a function."),M(typeof e.drop=="function","Expected beginDrag to be a function.")}function on(e,t){if(t&&Array.isArray(e)){e.forEach(r=>on(r,!1));return}M(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var J;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(J||(J={}));let Bl=0;function kl(){return Bl++}function Hl(e){const t=kl().toString();switch(e){case J.SOURCE:return`S${t}`;case J.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function fi(e){switch(e[0]){case"S":return J.SOURCE;case"T":return J.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function hi(e,t){const r=e.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===t)return!0;n=!!i}while(!n);return!1}class zl{addSource(t,r){on(t),Fl(r);const n=this.addHandler(J.SOURCE,t,r);return this.store.dispatch(Ll(n)),n}addTarget(t,r){on(t,!0),jl(r);const n=this.addHandler(J.TARGET,t,r);return this.store.dispatch(Vl(n)),n}containsHandler(t){return hi(this.dragSources,t)||hi(this.dropTargets,t)}getSource(t,r=!1){return M(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return M(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return M(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return M(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return fi(t)===J.SOURCE}isTargetId(t){return fi(t)===J.TARGET}removeSource(t){M(this.getSource(t),"Expected an existing source."),this.store.dispatch(Nl(t)),Al(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){M(this.getTarget(t),"Expected an existing target."),this.store.dispatch(_l(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);M(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){M(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const i=Hl(t);return this.types.set(i,r),t===J.SOURCE?this.dragSources.set(i,n):t===J.TARGET&&this.dropTargets.set(i,n),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const Ul=(e,t)=>e===t;function $l(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Wl(e,t,r=Ul){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function ql(e=ht,t){switch(t.type){case Tr:break;case _n:case Fn:case wr:case jn:return ht;case br:case Vn:case Dr:case Sr:default:return Nn}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=Ku(r,n);if(!(i.length>0||!Wl(r,n)))return ht;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function Gl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Gl(e,i,r[i])})}return e}const pi={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Xl(e=pi,t){const{payload:r}=t;switch(t.type){case Ln:case br:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Tr:return $l(e.clientOffset,r.clientOffset)?e:Yl({},e,{clientOffset:r.clientOffset});case Dr:case Sr:return pi;default:return e}}function Kl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Kl(e,i,r[i])})}return e}const Zl={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Jl(e=Zl,t){const{payload:r}=t;switch(t.type){case br:return ke({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Vn:return ke({},e,{isSourcePublic:!0});case Tr:return ke({},e,{targetIds:r.targetIds});case wr:return e.targetIds.indexOf(r.targetId)===-1?e:ke({},e,{targetIds:Xu(e.targetIds,r.targetId)});case Sr:return ke({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Dr:return ke({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Ql(e=0,t){switch(t.type){case _n:case Fn:return e+1;case jn:case wr:return e-1;default:return e}}function ec(e=0){return e+1}function tc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){tc(e,i,r[i])})}return e}function nc(e={},t){return{dirtyHandlerIds:ql(e.dirtyHandlerIds,{type:t.type,payload:rc({},t.payload,{prevTargetIds:Yu(e,"dragOperation.targetIds",[])})}),dragOffset:Xl(e.dragOffset,t),refCount:Ql(e.refCount,t),dragOperation:Jl(e.dragOperation,t),stateId:ec(e.stateId)}}function ic(e,t=void 0,r={},n=!1){const i=oc(n),o=new Cl(i,new zl(i)),a=new Tl(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function oc(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Wu(nc,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function ac(e,t){if(e==null)return{};var r=sc(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sc(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}let vi=0;const rr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var uc=m.memo(function(t){var{children:r}=t,n=ac(t,["children"]);const[i,o]=lc(n);return m.useEffect(()=>{if(o){const a=Aa();return++vi,()=>{--vi===0&&(a[rr]=null)}}},[]),_.jsx(Oa.Provider,{value:i,children:r})});function lc(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=cc(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function cc(e,t=Aa(),r,n){const i=t;return i[rr]||(i[rr]={dragDropManager:ic(e,t,r,n)}),i[rr]}function Aa(){return typeof global<"u"?global:window}const Ne=typeof window<"u"?m.useLayoutEffect:m.useEffect;function La(e,t,r){const[n,i]=m.useState(()=>t(e)),o=m.useCallback(()=>{const a=t(e);ku(n,a)||(i(a),r&&r())},[n,e,r]);return Ne(o),[n,o]}function dc(e,t,r){const[n,i]=La(e,t,r);return Ne(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function Va(e,t,r){return dc(t,e||(()=>({})),()=>r.reconnect())}function Na(e,t){const r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),m.useMemo(()=>typeof e=="function"?e():e,r)}function fc(e){return m.useMemo(()=>e.hooks.dragSource(),[e])}function hc(e){return m.useMemo(()=>e.hooks.dragPreview(),[e])}let _r=!1,Fr=!1;class pc{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){M(!_r,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return _r=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{_r=!1}}isDragging(){if(!this.sourceId)return!1;M(!Fr,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Fr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Fr=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let jr=!1;class vc{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;M(!jr,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return jr=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{jr=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function gc(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function mc(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function an(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let u=0;u<o.length;u++){const l=o[u];if(!s(l))return!1;const c=e[l],d=t[l];if(i=r?r.call(n,c,d,l):void 0,i===!1||i===void 0&&c!==d)return!1}return!0}function sn(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function yc(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function bc(e){return(t=null,r=null)=>{if(!m.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return yc(n),Tc(n,r?o=>e(o,r):e)}}function _a(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=bc(n);t[r]=()=>i}}),t}function gi(e,t){typeof e=="function"?e(t):e.current=t}function Tc(e,t){const r=e.ref;return M(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?m.cloneElement(e,{ref:n=>{gi(r,n),gi(t,n)}}):m.cloneElement(e,{ref:t})}class Sc{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!an(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!an(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=_a({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,sn(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,sn(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class Dc{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!an(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=_a({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,sn(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function me(){const{dragDropManager:e}=m.useContext(Oa);return M(e!=null,"Expected drag drop context"),e}function wc(e,t){const r=me(),n=m.useMemo(()=>new Sc(r.getBackend()),[r]);return Ne(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),Ne(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function Ec(){const e=me();return m.useMemo(()=>new pc(e),[e])}class Cc{beginDrag(){const t=this.spec,r=this.monitor;let n=null;return typeof t.item=="object"?n=t.item:typeof t.item=="function"?n=t.item(r):n={},n??null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const n=this.spec,i=this.monitor,{isDragging:o}=n;return o?o(i):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,n=this.connector,{end:i}=t;i&&i(r.getItem(),r),n.reconnect()}constructor(t,r,n){this.spec=t,this.monitor=r,this.connector=n}}function Oc(e,t,r){const n=m.useMemo(()=>new Cc(e,t,r),[t,r]);return m.useEffect(()=>{n.spec=e},[e]),n}function xc(e){return m.useMemo(()=>{const t=e.type;return M(t!=null,"spec.type must be defined"),t},[e])}function Ic(e,t,r){const n=me(),i=Oc(e,t,r),o=xc(e);Ne(function(){if(o!=null){const[s,u]=mc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u}},[n,t,r,i,o])}function Pc(e,t){const r=Na(e,t);M(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=Ec(),i=wc(r.options,r.previewOptions);return Ic(r,n,i),[Va(r.collect,n,i),fc(i),hc(i)]}function Rc(e){const r=me().getMonitor(),[n,i]=La(r,e);return m.useEffect(()=>r.subscribeToOffsetChange(i)),m.useEffect(()=>r.subscribeToStateChange(i)),n}function Mc(e){return m.useMemo(()=>e.hooks.dropTarget(),[e])}function Ac(e){const t=me(),r=m.useMemo(()=>new Dc(t.getBackend()),[t]);return Ne(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function Lc(){const e=me();return m.useMemo(()=>new vc(e),[e])}function Vc(e){const{accept:t}=e;return m.useMemo(()=>(M(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class Nc{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function _c(e,t){const r=m.useMemo(()=>new Nc(e,t),[t]);return m.useEffect(()=>{r.spec=e},[e]),r}function Fc(e,t,r){const n=me(),i=_c(e,t),o=Vc(e);Ne(function(){const[s,u]=gc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function Fa(e,t){const r=Na(e,t),n=Lc(),i=Ac(r.options);return Fc(r,n,i),[Va(r.collect,n,i),Mc(i)]}function ja(e){let t=null;return()=>(t==null&&(t=e()),t)}function jc(e,t){return e.filter(r=>r!==t)}function Bc(e,t){const r=new Set,n=o=>r.add(o);e.forEach(n),t.forEach(n);const i=[];return r.forEach(o=>i.push(o)),i}class kc{enter(t){const r=this.entered.length,n=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=Bc(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=jc(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class Hc{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const r={};Object.keys(this.config.exposeProperties).forEach(n=>{const i=this.config.exposeProperties[n];i!=null&&(r[n]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,r){return r===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Ba="__NATIVE_FILE__",ka="__NATIVE_URL__",Ha="__NATIVE_TEXT__",za="__NATIVE_HTML__",mi=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ba,HTML:za,TEXT:Ha,URL:ka},Symbol.toStringTag,{value:"Module"}));function Br(e,t,r){const n=t.reduce((i,o)=>i||e.getData(o),"");return n??r}const un={[Ba]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[za]:{exposeProperties:{html:(e,t)=>Br(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[ka]:{exposeProperties:{urls:(e,t)=>Br(e,t,"").split(`
1
+ import{j as _}from"./jsx-runtime-FsUICBgo.js";import{r as m,R as N,g as _u}from"./index-RfLt4OUa.js";import{I as Fu,T as ju,a as Bu}from"./icon-8EQazuuW.js";import{e as ku}from"./index-cCpkwrS5.js";import{a as w,b as k,c as Ea,d as ee,_ as le}from"./tslib.es6-OIsz3r9a.js";import{c as li}from"./index-VW3EWkuE.js";import{C as Hu,I as Nr}from"./common-types-U65vzrrz.js";import{l as ie,M as zu,L as Uu}from"./meta-content-OgN1pVSn.js";import{A as $u}from"./actions-Cy7Captj.js";import{B as Ca}from"./button-shH4xakS.js";import{c as Wu}from"./redux-F5dueAP3.js";import{T as qu}from"./text-6KQ6ntOV.js";import"./objectWithoutPropertiesLoose-9Q1jwsKS.js";import"./inheritsLoose-8sb_A2v4.js";import"./index-4QtD-hFu.js";import"./disabled-context-urNQThQz.js";import"./heading-jZsIIJF0.js";import"./help-icon-SKky6KLV.js";import"./tooltip-HEHiU__l.js";import"./index-miLrID2P.js";import"./badge-23Ty_zBt.js";import"./lodash-Bmg8FrMx.js";import"./types-VB5zD18b.js";import"./types-5uVBABF4.js";import"./spinner-R8Il4aRe.js";import"./objectSpread2-93s0nBry.js";const Oa=m.createContext({dragDropManager:void 0});function M(e,t,...r){if(Gu()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let n;if(t===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;n=new Error(t.replace(/%s/g,function(){return r[i++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function Gu(){return typeof process<"u"&&!0}function Yu(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function Xu(e,t){return e.filter(r=>r!==t)}function xa(e){return typeof e=="object"}function Ku(e,t){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function Zu(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Ln="dnd-core/INIT_COORDS",br="dnd-core/BEGIN_DRAG",Vn="dnd-core/PUBLISH_DRAG_SOURCE",Tr="dnd-core/HOVER",Sr="dnd-core/DROP",Dr="dnd-core/END_DRAG";function ci(e,t){return{type:Ln,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const Ju={type:Ln,payload:{clientOffset:null,sourceClientOffset:null}};function Qu(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,s=e.getMonitor(),u=e.getRegistry();e.dispatch(ci(o)),el(r,s,u);const l=nl(r,s);if(l==null){e.dispatch(Ju);return}let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");tl(a),c=a(l)}e.dispatch(ci(o,c));const h=u.getSource(l).beginDrag(s,l);if(h==null)return;rl(h),u.pinSource(l);const f=u.getSourceType(l);return{type:br,payload:{itemType:f,item:h,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}function el(e,t,r){M(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){M(r.getSource(n),"Expected sourceIds to be registered.")})}function tl(e){M(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function rl(e){M(xa(e),"Item must be an object.")}function nl(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function il(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ol(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){il(e,i,r[i])})}return e}function al(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();sl(n),cl(n).forEach((a,s)=>{const u=ul(a,s,i,n),l={type:Sr,payload:{dropResult:ol({},r,u)}};e.dispatch(l)})}}function sl(e){M(e.isDragging(),"Cannot call drop while not dragging."),M(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function ul(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return ll(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function ll(e){M(typeof e>"u"||xa(e),"Drop result must either be an object or undefined.")}function cl(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function dl(e){return function(){const r=e.getMonitor(),n=e.getRegistry();fl(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:Dr}}}function fl(e){M(e.isDragging(),"Cannot call endDrag while not dragging.")}function nn(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function hl(e){return function(r,{clientOffset:n}={}){pl(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return gl(i,a,s),vl(i,o,a),ml(i,o,a),{type:Tr,payload:{targetIds:i,clientOffset:n||null}}}}function pl(e){M(Array.isArray(e),"Expected targetIds to be an array.")}function vl(e,t,r){M(t.isDragging(),"Cannot call hover while not dragging."),M(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const i=e[n];M(e.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);M(o,"Expected targetIds to be registered.")}}function gl(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);nn(o,r)||e.splice(n,1)}}function ml(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function yl(e){return function(){if(e.getMonitor().isDragging())return{type:Vn}}}function bl(e){return{beginDrag:Qu(e),publishDragSource:yl(e),hover:hl(e),drop:al(e),endDrag:dl(e)}}class Tl{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const s=o.apply(t,a);typeof s<"u"&&r(s)}}const i=bl(this);return Object.keys(i).reduce((o,a)=>{const s=i[a];return o[a]=n(s),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function Sl(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Ia(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Dl(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:Ia(Sl(t,n),r)}function wl(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:Ia(t,r)}const ht=[],Nn=[];ht.__IS_NONE__=!0;Nn.__IS_ALL__=!0;function El(e,t){return e===ht?!1:e===Nn||typeof t>"u"?!0:Zu(t,e).length>0}class Cl{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;M(typeof t=="function","listener must be a function."),M(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),s=a.stateId;try{s===i||s===i+1&&!El(a.dirtyHandlerIds,n)||t()}finally{i=s}};return this.store.subscribe(o)}subscribeToOffsetChange(t){M(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,t())};return this.store.subscribe(n)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return M(r,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(M(r,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(t),i=this.getItemType();return nn(n,i)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(M(r,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(t),i=this.getItemType();return n!==i?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!nn(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const s=a.indexOf(t);return n?s===a.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return Dl(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return wl(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const di=typeof global<"u"?global:self,Pa=di.MutationObserver||di.WebKitMutationObserver;function Ra(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function Ol(e){let t=1;const r=new Pa(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const xl=typeof Pa=="function"?Ol:Ra;class Il{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,i=t.length-this.index;n<i;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=xl(this.flush),this.requestErrorThrow=Ra(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Pl{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Rl{create(t){const r=this.freeTasks,n=r.length?r.pop():new Pl(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Ma=new Il,Ml=new Rl(Ma.registerPendingError);function Al(e){Ma.enqueueTask(Ml.create(e))}const _n="dnd-core/ADD_SOURCE",Fn="dnd-core/ADD_TARGET",jn="dnd-core/REMOVE_SOURCE",wr="dnd-core/REMOVE_TARGET";function Ll(e){return{type:_n,payload:{sourceId:e}}}function Vl(e){return{type:Fn,payload:{targetId:e}}}function Nl(e){return{type:jn,payload:{sourceId:e}}}function _l(e){return{type:wr,payload:{targetId:e}}}function Fl(e){M(typeof e.canDrag=="function","Expected canDrag to be a function."),M(typeof e.beginDrag=="function","Expected beginDrag to be a function."),M(typeof e.endDrag=="function","Expected endDrag to be a function.")}function jl(e){M(typeof e.canDrop=="function","Expected canDrop to be a function."),M(typeof e.hover=="function","Expected hover to be a function."),M(typeof e.drop=="function","Expected beginDrag to be a function.")}function on(e,t){if(t&&Array.isArray(e)){e.forEach(r=>on(r,!1));return}M(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var J;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(J||(J={}));let Bl=0;function kl(){return Bl++}function Hl(e){const t=kl().toString();switch(e){case J.SOURCE:return`S${t}`;case J.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function fi(e){switch(e[0]){case"S":return J.SOURCE;case"T":return J.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function hi(e,t){const r=e.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===t)return!0;n=!!i}while(!n);return!1}class zl{addSource(t,r){on(t),Fl(r);const n=this.addHandler(J.SOURCE,t,r);return this.store.dispatch(Ll(n)),n}addTarget(t,r){on(t,!0),jl(r);const n=this.addHandler(J.TARGET,t,r);return this.store.dispatch(Vl(n)),n}containsHandler(t){return hi(this.dragSources,t)||hi(this.dropTargets,t)}getSource(t,r=!1){return M(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return M(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return M(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return M(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return fi(t)===J.SOURCE}isTargetId(t){return fi(t)===J.TARGET}removeSource(t){M(this.getSource(t),"Expected an existing source."),this.store.dispatch(Nl(t)),Al(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){M(this.getTarget(t),"Expected an existing target."),this.store.dispatch(_l(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);M(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){M(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const i=Hl(t);return this.types.set(i,r),t===J.SOURCE?this.dragSources.set(i,n):t===J.TARGET&&this.dropTargets.set(i,n),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const Ul=(e,t)=>e===t;function $l(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Wl(e,t,r=Ul){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function ql(e=ht,t){switch(t.type){case Tr:break;case _n:case Fn:case wr:case jn:return ht;case br:case Vn:case Dr:case Sr:default:return Nn}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=Ku(r,n);if(!(i.length>0||!Wl(r,n)))return ht;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function Gl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Gl(e,i,r[i])})}return e}const pi={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Xl(e=pi,t){const{payload:r}=t;switch(t.type){case Ln:case br:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Tr:return $l(e.clientOffset,r.clientOffset)?e:Yl({},e,{clientOffset:r.clientOffset});case Dr:case Sr:return pi;default:return e}}function Kl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Kl(e,i,r[i])})}return e}const Zl={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Jl(e=Zl,t){const{payload:r}=t;switch(t.type){case br:return ke({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Vn:return ke({},e,{isSourcePublic:!0});case Tr:return ke({},e,{targetIds:r.targetIds});case wr:return e.targetIds.indexOf(r.targetId)===-1?e:ke({},e,{targetIds:Xu(e.targetIds,r.targetId)});case Sr:return ke({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Dr:return ke({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Ql(e=0,t){switch(t.type){case _n:case Fn:return e+1;case jn:case wr:return e-1;default:return e}}function ec(e=0){return e+1}function tc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){tc(e,i,r[i])})}return e}function nc(e={},t){return{dirtyHandlerIds:ql(e.dirtyHandlerIds,{type:t.type,payload:rc({},t.payload,{prevTargetIds:Yu(e,"dragOperation.targetIds",[])})}),dragOffset:Xl(e.dragOffset,t),refCount:Ql(e.refCount,t),dragOperation:Jl(e.dragOperation,t),stateId:ec(e.stateId)}}function ic(e,t=void 0,r={},n=!1){const i=oc(n),o=new Cl(i,new zl(i)),a=new Tl(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function oc(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Wu(nc,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function ac(e,t){if(e==null)return{};var r=sc(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sc(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}let vi=0;const rr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var uc=m.memo(function(t){var{children:r}=t,n=ac(t,["children"]);const[i,o]=lc(n);return m.useEffect(()=>{if(o){const a=Aa();return++vi,()=>{--vi===0&&(a[rr]=null)}}},[]),_.jsx(Oa.Provider,{value:i,children:r})});function lc(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=cc(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function cc(e,t=Aa(),r,n){const i=t;return i[rr]||(i[rr]={dragDropManager:ic(e,t,r,n)}),i[rr]}function Aa(){return typeof global<"u"?global:window}const Ne=typeof window<"u"?m.useLayoutEffect:m.useEffect;function La(e,t,r){const[n,i]=m.useState(()=>t(e)),o=m.useCallback(()=>{const a=t(e);ku(n,a)||(i(a),r&&r())},[n,e,r]);return Ne(o),[n,o]}function dc(e,t,r){const[n,i]=La(e,t,r);return Ne(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function Va(e,t,r){return dc(t,e||(()=>({})),()=>r.reconnect())}function Na(e,t){const r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),m.useMemo(()=>typeof e=="function"?e():e,r)}function fc(e){return m.useMemo(()=>e.hooks.dragSource(),[e])}function hc(e){return m.useMemo(()=>e.hooks.dragPreview(),[e])}let _r=!1,Fr=!1;class pc{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){M(!_r,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return _r=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{_r=!1}}isDragging(){if(!this.sourceId)return!1;M(!Fr,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Fr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Fr=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let jr=!1;class vc{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;M(!jr,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return jr=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{jr=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function gc(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function mc(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function an(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let u=0;u<o.length;u++){const l=o[u];if(!s(l))return!1;const c=e[l],d=t[l];if(i=r?r.call(n,c,d,l):void 0,i===!1||i===void 0&&c!==d)return!1}return!0}function sn(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function yc(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function bc(e){return(t=null,r=null)=>{if(!m.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return yc(n),Tc(n,r?o=>e(o,r):e)}}function _a(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=bc(n);t[r]=()=>i}}),t}function gi(e,t){typeof e=="function"?e(t):e.current=t}function Tc(e,t){const r=e.ref;return M(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?m.cloneElement(e,{ref:n=>{gi(r,n),gi(t,n)}}):m.cloneElement(e,{ref:t})}class Sc{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!an(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!an(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=_a({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,sn(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,sn(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class Dc{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!an(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=_a({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,sn(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function me(){const{dragDropManager:e}=m.useContext(Oa);return M(e!=null,"Expected drag drop context"),e}function wc(e,t){const r=me(),n=m.useMemo(()=>new Sc(r.getBackend()),[r]);return Ne(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),Ne(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function Ec(){const e=me();return m.useMemo(()=>new pc(e),[e])}class Cc{beginDrag(){const t=this.spec,r=this.monitor;let n=null;return typeof t.item=="object"?n=t.item:typeof t.item=="function"?n=t.item(r):n={},n??null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const n=this.spec,i=this.monitor,{isDragging:o}=n;return o?o(i):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,n=this.connector,{end:i}=t;i&&i(r.getItem(),r),n.reconnect()}constructor(t,r,n){this.spec=t,this.monitor=r,this.connector=n}}function Oc(e,t,r){const n=m.useMemo(()=>new Cc(e,t,r),[t,r]);return m.useEffect(()=>{n.spec=e},[e]),n}function xc(e){return m.useMemo(()=>{const t=e.type;return M(t!=null,"spec.type must be defined"),t},[e])}function Ic(e,t,r){const n=me(),i=Oc(e,t,r),o=xc(e);Ne(function(){if(o!=null){const[s,u]=mc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u}},[n,t,r,i,o])}function Pc(e,t){const r=Na(e,t);M(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=Ec(),i=wc(r.options,r.previewOptions);return Ic(r,n,i),[Va(r.collect,n,i),fc(i),hc(i)]}function Rc(e){const r=me().getMonitor(),[n,i]=La(r,e);return m.useEffect(()=>r.subscribeToOffsetChange(i)),m.useEffect(()=>r.subscribeToStateChange(i)),n}function Mc(e){return m.useMemo(()=>e.hooks.dropTarget(),[e])}function Ac(e){const t=me(),r=m.useMemo(()=>new Dc(t.getBackend()),[t]);return Ne(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function Lc(){const e=me();return m.useMemo(()=>new vc(e),[e])}function Vc(e){const{accept:t}=e;return m.useMemo(()=>(M(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class Nc{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function _c(e,t){const r=m.useMemo(()=>new Nc(e,t),[t]);return m.useEffect(()=>{r.spec=e},[e]),r}function Fc(e,t,r){const n=me(),i=_c(e,t),o=Vc(e);Ne(function(){const[s,u]=gc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function Fa(e,t){const r=Na(e,t),n=Lc(),i=Ac(r.options);return Fc(r,n,i),[Va(r.collect,n,i),Mc(i)]}function ja(e){let t=null;return()=>(t==null&&(t=e()),t)}function jc(e,t){return e.filter(r=>r!==t)}function Bc(e,t){const r=new Set,n=o=>r.add(o);e.forEach(n),t.forEach(n);const i=[];return r.forEach(o=>i.push(o)),i}class kc{enter(t){const r=this.entered.length,n=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=Bc(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=jc(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class Hc{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const r={};Object.keys(this.config.exposeProperties).forEach(n=>{const i=this.config.exposeProperties[n];i!=null&&(r[n]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,r){return r===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Ba="__NATIVE_FILE__",ka="__NATIVE_URL__",Ha="__NATIVE_TEXT__",za="__NATIVE_HTML__",mi=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ba,HTML:za,TEXT:Ha,URL:ka},Symbol.toStringTag,{value:"Module"}));function Br(e,t,r){const n=t.reduce((i,o)=>i||e.getData(o),"");return n??r}const un={[Ba]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[za]:{exposeProperties:{html:(e,t)=>Br(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[ka]:{exposeProperties:{urls:(e,t)=>Br(e,t,"").split(`
2
2
  `),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Ha]:{exposeProperties:{text:(e,t)=>Br(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function zc(e,t){const r=un[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new Hc(r);return n.loadDataTransfer(t),n}function kr(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(un).filter(r=>{const n=un[r];return n!=null&&n.matchesTypes?n.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const Uc=ja(()=>/firefox/i.test(navigator.userAgent)),Ua=ja(()=>!!window.safari);class yi{interpolate(t){const{xs:r,ys:n,c1s:i,c2s:o,c3s:a}=this;let s=r.length-1;if(t===r[s])return n[s];let u=0,l=a.length-1,c;for(;u<=l;){c=Math.floor(.5*(u+l));const f=r[c];if(f<t)u=c+1;else if(f>t)l=c-1;else return n[c]}s=Math.max(0,l);const d=t-r[s],h=d*d;return n[s]+i[s]*d+o[s]*h+a[s]*d*h}constructor(t,r){const{length:n}=t,i=[];for(let f=0;f<n;f++)i.push(f);i.sort((f,p)=>t[f]<t[p]?-1:1);const o=[],a=[];let s,u;for(let f=0;f<n-1;f++)s=t[f+1]-t[f],u=r[f+1]-r[f],o.push(s),a.push(u/s);const l=[a[0]];for(let f=0;f<o.length-1;f++){const p=a[f],v=a[f+1];if(p*v<=0)l.push(0);else{s=o[f];const g=o[f+1],y=s+g;l.push(3*y/((y+g)/p+(y+s)/v))}}l.push(a[a.length-1]);const c=[],d=[];let h;for(let f=0;f<l.length-1;f++){h=a[f];const p=l[f],v=1/o[f],g=p+l[f+1]-h-h;c.push((h-p-g)*v),d.push(g*v*v)}this.xs=t,this.ys=r,this.c1s=l,this.c2s=c,this.c3s=d}}const $c=1;function $a(e){const t=e.nodeType===$c?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function Ft(e){return{x:e.clientX,y:e.clientY}}function Wc(e){var t;return e.nodeName==="IMG"&&(Uc()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function qc(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return Ua()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function Gc(e,t,r,n,i){const o=Wc(t),s=$a(o?e:t),u={x:r.x-s.x,y:r.y-s.y},{offsetWidth:l,offsetHeight:c}=e,{anchorX:d,anchorY:h}=n,{dragPreviewWidth:f,dragPreviewHeight:p}=qc(o,t,l,c),v=()=>{let E=new yi([0,.5,1],[u.y,u.y/c*p,u.y+p-c]).interpolate(h);return Ua()&&o&&(E+=(window.devicePixelRatio-1)*p),E},g=()=>new yi([0,.5,1],[u.x,u.x/l*f,u.x+f-l]).interpolate(d),{offsetX:y,offsetY:T}=i,S=y===0||y,b=T===0||T;return{x:S?y:g(),y:b?T:v()}}let Yc=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,r){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=r}};function Xc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Xc(e,i,r[i])})}return e}class Kc{profile(){var t,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,r,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,r),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,r,n){this.sourceNodes.set(t,r),this.sourceNodeOptions.set(t,n);const i=a=>this.handleDragStart(a,t),o=a=>this.handleSelectStart(a);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",i),r.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),r.removeEventListener("dragstart",i),r.removeEventListener("selectstart",o),r.setAttribute("draggable","false")}}connectDropTarget(t,r){const n=a=>this.handleDragEnter(a,t),i=a=>this.handleDragOver(a,t),o=a=>this.handleDrop(a,t);return r.addEventListener("dragenter",n),r.addEventListener("dragover",i),r.addEventListener("drop",o),()=>{r.removeEventListener("dragenter",n),r.removeEventListener("dragover",i),r.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(t);return bi({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(t);return bi({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(mi).some(r=>mi[r]===t)}beginDragNativeItem(t,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=zc(t,r),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var n;return(n=this.rootElement)===null||n===void 0?void 0:n.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,r){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(t,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(t,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(t,r){this.dropTargetIds.unshift(r)}constructor(t,r,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&$a(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=Ft(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:s}=i,u=kr(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const c=this.monitor.getSourceId(),d=this.sourceNodes.get(c),h=this.sourcePreviewNodes.get(c)||d;if(h){const{anchorX:f,anchorY:p,offsetX:v,offsetY:g}=this.getCurrentSourcePreviewNodeOptions(),S=Gc(d,h,a,{anchorX:f,anchorY:p},{offsetX:v,offsetY:g});s.setDragImage(h,S.x,S.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:l}=this.getCurrentSourcePreviewNodeOptions();l?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(u)this.beginDragNativeItem(u);else{if(s&&!s.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:s}=i,u=kr(s);u&&this.beginDragNativeItem(u,s)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:Ft(i)}),o.some(s=>this.monitor.canDropOnTarget(s))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=Ft(i),this.scheduleHover(o),(o||[]).some(s=>this.monitor.canDropOnTarget(s))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else kr(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:Ft(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new Yc(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new kc(this.isNodeInDocument)}}let jt;function Zc(){return jt||(jt=new Image,jt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),jt}const Jc=function(t,r,n){return new Kc(t,r,n)};var Le=[],Qc=function(){return Le.some(function(e){return e.activeTargets.length>0})},ed=function(){return Le.some(function(e){return e.skippedTargets.length>0})},Ti="ResizeObserver loop completed with undelivered notifications.",td=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ti}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ti),window.dispatchEvent(e)},wt;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(wt||(wt={}));var Ve=function(e){return Object.freeze(e)},rd=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Ve(this)}return e}(),Wa=function(){function e(t,r,n,i){return this.x=t,this.y=r,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ve(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,i=t.top,o=t.right,a=t.bottom,s=t.left,u=t.width,l=t.height;return{x:r,y:n,top:i,right:o,bottom:a,left:s,width:u,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Bn=function(e){return e instanceof SVGElement&&"getBBox"in e},qa=function(e){if(Bn(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},Si=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},nd=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},pt=typeof window<"u"?window:{},Bt=new WeakMap,Di=/auto|scroll/,id=/^tb|vertical/,od=/msie|trident/i.test(pt.navigator&&pt.navigator.userAgent),ae=function(e){return parseFloat(e||"0")},Ge=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new rd((r?t:e)||0,(r?e:t)||0)},wi=Ve({devicePixelContentBoxSize:Ge(),borderBoxSize:Ge(),contentBoxSize:Ge(),contentRect:new Wa(0,0,0,0)}),Ga=function(e,t){if(t===void 0&&(t=!1),Bt.has(e)&&!t)return Bt.get(e);if(qa(e))return Bt.set(e,wi),wi;var r=getComputedStyle(e),n=Bn(e)&&e.ownerSVGElement&&e.getBBox(),i=!od&&r.boxSizing==="border-box",o=id.test(r.writingMode||""),a=!n&&Di.test(r.overflowY||""),s=!n&&Di.test(r.overflowX||""),u=n?0:ae(r.paddingTop),l=n?0:ae(r.paddingRight),c=n?0:ae(r.paddingBottom),d=n?0:ae(r.paddingLeft),h=n?0:ae(r.borderTopWidth),f=n?0:ae(r.borderRightWidth),p=n?0:ae(r.borderBottomWidth),v=n?0:ae(r.borderLeftWidth),g=d+l,y=u+c,T=v+f,S=h+p,b=s?e.offsetHeight-S-e.clientHeight:0,D=a?e.offsetWidth-T-e.clientWidth:0,E=i?g+T:0,C=i?y+S:0,x=n?n.width:ae(r.width)-E-D,I=n?n.height:ae(r.height)-C-b,L=x+g+D+T,j=I+y+b+S,H=Ve({devicePixelContentBoxSize:Ge(Math.round(x*devicePixelRatio),Math.round(I*devicePixelRatio),o),borderBoxSize:Ge(L,j,o),contentBoxSize:Ge(x,I,o),contentRect:new Wa(d,u,x,I)});return Bt.set(e,H),H},Ya=function(e,t,r){var n=Ga(e,r),i=n.borderBoxSize,o=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case wt.DEVICE_PIXEL_CONTENT_BOX:return a;case wt.BORDER_BOX:return i;default:return o}},ad=function(){function e(t){var r=Ga(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Ve([r.borderBoxSize]),this.contentBoxSize=Ve([r.contentBoxSize]),this.devicePixelContentBoxSize=Ve([r.devicePixelContentBoxSize])}return e}(),Xa=function(e){if(qa(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},sd=function(){var e=1/0,t=[];Le.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(l){var c=new ad(l.target),d=Xa(l.target);s.push(c),l.lastReportedSize=Ya(l.target,l.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var i=n[r];i()}return e},Ei=function(e){Le.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(i){i.isActive()&&(Xa(i.target)>e?r.activeTargets.push(i):r.skippedTargets.push(i))})})},ud=function(){var e=0;for(Ei(e);Qc();)e=sd(),Ei(e);return ed()&&td(),e>0},Hr,Ka=[],ld=function(){return Ka.splice(0).forEach(function(e){return e()})},cd=function(e){if(!Hr){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return ld()}).observe(r,n),Hr=function(){r.textContent="".concat(t?t--:t++)}}Ka.push(e),Hr()},dd=function(e){cd(function(){requestAnimationFrame(e)})},nr=0,fd=function(){return!!nr},hd=250,pd={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ci=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Oi=function(e){return e===void 0&&(e=0),Date.now()+e},zr=!1,vd=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=hd),!zr){zr=!0;var n=Oi(t);dd(function(){var i=!1;try{i=ud()}finally{if(zr=!1,t=n-Oi(),!fd())return;i?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,pd)};document.body?r():pt.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ci.forEach(function(r){return pt.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ci.forEach(function(r){return pt.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),ln=new vd,xi=function(e){!nr&&e>0&&ln.start(),nr+=e,!nr&&ln.stop()},gd=function(e){return!Bn(e)&&!nd(e)&&getComputedStyle(e).display==="inline"},md=function(){function e(t,r){this.target=t,this.observedBox=r||wt.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ya(this.target,this.observedBox,!0);return gd(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),yd=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),kt=new WeakMap,Ii=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},Ht=function(){function e(){}return e.connect=function(t,r){var n=new yd(t,r);kt.set(t,n)},e.observe=function(t,r,n){var i=kt.get(t),o=i.observationTargets.length===0;Ii(i.observationTargets,r)<0&&(o&&Le.push(i),i.observationTargets.push(new md(r,n&&n.box)),xi(1),ln.schedule())},e.unobserve=function(t,r){var n=kt.get(t),i=Ii(n.observationTargets,r),o=n.observationTargets.length===1;i>=0&&(o&&Le.splice(Le.indexOf(n),1),n.observationTargets.splice(i,1),xi(-1))},e.disconnect=function(t){var r=this,n=kt.get(t);n.observationTargets.slice().forEach(function(i){return r.unobserve(t,i.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),bd=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ht.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Si(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ht.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Si(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ht.unobserve(this,t)},e.prototype.disconnect=function(){Ht.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Td={},Sd="production",Za=typeof process>"u"||Td===void 0?Sd:"production",fe=function(e){return{isEnabled:function(t){return e.some(function(r){return!!t[r]})}}},Et={measureLayout:fe(["layout","layoutId","drag"]),animation:fe(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:fe(["exit"]),drag:fe(["drag","dragControls"]),focus:fe(["whileFocus"]),hover:fe(["whileHover","onHoverStart","onHoverEnd"]),tap:fe(["whileTap","onTap","onTapStart","onTapCancel"]),pan:fe(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:fe(["whileInView","onViewportEnter","onViewportLeave"])};function Dd(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Et.projectionNodeConstructor=e[t]:Et[t].Component=e[t])}var ur=function(){},Ja=m.createContext({strict:!1}),Qa=Object.keys(Et),wd=Qa.length;function Ed(e,t,r){var n=[],i=m.useContext(Ja);if(!t)return null;Za!=="production"&&r&&i.strict;for(var o=0;o<wd;o++){var a=Qa[o],s=Et[a],u=s.isEnabled,l=s.Component;u(e)&&l&&n.push(m.createElement(l,w({key:a},e,{visualElement:t})))}return n}var kn=m.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Er=m.createContext({});function Cd(){return m.useContext(Er).visualElement}var Cr=m.createContext(null),Qe=typeof document<"u",Pi=Qe?m.useLayoutEffect:m.useEffect,cn={current:null},es=!1;function Od(){if(es=!0,!!Qe)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return cn.current=e.matches};e.addListener(t),t()}else cn.current=!1}function xd(){!es&&Od();var e=k(m.useState(cn.current),1),t=e[0];return t}function Id(){var e=xd(),t=m.useContext(kn).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function Pd(e,t,r,n){var i=m.useContext(Ja),o=Cd(),a=m.useContext(Cr),s=Id(),u=m.useRef(void 0);n||(n=i.renderer),!u.current&&n&&(u.current=n(e,{visualState:t,parent:o,props:r,presenceId:a==null?void 0:a.id,blockInitialAnimation:(a==null?void 0:a.initial)===!1,shouldReduceMotion:s}));var l=u.current;return Pi(function(){l==null||l.syncRender()}),m.useEffect(function(){var c;(c=l==null?void 0:l.animationState)===null||c===void 0||c.animateChanges()}),Pi(function(){return function(){return l==null?void 0:l.notifyUnmount()}},[]),l}function Ue(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Rd(e,t,r){return m.useCallback(function(n){var i;n&&((i=e.mount)===null||i===void 0||i.call(e,n)),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Ue(r)&&(r.current=n))},[t])}function ts(e){return Array.isArray(e)}function oe(e){return typeof e=="string"||ts(e)}function Md(e){var t={};return e.forEachValue(function(r,n){return t[n]=r.get()}),t}function Ad(e){var t={};return e.forEachValue(function(r,n){return t[n]=r.getVelocity()}),t}function rs(e,t,r,n,i){var o;return n===void 0&&(n={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(r??e.custom,n,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(r??e.custom,n,i)),t}function Or(e,t,r){var n=e.getProps();return rs(n,t,r??n.custom,Md(e),Ad(e))}function xr(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||oe(e.initial)||oe(e.animate)||oe(e.whileHover)||oe(e.whileDrag)||oe(e.whileTap)||oe(e.whileFocus)||oe(e.exit)}function ns(e){return!!(xr(e)||e.variants)}function Ld(e,t){if(xr(e)){var r=e.initial,n=e.animate;return{initial:r===!1||oe(r)?r:void 0,animate:oe(n)?n:void 0}}return e.inherit!==!1?t:{}}function Vd(e){var t=Ld(e,m.useContext(Er)),r=t.initial,n=t.animate;return m.useMemo(function(){return{initial:r,animate:n}},[Ri(r),Ri(n)])}function Ri(e){return Array.isArray(e)?e.join(" "):e}function Ir(e){var t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}var vt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Nd=1;function _d(){return Ir(function(){if(vt.hasEverUpdated)return Nd++})}var is=m.createContext({}),os=m.createContext({});function Fd(e,t,r,n){var i,o=t.layoutId,a=t.layout,s=t.drag,u=t.dragConstraints,l=t.layoutScroll,c=m.useContext(os);!n||!r||r!=null&&r.projection||(r.projection=new n(e,r.getLatestValues(),(i=r.parent)===null||i===void 0?void 0:i.projection),r.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!s||u&&Ue(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:typeof a=="string"?a:"both",initialPromotionConfig:c,layoutScroll:l}))}var jd=function(e){Ea(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var r=this.props,n=r.visualElement,i=r.props;n&&n.setProps(i)},t.prototype.render=function(){return this.props.children},t}(N.Component);function Bd(e){var t=e.preloadedFeatures,r=e.createVisualElement,n=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,a=e.Component;t&&Dd(t);function s(u,l){var c=kd(u);u=w(w({},u),{layoutId:c});var d=m.useContext(kn),h=null,f=Vd(u),p=d.isStatic?void 0:_d(),v=o(u,d.isStatic);return!d.isStatic&&Qe&&(f.visualElement=Pd(a,v,w(w({},d),u),r),Fd(p,u,f.visualElement,n||Et.projectionNodeConstructor),h=Ed(u,f.visualElement,t)),m.createElement(jd,{visualElement:f.visualElement,props:w(w({},d),u)},h,m.createElement(Er.Provider,{value:f},i(a,u,p,Rd(v,f.visualElement,l),v,d.isStatic,f.visualElement)))}return m.forwardRef(s)}function kd(e){var t,r=e.layoutId,n=(t=m.useContext(is))===null||t===void 0?void 0:t.id;return n&&r!==void 0?n+"-"+r:r}function Hd(e){function t(n,i){return i===void 0&&(i={}),Bd(e(n,i))}if(typeof Proxy>"u")return t;var r=new Map;return new Proxy(t,{get:function(n,i){return r.has(i)||r.set(i,t(i)),r.get(i)}})}var zd=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Hn(e){return typeof e!="string"||e.includes("-")?!1:!!(zd.indexOf(e)>-1||/[A-Z]/.test(e))}var lr={};function Ud(e){Object.assign(lr,e)}var dn=["","X","Y","Z"],$d=["translate","scale","rotate","skew"],Ct=["transformPerspective","x","y","z"];$d.forEach(function(e){return dn.forEach(function(t){return Ct.push(e+t)})});function Wd(e,t){return Ct.indexOf(e)-Ct.indexOf(t)}var qd=new Set(Ct);function Rt(e){return qd.has(e)}var Gd=new Set(["originX","originY","originZ"]);function as(e){return Gd.has(e)}function ss(e,t){var r=t.layout,n=t.layoutId;return Rt(e)||as(e)||(r||n!==void 0)&&(!!lr[e]||e==="opacity")}var he=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},Yd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Xd(e,t,r,n){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=a===void 0?!0:a,u=t.allowTransformNone,l=u===void 0?!0:u,c="";o.sort(Wd);for(var d=!1,h=o.length,f=0;f<h;f++){var p=o[f];c+="".concat(Yd[p]||p,"(").concat(i[p],") "),p==="z"&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),n?c=n(i,r?"":c):l&&r&&(c="none"),c}function Kd(e){var t=e.originX,r=t===void 0?"50%":t,n=e.originY,i=n===void 0?"50%":n,o=e.originZ,a=o===void 0?0:o;return"".concat(r," ").concat(i," ").concat(a)}function us(e){return e.startsWith("--")}var Zd=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const ls=(e,t)=>r=>Math.max(Math.min(r,t),e),gt=e=>e%1?Number(e.toFixed(5)):e,Ot=/(-)?([\d]*\.?[\d])+/g,fn=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Jd=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Mt(e){return typeof e=="string"}const Fe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},mt=Object.assign(Object.assign({},Fe),{transform:ls(0,1)}),zt=Object.assign(Object.assign({},Fe),{default:1}),At=e=>({test:t=>Mt(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Se=At("deg"),ce=At("%"),R=At("px"),Qd=At("vh"),ef=At("vw"),Mi=Object.assign(Object.assign({},ce),{parse:e=>ce.parse(e)/100,transform:e=>ce.transform(e*100)}),zn=(e,t)=>r=>!!(Mt(r)&&Jd.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),cs=(e,t,r)=>n=>{if(!Mt(n))return n;const[i,o,a,s]=n.match(Ot);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Ae={test:zn("hsl","hue"),parse:cs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ce.transform(gt(t))+", "+ce.transform(gt(r))+", "+gt(mt.transform(n))+")"},tf=ls(0,255),Ur=Object.assign(Object.assign({},Fe),{transform:e=>Math.round(tf(e))}),Ee={test:zn("rgb","red"),parse:cs("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ur.transform(e)+", "+Ur.transform(t)+", "+Ur.transform(r)+", "+gt(mt.transform(n))+")"};function rf(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const hn={test:zn("#"),parse:rf,transform:Ee.transform},$={test:e=>Ee.test(e)||hn.test(e)||Ae.test(e),parse:e=>Ee.test(e)?Ee.parse(e):Ae.test(e)?Ae.parse(e):hn.parse(e),transform:e=>Mt(e)?e:e.hasOwnProperty("red")?Ee.transform(e):Ae.transform(e)},ds="${c}",fs="${n}";function nf(e){var t,r,n,i;return isNaN(e)&&Mt(e)&&((r=(t=e.match(Ot))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(fn))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function hs(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(fn);n&&(r=n.length,e=e.replace(fn,ds),t.push(...n.map($.parse)));const i=e.match(Ot);return i&&(e=e.replace(Ot,fs),t.push(...i.map(Fe.parse))),{values:t,numColors:r,tokenised:e}}function ps(e){return hs(e).values}function vs(e){const{values:t,numColors:r,tokenised:n}=hs(e),i=t.length;return o=>{let a=n;for(let s=0;s<i;s++)a=a.replace(s<r?ds:fs,s<r?$.transform(o[s]):gt(o[s]));return a}}const of=e=>typeof e=="number"?0:e;function af(e){const t=ps(e);return vs(e)(t.map(of))}const pe={test:nf,parse:ps,createTransformer:vs,getAnimatableNone:af},sf=new Set(["brightness","contrast","saturate","opacity"]);function uf(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Ot)||[];if(!n)return e;const i=r.replace(n,"");let o=sf.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const lf=/([a-z-]*)\(.*?\)/g,pn=Object.assign(Object.assign({},pe),{getAnimatableNone:e=>{const t=e.match(lf);return t?t.map(uf).join(" "):e}});var Ai=w(w({},Fe),{transform:Math.round}),gs={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,size:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,rotate:Se,rotateX:Se,rotateY:Se,rotateZ:Se,scale:zt,scaleX:zt,scaleY:zt,scaleZ:zt,skew:Se,skewX:Se,skewY:Se,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:mt,originX:Mi,originY:Mi,originZ:R,zIndex:Ai,fillOpacity:mt,strokeOpacity:mt,numOctaves:Ai};function Un(e,t,r,n){var i,o=e.style,a=e.vars,s=e.transform,u=e.transformKeys,l=e.transformOrigin;u.length=0;var c=!1,d=!1,h=!0;for(var f in t){var p=t[f];if(us(f)){a[f]=p;continue}var v=gs[f],g=Zd(p,v);if(Rt(f)){if(c=!0,s[f]=g,u.push(f),!h)continue;p!==((i=v.default)!==null&&i!==void 0?i:0)&&(h=!1)}else as(f)?(l[f]=g,d=!0):o[f]=g}c?o.transform=Xd(e,r,h,n):n?o.transform=n({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=Kd(l))}var $n=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function ms(e,t,r){for(var n in t)!he(t[n])&&!ss(n,r)&&(e[n]=t[n])}function cf(e,t,r){var n=e.transformTemplate;return m.useMemo(function(){var i=$n();Un(i,t,{enableHardwareAcceleration:!r},n);var o=i.vars,a=i.style;return w(w({},o),a)},[t])}function df(e,t,r){var n=e.style||{},i={};return ms(i,n,e),Object.assign(i,cf(e,t,r)),e.transformValues&&(i=e.transformValues(i)),i}function ff(e,t,r){var n={},i=df(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),n.style=i,n}var hf=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function cr(e){return hf.has(e)}var ys=function(e){return!cr(e)};function pf(e){e&&(ys=function(t){return t.startsWith("on")?!cr(t):e(t)})}try{pf(require("@emotion/is-prop-valid").default)}catch{}function vf(e,t,r){var n={};for(var i in e)(ys(i)||r===!0&&cr(i)||!t&&!cr(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function Li(e,t,r){return typeof e=="string"?e:R.transform(t+r*e)}function gf(e,t,r){var n=Li(t,e.x,e.width),i=Li(r,e.y,e.height);return"".concat(n," ").concat(i)}var mf={offset:"stroke-dashoffset",array:"stroke-dasharray"},yf={offset:"strokeDashoffset",array:"strokeDasharray"};function bf(e,t,r,n,i){r===void 0&&(r=1),n===void 0&&(n=0),i===void 0&&(i=!0),e.pathLength=1;var o=i?mf:yf;e[o.offset]=R.transform(-n);var a=R.transform(t),s=R.transform(r);e[o.array]="".concat(a," ").concat(s)}function Wn(e,t,r,n){var i=t.attrX,o=t.attrY,a=t.originX,s=t.originY,u=t.pathLength,l=t.pathSpacing,c=l===void 0?1:l,d=t.pathOffset,h=d===void 0?0:d,f=ee(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Un(e,f,r,n),e.attrs=e.style,e.style={};var p=e.attrs,v=e.style,g=e.dimensions;p.transform&&(g&&(v.transform=p.transform),delete p.transform),g&&(a!==void 0||s!==void 0||v.transform)&&(v.transformOrigin=gf(g,a!==void 0?a:.5,s!==void 0?s:.5)),i!==void 0&&(p.x=i),o!==void 0&&(p.y=o),u!==void 0&&bf(p,u,c,h,!1)}var bs=function(){return w(w({},$n()),{attrs:{}})};function Tf(e,t){var r=m.useMemo(function(){var i=bs();return Wn(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),w(w({},i.attrs),{style:w({},i.style)})},[t]);if(e.style){var n={};ms(n,e.style,e),r.style=w(w({},n),r.style)}return r}function Sf(e){e===void 0&&(e=!1);var t=function(r,n,i,o,a,s){var u=a.latestValues,l=Hn(r)?Tf:ff,c=l(n,u,s),d=vf(n,typeof r=="string",e),h=w(w(w({},d),c),{ref:o});return i&&(h["data-projection-id"]=i),m.createElement(r,h)};return t}var Df=/([a-z])([A-Z])/g,wf="$1-$2",Ts=function(e){return e.replace(Df,wf).toLowerCase()};function Ss(e,t,r,n){var i=t.style,o=t.vars;Object.assign(e.style,i,n&&n.getProjectionStyles(r));for(var a in o)e.style.setProperty(a,o[a])}var Ds=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function ws(e,t,r,n){Ss(e,t,void 0,n);for(var i in t.attrs)e.setAttribute(Ds.has(i)?i:Ts(i),t.attrs[i])}function qn(e){var t=e.style,r={};for(var n in t)(he(t[n])||ss(n,e))&&(r[n]=t[n]);return r}function Es(e){var t=qn(e);for(var r in e)if(he(e[r])){var n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}function Gn(e){return typeof e=="object"&&typeof e.start=="function"}var xt=function(e){return Array.isArray(e)},Ef=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},Cs=function(e){return xt(e)?e[e.length-1]||0:e};function ir(e){var t=he(e)?e.get():e;return Ef(t)?t.toValue():t}function Vi(e,t,r,n){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:Cf(t,r,n,i),renderState:o()};return a&&(s.mount=function(u){return a(t,u,s)}),s}var Os=function(e){return function(t,r){var n=m.useContext(Er),i=m.useContext(Cr);return r?Vi(e,t,n,i):Ir(function(){return Vi(e,t,n,i)})}};function Cf(e,t,r,n){var i={},o=(r==null?void 0:r.initial)===!1,a=n(e);for(var s in a)i[s]=ir(a[s]);var u=e.initial,l=e.animate,c=xr(e),d=ns(e);t&&d&&!c&&e.inherit!==!1&&(u??(u=t.initial),l??(l=t.animate));var h=o||u===!1,f=h?l:u;if(f&&typeof f!="boolean"&&!Gn(f)){var p=Array.isArray(f)?f:[f];p.forEach(function(v){var g=rs(e,v);if(g){var y=g.transitionEnd;g.transition;var T=ee(g,["transitionEnd","transition"]);for(var S in T){var b=T[S];if(Array.isArray(b)){var D=h?b.length-1:0;b=b[D]}b!==null&&(i[S]=b)}for(var S in y)i[S]=y[S]}})}return i}var Of={useVisualState:Os({scrapeMotionValuesFromProps:Es,createRenderState:bs,onMount:function(e,t,r){var n=r.renderState,i=r.latestValues;try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}Wn(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),ws(t,n)}})},xf={useVisualState:Os({scrapeMotionValuesFromProps:qn,createRenderState:$n})};function If(e,t,r,n,i){var o=t.forwardMotionProps,a=o===void 0?!1:o,s=Hn(e)?Of:xf;return w(w({},s),{preloadedFeatures:r,useRender:Sf(a),createVisualElement:n,projectionNodeConstructor:i,Component:e})}var F;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(F||(F={}));function Pr(e,t,r,n){return n===void 0&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function vn(e,t,r,n){m.useEffect(function(){var i=e.current;if(r&&i)return Pr(i,t,r,n)},[e,t,r,n])}function Pf(e){var t=e.whileFocus,r=e.visualElement,n=function(){var o;(o=r.animationState)===null||o===void 0||o.setActive(F.Focus,!0)},i=function(){var o;(o=r.animationState)===null||o===void 0||o.setActive(F.Focus,!1)};vn(r,"focus",t?n:void 0),vn(r,"blur",t?i:void 0)}function xs(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function Is(e){var t=!!e.touches;return t}function Rf(e){return function(t){var r=t instanceof MouseEvent,n=!r||r&&t.button===0;n&&e(t)}}var Mf={pageX:0,pageY:0};function Af(e,t){t===void 0&&(t="page");var r=e.touches[0]||e.changedTouches[0],n=r||Mf;return{x:n[t+"X"],y:n[t+"Y"]}}function Lf(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Yn(e,t){return t===void 0&&(t="page"),{point:Is(e)?Af(e,t):Lf(e,t)}}var Ps=function(e,t){t===void 0&&(t=!1);var r=function(n){return e(n,Yn(n))};return t?Rf(r):r},Vf=function(){return Qe&&window.onpointerdown===null},Nf=function(){return Qe&&window.ontouchstart===null},_f=function(){return Qe&&window.onmousedown===null},Ff={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},jf={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Rs(e){return Vf()?e:Nf()?jf[e]:_f()?Ff[e]:e}function Ye(e,t,r,n){return Pr(e,Rs(t),Ps(r,t==="pointerdown"),n)}function dr(e,t,r,n){return vn(e,Rs(t),r&&Ps(r,t==="pointerdown"),n)}function Ms(e){var t=null;return function(){var r=function(){t=null};return t===null?(t=e,r):!1}}var Ni=Ms("dragHorizontal"),_i=Ms("dragVertical");function As(e){var t=!1;if(e==="y")t=_i();else if(e==="x")t=Ni();else{var r=Ni(),n=_i();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function Ls(){var e=As(!0);return e?(e(),!1):!0}function Fi(e,t,r){return function(n,i){var o;!xs(n)||Ls()||((o=e.animationState)===null||o===void 0||o.setActive(F.Hover,t),r==null||r(n,i))}}function Bf(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;dr(i,"pointerenter",t||n?Fi(i,!0,t):void 0,{passive:!t}),dr(i,"pointerleave",r||n?Fi(i,!1,r):void 0,{passive:!r})}var Vs=function(e,t){return t?e===t?!0:Vs(e,t.parentElement):!1};function Ns(e){return m.useEffect(function(){return function(){return e()}},[])}const fr=(e,t,r)=>Math.min(Math.max(r,e),t),$r=.001,kf=.01,Hf=10,zf=.05,Uf=1;function $f({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o,a=1-t;a=fr(zf,Uf,a),e=fr(kf,Hf,e/1e3),a<1?(i=l=>{const c=l*a,d=c*e,h=c-r,f=gn(l,a),p=Math.exp(-d);return $r-h/f*p},o=l=>{const d=l*a*e,h=d*r+r,f=Math.pow(a,2)*Math.pow(l,2)*e,p=Math.exp(-d),v=gn(Math.pow(l,2),a);return(-i(l)+$r>0?-1:1)*((h-f)*p)/v}):(i=l=>{const c=Math.exp(-l*e),d=(l-r)*e+1;return-$r+c*d},o=l=>{const c=Math.exp(-l*e),d=(r-l)*(e*e);return c*d});const s=5/e,u=qf(i,o,s);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const Wf=12;function qf(e,t,r){let n=r;for(let i=1;i<Wf;i++)n=n-e(n)/t(n);return n}function gn(e,t){return e*Math.sqrt(1-t*t)}const Gf=["duration","bounce"],Yf=["stiffness","damping","mass"];function ji(e,t){return t.some(r=>e[r]!==void 0)}function Xf(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ji(e,Yf)&&ji(e,Gf)){const r=$f(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Xn(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=ee(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:d,isResolvedFromDuration:h}=Xf(o),f=Bi,p=Bi;function v(){const g=c?-(c/1e3):0,y=r-t,T=u/(2*Math.sqrt(s*l)),S=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),T<1){const b=gn(S,T);f=D=>{const E=Math.exp(-T*S*D);return r-E*((g+T*S*y)/b*Math.sin(b*D)+y*Math.cos(b*D))},p=D=>{const E=Math.exp(-T*S*D);return T*S*E*(Math.sin(b*D)*(g+T*S*y)/b+y*Math.cos(b*D))-E*(Math.cos(b*D)*(g+T*S*y)-b*y*Math.sin(b*D))}}else if(T===1)f=b=>r-Math.exp(-S*b)*(y+(g+S*y)*b);else{const b=S*Math.sqrt(T*T-1);f=D=>{const E=Math.exp(-T*S*D),C=Math.min(b*D,300);return r-E*((g+T*S*y)*Math.sinh(C)+b*y*Math.cosh(C))/b}}}return v(),{next:g=>{const y=f(g);if(h)a.done=g>=d;else{const T=p(g)*1e3,S=Math.abs(T)<=n,b=Math.abs(r-y)<=i;a.done=S&&b}return a.value=a.done?r:y,a},flipTarget:()=>{c=-c,[t,r]=[r,t],v()}}}Xn.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Bi=e=>0,It=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},B=(e,t,r)=>-r*e+r*t+e;function Wr(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ki({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=Wr(u,s,e+1/3),o=Wr(u,s,e),a=Wr(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const Kf=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},Zf=[hn,Ee,Ae],Hi=e=>Zf.find(t=>t.test(e)),_s=(e,t)=>{let r=Hi(e),n=Hi(t),i=r.parse(e),o=n.parse(t);r===Ae&&(i=ki(i),r=Ee),n===Ae&&(o=ki(o),n=Ee);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=Kf(i[u],o[u],s));return a.alpha=B(i.alpha,o.alpha,s),r.transform(a)}},mn=e=>typeof e=="number",Jf=(e,t)=>r=>t(e(r)),Rr=(...e)=>e.reduce(Jf);function Fs(e,t){return mn(e)?r=>B(e,t,r):$.test(e)?_s(e,t):Bs(e,t)}const js=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>Fs(o,t[a]));return o=>{for(let a=0;a<n;a++)r[a]=i[a](o);return r}},Qf=(e,t)=>{const r=Object.assign(Object.assign({},e),t),n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=Fs(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function zi(e){const t=pe.parse(e),r=t.length;let n=0,i=0,o=0;for(let a=0;a<r;a++)n||typeof t[a]=="number"?n++:t[a].hue!==void 0?o++:i++;return{parsed:t,numNumbers:n,numRGB:i,numHSL:o}}const Bs=(e,t)=>{const r=pe.createTransformer(t),n=zi(e),i=zi(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?Rr(js(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},eh=(e,t)=>r=>B(e,t,r);function th(e){if(typeof e=="number")return eh;if(typeof e=="string")return $.test(e)?_s:Bs;if(Array.isArray(e))return js;if(typeof e=="object")return Qf}function rh(e,t,r){const n=[],i=r||th(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]:t;s=Rr(u,s)}n.push(s)}return n}function nh([e,t],[r]){return n=>r(It(e,t,n))}function ih(e,t){const r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let u=1;for(;u<r&&!(e[u]>i||u===n);u++);o=u-1}const s=It(e[o],e[o+1],i);return t[o](s)}}function ks(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;ur(o===t.length),ur(!n||!Array.isArray(n)||n.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=rh(t,n,i),s=o===2?nh(e,a):ih(e,a);return r?u=>s(fr(e[0],e[o-1],u)):s}const Mr=e=>t=>1-e(1-t),Kn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oh=e=>t=>Math.pow(t,e),Hs=e=>t=>t*t*((e+1)*t-e),ah=e=>{const t=Hs(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},zs=1.525,sh=4/11,uh=8/11,lh=9/10,Zn=e=>e,Jn=oh(2),ch=Mr(Jn),Us=Kn(Jn),$s=e=>1-Math.sin(Math.acos(e)),Qn=Mr($s),dh=Kn(Qn),ei=Hs(zs),fh=Mr(ei),hh=Kn(ei),ph=ah(zs),vh=4356/361,gh=35442/1805,mh=16061/1805,hr=e=>{if(e===1||e===0)return e;const t=e*e;return e<sh?7.5625*t:e<uh?9.075*t-9.9*e+3.4:e<lh?vh*t-gh*e+mh:10.8*e*e-20.52*e+10.72},yh=Mr(hr),bh=e=>e<.5?.5*(1-hr(1-e*2)):.5*hr(e*2-1)+.5;function Th(e,t){return e.map(()=>t||Us).splice(0,e.length-1)}function Sh(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function Dh(e,t){return e.map(r=>r*t)}function or({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=Dh(n&&n.length===a.length?n:Sh(a),i);function u(){return ks(s,a,{ease:Array.isArray(r)?r:Th(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function wh({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=r*e;const u=t+s,l=o===void 0?u:o(u);return l!==u&&(s=l-t),{next:c=>{const d=-s*Math.exp(-c/n);return a.done=!(d>i||d<-i),a.value=a.done?l:l+d,a},flipTarget:()=>{}}}const Ui={keyframes:or,spring:Xn,decay:wh};function Eh(e){if(Array.isArray(e.to))return or;if(Ui[e.type])return Ui[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?or:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Xn:or}const Ws=1/60*1e3,Ch=typeof performance<"u"?()=>performance.now():()=>Date.now(),qs=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Ch()),Ws);function Oh(e){let t=[],r=[],n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const d=c&&i,h=d?t:r;return l&&a.add(u),h.indexOf(u)===-1&&(h.push(u),d&&i&&(n=t.length)),u},cancel:u=>{const l=r.indexOf(u);l!==-1&&r.splice(l,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l<n;l++){const c=t[l];c(u),a.has(c)&&(s.schedule(c),e())}i=!1,o&&(o=!1,s.process(u))}};return s}const xh=40;let yn=!0,Pt=!1,bn=!1;const Xe={delta:0,timestamp:0},Lt=["read","update","preRender","render","postRender"],Ar=Lt.reduce((e,t)=>(e[t]=Oh(()=>Pt=!0),e),{}),de=Lt.reduce((e,t)=>{const r=Ar[t];return e[t]=(n,i=!1,o=!1)=>(Pt||Ph(),r.schedule(n,i,o)),e},{}),Ze=Lt.reduce((e,t)=>(e[t]=Ar[t].cancel,e),{}),qr=Lt.reduce((e,t)=>(e[t]=()=>Ar[t].process(Xe),e),{}),Ih=e=>Ar[e].process(Xe),Gs=e=>{Pt=!1,Xe.delta=yn?Ws:Math.max(Math.min(e-Xe.timestamp,xh),1),Xe.timestamp=e,bn=!0,Lt.forEach(Ih),bn=!1,Pt&&(yn=!1,qs(Gs))},Ph=()=>{Pt=!0,yn=!0,bn||qs(Gs)},pr=()=>Xe;function Ys(e,t,r=0){return e-t-r}function Rh(e,t,r=0,n=!0){return n?Ys(t+-e,t,r):t-(e-t)+r}function Mh(e,t,r,n){return n?e>=t+r:e<=-r}const Ah=e=>{const t=({delta:r})=>e(r);return{start:()=>de.update(t,!0),stop:()=>Ze.update(t)}};function Xs(e){var t,r,{from:n,autoplay:i=!0,driver:o=Ah,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:d,onComplete:h,onRepeat:f,onUpdate:p}=e,v=ee(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:g}=v,y,T=0,S=v.duration,b,D=!1,E=!0,C;const x=Eh(v);!((r=(t=x).needsInterpolation)===null||r===void 0)&&r.call(t,n,g)&&(C=ks([0,100],[n,g],{clamp:!1}),n=0,g=100);const I=x(Object.assign(Object.assign({},v),{from:n,to:g}));function L(){T++,u==="reverse"?(E=T%2===0,a=Rh(a,S,l,E)):(a=Ys(a,S,l),u==="mirror"&&I.flipTarget()),D=!1,f&&f()}function j(){y.stop(),h&&h()}function H(Y){if(E||(Y=-Y),a+=Y,!D){const te=I.next(Math.max(0,a));b=te.value,C&&(b=C(b)),D=E?te.done:a<=0}p==null||p(b),D&&(T===0&&(S??(S=a)),T<s?Mh(a,S,l,E)&&L():j())}function G(){c==null||c(),y=o(H),y.start()}return i&&G(),{stop:()=>{d==null||d(),y.stop()}}}function Ks(e,t){return t?e*(1e3/t):0}function Lh({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:l,driver:c,onUpdate:d,onComplete:h,onStop:f}){let p;function v(S){return r!==void 0&&S<r||n!==void 0&&S>n}function g(S){return r===void 0?n:n===void 0||Math.abs(r-S)<Math.abs(n-S)?r:n}function y(S){p==null||p.stop(),p=Xs(Object.assign(Object.assign({},S),{driver:c,onUpdate:b=>{var D;d==null||d(b),(D=S.onUpdate)===null||D===void 0||D.call(S,b)},onComplete:h,onStop:f}))}function T(S){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},S))}if(v(e))T({from:e,velocity:t,to:g(e)});else{let S=i*t+e;typeof l<"u"&&(S=l(S));const b=g(S),D=b===r?-1:1;let E,C;const x=I=>{E=C,C=I,t=Ks(I-E,pr().delta),(D===1&&I>b||D===-1&&I<b)&&T({from:I,to:b,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:u,modifyTarget:l,onUpdate:v(S)?x:void 0})}return{stop:()=>p==null?void 0:p.stop()}}const Tn=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),$i=e=>Tn(e)&&e.hasOwnProperty("z"),Ut=(e,t)=>Math.abs(e-t);function Zs(e,t){if(mn(e)&&mn(t))return Ut(e,t);if(Tn(e)&&Tn(t)){const r=Ut(e.x,t.x),n=Ut(e.y,t.y),i=$i(e)&&$i(t)?Ut(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}const Js=(e,t)=>1-3*t+3*e,Qs=(e,t)=>3*t-6*e,eu=e=>3*e,vr=(e,t,r)=>((Js(t,r)*e+Qs(t,r))*e+eu(t))*e,tu=(e,t,r)=>3*Js(t,r)*e*e+2*Qs(t,r)*e+eu(t),Vh=1e-7,Nh=10;function _h(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=vr(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>Vh&&++s<Nh);return a}const Fh=8,jh=.001;function Bh(e,t,r,n){for(let i=0;i<Fh;++i){const o=tu(t,r,n);if(o===0)return t;const a=vr(t,r,n)-e;t-=a/o}return t}const ar=11,$t=1/(ar-1);function kh(e,t,r,n){if(e===t&&r===n)return Zn;const i=new Float32Array(ar);for(let a=0;a<ar;++a)i[a]=vr(a*$t,e,r);function o(a){let s=0,u=1;const l=ar-1;for(;u!==l&&i[u]<=a;++u)s+=$t;--u;const c=(a-i[u])/(i[u+1]-i[u]),d=s+c*$t,h=tu(d,e,r);return h>=jh?Bh(a,d,e,r):h===0?d:_h(a,s,s+$t,e,r)}return a=>a===0||a===1?a:vr(o(a),t,n)}function Hh(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,o=e.visualElement,a=t||r||n||i,s=m.useRef(!1),u=m.useRef(null),l={passive:!(r||t||n||p)};function c(){var v;(v=u.current)===null||v===void 0||v.call(u),u.current=null}function d(){var v;return c(),s.current=!1,(v=o.animationState)===null||v===void 0||v.setActive(F.Tap,!1),!Ls()}function h(v,g){d()&&(Vs(o.getInstance(),v.target)?t==null||t(v,g):n==null||n(v,g))}function f(v,g){d()&&(n==null||n(v,g))}function p(v,g){var y;c(),!s.current&&(s.current=!0,u.current=Rr(Ye(window,"pointerup",h,l),Ye(window,"pointercancel",f,l)),(y=o.animationState)===null||y===void 0||y.setActive(F.Tap,!0),r==null||r(v,g))}dr(o,"pointerdown",a?p:void 0,l),Ns(c)}var Wi=new Set;function zh(e,t,r){e||Wi.has(t)||(console.warn(t),r&&console.warn(r),Wi.add(t))}var Sn=new WeakMap,Gr=new WeakMap,Uh=function(e){var t;(t=Sn.get(e.target))===null||t===void 0||t(e)},$h=function(e){e.forEach(Uh)};function Wh(e){var t=e.root,r=ee(e,["root"]),n=t||document;Gr.has(n)||Gr.set(n,{});var i=Gr.get(n),o=JSON.stringify(r);return i[o]||(i[o]=new IntersectionObserver($h,w({root:t},r))),i[o]}function qh(e,t,r){var n=Wh(t);return Sn.set(e,r),n.observe(e),function(){Sn.delete(e),n.unobserve(e)}}function Gh(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=o===void 0?{}:o,s=m.useRef({hasEnteredView:!1,isInView:!1}),u=!!(r||n||i);a.once&&s.current.hasEnteredView&&(u=!1);var l=typeof IntersectionObserver>"u"?Kh:Xh;l(u,s.current,t,a)}var Yh={some:0,all:1};function Xh(e,t,r,n){var i=n.root,o=n.margin,a=n.amount,s=a===void 0?"some":a,u=n.once;m.useEffect(function(){if(e){var l={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof s=="number"?s:Yh[s]},c=function(d){var h,f=d.isIntersecting;if(t.isInView!==f&&(t.isInView=f,!(u&&!f&&t.hasEnteredView))){f&&(t.hasEnteredView=!0),(h=r.animationState)===null||h===void 0||h.setActive(F.InView,f);var p=r.getProps(),v=f?p.onViewportEnter:p.onViewportLeave;v==null||v(d)}};return qh(r.getInstance(),l,c)}},[e,i,o,s])}function Kh(e,t,r,n){var i=n.fallback,o=i===void 0?!0:i;m.useEffect(function(){!e||!o||(Za!=="production"&&zh(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var a;t.hasEnteredView=!0;var s=r.getProps().onViewportEnter;s==null||s(null),(a=r.animationState)===null||a===void 0||a.setActive(F.InView,!0)}))},[e])}var Ce=function(e){return function(t){return e(t),null}},Zh={inView:Ce(Gh),tap:Ce(Hh),focus:Ce(Pf),hover:Ce(Bf)},Jh=0,Qh=function(){return Jh++},ep=function(){return Ir(Qh)};function ru(){var e=m.useContext(Cr);if(e===null)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=ep();m.useEffect(function(){return n(i)},[]);var o=function(){return r==null?void 0:r(i)};return!t&&r?[!1,o]:[!0]}function nu(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var gr=function(e){return e*1e3},tp={linear:Zn,easeIn:Jn,easeInOut:Us,easeOut:ch,circIn:$s,circInOut:dh,circOut:Qn,backIn:ei,backInOut:hh,backOut:fh,anticipate:ph,bounceIn:yh,bounceInOut:bh,bounceOut:hr},qi=function(e){if(Array.isArray(e)){ur(e.length===4);var t=k(e,4),r=t[0],n=t[1],i=t[2],o=t[3];return kh(r,n,i,o)}else if(typeof e=="string")return tp[e];return e},rp=function(e){return Array.isArray(e)&&typeof e[0]!="number"},Gi=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&pe.test(t)&&!t.startsWith("url("))},Pe=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Wt=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Yr=function(){return{type:"keyframes",ease:"linear",duration:.3}},np=function(e){return{type:"keyframes",duration:.8,values:e}},Yi={x:Pe,y:Pe,z:Pe,rotate:Pe,rotateX:Pe,rotateY:Pe,rotateZ:Pe,scaleX:Wt,scaleY:Wt,scale:Wt,opacity:Yr,backgroundColor:Yr,color:Yr,default:Wt},ip=function(e,t){var r;return xt(t)?r=np:r=Yi[e]||Yi.default,w({to:t},r(t))},op=w(w({},gs),{color:$,backgroundColor:$,outlineColor:$,fill:$,stroke:$,borderColor:$,borderTopColor:$,borderRightColor:$,borderBottomColor:$,borderLeftColor:$,filter:pn,WebkitFilter:pn}),ti=function(e){return op[e]};function ri(e,t){var r,n=ti(e);return n!==pn&&(n=pe),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}function ap(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=ee(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}function sp(e){var t=e.ease,r=e.times,n=e.yoyo,i=e.flip,o=e.loop,a=ee(e,["ease","times","yoyo","flip","loop"]),s=w({},a);return r&&(s.offset=r),a.duration&&(s.duration=gr(a.duration)),a.repeatDelay&&(s.repeatDelay=gr(a.repeatDelay)),t&&(s.ease=rp(t)?t.map(qi):qi(t)),a.type==="tween"&&(s.type="keyframes"),(n||o||i)&&(n?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||n||i||a.repeat),a.type!=="spring"&&(s.type="keyframes"),s}function up(e,t){var r,n,i=ni(e,t)||{};return(n=(r=i.delay)!==null&&r!==void 0?r:e.delay)!==null&&n!==void 0?n:0}function lp(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=le([],k(e.to),!1),e.to[0]=e.from),e}function cp(e,t,r){var n;return Array.isArray(t.to)&&((n=e.duration)!==null&&n!==void 0||(e.duration=.8)),lp(t),ap(e)||(e=w(w({},e),ip(r,t.to))),w(w({},t),sp(e))}function dp(e,t,r,n,i){var o,a=ni(n,e),s=(o=a.from)!==null&&o!==void 0?o:t.get(),u=Gi(e,r);s==="none"&&u&&typeof r=="string"?s=ri(e,r):Xi(s)&&typeof r=="string"?s=Ki(r):!Array.isArray(r)&&Xi(r)&&typeof s=="string"&&(r=Ki(s));var l=Gi(e,s);function c(){var h={from:s,to:r,velocity:t.getVelocity(),onComplete:i,onUpdate:function(f){return t.set(f)}};return a.type==="inertia"||a.type==="decay"?Lh(w(w({},h),a)):Xs(w(w({},cp(a,h,e)),{onUpdate:function(f){var p;h.onUpdate(f),(p=a.onUpdate)===null||p===void 0||p.call(a,f)},onComplete:function(){var f;h.onComplete(),(f=a.onComplete)===null||f===void 0||f.call(a)}}))}function d(){var h,f,p=Cs(r);return t.set(p),i(),(h=a==null?void 0:a.onUpdate)===null||h===void 0||h.call(a,p),(f=a==null?void 0:a.onComplete)===null||f===void 0||f.call(a),{stop:function(){}}}return!l||!u||a.type===!1?d:c}function Xi(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Ki(e){return typeof e=="number"?0:ri("",e)}function ni(e,t){return e[t]||e.default||e}function ii(e,t,r,n){return n===void 0&&(n={}),t.start(function(i){var o,a,s=dp(e,t,r,n,i),u=up(n,e),l=function(){return a=s()};return u?o=window.setTimeout(l,gr(u)):l(),function(){clearTimeout(o),a==null||a.stop()}})}var fp=function(e){return/^\-?\d*\.?\d+$/.test(e)},hp=function(e){return/^0[^.\s]+$/.test(e)};function oi(e,t){e.indexOf(t)===-1&&e.push(t)}function ai(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var yt=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var r=this;return oi(this.subscriptions,t),function(){return ai(r.subscriptions,t)}},e.prototype.notify=function(t,r,n){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(var o=0;o<i;o++){var a=this.subscriptions[o];a&&a(t,r,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),pp=function(e){return!isNaN(parseFloat(e))},vp=function(){function e(t){var r=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new yt,this.velocityUpdateSubscribers=new yt,this.renderSubscribers=new yt,this.canTrackVelocity=!1,this.updateAndNotify=function(n,i){i===void 0&&(i=!0),r.prev=r.current,r.current=n;var o=pr(),a=o.delta,s=o.timestamp;r.lastUpdated!==s&&(r.timeDelta=a,r.lastUpdated=s,de.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.updateSubscribers.notify(r.current),r.velocityUpdateSubscribers.getSize()&&r.velocityUpdateSubscribers.notify(r.getVelocity()),i&&r.renderSubscribers.notify(r.current)},this.scheduleVelocityCheck=function(){return de.postRender(r.velocityCheck)},this.velocityCheck=function(n){var i=n.timestamp;i!==r.lastUpdated&&(r.prev=r.current,r.velocityUpdateSubscribers.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=pp(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,r){r===void 0&&(r=!0),!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Ks(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var r=this;return this.stop(),new Promise(function(n){r.hasAnimated=!0,r.stopAnimation=t(n)}).then(function(){return r.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Je(e){return new vp(e)}var iu=function(e){return function(t){return t.test(e)}},gp={test:function(e){return e==="auto"},parse:function(e){return e}},ou=[Fe,R,ce,Se,ef,Qd,gp],rt=function(e){return ou.find(iu(e))},mp=le(le([],k(ou),!1),[$,pe],!1),yp=function(e){return mp.find(iu(e))};function bp(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Je(r))}function Tp(e,t){var r=Or(e,t),n=r?e.makeTargetAnimatable(r,!1):{},i=n.transitionEnd,o=i===void 0?{}:i;n.transition;var a=ee(n,["transitionEnd","transition"]);a=w(w({},a),o);for(var s in a){var u=Cs(a[s]);bp(e,s,u)}}function Sp(e,t,r){var n,i,o,a,s=Object.keys(t).filter(function(f){return!e.hasValue(f)}),u=s.length;if(u)for(var l=0;l<u;l++){var c=s[l],d=t[c],h=null;Array.isArray(d)&&(h=d[0]),h===null&&(h=(i=(n=r[c])!==null&&n!==void 0?n:e.readValue(c))!==null&&i!==void 0?i:t[c]),h!=null&&(typeof h=="string"&&(fp(h)||hp(h))?h=parseFloat(h):!yp(h)&&pe.test(d)&&(h=ri(c,d)),e.addValue(c,Je(h)),(o=(a=r)[c])!==null&&o!==void 0||(a[c]=h),e.setBaseTarget(c,h))}}function Dp(e,t){if(t){var r=t[e]||t.default||t;return r.from}}function wp(e,t,r){var n,i,o={};for(var a in e)o[a]=(n=Dp(a,t))!==null&&n!==void 0?n:(i=r.getValue(a))===null||i===void 0?void 0:i.get();return o}function Ep(e,t,r){r===void 0&&(r={}),e.notifyAnimationStart(t);var n;if(Array.isArray(t)){var i=t.map(function(a){return Dn(e,a,r)});n=Promise.all(i)}else if(typeof t=="string")n=Dn(e,t,r);else{var o=typeof t=="function"?Or(e,t,r.custom):t;n=au(e,o,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}function Dn(e,t,r){var n;r===void 0&&(r={});var i=Or(e,t,r.custom),o=(i||{}).transition,a=o===void 0?e.getDefaultTransition()||{}:o;r.transitionOverride&&(a=r.transitionOverride);var s=i?function(){return au(e,i,r)}:function(){return Promise.resolve()},u=!((n=e.variantChildren)===null||n===void 0)&&n.size?function(f){f===void 0&&(f=0);var p=a.delayChildren,v=p===void 0?0:p,g=a.staggerChildren,y=a.staggerDirection;return Cp(e,t,v+f,g,y,r)}:function(){return Promise.resolve()},l=a.when;if(l){var c=k(l==="beforeChildren"?[s,u]:[u,s],2),d=c[0],h=c[1];return d().then(h)}else return Promise.all([s(),u(r.delay)])}function au(e,t,r){var n,i=r===void 0?{}:r,o=i.delay,a=o===void 0?0:o,s=i.transitionOverride,u=i.type,l=e.makeTargetAnimatable(t),c=l.transition,d=c===void 0?e.getDefaultTransition():c,h=l.transitionEnd,f=ee(l,["transition","transitionEnd"]);s&&(d=s);var p=[],v=u&&((n=e.animationState)===null||n===void 0?void 0:n.getState()[u]);for(var g in f){var y=e.getValue(g),T=f[g];if(!(!y||T===void 0||v&&xp(v,g))){var S=w({delay:a},d);e.shouldReduceMotion&&Rt(g)&&(S=w(w({},S),{type:!1,delay:0}));var b=ii(g,y,T,S);p.push(b)}}return Promise.all(p).then(function(){h&&Tp(e,h)})}function Cp(e,t,r,n,i,o){r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=1);var a=[],s=(e.variantChildren.size-1)*n,u=i===1?function(l){return l===void 0&&(l=0),l*n}:function(l){return l===void 0&&(l=0),s-l*n};return Array.from(e.variantChildren).sort(Op).forEach(function(l,c){a.push(Dn(l,t,w(w({},o),{delay:r+u(c)})).then(function(){return l.notifyAnimationComplete(t)}))}),Promise.all(a)}function Op(e,t){return e.sortNodePosition(t)}function xp(e,t){var r=e.protectedKeys,n=e.needsAnimating,i=r.hasOwnProperty(t)&&n[t]!==!0;return n[t]=!1,i}var si=[F.Animate,F.InView,F.Focus,F.Hover,F.Tap,F.Drag,F.Exit],Ip=le([],k(si),!1).reverse(),Pp=si.length;function Rp(e){return function(t){return Promise.all(t.map(function(r){var n=r.animation,i=r.options;return Ep(e,n,i)}))}}function Mp(e){var t=Rp(e),r=Lp(),n={},i=!0,o=function(c,d){var h=Or(e,d);if(h){h.transition;var f=h.transitionEnd,p=ee(h,["transition","transitionEnd"]);c=w(w(w({},c),p),f)}return c};function a(c){return n[c]!==void 0}function s(c){t=c(e)}function u(c,d){for(var h,f=e.getProps(),p=e.getVariantContext(!0)||{},v=[],g=new Set,y={},T=1/0,S=function(C){var x=Ip[C],I=r[x],L=(h=f[x])!==null&&h!==void 0?h:p[x],j=oe(L),H=x===d?I.isActive:null;H===!1&&(T=C);var G=L===p[x]&&L!==f[x]&&j;if(G&&i&&e.manuallyAnimateOnMount&&(G=!1),I.protectedKeys=w({},y),!I.isActive&&H===null||!L&&!I.prevProp||Gn(L)||typeof L=="boolean")return"continue";var Y=Ap(I.prevProp,L),te=Y||x===d&&I.isActive&&!G&&j||C>T&&j,be=Array.isArray(L)?L:[L],X=be.reduce(o,{});H===!1&&(X={});var et=I.prevResolvedValues,je=et===void 0?{}:et,Nt=w(w({},je),X),Be=function(P){te=!0,g.delete(P),I.needsAnimating[P]=!0};for(var q in Nt){var V=X[q],O=je[q];y.hasOwnProperty(q)||(V!==O?xt(V)&&xt(O)?!nu(V,O)||Y?Be(q):I.protectedKeys[q]=!0:V!==void 0?Be(q):g.add(q):V!==void 0&&g.has(q)?Be(q):I.protectedKeys[q]=!0)}I.prevProp=L,I.prevResolvedValues=X,I.isActive&&(y=w(w({},y),X)),i&&e.blockInitialAnimation&&(te=!1),te&&!G&&v.push.apply(v,le([],k(be.map(function(P){return{animation:P,options:w({type:x},c)}})),!1))},b=0;b<Pp;b++)S(b);if(n=w({},y),g.size){var D={};g.forEach(function(C){var x=e.getBaseTarget(C);x!==void 0&&(D[C]=x)}),v.push({animation:D})}var E=!!v.length;return i&&f.initial===!1&&!e.manuallyAnimateOnMount&&(E=!1),i=!1,E?t(v):Promise.resolve()}function l(c,d,h){var f;if(r[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(function(g){var y;return(y=g.animationState)===null||y===void 0?void 0:y.setActive(c,d)}),r[c].isActive=d;var p=u(h,c);for(var v in r)r[v].protectedKeys={};return p}return{isAnimated:a,animateChanges:u,setActive:l,setAnimateFunction:s,getState:function(){return r}}}function Ap(e,t){return typeof t=="string"?t!==e:ts(t)?!nu(t,e):!1}function Re(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lp(){var e;return e={},e[F.Animate]=Re(!0),e[F.InView]=Re(),e[F.Hover]=Re(),e[F.Tap]=Re(),e[F.Drag]=Re(),e[F.Focus]=Re(),e[F.Exit]=Re(),e}var Vp={animation:Ce(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=Mp(t)),Gn(r)&&m.useEffect(function(){return r.subscribe(t)},[r])}),exit:Ce(function(e){var t=e.custom,r=e.visualElement,n=k(ru(),2),i=n[0],o=n[1],a=m.useContext(Cr);m.useEffect(function(){var s,u;r.isPresent=i;var l=(s=r.animationState)===null||s===void 0?void 0:s.setActive(F.Exit,!i,{custom:(u=a==null?void 0:a.custom)!==null&&u!==void 0?u:t});!i&&(l==null||l.then(o))},[i])})},su=function(){function e(t,r,n){var i=this,o=n===void 0?{}:n,a=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var h=Kr(i.lastMoveEventInfo,i.history),f=i.startEvent!==null,p=Zs(h.offset,{x:0,y:0})>=3;if(!(!f&&!p)){var v=h.point,g=pr().timestamp;i.history.push(w(w({},v),{timestamp:g}));var y=i.handlers,T=y.onStart,S=y.onMove;f||(T&&T(i.lastMoveEvent,h),i.startEvent=i.lastMoveEvent),S&&S(i.lastMoveEvent,h)}}},this.handlePointerMove=function(h,f){if(i.lastMoveEvent=h,i.lastMoveEventInfo=Xr(f,i.transformPagePoint),xs(h)&&h.buttons===0){i.handlePointerUp(h,f);return}de.update(i.updatePoint,!0)},this.handlePointerUp=function(h,f){i.end();var p=i.handlers,v=p.onEnd,g=p.onSessionEnd,y=Kr(Xr(f,i.transformPagePoint),i.history);i.startEvent&&v&&v(h,y),g&&g(h,y)},!(Is(t)&&t.touches.length>1)){this.handlers=r,this.transformPagePoint=a;var s=Yn(t),u=Xr(s,this.transformPagePoint),l=u.point,c=pr().timestamp;this.history=[w(w({},l),{timestamp:c})];var d=r.onSessionStart;d&&d(t,Kr(u,this.history)),this.removeListeners=Rr(Ye(window,"pointermove",this.handlePointerMove),Ye(window,"pointerup",this.handlePointerUp),Ye(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ze.update(this.updatePoint)},e}();function Xr(e,t){return t?{point:t(e.point)}:e}function Zi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Kr(e,t){var r=e.point;return{point:r,delta:Zi(r,uu(t)),offset:Zi(r,Np(t)),velocity:_p(t,.1)}}function Np(e){return e[0]}function uu(e){return e[e.length-1]}function _p(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=uu(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>gr(t)));)r--;if(!n)return{x:0,y:0};var o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};var a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ve(e){return e.max-e.min}function Ji(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=.01),Zs(e,t)<r}function Qi(e,t,r,n){n===void 0&&(n=.5),e.origin=n,e.originPoint=B(t.min,t.max,e.origin),e.scale=ve(r)/ve(t),(Ji(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=B(r.min,r.max,e.origin)-e.originPoint,(Ji(e.translate)||isNaN(e.translate))&&(e.translate=0)}function bt(e,t,r,n){Qi(e.x,t.x,r.x,n==null?void 0:n.originX),Qi(e.y,t.y,r.y,n==null?void 0:n.originY)}function eo(e,t,r){e.min=r.min+t.min,e.max=e.min+ve(t)}function Fp(e,t,r){eo(e.x,t.x,r.x),eo(e.y,t.y,r.y)}function to(e,t,r){e.min=t.min-r.min,e.max=e.min+ve(t)}function Tt(e,t,r){to(e.x,t.x,r.x),to(e.y,t.y,r.y)}function jp(e,t,r){var n=t.min,i=t.max;return n!==void 0&&e<n?e=r?B(n,e,r.min):Math.max(e,n):i!==void 0&&e>i&&(e=r?B(i,e,r.max):Math.min(e,i)),e}function ro(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Bp(e,t){var r=t.top,n=t.left,i=t.bottom,o=t.right;return{x:ro(e.x,n,o),y:ro(e.y,r,i)}}function no(e,t){var r,n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=k([i,n],2),n=r[0],i=r[1]),{min:n,max:i}}function kp(e,t){return{x:no(e.x,t.x),y:no(e.y,t.y)}}function Hp(e,t){var r=.5,n=ve(e),i=ve(t);return i>n?r=It(t.min,t.max-n,e.min):n>i&&(r=It(e.min,e.max-i,t.min)),fr(0,1,r)}function zp(e,t){var r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var wn=.35;function Up(e){return e===void 0&&(e=wn),e===!1?e=0:e===!0&&(e=wn),{x:io(e,"left","right"),y:io(e,"top","bottom")}}function io(e,t,r){return{min:oo(e,t),max:oo(e,r)}}function oo(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}var ao=function(){return{translate:0,scale:1,origin:0,originPoint:0}},St=function(){return{x:ao(),y:ao()}},so=function(){return{min:0,max:0}},z=function(){return{x:so(),y:so()}};function ue(e){return[e("x"),e("y")]}function lu(e){var t=e.top,r=e.left,n=e.right,i=e.bottom;return{x:{min:r,max:n},y:{min:t,max:i}}}function $p(e){var t=e.x,r=e.y;return{top:r.min,right:t.max,bottom:r.max,left:t.min}}function Wp(e,t){if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Zr(e){return e===void 0||e===1}function cu(e){var t=e.scale,r=e.scaleX,n=e.scaleY;return!Zr(t)||!Zr(r)||!Zr(n)}function De(e){return cu(e)||uo(e.x)||uo(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function uo(e){return e&&e!=="0%"}function mr(e,t,r){var n=e-r,i=t*n;return r+i}function lo(e,t,r,n,i){return i!==void 0&&(e=mr(e,i,n)),mr(e,r,n)+t}function En(e,t,r,n,i){t===void 0&&(t=0),r===void 0&&(r=1),e.min=lo(e.min,t,r,n,i),e.max=lo(e.max,t,r,n,i)}function du(e,t){var r=t.x,n=t.y;En(e.x,r.translate,r.scale,r.originPoint),En(e.y,n.translate,n.scale,n.originPoint)}function qp(e,t,r,n){var i,o;n===void 0&&(n=!1);var a=r.length;if(a){t.x=t.y=1;for(var s,u,l=0;l<a;l++)s=r[l],u=s.projectionDelta,((o=(i=s.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&$e(e,{x:-s.scroll.x,y:-s.scroll.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,du(e,u)),n&&De(s.latestValues)&&$e(e,s.latestValues))}}function we(e,t){e.min=e.min+t,e.max=e.max+t}function co(e,t,r){var n=k(r,3),i=n[0],o=n[1],a=n[2],s=t[a]!==void 0?t[a]:.5,u=B(e.min,e.max,s);En(e,t[i],t[o],u,t.scale)}var Gp=["x","scaleX","originX"],Yp=["y","scaleY","originY"];function $e(e,t){co(e.x,t,Gp),co(e.y,t,Yp)}function fu(e,t){return lu(Wp(e.getBoundingClientRect(),t))}function Xp(e,t,r){var n=fu(e,r),i=t.scroll;return i&&(we(n.x,i.x),we(n.y,i.y)),n}var Kp=new WeakMap,Zp=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=z(),this.visualElement=t}return e.prototype.start=function(t,r){var n=this,i=r===void 0?{}:r,o=i.snapToCursor,a=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var s=function(d){n.stopAnimation(),a&&n.snapToCursor(Yn(d,"page").point)},u=function(d,h){var f,p=n.getProps(),v=p.drag,g=p.dragPropagation,y=p.onDragStart;v&&!g&&(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=As(v),!n.openGlobalLock)||(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),ue(function(T){var S,b,D=n.getAxisMotionValue(T).get()||0;if(ce.test(D)){var E=(b=(S=n.visualElement.projection)===null||S===void 0?void 0:S.layout)===null||b===void 0?void 0:b.actual[T];if(E){var C=ve(E);D=C*(parseFloat(D)/100)}}n.originPoint[T]=D}),y==null||y(d,h),(f=n.visualElement.animationState)===null||f===void 0||f.setActive(F.Drag,!0))},l=function(d,h){var f=n.getProps(),p=f.dragPropagation,v=f.dragDirectionLock,g=f.onDirectionLock,y=f.onDrag;if(!(!p&&!n.openGlobalLock)){var T=h.offset;if(v&&n.currentDirection===null){n.currentDirection=Jp(T),n.currentDirection!==null&&(g==null||g(n.currentDirection));return}n.updateAxis("x",h.point,T),n.updateAxis("y",h.point,T),n.visualElement.syncRender(),y==null||y(d,h)}},c=function(d,h){return n.stop(d,h)};this.panSession=new su(t,{onSessionStart:s,onStart:u,onMove:l,onSessionEnd:c},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,r){var n=this.isDragging;if(this.cancel(),!!n){var i=r.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(t,r)}},e.prototype.cancel=function(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var n=this.getProps().dragPropagation;!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(F.Drag,!1)},e.prototype.updateAxis=function(t,r,n){var i=this.getProps().drag;if(!(!n||!qt(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=jp(a,this.constraints[t],this.elastic[t])),o.set(a)}},e.prototype.resolveConstraints=function(){var t=this,r=this.getProps(),n=r.dragConstraints,i=r.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Ue(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=Bp(o.actual,n):this.constraints=!1,this.elastic=Up(i),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ue(function(s){t.getAxisMotionValue(s)&&(t.constraints[s]=zp(o.actual[s],t.constraints[s]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),r=t.dragConstraints,n=t.onMeasureDragConstraints;if(!r||!Ue(r))return!1;var i=r.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=Xp(i,o.root,this.visualElement.getTransformPagePoint()),s=kp(o.layout.actual,a);if(n){var u=n($p(s));this.hasMutatedConstraints=!!u,u&&(s=lu(u))}return s},e.prototype.startAnimation=function(t){var r=this,n=this.getProps(),i=n.drag,o=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},d=ue(function(h){var f;if(qt(h,i,r.currentDirection)){var p=(f=c==null?void 0:c[h])!==null&&f!==void 0?f:{};u&&(p={min:0,max:0});var v=a?200:1e6,g=a?40:1e7,y=w(w({type:"inertia",velocity:o?t[h]:0,bounceStiffness:v,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10},s),p);return r.startAxisValueAnimation(h,y)}});return Promise.all(d).then(l)},e.prototype.startAxisValueAnimation=function(t,r){var n=this.getAxisMotionValue(t);return ii(t,n,0,r)},e.prototype.stopAnimation=function(){var t=this;ue(function(r){return t.getAxisMotionValue(r).stop()})},e.prototype.getAxisMotionValue=function(t){var r,n,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(n=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:0)},e.prototype.snapToCursor=function(t){var r=this;ue(function(n){var i=r.getProps().drag;if(qt(n,i,r.currentDirection)){var o=r.visualElement.projection,a=r.getAxisMotionValue(n);if(o&&o.layout){var s=o.layout.actual[n],u=s.min,l=s.max;a.set(t[n]-B(u,l,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,r,n=this.getProps(),i=n.drag,o=n.dragConstraints,a=this.visualElement.projection;if(!(!Ue(o)||!a||!this.constraints)){this.stopAnimation();var s={x:0,y:0};ue(function(l){var c=t.getAxisMotionValue(l);if(c){var d=c.get();s[l]=Hp({min:d,max:d},t.constraints[l])}});var u=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=u?u({},""):"none",(r=a.root)===null||r===void 0||r.updateScroll(),a.updateLayout(),this.resolveConstraints(),ue(function(l){if(qt(l,i,null)){var c=t.getAxisMotionValue(l),d=t.constraints[l],h=d.min,f=d.max;c.set(B(h,f,s[l]))}})}},e.prototype.addListeners=function(){var t=this,r;Kp.set(this.visualElement,this);var n=this.visualElement.getInstance(),i=Ye(n,"pointerdown",function(l){var c=t.getProps(),d=c.drag,h=c.dragListener,f=h===void 0?!0:h;d&&f&&t.start(l)}),o=function(){var l=t.getProps().dragConstraints;Ue(l)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,s=a.addEventListener("measure",o);a&&!a.layout&&((r=a.root)===null||r===void 0||r.updateScroll(),a.updateLayout()),o();var u=Pr(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",function(l){var c=l.delta,d=l.hasLayoutChanged;t.isDragging&&d&&(ue(function(h){var f=t.getAxisMotionValue(h);f&&(t.originPoint[h]+=c[h].translate,f.set(f.get()+c[h].translate))}),t.visualElement.syncRender())}),function(){u(),i(),s()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),r=t.drag,n=r===void 0?!1:r,i=t.dragDirectionLock,o=i===void 0?!1:i,a=t.dragPropagation,s=a===void 0?!1:a,u=t.dragConstraints,l=u===void 0?!1:u,c=t.dragElastic,d=c===void 0?wn:c,h=t.dragMomentum,f=h===void 0?!0:h;return w(w({},t),{drag:n,dragDirectionLock:o,dragPropagation:s,dragConstraints:l,dragElastic:d,dragMomentum:f})},e}();function qt(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Jp(e,t){t===void 0&&(t=10);var r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function Qp(e){var t=e.dragControls,r=e.visualElement,n=Ir(function(){return new Zp(r)});m.useEffect(function(){return t&&t.subscribe(n)},[n,t]),m.useEffect(function(){return n.addListeners()},[n])}function ev(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=t||r||n||i,s=m.useRef(null),u=m.useContext(kn).transformPagePoint,l={onSessionStart:i,onStart:r,onMove:t,onEnd:function(d,h){s.current=null,n&&n(d,h)}};m.useEffect(function(){s.current!==null&&s.current.updateHandlers(l)});function c(d){s.current=new su(d,l,{transformPagePoint:u})}dr(o,"pointerdown",a&&c),Ns(function(){return s.current&&s.current.end()})}var tv={pan:Ce(ev),drag:Ce(Qp)},Gt=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function rv(){var e=Gt.map(function(){return new yt}),t={},r={clearAllListeners:function(){return e.forEach(function(n){return n.clear()})},updatePropListeners:function(n){Gt.forEach(function(i){var o,a="on"+i,s=n[a];(o=t[i])===null||o===void 0||o.call(t),s&&(t[i]=r[a](s))})}};return e.forEach(function(n,i){r["on"+Gt[i]]=function(o){return n.add(o)},r["notify"+Gt[i]]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return n.notify.apply(n,le([],k(o),!1))}}),r}function nv(e,t,r){var n;for(var i in t){var o=t[i],a=r[i];if(he(o))e.addValue(i,o);else if(he(a))e.addValue(i,Je(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,Je((n=e.getStaticValue(i))!==null&&n!==void 0?n:o))}for(var i in r)t[i]===void 0&&e.removeValue(i);return t}var hu=function(e){var t=e.treeType,r=t===void 0?"":t,n=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,u=e.readValueFromInstance,l=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(h,f){var p=h.parent,v=h.props,g=h.presenceId,y=h.blockInitialAnimation,T=h.visualState,S=h.shouldReduceMotion;f===void 0&&(f={});var b=!1,D=T.latestValues,E=T.renderState,C,x=rv(),I=new Map,L=new Map,j={},H=w({},D),G;function Y(){!C||!b||(te(),s(C,E,v.style,V.projection))}function te(){n(V,E,D,f,v)}function be(){x.notifyUpdate(D)}function X(O,P){var U=P.onChange(function(_t){D[O]=_t,v.onUpdate&&de.update(be,!1,!0)}),tt=P.onRenderRequest(V.scheduleRender);L.set(O,function(){U(),tt()})}var et=d(v);for(var je in et){var Nt=et[je];D[je]!==void 0&&he(Nt)&&Nt.set(D[je],!1)}var Be=xr(v),q=ns(v),V=w(w({treeType:r,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:g,shouldReduceMotion:S,variantChildren:q?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(p!=null&&p.isMounted()),blockInitialAnimation:y,isMounted:function(){return!!C},mount:function(O){b=!0,C=V.current=O,V.projection&&V.projection.mount(O),q&&p&&!Be&&(G=p==null?void 0:p.addVariantChild(V)),I.forEach(function(P,U){return X(U,P)}),p==null||p.children.add(V),V.setProps(v)},unmount:function(){var O;(O=V.projection)===null||O===void 0||O.unmount(),Ze.update(be),Ze.render(Y),L.forEach(function(P){return P()}),G==null||G(),p==null||p.children.delete(V),x.clearAllListeners(),C=void 0,b=!1},addVariantChild:function(O){var P,U=V.getClosestVariantNode();if(U)return(P=U.variantChildren)===null||P===void 0||P.add(O),function(){return U.variantChildren.delete(O)}},sortNodePosition:function(O){return!c||r!==O.treeType?0:c(V.getInstance(),O.getInstance())},getClosestVariantNode:function(){return q?V:p==null?void 0:p.getClosestVariantNode()},getLayoutId:function(){return v.layoutId},getInstance:function(){return C},getStaticValue:function(O){return D[O]},setStaticValue:function(O,P){return D[O]=P},getLatestValues:function(){return D},setVisibility:function(O){V.isVisible!==O&&(V.isVisible=O,V.scheduleRender())},makeTargetAnimatable:function(O,P){return P===void 0&&(P=!0),o(V,O,v,P)},measureViewportBox:function(){return a(C,v)},addValue:function(O,P){V.hasValue(O)&&V.removeValue(O),I.set(O,P),D[O]=P.get(),X(O,P)},removeValue:function(O){var P;I.delete(O),(P=L.get(O))===null||P===void 0||P(),L.delete(O),delete D[O],l(O,E)},hasValue:function(O){return I.has(O)},getValue:function(O,P){var U=I.get(O);return U===void 0&&P!==void 0&&(U=Je(P),V.addValue(O,U)),U},forEachValue:function(O){return I.forEach(O)},readValue:function(O){var P;return(P=D[O])!==null&&P!==void 0?P:u(C,O,f)},setBaseTarget:function(O,P){H[O]=P},getBaseTarget:function(O){if(i){var P=i(v,O);if(P!==void 0&&!he(P))return P}return H[O]}},x),{build:function(){return te(),E},scheduleRender:function(){de.render(Y,!1,!0)},syncRender:Y,setProps:function(O){(O.transformTemplate||v.transformTemplate)&&V.scheduleRender(),v=O,x.updatePropListeners(O),j=nv(V,d(v),j)},getProps:function(){return v},getVariant:function(O){var P;return(P=v.variants)===null||P===void 0?void 0:P[O]},getDefaultTransition:function(){return v.transition},getTransformPagePoint:function(){return v.transformPagePoint},getVariantContext:function(O){if(O===void 0&&(O=!1),O)return p==null?void 0:p.getVariantContext();if(!Be){var P=(p==null?void 0:p.getVariantContext())||{};return v.initial!==void 0&&(P.initial=v.initial),P}for(var U={},tt=0;tt<iv;tt++){var _t=pu[tt],Vr=v[_t];(oe(Vr)||Vr===!1)&&(U[_t]=Vr)}return U}});return V}},pu=le(["initial"],k(si),!1),iv=pu.length;function Cn(e){return typeof e=="string"&&e.startsWith("var(--")}var vu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ov(e){var t=vu.exec(e);if(!t)return[,];var r=k(t,3),n=r[1],i=r[2];return[n,i]}function On(e,t,r){var n=k(ov(e),2),i=n[0],o=n[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():Cn(o)?On(o,t):o}}function av(e,t,r){var n,i=ee(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:r};r&&(r=w({},r)),e.forEachValue(function(l){var c=l.get();if(Cn(c)){var d=On(c,o);d&&l.set(d)}});for(var a in i){var s=i[a];if(Cn(s)){var u=On(s,o);u&&(i[a]=u,r&&((n=r[a])!==null&&n!==void 0||(r[a]=s)))}}return{target:i,transitionEnd:r}}var sv=new Set(["width","height","top","left","right","bottom","x","y"]),gu=function(e){return sv.has(e)},uv=function(e){return Object.keys(e).some(gu)},mu=function(e,t){e.set(t,!1),e.set(t)},fo=function(e){return e===Fe||e===R},ho;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(ho||(ho={}));var po=function(e,t){return parseFloat(e.split(", ")[t])},vo=function(e,t){return function(r,n){var i=n.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return po(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?po(a[1],e):0}},lv=new Set(["x","y","z"]),cv=Ct.filter(function(e){return!lv.has(e)});function dv(e){var t=[];return cv.forEach(function(r){var n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var go={width:function(e,t){var r=e.x,n=t.paddingLeft,i=n===void 0?"0":n,o=t.paddingRight,a=o===void 0?"0":o;return r.max-r.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var r=e.y,n=t.paddingTop,i=n===void 0?"0":n,o=t.paddingBottom,a=o===void 0?"0":o;return r.max-r.min-parseFloat(i)-parseFloat(a)},top:function(e,t){var r=t.top;return parseFloat(r)},left:function(e,t){var r=t.left;return parseFloat(r)},bottom:function(e,t){var r=e.y,n=t.top;return parseFloat(n)+(r.max-r.min)},right:function(e,t){var r=e.x,n=t.left;return parseFloat(n)+(r.max-r.min)},x:vo(4,13),y:vo(5,14)},fv=function(e,t,r){var n=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(function(l){s[l]=go[l](n,o)}),t.syncRender();var u=t.measureViewportBox();return r.forEach(function(l){var c=t.getValue(l);mu(c,s[l]),e[l]=go[l](u,o)}),e},hv=function(e,t,r,n){r===void 0&&(r={}),n===void 0&&(n={}),t=w({},t),n=w({},n);var i=Object.keys(t).filter(gu),o=[],a=!1,s=[];if(i.forEach(function(c){var d=e.getValue(c);if(e.hasValue(c)){var h=r[c],f=rt(h),p=t[c],v;if(xt(p)){var g=p.length,y=p[0]===null?1:0;h=p[y],f=rt(h);for(var T=y;T<g;T++)v?ur(rt(p[T])===v):v=rt(p[T])}else v=rt(p);if(f!==v)if(fo(f)&&fo(v)){var S=d.get();typeof S=="string"&&d.set(parseFloat(S)),typeof p=="string"?t[c]=parseFloat(p):Array.isArray(p)&&v===R&&(t[c]=p.map(parseFloat))}else f!=null&&f.transform&&(v!=null&&v.transform)&&(h===0||p===0)?h===0?d.set(v.transform(h)):t[c]=f.transform(p):(a||(o=dv(e),a=!0),s.push(c),n[c]=n[c]!==void 0?n[c]:t[c],mu(d,p))}}),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,l=fv(t,e,s);return o.length&&o.forEach(function(c){var d=k(c,2),h=d[0],f=d[1];e.getValue(h).set(f)}),e.syncRender(),u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function pv(e,t,r,n){return uv(t)?hv(e,t,r,n):{target:t,transitionEnd:n}}var vv=function(e,t,r,n){var i=av(e,t,n);return t=i.target,n=i.transitionEnd,pv(e,t,r,n)};function gv(e){return window.getComputedStyle(e)}var yu={treeType:"dom",readValueFromInstance:function(e,t){if(Rt(t)){var r=ti(t);return r&&r.default||0}else{var n=gv(e);return(us(t)?n.getPropertyValue(t):n[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var r;return(r=e.style)===null||r===void 0?void 0:r[t]},measureViewportBox:function(e,t){var r=t.transformPagePoint;return fu(e,r)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var i=r.transformValues;n===void 0&&(n=!0);var o=t.transition,a=t.transitionEnd,s=ee(t,["transition","transitionEnd"]),u=wp(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),u&&(u=i(u))),n){Sp(e,s,u);var l=vv(e,s,u,a);a=l.transitionEnd,s=l.target}return w({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:qn,build:function(e,t,r,n,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Un(t,r,n,i.transformTemplate)},render:Ss},mv=hu(yu),yv=hu(w(w({},yu),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return Rt(t)?((r=ti(t))===null||r===void 0?void 0:r.default)||0:(t=Ds.has(t)?t:Ts(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Es,build:function(e,t,r,n,i){Wn(t,r,n,i.transformTemplate)},render:ws})),bv=function(e,t){return Hn(e)?yv(t,{enableHardwareAcceleration:!1}):mv(t,{enableHardwareAcceleration:!0})};function mo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var nt={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;var r=mo(e,t.target.x),n=mo(e,t.target.y);return"".concat(r,"% ").concat(n,"%")}},yo="_$css",Tv={correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(vu,function(v){return a.push(v),yo}));var s=pe.parse(e);if(s.length>5)return i;var u=pe.createTransformer(e),l=typeof s[0]!="number"?1:0,c=n.x.scale*r.x,d=n.y.scale*r.y;s[0+l]/=c,s[1+l]/=d;var h=B(c,d,.5);typeof s[2+l]=="number"&&(s[2+l]/=h),typeof s[3+l]=="number"&&(s[3+l]/=h);var f=u(s);if(o){var p=0;f=f.replace(yo,function(){var v=a[p];return p++,v})}return f}},Sv=function(e){Ea(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var r=this,n=this.props,i=n.visualElement,o=n.layoutGroup,a=n.switchLayoutGroup,s=n.layoutId,u=i.projection;Ud(wv),u&&(o!=null&&o.group&&o.group.add(u),a!=null&&a.register&&s&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",function(){r.safeToRemove()}),u.setOptions(w(w({},u.options),{onExitComplete:function(){return r.safeToRemove()}}))),vt.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(r){var n=this,i=this.props,o=i.layoutDependency,a=i.visualElement,s=i.drag,u=i.isPresent,l=a.projection;return l&&(l.isPresent=u,s||r.layoutDependency!==o||o===void 0?l.willUpdate():this.safeToRemove(),r.isPresent!==u&&(u?l.promote():l.relegate()||de.postRender(function(){var c;!((c=l.getStack())===null||c===void 0)&&c.members.length||n.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var r=this.props.visualElement.projection;r&&(r.root.didUpdate(),!r.currentAnimation&&r.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var r=this.props,n=r.visualElement,i=r.layoutGroup,o=r.switchLayoutGroup,a=n.projection;a&&(a.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(a),o!=null&&o.deregister&&o.deregister(a))},t.prototype.safeToRemove=function(){var r=this.props.safeToRemove;r==null||r()},t.prototype.render=function(){return null},t}(N.Component);function Dv(e){var t=k(ru(),2),r=t[0],n=t[1],i=m.useContext(is);return N.createElement(Sv,w({},e,{layoutGroup:i,switchLayoutGroup:m.useContext(os),isPresent:r,safeToRemove:n}))}var wv={borderRadius:w(w({},nt),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomLeftRadius:nt,borderBottomRightRadius:nt,boxShadow:Tv},Ev={measureLayout:Dv};function Cv(e,t,r){r===void 0&&(r={});var n=he(e)?e:Je(e);return ii("",n,t,r),{stop:function(){return n.stop()},isAnimating:function(){return n.isAnimating()}}}var bu=["TopLeft","TopRight","BottomLeft","BottomRight"],Ov=bu.length,bo=function(e){return typeof e=="string"?parseFloat(e):e},To=function(e){return typeof e=="number"||R.test(e)};function xv(e,t,r,n,i,o){var a,s,u,l;i?(e.opacity=B(0,(a=r.opacity)!==null&&a!==void 0?a:1,Iv(n)),e.opacityExit=B((s=t.opacity)!==null&&s!==void 0?s:1,0,Pv(n))):o&&(e.opacity=B((u=t.opacity)!==null&&u!==void 0?u:1,(l=r.opacity)!==null&&l!==void 0?l:1,n));for(var c=0;c<Ov;c++){var d="border".concat(bu[c],"Radius"),h=So(t,d),f=So(r,d);if(!(h===void 0&&f===void 0)){h||(h=0),f||(f=0);var p=h===0||f===0||To(h)===To(f);p?(e[d]=Math.max(B(bo(h),bo(f),n),0),(ce.test(f)||ce.test(h))&&(e[d]+="%")):e[d]=f}}(t.rotate||r.rotate)&&(e.rotate=B(t.rotate||0,r.rotate||0,n))}function So(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e.borderRadius}var Iv=Tu(0,.5,Qn),Pv=Tu(.5,.95,Zn);function Tu(e,t,r){return function(n){return n<e?0:n>t?1:r(It(e,t,n))}}function Do(e,t){e.min=t.min,e.max=t.max}function re(e,t){Do(e.x,t.x),Do(e.y,t.y)}function wo(e,t,r,n,i){return e-=t,e=mr(e,1/r,n),i!==void 0&&(e=mr(e,1/i,n)),e}function Rv(e,t,r,n,i,o,a){if(t===void 0&&(t=0),r===void 0&&(r=1),n===void 0&&(n=.5),o===void 0&&(o=e),a===void 0&&(a=e),ce.test(t)){t=parseFloat(t);var s=B(a.min,a.max,t/100);t=s-a.min}if(typeof t=="number"){var u=B(o.min,o.max,n);e===o&&(u-=t),e.min=wo(e.min,t,r,u,i),e.max=wo(e.max,t,r,u,i)}}function Eo(e,t,r,n,i){var o=k(r,3),a=o[0],s=o[1],u=o[2];Rv(e,t[a],t[s],t[u],t.scale,n,i)}var Mv=["x","scaleX","originX"],Av=["y","scaleY","originY"];function Co(e,t,r,n){Eo(e.x,t,Mv,r==null?void 0:r.x,n==null?void 0:n.x),Eo(e.y,t,Av,r==null?void 0:r.y,n==null?void 0:n.y)}function Oo(e){return e.translate===0&&e.scale===1}function Su(e){return Oo(e.x)&&Oo(e.y)}function Du(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Lv=function(){function e(){this.members=[]}return e.prototype.add=function(t){oi(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(ai(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var r=this.members[this.members.length-1];r&&this.promote(r)}},e.prototype.relegate=function(t){var r=this.members.findIndex(function(a){return t===a});if(r===0)return!1;for(var n,i=r;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1},e.prototype.promote=function(t,r){var n,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,r&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var r,n,i,o,a;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(a=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||a===void 0||a.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),Vv="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function xo(e,t,r){var n=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(n,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var a=r.rotate,s=r.rotateX,u=r.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),u&&(o+="rotateY(".concat(u,"deg) "))}var l=e.x.scale*t.x,c=e.y.scale*t.y;return o+="scale(".concat(l,", ").concat(c,")"),o===Vv?"none":o}var Nv=function(e,t){return e.depth-t.depth},_v=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){oi(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){ai(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(Nv),this.isDirty=!1,this.children.forEach(t)},e}(),Io=1e3;function wu(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function a(s,u,l){var c=this;u===void 0&&(u={}),l===void 0&&(l=r==null?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){c.isUpdating&&(c.isUpdating=!1,c.clearAllSnapshots())},this.updateProjection=function(){c.nodes.forEach(zv),c.nodes.forEach(Uv)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=s,this.latestValues=u,this.root=l?l.root||l:this,this.path=l?le(le([],k(l.path),!1),[l],!1):[],this.parent=l,this.depth=l?l.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(var d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new _v)}return a.prototype.addEventListener=function(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new yt),this.eventHandlers.get(s).add(u)},a.prototype.notifyListeners=function(s){for(var u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];var c=this.eventHandlers.get(s);c==null||c.notify.apply(c,le([],k(u),!1))},a.prototype.hasListeners=function(s){return this.eventHandlers.has(s)},a.prototype.registerPotentialNode=function(s,u){this.potentialNodes.set(s,u)},a.prototype.mount=function(s,u){var l=this,c;if(u===void 0&&(u=!1),!this.instance){this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;var d=this.options,h=d.layoutId,f=d.layout,p=d.visualElement;if(p&&!p.getInstance()&&p.mount(s),this.root.nodes.add(this),(c=this.parent)===null||c===void 0||c.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),u&&(f||h)&&(this.isLayoutDirty=!0),t){var v,g=function(){return l.root.updateBlockedByResize=!1};t(s,function(){l.root.updateBlockedByResize=!0,clearTimeout(v),v=window.setTimeout(g,250),vt.hasAnimatedSinceResize&&(vt.hasAnimatedSinceResize=!1,l.nodes.forEach(Hv))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||f)&&this.addEventListener("didUpdate",function(y){var T,S,b,D,E,C=y.delta,x=y.hasLayoutChanged,I=y.hasRelativeTargetChanged,L=y.layout;if(l.isTreeAnimationBlocked()){l.target=void 0,l.relativeTarget=void 0;return}var j=(S=(T=l.options.transition)!==null&&T!==void 0?T:p.getDefaultTransition())!==null&&S!==void 0?S:Yv,H=p.getProps(),G=H.onLayoutAnimationStart,Y=H.onLayoutAnimationComplete,te=!l.targetLayout||!Du(l.targetLayout,L)||I,be=!x&&I;if(!((b=l.resumeFrom)===null||b===void 0)&&b.instance||be||x&&(te||!l.currentAnimation)){l.resumeFrom&&(l.resumingFrom=l.resumeFrom,l.resumingFrom.resumingFrom=void 0),l.setAnimationOrigin(C,be);var X=w(w({},ni(j,"layout")),{onPlay:G,onComplete:Y});p.shouldReduceMotion&&(X.delay=0,X.type=!1),l.startAnimation(X)}else!x&&l.animationProgress===0&&l.finishAnimation(),l.isLead()&&((E=(D=l.options).onExitComplete)===null||E===void 0||E.call(D));l.targetLayout=L})}},a.prototype.unmount=function(){var s,u;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(u=this.parent)===null||u===void 0||u.children.delete(this),this.instance=void 0,Ze.preRender(this.updateProjection)},a.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},a.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},a.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},a.prototype.isTreeAnimationBlocked=function(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1},a.prototype.startUpdate=function(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach($v))},a.prototype.willUpdate=function(s){var u,l,c;if(s===void 0&&(s=!0),this.root.isUpdateBlocked()){(l=(u=this.options).onExitComplete)===null||l===void 0||l.call(u);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var d=0;d<this.path.length;d++){var h=this.path[d];h.shouldResetTransform=!0,h.updateScroll()}var f=this.options,p=f.layoutId,v=f.layout;if(!(p===void 0&&!v)){var g=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;this.prevTransformTemplateValue=g==null?void 0:g(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}}},a.prototype.didUpdate=function(){var s=this.isUpdateBlocked();if(s){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Po);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Xv),this.potentialNodes.clear()),this.nodes.forEach(kv),this.nodes.forEach(Fv),this.nodes.forEach(jv),this.clearAllSnapshots(),qr.update(),qr.preRender(),qr.render())},a.prototype.clearAllSnapshots=function(){this.nodes.forEach(Bv),this.sharedNodes.forEach(Wv)},a.prototype.scheduleUpdateProjection=function(){de.preRender(this.updateProjection,!1,!0)},a.prototype.scheduleCheckAfterUnmount=function(){var s=this;de.postRender(function(){s.isLayoutDirty?s.root.didUpdate():s.root.checkUpdateFailed()})},a.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var s=this.measure(),u=this.removeTransform(this.removeElementScroll(s));Lo(u),this.snapshot={measured:s,layout:u,latestValues:{}}}},a.prototype.updateLayout=function(){var s;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var u=0;u<this.path.length;u++){var l=this.path[u];l.updateScroll()}var c=this.measure();Lo(c);var d=this.layout;this.layout={measured:c,actual:this.removeElementScroll(c)},this.layoutCorrected=z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(s=this.options.visualElement)===null||s===void 0||s.notifyLayoutMeasure(this.layout.actual,d==null?void 0:d.actual)}},a.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=n(this.instance))},a.prototype.resetTransform=function(){var s;if(o){var u=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Su(this.projectionDelta),c=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,d=c==null?void 0:c(this.latestValues,""),h=d!==this.prevTransformTemplateValue;u&&(l||De(this.latestValues)||h)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}},a.prototype.measure=function(){var s=this.options.visualElement;if(!s)return z();var u=s.measureViewportBox(),l=this.root.scroll;return l&&(we(u.x,l.x),we(u.y,l.y)),u},a.prototype.removeElementScroll=function(s){var u=z();re(u,s);for(var l=0;l<this.path.length;l++){var c=this.path[l],d=c.scroll,h=c.options,f=c.isScrollRoot;if(c!==this.root&&d&&h.layoutScroll){if(f){re(u,s);var p=this.root.scroll;p&&(we(u.x,-p.x),we(u.y,-p.y))}we(u.x,d.x),we(u.y,d.y)}}return u},a.prototype.applyTransform=function(s,u){u===void 0&&(u=!1);var l=z();re(l,s);for(var c=0;c<this.path.length;c++){var d=this.path[c];!u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&$e(l,{x:-d.scroll.x,y:-d.scroll.y}),De(d.latestValues)&&$e(l,d.latestValues)}return De(this.latestValues)&&$e(l,this.latestValues),l},a.prototype.removeTransform=function(s){var u,l=z();re(l,s);for(var c=0;c<this.path.length;c++){var d=this.path[c];if(d.instance&&De(d.latestValues)){cu(d.latestValues)&&d.updateSnapshot();var h=z(),f=d.measure();re(h,f),Co(l,d.latestValues,(u=d.snapshot)===null||u===void 0?void 0:u.layout,h)}}return De(this.latestValues)&&Co(l,this.latestValues),l},a.prototype.setTargetDelta=function(s){this.targetDelta=s,this.root.scheduleUpdateProjection()},a.prototype.setOptions=function(s){var u;this.options=w(w(w({},this.options),s),{crossfade:(u=s.crossfade)!==null&&u!==void 0?u:!0})},a.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},a.prototype.resolveTargetDelta=function(){var s,u=this.options,l=u.layout,c=u.layoutId;!this.layout||!(l||c)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=z(),this.relativeTargetOrigin=z(),Tt(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),re(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=z(),this.targetWithTransforms=z()),this.relativeTarget&&this.relativeTargetOrigin&&(!((s=this.relativeParent)===null||s===void 0)&&s.target)?Fp(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):re(this.target,this.layout.actual),du(this.target,this.targetDelta)):re(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=z(),this.relativeTargetOrigin=z(),Tt(this.relativeTargetOrigin,this.target,this.relativeParent.target),re(this.relativeTarget,this.relativeTargetOrigin)))))},a.prototype.getClosestProjectingParent=function(){if(!(!this.parent||De(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},a.prototype.calcProjection=function(){var s,u=this.options,l=u.layout,c=u.layoutId;if(this.isTreeAnimating=!!(!((s=this.parent)===null||s===void 0)&&s.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(l||c))){var d=this.getLead();re(this.layoutCorrected,this.layout.actual),qp(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==d);var h=d.target;if(h){this.projectionDelta||(this.projectionDelta=St(),this.projectionDeltaWithTransform=St());var f=this.treeScale.x,p=this.treeScale.y,v=this.projectionTransform;bt(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.projectionTransform=xo(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==f||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}}},a.prototype.hide=function(){this.isVisible=!1},a.prototype.show=function(){this.isVisible=!0},a.prototype.scheduleRender=function(s){var u,l,c;s===void 0&&(s=!0),(l=(u=this.options).scheduleRender)===null||l===void 0||l.call(u),s&&((c=this.getStack())===null||c===void 0||c.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},a.prototype.setAnimationOrigin=function(s,u){var l=this,c;u===void 0&&(u=!1);var d=this.snapshot,h=(d==null?void 0:d.latestValues)||{},f=w({},this.latestValues),p=St();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!u;var v=z(),g=d==null?void 0:d.isShared,y=(((c=this.getStack())===null||c===void 0?void 0:c.members.length)||0)<=1,T=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(Gv));this.animationProgress=0,this.mixTargetDelta=function(S){var b,D=S/1e3;Ro(p.x,s.x,D),Ro(p.y,s.y,D),l.setTargetDelta(p),l.relativeTarget&&l.relativeTargetOrigin&&l.layout&&(!((b=l.relativeParent)===null||b===void 0)&&b.layout)&&(Tt(v,l.layout.actual,l.relativeParent.layout.actual),qv(l.relativeTarget,l.relativeTargetOrigin,v,D)),g&&(l.animationValues=f,xv(f,h,l.latestValues,D,T,y)),l.root.scheduleUpdateProjection(),l.scheduleRender(),l.animationProgress=D},this.mixTargetDelta(0)},a.prototype.startAnimation=function(s){var u=this,l,c;this.notifyListeners("animationStart"),(l=this.currentAnimation)===null||l===void 0||l.stop(),this.resumingFrom&&((c=this.resumingFrom.currentAnimation)===null||c===void 0||c.stop()),this.pendingAnimation&&(Ze.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=de.update(function(){vt.hasAnimatedSinceResize=!0,u.currentAnimation=Cv(0,Io,w(w({},s),{onUpdate:function(d){var h;u.mixTargetDelta(d),(h=s.onUpdate)===null||h===void 0||h.call(s,d)},onComplete:function(){var d;(d=s.onComplete)===null||d===void 0||d.call(s),u.completeAnimation()}})),u.resumingFrom&&(u.resumingFrom.currentAnimation=u.currentAnimation),u.pendingAnimation=void 0})},a.prototype.completeAnimation=function(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},a.prototype.finishAnimation=function(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,Io),this.currentAnimation.stop()),this.completeAnimation()},a.prototype.applyTransformsToTarget=function(){var s=this.getLead(),u=s.targetWithTransforms,l=s.target,c=s.layout,d=s.latestValues;!u||!l||!c||(re(u,l),$e(u,d),bt(this.projectionDeltaWithTransform,this.layoutCorrected,u,d))},a.prototype.registerSharedNode=function(s,u){var l,c,d;this.sharedNodes.has(s)||this.sharedNodes.set(s,new Lv);var h=this.sharedNodes.get(s);h.add(u),u.promote({transition:(l=u.options.initialPromotionConfig)===null||l===void 0?void 0:l.transition,preserveFollowOpacity:(d=(c=u.options.initialPromotionConfig)===null||c===void 0?void 0:c.shouldPreserveFollowOpacity)===null||d===void 0?void 0:d.call(c,u)})},a.prototype.isLead=function(){var s=this.getStack();return s?s.lead===this:!0},a.prototype.getLead=function(){var s,u=this.options.layoutId;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this},a.prototype.getPrevLead=function(){var s,u=this.options.layoutId;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0},a.prototype.getStack=function(){var s=this.options.layoutId;if(s)return this.root.sharedNodes.get(s)},a.prototype.promote=function(s){var u=s===void 0?{}:s,l=u.needsReset,c=u.transition,d=u.preserveFollowOpacity,h=this.getStack();h&&h.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})},a.prototype.relegate=function(){var s=this.getStack();return s?s.relegate(this):!1},a.prototype.resetRotation=function(){var s=this.options.visualElement;if(s){for(var u=!1,l={},c=0;c<dn.length;c++){var d=dn[c],h="rotate"+d;s.getStaticValue(h)&&(u=!0,l[h]=s.getStaticValue(h),s.setStaticValue(h,0))}if(u){s==null||s.syncRender();for(var h in l)s.setStaticValue(h,l[h]);s.scheduleRender()}}},a.prototype.getProjectionStyles=function(s){var u,l,c,d,h,f;s===void 0&&(s={});var p={};if(!this.instance||this.isSVG)return p;if(this.isVisible)p.visibility="";else return{visibility:"hidden"};var v=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=ir(s.pointerEvents)||"",p.transform=v?v(this.latestValues,""):"none",p;var g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){var y={};return this.options.layoutId&&(y.opacity=(l=this.latestValues.opacity)!==null&&l!==void 0?l:1,y.pointerEvents=ir(s.pointerEvents)||""),this.hasProjected&&!De(this.latestValues)&&(y.transform=v?v({},""):"none",this.hasProjected=!1),y}var T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=xo(this.projectionDeltaWithTransform,this.treeScale,T),v&&(p.transform=v(T,p.transform));var S=this.projectionDelta,b=S.x,D=S.y;p.transformOrigin="".concat(b.origin*100,"% ").concat(D.origin*100,"% 0"),g.animationValues?p.opacity=g===this?(d=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=g===this?(h=T.opacity)!==null&&h!==void 0?h:"":(f=T.opacityExit)!==null&&f!==void 0?f:0;for(var E in lr)if(T[E]!==void 0){var C=lr[E],x=C.correct,I=C.applyTo,L=x(T[E],g);if(I)for(var j=I.length,H=0;H<j;H++)p[I[H]]=L;else p[E]=L}return this.options.layoutId&&(p.pointerEvents=g===this?ir(s.pointerEvents)||"":"none"),p},a.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},a.prototype.resetTree=function(){this.root.nodes.forEach(function(s){var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(Po),this.root.sharedNodes.clear()},a}()}function Fv(e){e.updateLayout()}function jv(e){var t,r,n,i,o=(r=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&r!==void 0?r:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,u=a.measured;e.options.animationType==="size"?ue(function(T){var S=o.isShared?o.measured[T]:o.layout[T],b=ve(S);S.min=s[T].min,S.max=S.min+b}):e.options.animationType==="position"&&ue(function(T){var S=o.isShared?o.measured[T]:o.layout[T],b=ve(s[T]);S.max=S.min+b});var l=St();bt(l,s,o.layout);var c=St();o.isShared?bt(c,e.applyTransform(u,!0),o.measured):bt(c,s,o.layout);var d=!Su(l),h=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,p=f.snapshot,v=f.layout;if(p&&v){var g=z();Tt(g,o.layout,p.layout);var y=z();Tt(y,s,v.actual),Du(g,y)||(h=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:h})}else e.isLead()&&((i=(n=e.options).onExitComplete)===null||i===void 0||i.call(n));e.options.transition=void 0}function Bv(e){e.clearSnapshot()}function Po(e){e.clearMeasurements()}function kv(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Hv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function zv(e){e.resolveTargetDelta()}function Uv(e){e.calcProjection()}function $v(e){e.resetRotation()}function Wv(e){e.removeLeadSnapshot()}function Ro(e,t,r){e.translate=B(t.translate,0,r),e.scale=B(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Mo(e,t,r,n){e.min=B(t.min,r.min,n),e.max=B(t.max,r.max,n)}function qv(e,t,r,n){Mo(e.x,t.x,r.x,n),Mo(e.y,t.y,r.y,n)}function Gv(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Yv={duration:.45,ease:[.4,0,.1,1]};function Xv(e,t){for(var r=e.root,n=e.path.length-1;n>=0;n--)if(e.path[n].instance){r=e.path[n];break}var i=r&&r!==e.root?r.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function Ao(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Lo(e){Ao(e.x),Ao(e.y)}var Kv=wu({attachResizeListener:function(e,t){return Pr(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Jr={current:void 0},Zv=wu({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Jr.current){var e=new Kv(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Jr.current=e}return Jr.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),Jv=w(w(w(w({},Vp),Zh),tv),Ev),Qv=Hd(function(e,t){return If(e,t,Jv,bv,Zv)});function xn(e,t,r){var n,i,o,a,s;t==null&&(t=100);function u(){var c=Date.now()-a;c<t&&c>=0?n=setTimeout(u,t-c):(n=null,r||(s=e.apply(o,i),o=i=null))}var l=function(){o=this,i=arguments,a=Date.now();var c=r&&!n;return n||(n=setTimeout(u,t)),c&&(s=e.apply(o,i),o=i=null),s};return l.clear=function(){n&&(clearTimeout(n),n=null)},l.flush=function(){n&&(s=e.apply(o,i),o=i=null,clearTimeout(n),n=null)},l}xn.debounce=xn;var eg=xn;const Vo=_u(eg);function tg(e){let{debounce:t,scroll:r,polyfill:n,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const o=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,s]=m.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=m.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),l=t?typeof t=="number"?t:t.scroll:null,c=t?typeof t=="number"?t:t.resize:null,d=m.useRef(!1);m.useEffect(()=>(d.current=!0,()=>void(d.current=!1)));const[h,f,p]=m.useMemo(()=>{const T=()=>{if(!u.current.element)return;const{left:S,top:b,width:D,height:E,bottom:C,right:x,x:I,y:L}=u.current.element.getBoundingClientRect(),j={left:S,top:b,width:D,height:E,bottom:C,right:x,x:I,y:L};u.current.element instanceof HTMLElement&&i&&(j.height=u.current.element.offsetHeight,j.width=u.current.element.offsetWidth),Object.freeze(j),d.current&&!og(u.current.lastBounds,j)&&s(u.current.lastBounds=j)};return[T,c?Vo(T,c):T,l?Vo(T,l):T]},[s,i,l,c]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(T=>T.removeEventListener("scroll",p,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new o(p),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(T=>T.addEventListener("scroll",p,{capture:!0,passive:!0})))}const y=T=>{!T||T===u.current.element||(v(),u.current.element=T,u.current.scrollContainers=Eu(T),g())};return ng(p,!!r),rg(f),m.useEffect(()=>{v(),g()},[r,p,f]),m.useEffect(()=>v,[]),[y,a,h]}function rg(e){m.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function ng(e,t){m.useEffect(()=>{if(t){const r=e;return window.addEventListener("scroll",r,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",r,!0)}},[e,t])}function Eu(e){const t=[];if(!e||e===document.body)return t;const{overflow:r,overflowX:n,overflowY:i}=window.getComputedStyle(e);return[r,n,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...Eu(e.parentElement)]}const ig=["x","y","top","bottom","left","right","width","height"],og=(e,t)=>ig.every(r=>e[r]===t[r]);function Qr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ag(e,t,r){sg(e,t),t.set(e,r)}function sg(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Yt(e,t){var r=Cu(e,t,"get");return ug(e,r)}function ug(e,t){return t.get?t.get.call(e):t.value}function lg(e,t,r){var n=Cu(e,t,"set");return cg(e,n,r),r}function Cu(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function cg(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}var He=new WeakMap;class dg{constructor(){ag(this,He,{writable:!0,value:void 0}),Qr(this,"register",t=>{Yt(this,He).push(t)}),Qr(this,"unregister",t=>{let r;for(;(r=Yt(this,He).indexOf(t))!==-1;)Yt(this,He).splice(r,1)}),Qr(this,"backendChanged",t=>{for(const r of Yt(this,He))r.backendChanged(t)}),lg(this,He,[])}}function ne(e,t,r){fg(e,t),t.set(e,r)}function fg(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function se(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e,t){var r=Ou(e,t,"get");return hg(e,r)}function hg(e,t){return t.get?t.get.call(e):t.value}function ze(e,t,r){var n=Ou(e,t,"set");return pg(e,n,r),r}function Ou(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function pg(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}var K=new WeakMap,Xt=new WeakMap,Z=new WeakMap,Te=new WeakMap,Me=new WeakMap,No=new WeakMap,_o=new WeakMap,Fo=new WeakMap,en=new WeakMap,tn=new WeakMap,Kt=new WeakMap;class Ke{constructor(t,r,n){if(ne(this,K,{writable:!0,value:void 0}),ne(this,Xt,{writable:!0,value:void 0}),ne(this,Z,{writable:!0,value:void 0}),ne(this,Te,{writable:!0,value:void 0}),ne(this,Me,{writable:!0,value:void 0}),ne(this,No,{writable:!0,value:(i,o,a)=>{var s,u;if(!a.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(a)));const l=a.backend(i,o,a.options);let c=a.id;const d=!a.id&&l&&l.constructor;if(d&&(c=l.constructor.name),c)d&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
3
3
  This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(a),`
4
4
  see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`));if(A(this,Z)[c])throw new Error(`You must specify a unique 'id' property in your Backend entry: