quantum-component-library 1.4.45-qa → 1.4.45-qa.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.cjs +3 -3
- package/dist/components.js +38 -37
- package/dist/{dnd-core-vendor-q7mfiuVu.js → dnd-core-vendor-ISBP7hu7.js} +2 -2
- package/dist/{dnd-core-vendor-bgjKfDi6.cjs → dnd-core-vendor-v1lqdeP1.cjs} +1 -1
- package/dist/floating-ui-vendor-BcB50aec.js +246 -0
- package/dist/floating-ui-vendor-Dsd5TAjM.cjs +1 -0
- package/dist/{graphql-DiUes2Np.js → graphql-DZp5ePcc.js} +6 -6
- package/dist/graphql-vendor-CB3hZGUf.js +1285 -0
- package/dist/graphql-vendor-Dz6LvBOT.cjs +19 -0
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +11 -12
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +115 -115
- package/dist/{lodash-vendor-D5A6v3mw.cjs → lodash-vendor-CR237hSU.cjs} +1 -1
- package/dist/{lodash-vendor-Dz4vW7Gd.js → lodash-vendor-D4ZPCr77.js} +1 -1
- package/dist/moment-vendor-1cRqq0AH.cjs +10 -0
- package/dist/moment-vendor-DMLRxgRE.js +2589 -0
- package/dist/{other-TR0ap-t4.cjs → other-Dp3RPYfF.cjs} +1 -1
- package/dist/other-react-vendor-Bks_g6Ah.js +598 -0
- package/dist/other-react-vendor-CDYjxKA1.cjs +36 -0
- package/dist/providers.cjs +1 -1
- package/dist/providers.js +8 -8
- package/dist/quantum-component-library.css +1 -1
- package/dist/{react-dnd-vendor-BZs2igAJ.js → react-dnd-vendor-344hHSU8.js} +22 -21
- package/dist/react-dnd-vendor-Clvo2okR.cjs +2 -0
- package/dist/{react-select-vendor-eBH7yy3O.js → react-select-vendor-C9Yj5nBL.js} +12 -10
- package/dist/react-select-vendor-Di9DcmX5.cjs +4 -0
- package/dist/services.cjs +1 -1
- package/dist/services.js +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.js +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +30 -29
- package/dist/vendor-BnSpIYqA.cjs +1 -0
- package/dist/vendor-BnU6I1mv.js +4562 -0
- package/package.json +8 -7
- package/dist/graphql-vendor-JsvuUrRs.cjs +0 -14
- package/dist/graphql-vendor-YnA_qhJA.js +0 -669
- package/dist/react-dnd-vendor-BWqlt2EC.cjs +0 -2
- package/dist/react-select-vendor-By3h6JjH.cjs +0 -4
- package/dist/vendor-BeqUcSbw.cjs +0 -45
- package/dist/vendor-DvX9OX-j.js +0 -7876
- package/dist/{providers → lib/providers}/index.d.ts +0 -0
- package/dist/{providers → lib/providers}/quantum-library-provider.d.ts +0 -0
- package/dist/{other-CmpBz5tg.js → other-C4VnLmM6.js} +1 -1
package/dist/services.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./types.cjs");require("./vendor-BeqUcSbw.cjs");const c=require("./utils.cjs"),j={sagittal:{__COMMENT__:"-Plantar Flexion, +Dorsi flexion",min:-20,max:30},frontal:{__COMMENT__:"-Inversion, +Eversion",min:-30,max:20},transverse:{__COMMENT__:"-Pronation, +Supination",min:-10,max:10}},y={sagittal:{__COMMENT__:"-Plantar Flexion, +Dorsi flexion",min:-20,max:30},frontal:{__COMMENT__:"-Inversion, +Eversion",min:-30,max:20},transverse:{__COMMENT__:"-Pronation, +Supination",min:-10,max:10}},$={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-5,max:142},frontal:{__COMMENT__:"N/A",min:0,max:0},transverse:{__COMMENT__:"N/A",min:0,max:0}},I={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-5,max:142},frontal:{__COMMENT__:"N/A",min:0,max:0},transverse:{__COMMENT__:"N/A",min:0,max:0}},z={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-18,max:134},frontal:{__COMMENT__:"-Adduction, +Abduction",min:-20,max:40},transverse:{__COMMENT__:"-Internal Rotation, +External Rotation",min:-40,max:50}},W={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-18,max:134},frontal:{__COMMENT__:"-Adduction, +Abduction",min:-20,max:40},transverse:{__COMMENT__:"-Internal Rotation, +External Rotation",min:-40,max:50}},q={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-75,max:60},frontal:{__COMMENT__:"-Bend Right, +Bend Left",min:-45,max:45},transverse:{__COMMENT__:"-Twist Right, +Twist Left",min:-80,max:80}},V={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-25,max:50},frontal:{__COMMENT__:"-Bend Right, +Bend Left",min:-25,max:25},transverse:{__COMMENT__:"-Twist Right, +Twist Left",min:-30,max:30}},X={__COMMENT__:"This is the sum of the ChestSpine and NavalSpine",sagittal:{__COMMENT__:"-Extension, +Flexion",min:-100,max:110},frontal:{__COMMENT__:"-Bend Right, +Bend Left",min:-70,max:70},transverse:{__COMMENT__:"-Twist Right, +Twist Left",min:-110,max:110}},G={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-50,max:180},frontal:{__COMMENT__:"-Adduction, +Abduction",min:-50,max:180},transverse:{__COMMENT__:"-Internal Rotation, +External Rotation",min:-90,max:90}},Q={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-50,max:180},frontal:{__COMMENT__:"-Adduction, +Abduction",min:-50,max:180},transverse:{__COMMENT__:"-Internal Rotation, +External Rotation",min:-90,max:90}},Y={sagittal:{__COMMENT__:"-Extension, +Flexion",min:0,max:140},frontal:{__COMMENT__:"N/A",min:0,max:0},transverse:{__COMMENT__:"-Pronation/+Supination (of forearm)",min:-80,max:80}},Z={sagittal:{__COMMENT__:"-Extension, +Flexion",min:0,max:140},frontal:{__COMMENT__:"N/A",min:0,max:0},transverse:{__COMMENT__:"-Pronation/+Supination (of forearm)",min:-80,max:80}},x={LeftAnkle:j,RightAnkle:y,LeftKnee:$,RightKnee:I,LeftHip:z,RightHip:W,NavalSpine:q,ChestSpine:V,TotalSpine:X,LeftShoulder:G,RightShoulder:Q,LeftElbow:Y,RightElbow:Z},i={LeftFoot:"Left Foot",RightFoot:"Right Foot",LeftShank:"Left Shank",RightShank:"Right Shank",LeftThigh:"Left Thigh",RightThigh:"Right Thigh",LeftPelvis:"Left Pelvis",RightPelvis:"Right Pelvis",LowerBack:"Pelvis",CenterBack:"Center Back",UpperBack:"Thorax",Head:"Head",LeftClavicle:"Left Clavicle",RightClavicle:"Right Clavicle",LeftUpperArm:"Left Upper Arm",RightUpperArm:"Right Upper Arm",LeftForearm:"Left Forearm",RightForearm:"Right Forearm"},a={LeftAnkle:"Left Ankle",RightAnkle:"Right Ankle",LeftKnee:"Left Knee",RightKnee:"Right Knee",LeftHip:"Left Hip",RightHip:"Right Hip",NavalSpine:"Lower Back",ChestSpine:"Upper Back",TotalSpine:"Total Spine",LeftShoulder:"Left Shoulder",RightShoulder:"Right Shoulder",LeftElbow:"Left Elbow",RightElbow:"Right Elbow",Neck:"Neck"},ee={LeftFoot:["LeftAnkle"],RightFoot:["RightAnkle"],LeftShank:["LeftKnee","LeftAnkle"],RightShank:["RightKnee","RightAnkle"],LeftThigh:["LeftHip","LeftKnee"],RightThigh:["RightHip","RightKnee"],LeftPelvis:["LeftHip"],RightPelvis:["RightHip"],LowerBack:["LeftHip","RightHip","NavalSpine","TotalSpine"],CenterBack:["NavalSpine","ChestSpine"],UpperBack:["ChestSpine","TotalSpine"],Head:["Neck"],LeftClavicle:["LeftShoulder"],RightClavicle:["RightShoulder"],LeftUpperArm:["LeftShoulder","LeftElbow"],RightUpperArm:["RightShoulder","RightElbow"],LeftForearm:["LeftElbow"],RightForearm:["RightElbow"]},R={LeftAnkle:["LeftFoot","LeftShank"],RightAnkle:["RightFoot","RightShank"],LeftKnee:["LeftShank","LeftThigh"],RightKnee:["RightShank","RightThigh"],LeftHip:["LeftThigh","LowerBack"],RightHip:["RightThigh","LowerBack"],NavalSpine:["LowerBack","CenterBack"],ChestSpine:["CenterBack","UpperBack"],TotalSpine:["UpperBack","LowerBack"],LeftShoulder:["LeftClavicle","LeftUpperArm"],RightShoulder:["RightClavicle","RightUpperArm"],LeftElbow:["LeftUpperArm","LeftForearm"],RightElbow:["RightUpperArm","RightForearm"],Neck:["Head","UpperBack"]},d=()=>[{id:"LeftFoot",name:i.LeftFoot},{id:"RightFoot",name:i.RightFoot},{id:"LeftShank",name:i.LeftShank},{id:"RightShank",name:i.RightShank},{id:"LeftThigh",name:i.LeftThigh},{id:"RightThigh",name:i.RightThigh},{id:"LowerBack",name:i.LowerBack},{id:"CenterBack",name:i.CenterBack},{id:"UpperBack",name:i.UpperBack},{id:"Head",name:i.Head},{id:"LeftUpperArm",name:i.LeftUpperArm},{id:"RightUpperArm",name:i.RightUpperArm},{id:"LeftForearm",name:i.LeftForearm},{id:"RightForearm",name:i.RightForearm}],te=t=>d().filter(e=>t.find(n=>n==e.id)),A=()=>[{id:"LeftAnkle",name:a.LeftAnkle},{id:"RightAnkle",name:a.RightAnkle},{id:"LeftKnee",name:a.LeftKnee},{id:"RightKnee",name:a.RightKnee},{id:"LeftHip",name:a.LeftHip},{id:"RightHip",name:a.RightHip},{id:"NavalSpine",name:a.NavalSpine},{id:"ChestSpine",name:a.ChestSpine},{id:"TotalSpine",name:a.TotalSpine},{id:"LeftShoulder",name:a.LeftShoulder},{id:"RightShoulder",name:a.RightShoulder},{id:"LeftElbow",name:a.LeftElbow},{id:"RightElbow",name:a.RightElbow},{id:"Neck",name:a.Neck}],_=()=>[{id:"LeftAnkle",name:a.LeftAnkle},{id:"RightAnkle",name:a.RightAnkle},{id:"LeftKnee",name:a.LeftKnee},{id:"RightKnee",name:a.RightKnee},{id:"LeftHip",name:a.LeftHip},{id:"RightHip",name:a.RightHip},{id:"NavalSpine",name:a.NavalSpine},{id:"ChestSpine",name:a.ChestSpine},{id:"TotalSpine",name:a.TotalSpine},{id:"LeftShoulder",name:a.LeftShoulder},{id:"RightShoulder",name:a.RightShoulder},{id:"Neck",name:a.Neck}],p=()=>[{id:"LeftAnkle",name:a.LeftAnkle},{id:"RightAnkle",name:a.RightAnkle},{id:"LeftKnee",name:a.LeftKnee},{id:"RightKnee",name:a.RightKnee},{id:"LeftHip",name:a.LeftHip},{id:"RightHip",name:a.RightHip},{id:"TotalSpine",name:a.TotalSpine},{id:"LeftShoulder",name:a.LeftShoulder},{id:"RightShoulder",name:a.RightShoulder},{id:"LeftElbow",name:a.LeftElbow},{id:"RightElbow",name:a.RightElbow},{id:"Neck",name:a.Neck}],ne=()=>[{id:"Head",name:i.Head},{id:"LeftThigh",name:i.LeftThigh},{id:"RightThigh",name:i.RightThigh},{id:"LeftShank",name:i.LeftShank},{id:"RightShank",name:i.RightShank},{id:"LeftFoot",name:i.LeftFoot},{id:"RightFoot",name:i.RightFoot},{id:"LowerBack",name:i.LowerBack},{id:"UpperBack",name:i.UpperBack},{id:"LeftUpperArm",name:i.LeftUpperArm},{id:"RightUpperArm",name:i.RightUpperArm},{id:"LeftForearm",name:i.LeftForearm},{id:"RightForearm",name:i.RightForearm}],ae=t=>_().filter(n=>R[n.id].every(s=>t.includes(s))),ie=t=>p().filter(n=>R[n.id].every(s=>t.includes(s))),k=(t,e,n)=>{if(n)return["frontal","sagittal","transverse"];switch(t){case"LeftKnee":case"RightKnee":return["sagittal"];case"LeftAnkle":case"RightAnkle":return e&&e==l.AngleDataSource.Pose?["sagittal"]:["frontal","sagittal"];case"TotalSpine":return e&&e==l.AngleDataSource.Pose?["frontal"]:["frontal","sagittal","transverse"];case"LeftElbow":case"RightElbow":return e&&e==l.AngleDataSource.Pose?["sagittal"]:["frontal","sagittal","transverse"]}return e&&e==l.AngleDataSource.Pose?["frontal","sagittal"]:["frontal","sagittal","transverse"]},S=(t,e)=>{if(e===l.AngleDataSource.Sensor)return["frontal","sagittal","transverse"];switch(t){case"Head":case"LeftThigh":case"RightThigh":case"LeftShank":case"RightShank":case"LeftUpperArm":case"RightUpperArm":case"LeftForearm":case"RightForearm":return["frontal","sagittal"];case"LeftFoot":case"RightFoot":return["sagittal"];case"LowerBack":return["frontal"];case"UpperBack":return["frontal","sagittal"]}return[]},b=c.memo((t,e,n)=>{switch(t){case"LeftAnkle":case"RightAnkle":switch(e){case"frontal":return n<0?"inversion":"eversion";case"sagittal":return n<0?"plantar flexion":"dorsi flexion";case"transverse":return n<0?"internal rotation":"external rotation"}case"LeftKnee":case"RightKnee":switch(e){case"frontal":return n<0?"adduction":"abduction";case"sagittal":return n<0?"extension":"flexion";case"transverse":return n<0?"internal rotation":"external rotation"}case"LeftHip":case"RightHip":case"LeftShoulder":case"RightShoulder":switch(e){case"frontal":return n<0?"adduction":"abduction";case"sagittal":return n<0?"extension":"flexion";case"transverse":return n<0?"internal rotation":"external rotation"}case"NavalSpine":case"ChestSpine":case"TotalSpine":case"Neck":switch(e){case"frontal":return n<0?"right lateral flexion":"left lateral flexion";case"sagittal":return n<0?"extension":"flexion";case"transverse":return n<0?"right rotation":"left rotation"}case"LeftElbow":case"RightElbow":switch(e){case"frontal":return null;case"sagittal":return n<0?"extension":"flexion";case"transverse":return n<0?"pronation":"supination"}}return null}),E=c.memo((t,e,n)=>{switch(t){case"LeftAnkle":case"RightAnkle":switch(e){case"frontal":return n<0?"Inv.":"Ev.";case"sagittal":return n<0?"PF.":"DF.";case"transverse":return n<0?"IR.":"ER."}case"LeftKnee":case"RightKnee":switch(e){case"frontal":return n<0?"Add.":"Abd.";case"sagittal":return n<0?"Ext.":"Flex.";case"transverse":return n<0?"IR.":"ER."}case"LeftHip":case"RightHip":case"LeftShoulder":case"RightShoulder":switch(e){case"frontal":return n<0?"Add.":"Abd.";case"sagittal":return n<0?"Ext.":"Flex.";case"transverse":return n<0?"IR.":"ER."}case"NavalSpine":case"ChestSpine":case"TotalSpine":case"Neck":switch(e){case"frontal":return n<0?"R. Bend":"L. Bend";case"sagittal":return n<0?"Ext.":"Flex.";case"transverse":return n<0?"R. Rot.":"L. Rot."}case"LeftElbow":case"RightElbow":switch(e){case"frontal":return null;case"sagittal":return n<0?"Ext.":"Flex.";case"transverse":return n<0?"Pro.":"Sup."}}return null}),u=c.memo((t,e,n)=>{switch(t){case"LowerBack":case"LeftPelvis":case"RightPelvis":switch(e){case"frontal":return n<0?"right drop":"left drop";case"sagittal":return n<0?"anterior tilt":"posterior tilt";case"transverse":return n<0?"right rotation":"left rotation"}case"Head":case"UpperBack":case"CenterBack":case"LeftShank":case"RightShank":case"LeftThigh":case"RightThigh":case"LeftFoot":case"RightFoot":case"LeftUpperArm":case"RightUpperArm":case"LeftForearm":case"RightForearm":switch(e){case"frontal":return n<0?"right tilt":"left tilt";case"sagittal":return n<0?"anterior tilt":"posterior tilt";case"transverse":return n<0?"right rotation":"left rotation"}default:return null}}),N=c.memo((t,e,n)=>{switch(t){case"LowerBack":case"LeftPelvis":case"RightPelvis":switch(e){case"frontal":return n<0?"R. Drop":"L. Drop";case"sagittal":return n<0?"Ant. Tilt":"Pos. Tilt";case"transverse":return n<0?"R. Rot.":"L. Rot."}case"Head":case"UpperBack":case"CenterBack":case"LeftShank":case"RightShank":case"LeftThigh":case"RightThigh":case"LeftFoot":case"RightFoot":case"LeftUpperArm":case"RightUpperArm":case"LeftForearm":case"RightForearm":switch(e){case"frontal":return n<0?"R. Tilt":"L. Tilt";case"sagittal":return n<0?"Ant. Tilt":"Pos. Tilt";case"transverse":return n<0?"R. Rot.":"L. Rot."}default:return null}}),se=c.memo((t,e)=>{switch(t){case"LeftAnkle":case"RightAnkle":switch(e){case"frontal":return{min:-20,max:20};case"sagittal":return{min:-30,max:30};case"transverse":return{min:-5,max:5}}case"LeftKnee":case"RightKnee":switch(e){case"frontal":return{min:-5,max:5};case"sagittal":return{min:-5,max:90};case"transverse":return{min:-5,max:5}}case"LeftHip":case"RightHip":return{min:-30,max:30};case"LeftShoulder":case"RightShoulder":return{min:-50,max:50};case"NavalSpine":case"ChestSpine":case"TotalSpine":case"Neck":switch(e){case"frontal":return{min:-5,max:5};case"sagittal":return{min:-5,max:5};case"transverse":return{min:-5,max:5}}case"LeftElbow":case"RightElbow":switch(e){case"frontal":return{min:-5,max:5};case"sagittal":return{min:-5,max:50};case"transverse":return{min:-5,max:5}}}return{min:-10,max:10}}),re=c.memo((t,e)=>{switch(t){case"LeftFoot":case"RightFoot":switch(e){case"frontal":return{min:-20,max:20};case"sagittal":return{min:-30,max:30};case"transverse":return{min:-5,max:5}}case"LeftShank":case"RightShank":switch(e){case"frontal":return{min:-35,max:35};case"sagittal":return{min:-35,max:35};case"transverse":return{min:-5,max:5}}case"LeftThigh":case"RightThigh":switch(e){case"frontal":return{min:-35,max:35};case"sagittal":return{min:-35,max:35};case"transverse":return{min:-10,max:5}}case"LeftPelvis":case"RightPelvis":switch(e){case"frontal":return{min:-15,max:15};case"sagittal":return{min:-10,max:10};case"transverse":return{min:-10,max:10}}case"LowerBack":case"CenterBack":case"UpperBack":case"Head":return{min:-5,max:5};case"LeftClavicle":case"RightClavicle":switch(e){case"frontal":return{min:-15,max:15};case"sagittal":return{min:-10,max:10};case"transverse":return{min:-10,max:10}}case"LeftUpperArm":case"RightUpperArm":case"LeftForearm":case"RightForearm":switch(e){case"frontal":return{min:-45,max:45};case"sagittal":return{min:-45,max:45};case"transverse":return{min:-20,max:20}}}return{min:-10,max:10}}),oe=c.memo((t,e)=>{switch(t){case"LeftAnkle":case"RightAnkle":switch(e){case"frontal":return{min:-40,max:30};case"sagittal":return{min:-80,max:50};case"transverse":return{min:-90,max:90}}case"LeftKnee":case"RightKnee":switch(e){case"frontal":return{min:-15,max:5};case"sagittal":return{min:-10,max:160};case"transverse":return{min:-35,max:45}}case"LeftHip":case"RightHip":switch(e){case"frontal":return{min:-50,max:60};case"sagittal":return{min:-50,max:150};case"transverse":return{min:-60,max:70}}case"TotalSpine":switch(e){case"frontal":return{min:-60,max:60};case"sagittal":return{min:-50,max:150};case"transverse":return{min:-50,max:50}}case"ChestSpine":switch(e){case"frontal":return{min:-25,max:25};case"sagittal":return{min:-25,max:40};case"transverse":return{min:-35,max:35}}case"NavalSpine":switch(e){case"frontal":return{min:-25,max:25};case"sagittal":return{min:-35,max:60};case"transverse":return{min:-15,max:15}}default:return{min:-180,max:180}}}),w=(t,e)=>({kind:"joint",value:t,plane:e}),v=(t,e)=>({kind:"limb",value:t,plane:e}),T=(t,e)=>({kind:"acceleration",value:t,axis:e}),F=(t,e)=>({kind:"angular_velocity",value:t,plane:e}),M=t=>l.axes.includes(t),le=t=>l.planes.includes(t),C=t=>typeof t=="object"&&t!==null&&"id"in t&&"name"in t&&!!d().find(e=>e.id===t.id),P=t=>typeof t=="object"&&t!==null&&"id"in t&&"name"in t&&!!A().find(e=>e.id===t.id),ce=(t,e,n=!1)=>M(e)?C(t)?T(t,e):fe(`Can't make acceleration part from joint: ${t} ${e}`):P(t)?n?F(t,e):w(t,e):v(t,e),me=t=>t.kind==="acceleration"?t.axis:t.plane,ge=t=>t?.kind==="acceleration"?t.axis:null,he=t=>t?.kind==="acceleration"?null:t?.plane??null,fe=t=>{throw new Error(t)},m=t=>t in a?a[t]:t in i?i[t]:"Unknown",ue=t=>m(t).replace(/Left|Right/g,""),Le=t=>t in x,B=(t,e)=>{if(!Le(t))return null;const n=x[t];if(e in n){const{min:r,max:s}=n[e];return{min:r??0,max:s??0}}return null},Re=(...t)=>{const e=B(...t);return e?Math.abs(e.max-e.min):0},H=(t,e)=>{const n=Object.keys(i).find(s=>s===e),r=Object.keys(a).find(s=>s===e);return!n&&!r?null:n?t.limbs[e].sensor_angle?l.AngleDataSource.Sensor:l.AngleDataSource.Pose:t.joints[e].sensor_angle?l.AngleDataSource.Sensor:l.AngleDataSource.Pose},de=(t,e,n)=>{const r=Object.keys(a).find(o=>o===e),s=H(t,e);return s?r?k(e,s).includes(n):S(e,s).includes(n):!1},xe=(t,e,n)=>{const r=Object.keys(i).find(o=>o===e),s=Object.keys(a).find(o=>o===e);if(!r&&!s)throw new Error(`Unknown partId: ${e} - this invariant should've been enforced by typescript`);return r?l.limbAngle(t.limbs[e])?.[n]??null:l.jointAngle(t.joints[e],void 0,t.direction)?.[n]??null},f=(t=!1)=>t?"Internal/External Rotation":"External/Internal Rotation",O=(t,e,n=!1)=>{switch(t){case"LeftAnkle":case"RightAnkle":switch(e){case"frontal":return n?"Inversion/Eversion":"Eversion/Inversion";case"sagittal":return n?"Plantar/Dorsi Flexion":"Dorsi/Plantar Flexion";case"transverse":return f(n)}case"LeftKnee":case"RightKnee":switch(e){case"frontal":return n?"Adduction/Abduction":"Abduction/Adduction";case"sagittal":return n?"Extension/Flexion":"Flexion/Extension";case"transverse":return f(n)}case"LeftHip":case"RightHip":switch(e){case"frontal":return n?"Adduction/Abduction":"Abduction/Adduction";case"sagittal":return n?"Extension/Flexion":"Flexion/Extension";case"transverse":return f(n)}case"NavalSpine":case"ChestSpine":case"TotalSpine":case"Neck":switch(e){case"frontal":return"Lateral Bend";case"sagittal":return n?"Extension/Flexion":"Flexion/Extension";case"transverse":return"Rotation"}case"LeftShoulder":case"RightShoulder":switch(e){case"frontal":return n?"Adduction/Abduction":"Abduction/Adduction";case"sagittal":return n?"Extension/Flexion":"Flexion/Extension";case"transverse":return f(n)}case"LeftElbow":case"RightElbow":switch(e){case"frontal":return n?"Adduction/Abduction":"Abduction/Adduction";case"sagittal":return n?"Extension/Flexion":"Flexion/Extension";case"transverse":return n?"Pronation/Supination":"Supination/Pronation"}}},U=(t,e,n=!1)=>{const r=m(t),s=u(t,e,1),o=u(t,e,-1);if(s&&o){const g=c.capitalizeAll(s),h=c.capitalizeAll(o),D=n?`${h}/${g}`:`${g}/${h}`;return`${r} (${D})`}return`${r} (${e})`},Ae=(t,e)=>{let n;switch(e){case"x":n="Med./Lat.";break;case"y":n="Vertical";break;case"z":n="Ant./Post."}return`${m(t)} ${n}`},K=(t,e,n=!1)=>{const r=m(t),s=O(t,e,n);return s?`${r} (${s})`:null},_e=(t,e)=>K(t,e)||U(t,e),L=(t,e,n,r=!1)=>{const s=r?E:b,o=r?N:u,[g,h]=t==="joint"?[s(e,n,1),s(e,n,-1)]:[o(e,n,1),o(e,n,-1)];return{positive:g,negative:h}},J=(t,e=!1)=>t.partKind==="joint"?L("joint",t.partId,t.partDimension,e):L("segment",t.partId,t.partDimension,e),pe=(t,e,n=!1)=>{const{positive:r,negative:s}=J(e,n);return t>=0?r:s};exports.getAllAvailableJoints=A;exports.getAllAvailableLimbs=d;exports.getAllAvailablePoseJoints=p;exports.getAllAvailablePoseLimbs=ne;exports.getAllAvailableSensorJoints=_;exports.getAngleDirectionNames=L;exports.getAvailableLimbsForLimbIds=te;exports.getAvailablePoseJointsForLimbIds=ie;exports.getAvailableSensorJointsForLimbIds=ae;exports.getAxis=ge;exports.getDefaultAngleSource=H;exports.getDefaultJointRange=se;exports.getDefaultLimbRange=re;exports.getEnabledJointPlanes=k;exports.getEnabledSegmentPlanes=S;exports.getHumanBodyAngle=xe;exports.getIsDefaultAngleAllowed=de;exports.getJointAngleDirectionAbbr=E;exports.getJointAngleDirectionName=b;exports.getJointNameWithPlane=K;exports.getJointOrSegmentNameWithPlane=_e;exports.getJointPlaneName=O;exports.getNormativeJointRange=oe;exports.getParameterAngleDirectionName=pe;exports.getParameterDirectionNames=J;exports.getPartName=m;exports.getPartNameNoSide=ue;exports.getPlane=he;exports.getSegmentAngleDirectionAbbr=N;exports.getSegmentAngleDirectionName=u;exports.getSegmentNameWithPlane=U;exports.getSegmentXyzName=Ae;exports.getTypicalRom=B;exports.getTypicalRomSize=Re;exports.isAxis=M;exports.isJoint=P;exports.isLimb=C;exports.isPlane=le;exports.jointNames=a;exports.jointsUsedByLimbs=ee;exports.limbNames=i;exports.limbsRequiredForJoints=R;exports.mkAccelerationPart=T;exports.mkAngularVelocityPart=F;exports.mkHumanPart=ce;exports.mkJointPart=w;exports.mkLimbPart=v;exports.planeOrAxis=me;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./types.cjs");require("./moment-vendor-1cRqq0AH.cjs");const c=require("./utils.cjs"),j={sagittal:{__COMMENT__:"-Plantar Flexion, +Dorsi flexion",min:-20,max:30},frontal:{__COMMENT__:"-Inversion, +Eversion",min:-30,max:20},transverse:{__COMMENT__:"-Pronation, +Supination",min:-10,max:10}},y={sagittal:{__COMMENT__:"-Plantar Flexion, +Dorsi flexion",min:-20,max:30},frontal:{__COMMENT__:"-Inversion, +Eversion",min:-30,max:20},transverse:{__COMMENT__:"-Pronation, +Supination",min:-10,max:10}},$={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-5,max:142},frontal:{__COMMENT__:"N/A",min:0,max:0},transverse:{__COMMENT__:"N/A",min:0,max:0}},I={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-5,max:142},frontal:{__COMMENT__:"N/A",min:0,max:0},transverse:{__COMMENT__:"N/A",min:0,max:0}},z={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-18,max:134},frontal:{__COMMENT__:"-Adduction, +Abduction",min:-20,max:40},transverse:{__COMMENT__:"-Internal Rotation, +External Rotation",min:-40,max:50}},W={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-18,max:134},frontal:{__COMMENT__:"-Adduction, +Abduction",min:-20,max:40},transverse:{__COMMENT__:"-Internal Rotation, +External Rotation",min:-40,max:50}},q={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-75,max:60},frontal:{__COMMENT__:"-Bend Right, +Bend Left",min:-45,max:45},transverse:{__COMMENT__:"-Twist Right, +Twist Left",min:-80,max:80}},V={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-25,max:50},frontal:{__COMMENT__:"-Bend Right, +Bend Left",min:-25,max:25},transverse:{__COMMENT__:"-Twist Right, +Twist Left",min:-30,max:30}},X={__COMMENT__:"This is the sum of the ChestSpine and NavalSpine",sagittal:{__COMMENT__:"-Extension, +Flexion",min:-100,max:110},frontal:{__COMMENT__:"-Bend Right, +Bend Left",min:-70,max:70},transverse:{__COMMENT__:"-Twist Right, +Twist Left",min:-110,max:110}},G={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-50,max:180},frontal:{__COMMENT__:"-Adduction, +Abduction",min:-50,max:180},transverse:{__COMMENT__:"-Internal Rotation, +External Rotation",min:-90,max:90}},Q={sagittal:{__COMMENT__:"-Extension, +Flexion",min:-50,max:180},frontal:{__COMMENT__:"-Adduction, +Abduction",min:-50,max:180},transverse:{__COMMENT__:"-Internal Rotation, +External Rotation",min:-90,max:90}},Y={sagittal:{__COMMENT__:"-Extension, +Flexion",min:0,max:140},frontal:{__COMMENT__:"N/A",min:0,max:0},transverse:{__COMMENT__:"-Pronation/+Supination (of forearm)",min:-80,max:80}},Z={sagittal:{__COMMENT__:"-Extension, +Flexion",min:0,max:140},frontal:{__COMMENT__:"N/A",min:0,max:0},transverse:{__COMMENT__:"-Pronation/+Supination (of forearm)",min:-80,max:80}},x={LeftAnkle:j,RightAnkle:y,LeftKnee:$,RightKnee:I,LeftHip:z,RightHip:W,NavalSpine:q,ChestSpine:V,TotalSpine:X,LeftShoulder:G,RightShoulder:Q,LeftElbow:Y,RightElbow:Z},i={LeftFoot:"Left Foot",RightFoot:"Right Foot",LeftShank:"Left Shank",RightShank:"Right Shank",LeftThigh:"Left Thigh",RightThigh:"Right Thigh",LeftPelvis:"Left Pelvis",RightPelvis:"Right Pelvis",LowerBack:"Pelvis",CenterBack:"Center Back",UpperBack:"Thorax",Head:"Head",LeftClavicle:"Left Clavicle",RightClavicle:"Right Clavicle",LeftUpperArm:"Left Upper Arm",RightUpperArm:"Right Upper Arm",LeftForearm:"Left Forearm",RightForearm:"Right Forearm"},a={LeftAnkle:"Left Ankle",RightAnkle:"Right Ankle",LeftKnee:"Left Knee",RightKnee:"Right Knee",LeftHip:"Left Hip",RightHip:"Right Hip",NavalSpine:"Lower Back",ChestSpine:"Upper Back",TotalSpine:"Total Spine",LeftShoulder:"Left Shoulder",RightShoulder:"Right Shoulder",LeftElbow:"Left Elbow",RightElbow:"Right Elbow",Neck:"Neck"},ee={LeftFoot:["LeftAnkle"],RightFoot:["RightAnkle"],LeftShank:["LeftKnee","LeftAnkle"],RightShank:["RightKnee","RightAnkle"],LeftThigh:["LeftHip","LeftKnee"],RightThigh:["RightHip","RightKnee"],LeftPelvis:["LeftHip"],RightPelvis:["RightHip"],LowerBack:["LeftHip","RightHip","NavalSpine","TotalSpine"],CenterBack:["NavalSpine","ChestSpine"],UpperBack:["ChestSpine","TotalSpine"],Head:["Neck"],LeftClavicle:["LeftShoulder"],RightClavicle:["RightShoulder"],LeftUpperArm:["LeftShoulder","LeftElbow"],RightUpperArm:["RightShoulder","RightElbow"],LeftForearm:["LeftElbow"],RightForearm:["RightElbow"]},R={LeftAnkle:["LeftFoot","LeftShank"],RightAnkle:["RightFoot","RightShank"],LeftKnee:["LeftShank","LeftThigh"],RightKnee:["RightShank","RightThigh"],LeftHip:["LeftThigh","LowerBack"],RightHip:["RightThigh","LowerBack"],NavalSpine:["LowerBack","CenterBack"],ChestSpine:["CenterBack","UpperBack"],TotalSpine:["UpperBack","LowerBack"],LeftShoulder:["LeftClavicle","LeftUpperArm"],RightShoulder:["RightClavicle","RightUpperArm"],LeftElbow:["LeftUpperArm","LeftForearm"],RightElbow:["RightUpperArm","RightForearm"],Neck:["Head","UpperBack"]},d=()=>[{id:"LeftFoot",name:i.LeftFoot},{id:"RightFoot",name:i.RightFoot},{id:"LeftShank",name:i.LeftShank},{id:"RightShank",name:i.RightShank},{id:"LeftThigh",name:i.LeftThigh},{id:"RightThigh",name:i.RightThigh},{id:"LowerBack",name:i.LowerBack},{id:"CenterBack",name:i.CenterBack},{id:"UpperBack",name:i.UpperBack},{id:"Head",name:i.Head},{id:"LeftUpperArm",name:i.LeftUpperArm},{id:"RightUpperArm",name:i.RightUpperArm},{id:"LeftForearm",name:i.LeftForearm},{id:"RightForearm",name:i.RightForearm}],te=t=>d().filter(e=>t.find(n=>n==e.id)),A=()=>[{id:"LeftAnkle",name:a.LeftAnkle},{id:"RightAnkle",name:a.RightAnkle},{id:"LeftKnee",name:a.LeftKnee},{id:"RightKnee",name:a.RightKnee},{id:"LeftHip",name:a.LeftHip},{id:"RightHip",name:a.RightHip},{id:"NavalSpine",name:a.NavalSpine},{id:"ChestSpine",name:a.ChestSpine},{id:"TotalSpine",name:a.TotalSpine},{id:"LeftShoulder",name:a.LeftShoulder},{id:"RightShoulder",name:a.RightShoulder},{id:"LeftElbow",name:a.LeftElbow},{id:"RightElbow",name:a.RightElbow},{id:"Neck",name:a.Neck}],_=()=>[{id:"LeftAnkle",name:a.LeftAnkle},{id:"RightAnkle",name:a.RightAnkle},{id:"LeftKnee",name:a.LeftKnee},{id:"RightKnee",name:a.RightKnee},{id:"LeftHip",name:a.LeftHip},{id:"RightHip",name:a.RightHip},{id:"NavalSpine",name:a.NavalSpine},{id:"ChestSpine",name:a.ChestSpine},{id:"TotalSpine",name:a.TotalSpine},{id:"LeftShoulder",name:a.LeftShoulder},{id:"RightShoulder",name:a.RightShoulder},{id:"Neck",name:a.Neck}],p=()=>[{id:"LeftAnkle",name:a.LeftAnkle},{id:"RightAnkle",name:a.RightAnkle},{id:"LeftKnee",name:a.LeftKnee},{id:"RightKnee",name:a.RightKnee},{id:"LeftHip",name:a.LeftHip},{id:"RightHip",name:a.RightHip},{id:"TotalSpine",name:a.TotalSpine},{id:"LeftShoulder",name:a.LeftShoulder},{id:"RightShoulder",name:a.RightShoulder},{id:"LeftElbow",name:a.LeftElbow},{id:"RightElbow",name:a.RightElbow},{id:"Neck",name:a.Neck}],ne=()=>[{id:"Head",name:i.Head},{id:"LeftThigh",name:i.LeftThigh},{id:"RightThigh",name:i.RightThigh},{id:"LeftShank",name:i.LeftShank},{id:"RightShank",name:i.RightShank},{id:"LeftFoot",name:i.LeftFoot},{id:"RightFoot",name:i.RightFoot},{id:"LowerBack",name:i.LowerBack},{id:"UpperBack",name:i.UpperBack},{id:"LeftUpperArm",name:i.LeftUpperArm},{id:"RightUpperArm",name:i.RightUpperArm},{id:"LeftForearm",name:i.LeftForearm},{id:"RightForearm",name:i.RightForearm}],ae=t=>_().filter(n=>R[n.id].every(s=>t.includes(s))),ie=t=>p().filter(n=>R[n.id].every(s=>t.includes(s))),k=(t,e,n)=>{if(n)return["frontal","sagittal","transverse"];switch(t){case"LeftKnee":case"RightKnee":return["sagittal"];case"LeftAnkle":case"RightAnkle":return e&&e==l.AngleDataSource.Pose?["sagittal"]:["frontal","sagittal"];case"TotalSpine":return e&&e==l.AngleDataSource.Pose?["frontal"]:["frontal","sagittal","transverse"];case"LeftElbow":case"RightElbow":return e&&e==l.AngleDataSource.Pose?["sagittal"]:["frontal","sagittal","transverse"]}return e&&e==l.AngleDataSource.Pose?["frontal","sagittal"]:["frontal","sagittal","transverse"]},S=(t,e)=>{if(e===l.AngleDataSource.Sensor)return["frontal","sagittal","transverse"];switch(t){case"Head":case"LeftThigh":case"RightThigh":case"LeftShank":case"RightShank":case"LeftUpperArm":case"RightUpperArm":case"LeftForearm":case"RightForearm":return["frontal","sagittal"];case"LeftFoot":case"RightFoot":return["sagittal"];case"LowerBack":return["frontal"];case"UpperBack":return["frontal","sagittal"]}return[]},b=c.memo((t,e,n)=>{switch(t){case"LeftAnkle":case"RightAnkle":switch(e){case"frontal":return n<0?"inversion":"eversion";case"sagittal":return n<0?"plantar flexion":"dorsi flexion";case"transverse":return n<0?"internal rotation":"external rotation"}case"LeftKnee":case"RightKnee":switch(e){case"frontal":return n<0?"adduction":"abduction";case"sagittal":return n<0?"extension":"flexion";case"transverse":return n<0?"internal rotation":"external rotation"}case"LeftHip":case"RightHip":case"LeftShoulder":case"RightShoulder":switch(e){case"frontal":return n<0?"adduction":"abduction";case"sagittal":return n<0?"extension":"flexion";case"transverse":return n<0?"internal rotation":"external rotation"}case"NavalSpine":case"ChestSpine":case"TotalSpine":case"Neck":switch(e){case"frontal":return n<0?"right lateral flexion":"left lateral flexion";case"sagittal":return n<0?"extension":"flexion";case"transverse":return n<0?"right rotation":"left rotation"}case"LeftElbow":case"RightElbow":switch(e){case"frontal":return null;case"sagittal":return n<0?"extension":"flexion";case"transverse":return n<0?"pronation":"supination"}}return null}),E=c.memo((t,e,n)=>{switch(t){case"LeftAnkle":case"RightAnkle":switch(e){case"frontal":return n<0?"Inv.":"Ev.";case"sagittal":return n<0?"PF.":"DF.";case"transverse":return n<0?"IR.":"ER."}case"LeftKnee":case"RightKnee":switch(e){case"frontal":return n<0?"Add.":"Abd.";case"sagittal":return n<0?"Ext.":"Flex.";case"transverse":return n<0?"IR.":"ER."}case"LeftHip":case"RightHip":case"LeftShoulder":case"RightShoulder":switch(e){case"frontal":return n<0?"Add.":"Abd.";case"sagittal":return n<0?"Ext.":"Flex.";case"transverse":return n<0?"IR.":"ER."}case"NavalSpine":case"ChestSpine":case"TotalSpine":case"Neck":switch(e){case"frontal":return n<0?"R. Bend":"L. Bend";case"sagittal":return n<0?"Ext.":"Flex.";case"transverse":return n<0?"R. Rot.":"L. Rot."}case"LeftElbow":case"RightElbow":switch(e){case"frontal":return null;case"sagittal":return n<0?"Ext.":"Flex.";case"transverse":return n<0?"Pro.":"Sup."}}return null}),u=c.memo((t,e,n)=>{switch(t){case"LowerBack":case"LeftPelvis":case"RightPelvis":switch(e){case"frontal":return n<0?"right drop":"left drop";case"sagittal":return n<0?"anterior tilt":"posterior tilt";case"transverse":return n<0?"right rotation":"left rotation"}case"Head":case"UpperBack":case"CenterBack":case"LeftShank":case"RightShank":case"LeftThigh":case"RightThigh":case"LeftFoot":case"RightFoot":case"LeftUpperArm":case"RightUpperArm":case"LeftForearm":case"RightForearm":switch(e){case"frontal":return n<0?"right tilt":"left tilt";case"sagittal":return n<0?"anterior tilt":"posterior tilt";case"transverse":return n<0?"right rotation":"left rotation"}default:return null}}),N=c.memo((t,e,n)=>{switch(t){case"LowerBack":case"LeftPelvis":case"RightPelvis":switch(e){case"frontal":return n<0?"R. Drop":"L. Drop";case"sagittal":return n<0?"Ant. Tilt":"Pos. Tilt";case"transverse":return n<0?"R. Rot.":"L. Rot."}case"Head":case"UpperBack":case"CenterBack":case"LeftShank":case"RightShank":case"LeftThigh":case"RightThigh":case"LeftFoot":case"RightFoot":case"LeftUpperArm":case"RightUpperArm":case"LeftForearm":case"RightForearm":switch(e){case"frontal":return n<0?"R. Tilt":"L. Tilt";case"sagittal":return n<0?"Ant. Tilt":"Pos. Tilt";case"transverse":return n<0?"R. Rot.":"L. Rot."}default:return null}}),se=c.memo((t,e)=>{switch(t){case"LeftAnkle":case"RightAnkle":switch(e){case"frontal":return{min:-20,max:20};case"sagittal":return{min:-30,max:30};case"transverse":return{min:-5,max:5}}case"LeftKnee":case"RightKnee":switch(e){case"frontal":return{min:-5,max:5};case"sagittal":return{min:-5,max:90};case"transverse":return{min:-5,max:5}}case"LeftHip":case"RightHip":return{min:-30,max:30};case"LeftShoulder":case"RightShoulder":return{min:-50,max:50};case"NavalSpine":case"ChestSpine":case"TotalSpine":case"Neck":switch(e){case"frontal":return{min:-5,max:5};case"sagittal":return{min:-5,max:5};case"transverse":return{min:-5,max:5}}case"LeftElbow":case"RightElbow":switch(e){case"frontal":return{min:-5,max:5};case"sagittal":return{min:-5,max:50};case"transverse":return{min:-5,max:5}}}return{min:-10,max:10}}),re=c.memo((t,e)=>{switch(t){case"LeftFoot":case"RightFoot":switch(e){case"frontal":return{min:-20,max:20};case"sagittal":return{min:-30,max:30};case"transverse":return{min:-5,max:5}}case"LeftShank":case"RightShank":switch(e){case"frontal":return{min:-35,max:35};case"sagittal":return{min:-35,max:35};case"transverse":return{min:-5,max:5}}case"LeftThigh":case"RightThigh":switch(e){case"frontal":return{min:-35,max:35};case"sagittal":return{min:-35,max:35};case"transverse":return{min:-10,max:5}}case"LeftPelvis":case"RightPelvis":switch(e){case"frontal":return{min:-15,max:15};case"sagittal":return{min:-10,max:10};case"transverse":return{min:-10,max:10}}case"LowerBack":case"CenterBack":case"UpperBack":case"Head":return{min:-5,max:5};case"LeftClavicle":case"RightClavicle":switch(e){case"frontal":return{min:-15,max:15};case"sagittal":return{min:-10,max:10};case"transverse":return{min:-10,max:10}}case"LeftUpperArm":case"RightUpperArm":case"LeftForearm":case"RightForearm":switch(e){case"frontal":return{min:-45,max:45};case"sagittal":return{min:-45,max:45};case"transverse":return{min:-20,max:20}}}return{min:-10,max:10}}),oe=c.memo((t,e)=>{switch(t){case"LeftAnkle":case"RightAnkle":switch(e){case"frontal":return{min:-40,max:30};case"sagittal":return{min:-80,max:50};case"transverse":return{min:-90,max:90}}case"LeftKnee":case"RightKnee":switch(e){case"frontal":return{min:-15,max:5};case"sagittal":return{min:-10,max:160};case"transverse":return{min:-35,max:45}}case"LeftHip":case"RightHip":switch(e){case"frontal":return{min:-50,max:60};case"sagittal":return{min:-50,max:150};case"transverse":return{min:-60,max:70}}case"TotalSpine":switch(e){case"frontal":return{min:-60,max:60};case"sagittal":return{min:-50,max:150};case"transverse":return{min:-50,max:50}}case"ChestSpine":switch(e){case"frontal":return{min:-25,max:25};case"sagittal":return{min:-25,max:40};case"transverse":return{min:-35,max:35}}case"NavalSpine":switch(e){case"frontal":return{min:-25,max:25};case"sagittal":return{min:-35,max:60};case"transverse":return{min:-15,max:15}}default:return{min:-180,max:180}}}),w=(t,e)=>({kind:"joint",value:t,plane:e}),v=(t,e)=>({kind:"limb",value:t,plane:e}),T=(t,e)=>({kind:"acceleration",value:t,axis:e}),F=(t,e)=>({kind:"angular_velocity",value:t,plane:e}),M=t=>l.axes.includes(t),le=t=>l.planes.includes(t),C=t=>typeof t=="object"&&t!==null&&"id"in t&&"name"in t&&!!d().find(e=>e.id===t.id),P=t=>typeof t=="object"&&t!==null&&"id"in t&&"name"in t&&!!A().find(e=>e.id===t.id),ce=(t,e,n=!1)=>M(e)?C(t)?T(t,e):fe(`Can't make acceleration part from joint: ${t} ${e}`):P(t)?n?F(t,e):w(t,e):v(t,e),me=t=>t.kind==="acceleration"?t.axis:t.plane,ge=t=>t?.kind==="acceleration"?t.axis:null,he=t=>t?.kind==="acceleration"?null:t?.plane??null,fe=t=>{throw new Error(t)},m=t=>t in a?a[t]:t in i?i[t]:"Unknown",ue=t=>m(t).replace(/Left|Right/g,""),Le=t=>t in x,B=(t,e)=>{if(!Le(t))return null;const n=x[t];if(e in n){const{min:r,max:s}=n[e];return{min:r??0,max:s??0}}return null},Re=(...t)=>{const e=B(...t);return e?Math.abs(e.max-e.min):0},H=(t,e)=>{const n=Object.keys(i).find(s=>s===e),r=Object.keys(a).find(s=>s===e);return!n&&!r?null:n?t.limbs[e].sensor_angle?l.AngleDataSource.Sensor:l.AngleDataSource.Pose:t.joints[e].sensor_angle?l.AngleDataSource.Sensor:l.AngleDataSource.Pose},de=(t,e,n)=>{const r=Object.keys(a).find(o=>o===e),s=H(t,e);return s?r?k(e,s).includes(n):S(e,s).includes(n):!1},xe=(t,e,n)=>{const r=Object.keys(i).find(o=>o===e),s=Object.keys(a).find(o=>o===e);if(!r&&!s)throw new Error(`Unknown partId: ${e} - this invariant should've been enforced by typescript`);return r?l.limbAngle(t.limbs[e])?.[n]??null:l.jointAngle(t.joints[e],void 0,t.direction)?.[n]??null},f=(t=!1)=>t?"Internal/External Rotation":"External/Internal Rotation",O=(t,e,n=!1)=>{switch(t){case"LeftAnkle":case"RightAnkle":switch(e){case"frontal":return n?"Inversion/Eversion":"Eversion/Inversion";case"sagittal":return n?"Plantar/Dorsi Flexion":"Dorsi/Plantar Flexion";case"transverse":return f(n)}case"LeftKnee":case"RightKnee":switch(e){case"frontal":return n?"Adduction/Abduction":"Abduction/Adduction";case"sagittal":return n?"Extension/Flexion":"Flexion/Extension";case"transverse":return f(n)}case"LeftHip":case"RightHip":switch(e){case"frontal":return n?"Adduction/Abduction":"Abduction/Adduction";case"sagittal":return n?"Extension/Flexion":"Flexion/Extension";case"transverse":return f(n)}case"NavalSpine":case"ChestSpine":case"TotalSpine":case"Neck":switch(e){case"frontal":return"Lateral Bend";case"sagittal":return n?"Extension/Flexion":"Flexion/Extension";case"transverse":return"Rotation"}case"LeftShoulder":case"RightShoulder":switch(e){case"frontal":return n?"Adduction/Abduction":"Abduction/Adduction";case"sagittal":return n?"Extension/Flexion":"Flexion/Extension";case"transverse":return f(n)}case"LeftElbow":case"RightElbow":switch(e){case"frontal":return n?"Adduction/Abduction":"Abduction/Adduction";case"sagittal":return n?"Extension/Flexion":"Flexion/Extension";case"transverse":return n?"Pronation/Supination":"Supination/Pronation"}}},U=(t,e,n=!1)=>{const r=m(t),s=u(t,e,1),o=u(t,e,-1);if(s&&o){const g=c.capitalizeAll(s),h=c.capitalizeAll(o),D=n?`${h}/${g}`:`${g}/${h}`;return`${r} (${D})`}return`${r} (${e})`},Ae=(t,e)=>{let n;switch(e){case"x":n="Med./Lat.";break;case"y":n="Vertical";break;case"z":n="Ant./Post."}return`${m(t)} ${n}`},K=(t,e,n=!1)=>{const r=m(t),s=O(t,e,n);return s?`${r} (${s})`:null},_e=(t,e)=>K(t,e)||U(t,e),L=(t,e,n,r=!1)=>{const s=r?E:b,o=r?N:u,[g,h]=t==="joint"?[s(e,n,1),s(e,n,-1)]:[o(e,n,1),o(e,n,-1)];return{positive:g,negative:h}},J=(t,e=!1)=>t.partKind==="joint"?L("joint",t.partId,t.partDimension,e):L("segment",t.partId,t.partDimension,e),pe=(t,e,n=!1)=>{const{positive:r,negative:s}=J(e,n);return t>=0?r:s};exports.getAllAvailableJoints=A;exports.getAllAvailableLimbs=d;exports.getAllAvailablePoseJoints=p;exports.getAllAvailablePoseLimbs=ne;exports.getAllAvailableSensorJoints=_;exports.getAngleDirectionNames=L;exports.getAvailableLimbsForLimbIds=te;exports.getAvailablePoseJointsForLimbIds=ie;exports.getAvailableSensorJointsForLimbIds=ae;exports.getAxis=ge;exports.getDefaultAngleSource=H;exports.getDefaultJointRange=se;exports.getDefaultLimbRange=re;exports.getEnabledJointPlanes=k;exports.getEnabledSegmentPlanes=S;exports.getHumanBodyAngle=xe;exports.getIsDefaultAngleAllowed=de;exports.getJointAngleDirectionAbbr=E;exports.getJointAngleDirectionName=b;exports.getJointNameWithPlane=K;exports.getJointOrSegmentNameWithPlane=_e;exports.getJointPlaneName=O;exports.getNormativeJointRange=oe;exports.getParameterAngleDirectionName=pe;exports.getParameterDirectionNames=J;exports.getPartName=m;exports.getPartNameNoSide=ue;exports.getPlane=he;exports.getSegmentAngleDirectionAbbr=N;exports.getSegmentAngleDirectionName=u;exports.getSegmentNameWithPlane=U;exports.getSegmentXyzName=Ae;exports.getTypicalRom=B;exports.getTypicalRomSize=Re;exports.isAxis=M;exports.isJoint=P;exports.isLimb=C;exports.isPlane=le;exports.jointNames=a;exports.jointsUsedByLimbs=ee;exports.limbNames=i;exports.limbsRequiredForJoints=R;exports.mkAccelerationPart=T;exports.mkAngularVelocityPart=F;exports.mkHumanPart=ce;exports.mkJointPart=w;exports.mkLimbPart=v;exports.planeOrAxis=me;
|
package/dist/services.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { axes as k, planes as A, AngleDataSource as c, limbAngle as S, jointAngle as E } from "./types.js";
|
|
2
|
-
import "./vendor-
|
|
2
|
+
import "./moment-vendor-DMLRxgRE.js";
|
|
3
3
|
import { memo as l, capitalizeAll as R } from "./utils.js";
|
|
4
4
|
const w = { sagittal: { __COMMENT__: "-Plantar Flexion, +Dorsi flexion", min: -20, max: 30 }, frontal: { __COMMENT__: "-Inversion, +Eversion", min: -30, max: 20 }, transverse: { __COMMENT__: "-Pronation, +Supination", min: -10, max: 10 } }, T = { sagittal: { __COMMENT__: "-Plantar Flexion, +Dorsi flexion", min: -20, max: 30 }, frontal: { __COMMENT__: "-Inversion, +Eversion", min: -30, max: 20 }, transverse: { __COMMENT__: "-Pronation, +Supination", min: -10, max: 10 } }, v = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -5, max: 142 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "N/A", min: 0, max: 0 } }, N = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -5, max: 142 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "N/A", min: 0, max: 0 } }, b = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -18, max: 134 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -20, max: 40 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -40, max: 50 } }, F = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -18, max: 134 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -20, max: 40 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -40, max: 50 } }, M = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -75, max: 60 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -45, max: 45 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -80, max: 80 } }, C = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -25, max: 50 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -25, max: 25 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -30, max: 30 } }, P = { __COMMENT__: "This is the sum of the ChestSpine and NavalSpine", sagittal: { __COMMENT__: "-Extension, +Flexion", min: -100, max: 110 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -70, max: 70 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -110, max: 110 } }, B = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -50, max: 180 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -50, max: 180 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -90, max: 90 } }, H = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -50, max: 180 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -50, max: 180 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -90, max: 90 } }, U = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: 0, max: 140 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "-Pronation/+Supination (of forearm)", min: -80, max: 80 } }, O = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: 0, max: 140 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "-Pronation/+Supination (of forearm)", min: -80, max: 80 } }, x = {
|
|
5
5
|
LeftAnkle: w,
|
package/dist/types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./services.cjs"),r=require("./generated-ChsGaiYd.cjs"),m=require("./lodash-vendor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./services.cjs"),r=require("./generated-ChsGaiYd.cjs"),m=require("./lodash-vendor-CR237hSU.cjs"),p=require("./utils.cjs"),l=(e,t)=>t==="left"||t==="right"?{sagittal:e.sagittal}:t==="forward"||t==="backward"?{frontal:e.frontal}:null,S=(e,t,n)=>t==="sensor"?e?.sensor_angle??null:t==="pose"?(e?.pose_angle&&l(e.pose_angle,n))??null:e?.sensor_angle?l(e.sensor_angle)??null:(e?.pose_angle&&l(e.pose_angle,n))??null,k=(e,t)=>(t==="sensor"?e?.sensor_angle:t==="pose"?e?.pose_angle:e?.sensor_angle||e?.pose_angle)||null,R=["frontal","sagittal","transverse"],T=e=>"limbs"in e,v=(e,t)=>t==="y"&&(e==="LeftFoot"||e==="RightFoot"||e==="LeftShank"||e==="RightShank"),F=(e,t)=>{switch(e){case"Head":return"Head";case"UpperBack":return"UpperBack";case"CenterBack":return"CenterBack";case"LowerBack":return"LowerBack";case"Thigh":return t==="left"?"LeftThigh":"RightThigh";case"Shank":return t==="left"?"LeftShank":"RightShank";case"Foot":return t==="left"?"LeftFoot":"RightFoot";case"UpperArm":return t==="left"?"LeftUpperArm":"RightUpperArm";case"Forearm":return t==="left"?"LeftForearm":"RightForearm";case"Pelvis":return t==="left"?"LeftPelvis":"RightPelvis";case"Clavicle":return t==="left"?"LeftClavicle":"RightClavicle"}},A=e=>e.startsWith("Left")?"left":e.startsWith("Right")?"right":null,b=(e,t)=>{switch(e){case"Ankle":return t==="left"?"LeftAnkle":"RightAnkle";case"Knee":return t==="left"?"LeftKnee":"RightKnee";case"Hip":return t==="left"?"LeftHip":"RightHip";case"Shoulder":return t==="left"?"LeftShoulder":"RightShoulder";case"Elbow":return t==="left"?"LeftElbow":"RightElbow";case"Spine":return"TotalSpine";case"Neck":return"Neck"}},u=e=>{switch(e){case"LeftAnkle":case"RightAnkle":return"Ankle";case"LeftKnee":case"RightKnee":return"Knee";case"LeftHip":case"RightHip":return"Hip";case"LeftShoulder":case"RightShoulder":return"Shoulder";case"LeftElbow":case"RightElbow":return"Elbow";case"ChestSpine":case"NavalSpine":case"TotalSpine":return"Spine";case"Neck":return"Neck"}},h=e=>{switch(e){case"Head":return"Head";case"UpperBack":return"UpperBack";case"CenterBack":return"CenterBack";case"LowerBack":return"LowerBack";case"LeftThigh":case"RightThigh":return"Thigh";case"LeftShank":case"RightShank":return"Shank";case"LeftFoot":case"RightFoot":return"Foot";case"LeftUpperArm":case"RightUpperArm":return"UpperArm";case"LeftForearm":case"RightForearm":return"Forearm";case"LeftPelvis":case"RightPelvis":return"Pelvis";case"LeftClavicle":case"RightClavicle":return"Clavicle"}};var g=(e=>(e.Sensor="sensor",e.Pose="pose",e))(g||{});const U=e=>"joint"in e?u(e.joint):h(e.segment),w=["joint","limb","acceleration","angular_velocity"],B=["frontal","sagittal","transverse"],P=["x","y","z"],j=e=>{switch(`${e}`){case r.SensorLocation.Thorax:return"UpperBack";case r.SensorLocation.CenterBack:return"CenterBack";case r.SensorLocation.Pelvis:return"LowerBack";case r.SensorLocation.LeftThigh:return"LeftThigh";case r.SensorLocation.RightThigh:return"RightThigh";case r.SensorLocation.LeftShank:return"LeftShank";case r.SensorLocation.RightShank:return"RightShank";case r.SensorLocation.LeftFoot:return"LeftFoot";case r.SensorLocation.RightFoot:return"RightFoot";case r.SensorLocation.LeftUpperArm:return"LeftUpperArm";case r.SensorLocation.RightUpperArm:return"RightUpperArm";case r.SensorLocation.LeftForearm:return"LeftForearm";case r.SensorLocation.RightForearm:return"RightForearm";case r.SensorLocation.Head:return"Head"}return console.warn(`Unknown sensor location: ${e}`),null},N=e=>{switch(e){case r.SensorLocation.Thorax:return"Thorax";case r.SensorLocation.CenterBack:return"Center Back";case r.SensorLocation.Pelvis:return"Pelvis";case r.SensorLocation.LeftThigh:return"Left Thigh";case r.SensorLocation.RightThigh:return"Right Thigh";case r.SensorLocation.LeftShank:return"Left Shank";case r.SensorLocation.RightShank:return"Right Shank";case r.SensorLocation.LeftFoot:return"Left Foot";case r.SensorLocation.RightFoot:return"Right Foot";case r.SensorLocation.LeftUpperArm:return"Left Upper Arm";case r.SensorLocation.RightUpperArm:return"Right Upper Arm";case r.SensorLocation.LeftForearm:return"Left Forearm";case r.SensorLocation.RightForearm:return"Right Forearm";case r.SensorLocation.Head:return"Head"}return console.warn(`Unknown sensor location: ${e}`),"Unknown"},C=()=>{const e=[],t={add:(n,o,a,c,s=!1)=>{const f={unit:"Count",value:0};return o?e.push({desc:{name:n,hint:a||null},value:o,isLoading:s,suffix:c||void 0}):s&&e.push({desc:{name:n,hint:a||null},value:f,isLoading:s,suffix:c||void 0}),t},build:()=>e};return t},d=(e,t)=>({unit:e,value:t}),H=(e,t)=>{if(t!=null)return d(e,t)},L=e=>"joint"in e?e.joint:e.segment,O=e=>L(e).toString(),y=e=>"plane"in e?e.plane:e.axis,x=e=>"plane"in e?e.plane:e.axis,I=e=>"joint"in e?i.jointNames[e.joint]:i.limbNames[e.segment],E=e=>{if(!e)return"Loading...";if(!e.action)return e.name??"Unknown Action";const t=e.action.name??"Unknown Action",n=e.actionSide?`${e.actionSide}`:"";return`${t} ${n} (Trial ${e.name??"1"})`},K=e=>typeof e=="object"&&"SyncError"in e,_=(e,t)=>Object.values(e).some(n=>t.id in n&&Object.keys(n[t.id]).length>0),$=(e,t)=>Math.max(...Object.values(e).map(n=>t.id in n?Object.keys(n[t.id]).length:0)),q=(e,t,n)=>Object.values(e).some(o=>t.id in o&&n in o[t.id]),J=(e,t)=>e[t.kind]?.[t.value.id]?.[i.planeOrAxis(t)],M=(e,t,n)=>{const o=structuredClone(e);if(n===void 0){const a=i.planeOrAxis(t);t.kind in o&&t.value.id in o[t.kind]&&a in o[t.kind][t.value.id]&&delete o[t.kind][t.value.id][a]}else m.merge(o,{[t.kind]:{[t.value.id]:{[i.planeOrAxis(t)]:n}}});return o},W=e=>Object.entries(e).flatMap(([t,n])=>Object.entries(n).flatMap(([o,a])=>Object.entries(a).map(([c,s])=>({min:s.min,max:s.max,kind:p.safelyConvertEnum(s.kind),partDimension:c,partId:o,partKind:t})))),D=e=>e.reduce((t,n)=>({...t,[n.partKind]:{...t[n.partKind]||{},[n.partId]:{...t[n.partKind]?.[n.partId]||{},[n.partDimension]:{kind:n.kind,min:n.min,max:n.max}}}}),{joint:{},limb:{},acceleration:{}}),V=e=>Object.values(e).every(t=>Object.keys(t).length===0),z=(e,t)=>{if(e.kind!==t.kind)return!1;switch(e.kind){case"Zed":return e.id===t.id;case"Usb":return e.name===t.name;case"GoPro":return e.id===t.id}};exports.AngleDataSource=g;exports.analysisStatBuilder=C;exports.areThresholdsEmpty=V;exports.availablePlanes=R;exports.axes=P;exports.canBeVerticalForce=v;exports.dimensionName=x;exports.dimensionToLegacy=y;exports.getAnalysisName=E;exports.getAnalysisPartIdNoSide=U;exports.getJointIdNoSide=u;exports.getJointIdWithSide=b;exports.getLimbIdNoSide=h;exports.getLimbIdWithSide=F;exports.getPointSide=A;exports.isDeviceEqual=z;exports.isLimbTrackingFrame=T;exports.isSyncError=K;exports.jointAngle=S;exports.jointOrLimbHasThreshold=_;exports.jointOrLimbThresholdCount=$;exports.limbAngle=k;exports.mkUnit=d;exports.partAndPlaneHasThreshold=q;exports.partIdName=I;exports.partIdToJointLimbId=L;exports.partIdToString=O;exports.partKinds=w;exports.planes=B;exports.sensorLocationName=N;exports.sensorLocationToLimbId=j;exports.thresholdForPart=J;exports.thresholdFragmentsToThresholds=D;exports.thresholdsToInput=W;exports.tryMkUnit=H;exports.updateThreshold=M;
|
package/dist/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jointNames as h, limbNames as f, planeOrAxis as l } from "./services.js";
|
|
2
2
|
import { S as n } from "./generated-GfcSQz21.js";
|
|
3
|
-
import { m as g } from "./lodash-vendor-
|
|
3
|
+
import { m as g } from "./lodash-vendor-D4ZPCr77.js";
|
|
4
4
|
import { safelyConvertEnum as p } from "./utils.js";
|
|
5
5
|
const c = (e, t) => t === "left" || t === "right" ? {
|
|
6
6
|
sagittal: e.sagittal
|
package/dist/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./vendor-BnSpIYqA.cjs"),p=require("./services.cjs"),i=require("./moment-vendor-1cRqq0AH.cjs"),d=require("./generated-ChsGaiYd.cjs"),$=t=>t*39.3700787402,M=t=>t/39.3700787402,l=t=>t*2.20462262185,f=t=>t/2.20462262185,c=(t,n=!1)=>t==null?null:n?t*180/Math.PI:Math.round(t*(180/Math.PI)),P=t=>t==null?null:t*(Math.PI/180),S=t=>i.hooks.duration(t,"ms").humanize({ss:1}),F=(t,n=!1,s=!0)=>{const r=i.hooks.duration(t,"ms"),e=s?r.minutes().toString().padStart(2,"0"):r.minutes().toString(),o=r.seconds().toString().padStart(2,"0"),m=Math.round(r.milliseconds()).toString().padStart(3,"0");return n?`${e}:${o}.${m}`:`${e}:${o}`},k=(t,n=!1)=>{const s=i.hooks.duration(t,"seconds"),e=(s.minutes()+s.hours()*60).toString().padStart(2,"0"),o=s.seconds().toString().padStart(2,"0");if(n){const m=Math.round(s.milliseconds()).toString().padStart(3,"0");return`${e}:${o}.${m}`}return`${e}:${o}`},h=t=>{const n=i.hooks.duration(t,"ms"),s=n.hours(),r=n.minutes(),e=n.seconds(),o=n.milliseconds();return r<1?`${e}.${Math.floor(o/100)} seconds`:s<1?`${r} minutes`:`${s} hours`},b=t=>{const n=i.hooks.duration(t,"ms"),s=n.hours().toString().padStart(2,"0"),r=n.minutes().toString().padStart(2,"0"),e=n.seconds().toString().padStart(2,"0");return`${s}:${r}:${e}`},y=t=>{const n=i.hooks.duration(t,"seconds"),s=n.hours().toString().padStart(2,"0"),r=n.minutes().toString().padStart(2,"0"),e=n.seconds().toString().padStart(2,"0");return`${s}:${r}:${e}`},I=(t,n=!1)=>{const[s,r,e]=t.split(":").map(Number),o=n?999:0;return i.hooks.duration({hours:s,minutes:r,seconds:e,milliseconds:o}).asMilliseconds()},a=(t,n)=>{const s=new Intl.NumberFormat("en-US",{maximumFractionDigits:2});switch(t){case"Milliseconds":return h(n);case"DeltaMilliseconds":return S(n);case"Meters":return`${s.format(n)}m`;case"MetersPerSecond":return`${s.format(n)}m/s`;case"MetersPerSecondSq":return`${s.format(n)}m/s²`;case"Kg":return`${Math.round(l(n))}lbs`;case"Rad":return`${s.format(c(n)??0)}°`;case"RadPerSecond":return`${s.format(c(n)??0)}°/s`;case"RadPerSecondSq":return`${s.format(c(n)??0)}°/s²`;case"Frame":return`${s.format(n)}`;case"Percent":return new Intl.NumberFormat("en-US",{style:"percent"}).format(n);case"Count":return Math.round(n).toString();case"Centimeters":return`${s.format(n)}cm`;case"PassFail":return n>0?"Pass":"Fail";default:return n.toFixed(2)}},D=t=>a(t.unit,t.value),K=t=>t,R=t=>{const n=s=>p.getParameterAngleDirectionName(s,t);switch(t.partKind){case"joint":return s=>`${a("Rad",Math.abs(s))} ${n(s)}`;case"segment":return s=>`${a("Rad",Math.abs(s))} ${n(s)}`;case"acceleration":return s=>`${a("MetersPerSecondSq",s)} ${n(s)}`;case"angular_velocity":return s=>`${a("RadPerSecond",s)} ${n(s)}`;default:return s=>s.toString()}},q=t=>{const n=new Map;return((...s)=>{const r=JSON.stringify(s);if(n.has(r))return n.get(r);const e=t(...s);return n.set(r,e),e})},T=t=>({partId:"segment"in t.id?t.id.segment:t.id.joint,partKind:"segment"in t.id?"limb":"joint",partDimension:t.plane,min:t.min,max:t.max,kind:t.kind}),x=t=>t.map(T),g=t=>({id:t.partKind==="limb"?{segment:t.partId}:{joint:t.partId},plane:t.partDimension,min:t.min,max:t.max,kind:t.kind===d.ThresholdKind.Limit?d.ThresholdKind.Limit:d.ThresholdKind.Target}),U=t=>t.map(g),j=t=>t.split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "),A=(t,n)=>n===1?t:`${t}s`;function z(...t){return u.twMerge(u.clsx(t))}exports.capitalizeAll=j;exports.cn=z;exports.degToRad=P;exports.getFormatterForParameter=R;exports.getUnitFormatted=D;exports.getUnitValueFormatted=a;exports.hourMinSecStrToMs=I;exports.inchesToMeters=M;exports.kgToPounds=l;exports.memo=q;exports.metersToInches=$;exports.msToDurationStr=S;exports.msToHourMinSecStr=b;exports.msToPrettyStr=h;exports.msToTimestampStr=F;exports.parameterToThreshold=T;exports.parametersToThresholds=x;exports.pluralize=A;exports.poundsToKg=f;exports.radToDeg=c;exports.sToTimestampStr=k;exports.safelyConvertEnum=K;exports.secondsToTimestampStr=y;exports.thresholdToParameter=g;exports.thresholdsToParameters=U;
|
package/dist/utils.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as d, F as S } from "./vendor-BnU6I1mv.js";
|
|
2
2
|
import { getParameterAngleDirectionName as l } from "./services.js";
|
|
3
|
+
import { h as i } from "./moment-vendor-DMLRxgRE.js";
|
|
3
4
|
import { T as m } from "./generated-GfcSQz21.js";
|
|
4
|
-
const
|
|
5
|
+
const I = (t) => t * 39.3700787402, b = (t) => t / 39.3700787402, $ = (t) => t * 2.20462262185, x = (t) => t / 2.20462262185, u = (t, n = !1) => t == null ? null : n ? t * 180 / Math.PI : Math.round(t * (180 / Math.PI)), k = (t) => t == null ? null : t * (Math.PI / 180), p = (t) => i.duration(t, "ms").humanize({ ss: 1 }), D = (t, n = !1, s = !0) => {
|
|
5
6
|
const r = i.duration(t, "ms"), o = s ? r.minutes().toString().padStart(2, "0") : r.minutes().toString(), e = r.seconds().toString().padStart(2, "0"), a = Math.round(r.milliseconds()).toString().padStart(3, "0");
|
|
6
7
|
return n ? `${o}:${e}.${a}` : `${o}:${e}`;
|
|
7
|
-
},
|
|
8
|
+
}, R = (t, n = !1) => {
|
|
8
9
|
const s = i.duration(t, "seconds"), o = (s.minutes() + s.hours() * 60).toString().padStart(2, "0"), e = s.seconds().toString().padStart(2, "0");
|
|
9
10
|
if (n) {
|
|
10
11
|
const a = Math.round(s.milliseconds()).toString().padStart(3, "0");
|
|
@@ -14,13 +15,13 @@ const F = (t) => t * 39.3700787402, I = (t) => t / 39.3700787402, $ = (t) => t *
|
|
|
14
15
|
}, g = (t) => {
|
|
15
16
|
const n = i.duration(t, "ms"), s = n.hours(), r = n.minutes(), o = n.seconds(), e = n.milliseconds();
|
|
16
17
|
return r < 1 ? `${o}.${Math.floor(e / 100)} seconds` : s < 1 ? `${r} minutes` : `${s} hours`;
|
|
17
|
-
},
|
|
18
|
+
}, y = (t) => {
|
|
18
19
|
const n = i.duration(t, "ms"), s = n.hours().toString().padStart(2, "0"), r = n.minutes().toString().padStart(2, "0"), o = n.seconds().toString().padStart(2, "0");
|
|
19
20
|
return `${s}:${r}:${o}`;
|
|
20
|
-
},
|
|
21
|
+
}, K = (t) => {
|
|
21
22
|
const n = i.duration(t, "seconds"), s = n.hours().toString().padStart(2, "0"), r = n.minutes().toString().padStart(2, "0"), o = n.seconds().toString().padStart(2, "0");
|
|
22
23
|
return `${s}:${r}:${o}`;
|
|
23
|
-
},
|
|
24
|
+
}, j = (t, n = !1) => {
|
|
24
25
|
const [s, r, o] = t.split(":").map(Number), e = n ? 999 : 0;
|
|
25
26
|
return i.duration({ hours: s, minutes: r, seconds: o, milliseconds: e }).asMilliseconds();
|
|
26
27
|
}, c = (t, n) => {
|
|
@@ -57,7 +58,7 @@ const F = (t) => t * 39.3700787402, I = (t) => t / 39.3700787402, $ = (t) => t *
|
|
|
57
58
|
default:
|
|
58
59
|
return n.toFixed(2);
|
|
59
60
|
}
|
|
60
|
-
},
|
|
61
|
+
}, A = (t) => c(t.unit, t.value), N = (t) => t, U = (t) => {
|
|
61
62
|
const n = (s) => l(s, t);
|
|
62
63
|
switch (t.partKind) {
|
|
63
64
|
case "joint":
|
|
@@ -73,7 +74,7 @@ const F = (t) => t * 39.3700787402, I = (t) => t / 39.3700787402, $ = (t) => t *
|
|
|
73
74
|
default:
|
|
74
75
|
return (s) => s.toString();
|
|
75
76
|
}
|
|
76
|
-
},
|
|
77
|
+
}, w = (t) => {
|
|
77
78
|
const n = /* @__PURE__ */ new Map();
|
|
78
79
|
return ((...s) => {
|
|
79
80
|
const r = JSON.stringify(s);
|
|
@@ -89,40 +90,40 @@ const F = (t) => t * 39.3700787402, I = (t) => t / 39.3700787402, $ = (t) => t *
|
|
|
89
90
|
min: t.min,
|
|
90
91
|
max: t.max,
|
|
91
92
|
kind: t.kind
|
|
92
|
-
}),
|
|
93
|
+
}), C = (t) => t.map(f), h = (t) => ({
|
|
93
94
|
id: t.partKind === "limb" ? { segment: t.partId } : { joint: t.partId },
|
|
94
95
|
plane: t.partDimension,
|
|
95
96
|
min: t.min,
|
|
96
97
|
max: t.max,
|
|
97
98
|
kind: t.kind === m.Limit ? m.Limit : m.Target
|
|
98
|
-
}),
|
|
99
|
-
function
|
|
99
|
+
}), q = (t) => t.map(h), z = (t) => t.split(" ").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" "), H = (t, n) => n === 1 ? t : `${t}s`;
|
|
100
|
+
function E(...t) {
|
|
100
101
|
return d(S(t));
|
|
101
102
|
}
|
|
102
103
|
export {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
z as capitalizeAll,
|
|
105
|
+
E as cn,
|
|
106
|
+
k as degToRad,
|
|
107
|
+
U as getFormatterForParameter,
|
|
108
|
+
A as getUnitFormatted,
|
|
108
109
|
c as getUnitValueFormatted,
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
j as hourMinSecStrToMs,
|
|
111
|
+
b as inchesToMeters,
|
|
111
112
|
$ as kgToPounds,
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
w as memo,
|
|
114
|
+
I as metersToInches,
|
|
114
115
|
p as msToDurationStr,
|
|
115
|
-
|
|
116
|
+
y as msToHourMinSecStr,
|
|
116
117
|
g as msToPrettyStr,
|
|
117
|
-
|
|
118
|
+
D as msToTimestampStr,
|
|
118
119
|
f as parameterToThreshold,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
C as parametersToThresholds,
|
|
121
|
+
H as pluralize,
|
|
122
|
+
x as poundsToKg,
|
|
122
123
|
u as radToDeg,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
R as sToTimestampStr,
|
|
125
|
+
N as safelyConvertEnum,
|
|
126
|
+
K as secondsToTimestampStr,
|
|
126
127
|
h as thresholdToParameter,
|
|
127
|
-
|
|
128
|
+
q as thresholdsToParameters
|
|
128
129
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const dr=require("react"),Wr=require("./other-Dp3RPYfF.cjs");function Fr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Ut=Fr(dr),pr=(e,t)=>e>t?1:e<t?-1:0,Ot=1/0,At=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Zt="eexxaacctt",Br=new RegExp("\\p{P}","gu"),qr="A-Z",Ur="a-z",Zr=["en",{numeric:!0,sensitivity:"base"}],qe=(e,t,r)=>e.replace(qr,t).replace(Ur,r),Yt={unicode:!1,alpha:null,interSplit:"[^A-Za-z\\d']+",intraSplit:"[a-z][A-Z]",interBound:"[^A-Za-z\\d]",intraBound:"[A-Za-z]\\d|\\d[A-Za-z]|[a-z][A-Z]",interLft:0,interRgt:0,interChars:".",interIns:Ot,intraChars:"[a-z\\d']",intraIns:null,intraContr:"'[a-z]{1,2}\\b",intraMode:0,intraSlice:[1,Ot],intraSub:null,intraTrn:null,intraDel:null,intraFilt:(e,t,r)=>!0,toUpper:e=>e.toLocaleUpperCase(),toLower:e=>e.toLocaleLowerCase(),compare:null,sort:(e,t,r,n=pr)=>{let{idx:o,chars:s,terms:i,interLft2:a,interLft1:l,start:d,intraIns:p,interIns:h,cases:A}=e;return o.map((I,w)=>w).sort((I,w)=>s[w]-s[I]||p[I]-p[w]||i[w]+a[w]+.5*l[w]-(i[I]+a[I]+.5*l[I])||h[I]-h[w]||d[I]-d[w]||A[w]-A[I]||n(t[o[I]],t[o[w]]))}},Ct=(e,t)=>t==0?"":t==1?e+"??":t==Ot?e+"*?":e+`{0,${t}}?`,Ht="(?:\\b|_)";function xt(e){e=Object.assign({},Yt,e);let{unicode:t,interLft:r,interRgt:n,intraMode:o,intraSlice:s,intraIns:i,intraSub:a,intraTrn:l,intraDel:d,intraContr:p,intraSplit:h,interSplit:A,intraBound:I,interBound:w,intraChars:u,toUpper:O,toLower:S,compare:z}=e;i??=o,a??=o,l??=o,d??=o,z??=typeof Intl>"u"?pr:new Intl.Collator(...Zr).compare;let V=e.letters??e.alpha;if(V!=null){let m=O(V),C=S(V);A=qe(A,m,C),h=qe(h,m,C),w=qe(w,m,C),I=qe(I,m,C),u=qe(u,m,C),p=qe(p,m,C)}let D=t?"u":"";const X='".+?"',q=new RegExp(X,"gi"+D),M=new RegExp(`(?:\\s+|^)-(?:${u}+|${X})`,"gi"+D);let{intraRules:y}=e;y==null&&(y=m=>{let C=Yt.intraSlice,b=0,$=0,v=0,k=0;if(/[^\d]/.test(m)){let _=m.length;_<=4?_>=3&&(v=Math.min(l,1),_==4&&(b=Math.min(i,1))):(C=s,b=i,$=a,v=l,k=d)}return{intraSlice:C,intraIns:b,intraSub:$,intraTrn:v,intraDel:k}});let xe=!!h,lt=new RegExp(h,"g"+D),ct=new RegExp(A,"g"+D),De=new RegExp("^"+A+"|"+A+"$","g"+D),ft=new RegExp(p,"gi"+D);const Ae=(m,C=!1)=>{let b=[];m=m.replace(q,v=>(b.push(v),Zt)),m=m.replace(De,""),C||(m=S(m)),xe&&(m=m.replace(lt,v=>v[0]+" "+v[1]));let $=0;return m.split(ct).filter(v=>v!="").map(v=>v===Zt?b[$++]:v)},Ie=/[^\d]+|\d+/g,me=(m,C=0,b=!1)=>{let $=Ae(m);if($.length==0)return[];let v=Array($.length).fill("");$=$.map((re,ne)=>re.replace(ft,ee=>(v[ne]=ee,"")));let k;if(o==1)k=$.map((re,ne)=>{if(re[0]==='"')return At(re.slice(1,-1));let ee="";for(let H of re.matchAll(Ie)){let x=H[0],{intraSlice:L,intraIns:G,intraSub:R,intraTrn:j,intraDel:N}=y(x);if(G+R+j+N==0)ee+=x+v[ne];else{let[ae,oe]=L,le=x.slice(0,ae),ze=x.slice(oe),K=x.slice(ae,oe);G==1&&le.length==1&&le!=K[0]&&(le+="(?!"+le+")");let Ne=K.length,Me=[x];if(R)for(let W=0;W<Ne;W++)Me.push(le+K.slice(0,W)+u+K.slice(W+1)+ze);if(j)for(let W=0;W<Ne-1;W++)K[W]!=K[W+1]&&Me.push(le+K.slice(0,W)+K[W+1]+K[W]+K.slice(W+2)+ze);if(N)for(let W=0;W<Ne;W++)Me.push(le+K.slice(0,W+1)+"?"+K.slice(W+1)+ze);if(G){let W=Ct(u,1);for(let _e=0;_e<Ne;_e++)Me.push(le+K.slice(0,_e)+W+K.slice(_e)+ze)}ee+="(?:"+Me.join("|")+")"+v[ne]}}return ee});else{let re=Ct(u,i);C==2&&i>0&&(re=")("+re+")("),k=$.map((ne,ee)=>ne[0]==='"'?At(ne.slice(1,-1)):ne.split("").map((H,x,L)=>(i==1&&x==0&&L.length>1&&H!=L[x+1]&&(H+="(?!"+H+")"),H)).join(re)+v[ee])}let _=r==2?Ht:"",Q=n==2?Ht:"",we=Q+Ct(e.interChars,e.interIns)+_;return C>0?b?k=_+"("+k.join(")"+Q+"|"+_+"(")+")"+Q:(k="("+k.join(")("+we+")(")+")",k="(.??"+_+")"+k+"("+Q+".*)"):(k=k.join(we),k=_+k+Q),[new RegExp(k,"i"+D),$,v]},be=(m,C,b)=>{let[$]=me(C);if($==null)return null;let v=[];if(b!=null)for(let k=0;k<b.length;k++){let _=b[k];$.test(m[_])&&v.push(_)}else for(let k=0;k<m.length;k++)$.test(m[k])&&v.push(k);return v};let g=!!I,Ve=new RegExp(w,D),We=new RegExp(I,D);const Qe=(m,C,b)=>{let[$,v,k]=me(b,1),_=Ae(b,!0),[Q]=me(b,2),we=v.length,re=Array(we),ne=Array(we);for(let R=0;R<we;R++){let j=v[R],N=_[R],ae=j[0]=='"'?j.slice(1,-1):j+k[R],oe=N[0]=='"'?N.slice(1,-1):N+k[R];re[R]=ae,ne[R]=oe}let ee=m.length,H=Array(ee).fill(0),x={idx:Array(ee),start:H.slice(),chars:H.slice(),cases:H.slice(),terms:H.slice(),interIns:H.slice(),intraIns:H.slice(),interLft2:H.slice(),interRgt2:H.slice(),interLft1:H.slice(),interRgt1:H.slice(),ranges:Array(ee)},L=r==1||n==1,G=0;for(let R=0;R<m.length;R++){let j=C[m[R]],N=j.match($),ae=N.index+N[1].length,oe=ae,le=!1,ze=0,K=0,Ne=0,Me=0,W=0,_e=0,Vt=0,Wt=0,Ft=0,Le=[];for(let F=0,U=2;F<we;F++,U+=2){let Oe=S(N[U]),fe=re[F],St=ne[F],ue=fe.length,de=Oe.length,ce=Oe==fe;if(N[U]==St&&Vt++,!ce&&N[U+1].length>=ue){let B=S(N[U+1]).indexOf(fe);B>-1&&(Le.push(oe,de,B,ue),oe+=Te(N,U,B,ue),Oe=fe,de=ue,ce=!0,F==0&&(ae=oe))}if(L||ce){let B=oe-1,Ce=oe+de,je=!1,et=!1;if(B==-1||Ve.test(j[B]))ce&&ze++,je=!0;else{if(r==2){le=!0;break}if(g&&We.test(j[B]+j[B+1]))ce&&K++,je=!0;else if(r==1){let ut=N[U+1],Fe=oe+de;if(ut.length>=ue){let $e=0,Be=!1,Vr=new RegExp(fe,"ig"+D),Bt;for(;Bt=Vr.exec(ut);){$e=Bt.index;let qt=Fe+$e,Et=qt-1;if(Et==-1||Ve.test(j[Et])){ze++,Be=!0;break}else if(We.test(j[Et]+j[qt])){K++,Be=!0;break}}Be&&(je=!0,Le.push(oe,de,$e,ue),oe+=Te(N,U,$e,ue),Oe=fe,de=ue,ce=!0,F==0&&(ae=oe))}if(!je){le=!0;break}}}if(Ce==j.length||Ve.test(j[Ce]))ce&&Ne++,et=!0;else{if(n==2){le=!0;break}if(g&&We.test(j[Ce-1]+j[Ce]))ce&&Me++,et=!0;else if(n==1){le=!0;break}}ce&&(W+=ue,je&&et&&_e++)}if(de>ue&&(Ft+=de-ue),F>0&&(Wt+=N[U-1].length),!e.intraFilt(fe,Oe,oe)){le=!0;break}F<we-1&&(oe+=de+N[U+1].length)}if(!le){x.idx[G]=m[R],x.interLft2[G]=ze,x.interLft1[G]=K,x.interRgt2[G]=Ne,x.interRgt1[G]=Me,x.chars[G]=W,x.terms[G]=_e,x.cases[G]=Vt,x.interIns[G]=Wt,x.intraIns[G]=Ft,x.start[G]=ae;let F=j.match(Q),U=F.index+F[1].length,Oe=Le.length,fe=Oe>0?0:1/0,St=Oe-4;for(let B=2;B<F.length;){let Ce=F[B].length;if(fe<=St&&Le[fe]==U){let je=Le[fe+1],et=Le[fe+2],ut=Le[fe+3],Fe=B,$e="";for(let Be=0;Be<je;Fe++)$e+=F[Fe],Be+=F[Fe].length;F.splice(B,Fe-B,$e),U+=Te(F,B,et,ut),fe+=4}else U+=Ce,B++}U=F.index+F[1].length;let ue=x.ranges[G]=[],de=U,ce=U;for(let B=2;B<F.length;B++){let Ce=F[B].length;U+=Ce,B%2==0?ce=U:Ce>0&&(ue.push(de,ce),de=ce=U)}ce>de&&ue.push(de,ce),G++}}if(G<m.length)for(let R in x)x[R]=x[R].slice(0,G);return x},Te=(m,C,b,$)=>{let v=m[C]+m[C+1].slice(0,b);return m[C-1]+=v,m[C]=m[C+1].slice(b,b+$),m[C+1]=m[C+1].slice(b+$),v.length},J=5,ie=(m,C,b,$=1e3,v)=>{b=b?b===!0?J:b:0;let k=null,_=null,Q=[];C=C.replace(M,x=>{let L=x.trim().slice(1);return L=L[0]==='"'?At(L.slice(1,-1)):L.replace(Br,""),L!=""&&Q.push(L),""});let we=Ae(C),re;if(Q.length>0){if(re=new RegExp(Q.join("|"),"i"+D),we.length==0){let x=[];for(let L=0;L<m.length;L++)re.test(m[L])||x.push(L);return[x,null,null]}}else if(we.length==0)return[null,null,null];if(b>0){let x=Ae(C);if(x.length>1){let L=x.slice().sort((R,j)=>j.length-R.length);for(let R=0;R<L.length;R++){if(v?.length==0)return[[],null,null];v=be(m,L[R],v)}if(x.length>b)return[v,null,null];k=mr(x).map(R=>R.join(" ")),_=[];let G=new Set;for(let R=0;R<k.length;R++)if(G.size<v.length){let j=v.filter(ae=>!G.has(ae)),N=be(m,k[R],j);for(let ae=0;ae<N.length;ae++)G.add(N[ae]);_.push(N)}else _.push([])}}k==null&&(k=[C],_=[v?.length>0?v:be(m,C)]);let ne=null,ee=null;if(Q.length>0&&(_=_.map(x=>x.filter(L=>!re.test(m[L])))),_.reduce((x,L)=>x+L.length,0)<=$){ne={},ee=[];for(let x=0;x<_.length;x++){let L=_[x];if(L==null||L.length==0)continue;let G=k[x],R=Qe(L,m,G),j=e.sort(R,m,G,z);if(x>0)for(let N=0;N<j.length;N++)j[N]+=ee.length;for(let N in R)ne[N]=(ne[N]??[]).concat(R[N]);ee=ee.concat(j)}}return[[].concat(..._),ne,ee]};return{search:(...m)=>ie(...m),split:Ae,filter:be,info:Qe,sort:e.sort}}const Yr=(()=>{let e={A:"ÁÀÃÂÄĄĂÅ",a:"áàãâäąăå",E:"ÉÈÊËĖĚ",e:"éèêëęě",I:"ÍÌÎÏĮİ",i:"íìîïįı",O:"ÓÒÔÕÖ",o:"óòôõö",U:"ÚÙÛÜŪŲŮŰ",u:"úùûüūųůű",C:"ÇČĆ",c:"çčć",D:"Ď",d:"ď",G:"Ğ",g:"ğ",L:"Ł",l:"ł",N:"ÑŃŇ",n:"ñńň",S:"ŠŚȘŞ",s:"šśșş",T:"ŢȚŤ",t:"ţțť",Y:"Ý",y:"ý",Z:"ŻŹŽ",z:"żźž"},t={},r="";for(let s in e)e[s].split("").forEach(i=>{r+=i,t[i]=s});let n=new RegExp(`[${r}]`,"g"),o=s=>t[s];return s=>{if(typeof s=="string")return s.replace(n,o);let i=Array(s.length);for(let a=0;a<s.length;a++)i[a]=s[a].replace(n,o);return i}})();function mr(e){e=e.slice();let t=e.length,r=[e.slice()],n=new Array(t).fill(0),o=1,s,i;for(;o<t;)n[o]<o?(s=o%2&&n[o],i=e[o],e[o]=e[s],e[s]=i,++n[o],o=1,r.push(e.slice())):(n[o]=0,++o);return r}const Hr=(e,t)=>t?`<mark>${e}</mark>`:e,Kr=(e,t)=>e+t;function Xr(e,t,r=Hr,n="",o=Kr){n=o(n,r(e.substring(0,t[0]),!1))??n;for(let s=0;s<t.length;s+=2){let i=t[s],a=t[s+1];n=o(n,r(e.substring(i,a),!0))??n,s<t.length-3&&(n=o(n,r(e.substring(t[s+1],t[s+2]),!1))??n)}return n=o(n,r(e.substring(t[t.length-1]),!1))??n,n}xt.latinize=Yr;xt.permute=e=>mr([...Array(e.length).keys()]).sort((r,n)=>{for(let o=0;o<r.length;o++)if(r[o]!=n[o])return r[o]-n[o];return 0}).map(r=>r.map(n=>e[n]));xt.highlight=Xr;function Jr(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Qr(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var en=(function(){function e(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Qr(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Jr(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),se="-ms-",yt="-moz-",P="-webkit-",hr="comm",jt="rule",$t="decl",tn="@import",gr="@keyframes",rn="@layer",nn=Math.abs,wt=String.fromCharCode,on=Object.assign;function sn(e,t){return te(e,0)^45?(((t<<2^te(e,0))<<2^te(e,1))<<2^te(e,2))<<2^te(e,3):0}function br(e){return e.trim()}function an(e,t){return(e=t.exec(e))?e[0]:e}function T(e,t,r){return e.replace(t,r)}function Pt(e,t){return e.indexOf(t)}function te(e,t){return e.charCodeAt(t)|0}function nt(e,t,r){return e.slice(t,r)}function ke(e){return e.length}function Gt(e){return e.length}function dt(e,t){return t.push(e),e}function ln(e,t){return e.map(t).join("")}var vt=1,He=1,yr=0,pe=0,Z=0,Ke="";function kt(e,t,r,n,o,s,i){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:vt,column:He,length:i,return:""}}function tt(e,t){return on(kt("",null,null,"",null,null,0),e,{length:-e.length},t)}function cn(){return Z}function fn(){return Z=pe>0?te(Ke,--pe):0,He--,Z===10&&(He=1,vt--),Z}function he(){return Z=pe<yr?te(Ke,pe++):0,He++,Z===10&&(He=1,vt++),Z}function Ee(){return te(Ke,pe)}function ht(){return pe}function it(e,t){return nt(Ke,e,t)}function ot(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xr(e){return vt=He=1,yr=ke(Ke=e),pe=0,[]}function wr(e){return Ke="",e}function gt(e){return br(it(pe-1,Tt(e===91?e+2:e===40?e+1:e)))}function un(e){for(;(Z=Ee())&&Z<33;)he();return ot(e)>2||ot(Z)>3?"":" "}function dn(e,t){for(;--t&&he()&&!(Z<48||Z>102||Z>57&&Z<65||Z>70&&Z<97););return it(e,ht()+(t<6&&Ee()==32&&he()==32))}function Tt(e){for(;he();)switch(Z){case e:return pe;case 34:case 39:e!==34&&e!==39&&Tt(Z);break;case 40:e===41&&Tt(e);break;case 92:he();break}return pe}function pn(e,t){for(;he()&&e+Z!==57;)if(e+Z===84&&Ee()===47)break;return"/*"+it(t,pe-1)+"*"+wt(e===47?e:he())}function mn(e){for(;!ot(Ee());)he();return it(e,pe)}function hn(e){return wr(bt("",null,null,null,[""],e=xr(e),0,[0],e))}function bt(e,t,r,n,o,s,i,a,l){for(var d=0,p=0,h=i,A=0,I=0,w=0,u=1,O=1,S=1,z=0,V="",D=o,X=s,q=n,M=V;O;)switch(w=z,z=he()){case 40:if(w!=108&&te(M,h-1)==58){Pt(M+=T(gt(z),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:M+=gt(z);break;case 9:case 10:case 13:case 32:M+=un(w);break;case 92:M+=dn(ht()-1,7);continue;case 47:switch(Ee()){case 42:case 47:dt(gn(pn(he(),ht()),t,r),l);break;default:M+="/"}break;case 123*u:a[d++]=ke(M)*S;case 125*u:case 59:case 0:switch(z){case 0:case 125:O=0;case 59+p:S==-1&&(M=T(M,/\f/g,"")),I>0&&ke(M)-h&&dt(I>32?Xt(M+";",n,r,h-1):Xt(T(M," ","")+";",n,r,h-2),l);break;case 59:M+=";";default:if(dt(q=Kt(M,t,r,d,p,o,a,V,D=[],X=[],h),s),z===123)if(p===0)bt(M,t,q,q,D,s,h,a,X);else switch(A===99&&te(M,3)===110?100:A){case 100:case 108:case 109:case 115:bt(e,q,q,n&&dt(Kt(e,q,q,0,0,o,a,V,o,D=[],h),X),o,X,h,a,n?D:X);break;default:bt(M,q,q,q,[""],X,0,a,X)}}d=p=I=0,u=S=1,V=M="",h=i;break;case 58:h=1+ke(M),I=w;default:if(u<1){if(z==123)--u;else if(z==125&&u++==0&&fn()==125)continue}switch(M+=wt(z),z*u){case 38:S=p>0?1:(M+="\f",-1);break;case 44:a[d++]=(ke(M)-1)*S,S=1;break;case 64:Ee()===45&&(M+=gt(he())),A=Ee(),p=h=ke(V=M+=mn(ht())),z++;break;case 45:w===45&&ke(M)==2&&(u=0)}}return s}function Kt(e,t,r,n,o,s,i,a,l,d,p){for(var h=o-1,A=o===0?s:[""],I=Gt(A),w=0,u=0,O=0;w<n;++w)for(var S=0,z=nt(e,h+1,h=nn(u=i[w])),V=e;S<I;++S)(V=br(u>0?A[S]+" "+z:T(z,/&\f/g,A[S])))&&(l[O++]=V);return kt(e,t,r,o===0?jt:a,l,d,p)}function gn(e,t,r){return kt(e,t,r,hr,wt(cn()),nt(e,2,-2),0)}function Xt(e,t,r,n){return kt(e,t,r,$t,nt(e,0,n),nt(e,n+1,-1),n)}function Ye(e,t){for(var r="",n=Gt(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function bn(e,t,r,n){switch(e.type){case rn:if(e.children.length)break;case tn:case $t:return e.return=e.return||e.value;case hr:return"";case gr:return e.return=e.value+"{"+Ye(e.children,n)+"}";case jt:e.value=e.props.join(",")}return ke(r=Ye(e.children,n))?e.return=e.value+"{"+r+"}":""}function yn(e){var t=Gt(e);return function(r,n,o,s){for(var i="",a=0;a<t;a++)i+=e[a](r,n,o,s)||"";return i}}function xn(e){return function(t){t.root||(t=t.return)&&e(t)}}function wn(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var vn=function(t,r,n){for(var o=0,s=0;o=s,s=Ee(),o===38&&s===12&&(r[n]=1),!ot(s);)he();return it(t,pe)},kn=function(t,r){var n=-1,o=44;do switch(ot(o)){case 0:o===38&&Ee()===12&&(r[n]=1),t[n]+=vn(pe-1,r,n);break;case 2:t[n]+=gt(o);break;case 4:if(o===44){t[++n]=Ee()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=wt(o)}while(o=he());return t},Sn=function(t,r){return wr(kn(xr(t),r))},Jt=new WeakMap,En=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Jt.get(n))&&!o){Jt.set(t,!0);for(var s=[],i=Sn(r,s),a=n.props,l=0,d=0;l<i.length;l++)for(var p=0;p<a.length;p++,d++)t.props[d]=s[l]?i[l].replace(/&\f/g,a[p]):a[p]+" "+i[l]}}},An=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function vr(e,t){switch(sn(e,t)){case 5103:return P+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return P+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return P+e+yt+e+se+e+e;case 6828:case 4268:return P+e+se+e+e;case 6165:return P+e+se+"flex-"+e+e;case 5187:return P+e+T(e,/(\w+).+(:[^]+)/,P+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return P+e+se+"flex-item-"+T(e,/flex-|-self/,"")+e;case 4675:return P+e+se+"flex-line-pack"+T(e,/align-content|flex-|-self/,"")+e;case 5548:return P+e+se+T(e,"shrink","negative")+e;case 5292:return P+e+se+T(e,"basis","preferred-size")+e;case 6060:return P+"box-"+T(e,"-grow","")+P+e+se+T(e,"grow","positive")+e;case 4554:return P+T(e,/([^-])(transform)/g,"$1"+P+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,P+"$1"),/(image-set)/,P+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,P+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,P+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P+e+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,P+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ke(e)-1-t>6)switch(te(e,t+1)){case 109:if(te(e,t+4)!==45)break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+P+"$2-$3$1"+yt+(te(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Pt(e,"stretch")?vr(T(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(te(e,t+1)!==115)break;case 6444:switch(te(e,ke(e)-3-(~Pt(e,"!important")&&10))){case 107:return T(e,":",":"+P)+e;case 101:return T(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P+(te(e,14)===45?"inline-":"")+"box$3$1"+P+"$2$3$1"+se+"$2box$3")+e}break;case 5936:switch(te(e,t+11)){case 114:return P+e+se+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return P+e+se+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return P+e+se+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return P+e+se+e+e}return e}var Cn=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case $t:t.return=vr(t.value,t.length);break;case gr:return Ye([tt(t,{value:T(t.value,"@","@"+P)})],o);case jt:if(t.length)return ln(t.props,function(s){switch(an(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ye([tt(t,{props:[T(s,/:(read-\w+)/,":"+yt+"$1")]})],o);case"::placeholder":return Ye([tt(t,{props:[T(s,/:(plac\w+)/,":"+P+"input-$1")]}),tt(t,{props:[T(s,/:(plac\w+)/,":"+yt+"$1")]}),tt(t,{props:[T(s,/:(plac\w+)/,se+"input-$1")]})],o)}return""})}},Rn=[Cn],In=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(u){var O=u.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(u),u.setAttribute("data-s",""))})}var o=t.stylisPlugins||Rn,s={},i,a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(u){for(var O=u.getAttribute("data-emotion").split(" "),S=1;S<O.length;S++)s[O[S]]=!0;a.push(u)});var l,d=[En,An];{var p,h=[bn,xn(function(u){p.insert(u)})],A=yn(d.concat(o,h)),I=function(O){return Ye(hn(O),A)};l=function(O,S,z,V){p=z,I(O?O+"{"+S.styles+"}":S.styles),V&&(w.inserted[S.name]=!0)}}var w={key:r,sheet:new en({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:l};return w.sheet.hydrate(a),w},zn=!0;function Mn(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var kr=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||zn===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},On=function(t,r,n){kr(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Pn(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Tn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Nn=/[A-Z]|^ms/g,_n=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sr=function(t){return t.charCodeAt(1)===45},Qt=function(t){return t!=null&&typeof t!="boolean"},Rt=wn(function(e){return Sr(e)?e:e.replace(Nn,"-$&").toLowerCase()}),er=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(_n,function(n,o,s){return Se={name:o,styles:s,next:Se},o})}return Tn[t]!==1&&!Sr(t)&&typeof r=="number"&&r!==0?r+"px":r};function st(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Se={name:o.name,styles:o.styles,next:Se},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Se={name:i.name,styles:i.styles,next:Se},i=i.next;var a=s.styles+";";return a}return Ln(e,t,r)}case"function":{if(e!==void 0){var l=Se,d=r(e);return Se=l,st(e,t,d)}break}}var p=r;return p}function Ln(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=st(e,t,r[o])+";";else for(var s in r){var i=r[s];if(typeof i!="object"){var a=i;Qt(a)&&(n+=Rt(s)+":"+er(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)Qt(i[l])&&(n+=Rt(s)+":"+er(s,i[l])+";");else{var d=st(e,t,i);switch(s){case"animation":case"animationName":{n+=Rt(s)+":"+d+";";break}default:n+=s+"{"+d+"}"}}}return n}var tr=/label:\s*([^\s;{]+)\s*(;|$)/g,Se;function jn(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Se=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,o+=st(r,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=st(r,t,e[a]),n){var l=s;o+=l[a]}tr.lastIndex=0;for(var d="",p;(p=tr.exec(o))!==null;)d+="-"+p[1];var h=Pn(o)+d;return{name:h,styles:o,next:Se}}var $n=function(t){return t()},Gn=Ut.useInsertionEffect?Ut.useInsertionEffect:!1,Dn=Gn||$n,Vn=dr.useLayoutEffect,rr=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Wn(e,t){return!!(e===t||rr(e)&&rr(t))}function Fn(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!Wn(e[r],t[r]))return!1;return!0}function Bn(e,t){t===void 0&&(t=Fn);var r=null;function n(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];if(r&&r.lastThis===this&&t(o,r.lastArgs))return r.lastResult;var i=e.apply(this,o);return r={lastResult:i,lastArgs:o,lastThis:this},i}return n.clear=function(){r=null},n}function ye(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var nr=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),or=function(){return Math.random().toString(36).substring(7).split("").join(".")},sr={INIT:"@@redux/INIT"+or(),REPLACE:"@@redux/REPLACE"+or()};function qn(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Un(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Hn(e))return"date";if(Yn(e))return"error";var r=Zn(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Zn(e){return typeof e.constructor=="function"?e.constructor.name:null}function Yn(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Hn(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Ue(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Un(e)),t}function Er(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?ye(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?ye(1):"Expected the enhancer to be a function. Instead, received: '"+Ue(r)+"'");return r(Er)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?ye(2):"Expected the root reducer to be a function. Instead, received: '"+Ue(e)+"'");var o=e,s=t,i=[],a=i,l=!1;function d(){a===i&&(a=i.slice())}function p(){if(l)throw new Error(process.env.NODE_ENV==="production"?ye(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function h(u){if(typeof u!="function")throw new Error(process.env.NODE_ENV==="production"?ye(4):"Expected the listener to be a function. Instead, received: '"+Ue(u)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?ye(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var O=!0;return d(),a.push(u),function(){if(O){if(l)throw new Error(process.env.NODE_ENV==="production"?ye(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");O=!1,d();var z=a.indexOf(u);a.splice(z,1),i=null}}}function A(u){if(!qn(u))throw new Error(process.env.NODE_ENV==="production"?ye(7):"Actions must be plain objects. Instead, the actual type was: '"+Ue(u)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof u.type>"u")throw new Error(process.env.NODE_ENV==="production"?ye(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?ye(9):"Reducers may not dispatch actions.");try{l=!0,s=o(s,u)}finally{l=!1}for(var O=i=a,S=0;S<O.length;S++){var z=O[S];z()}return u}function I(u){if(typeof u!="function")throw new Error(process.env.NODE_ENV==="production"?ye(10):"Expected the nextReducer to be a function. Instead, received: '"+Ue(u));o=u,A({type:sr.REPLACE})}function w(){var u,O=h;return u={subscribe:function(z){if(typeof z!="object"||z===null)throw new Error(process.env.NODE_ENV==="production"?ye(11):"Expected the observer to be an object. Instead, received: '"+Ue(z)+"'");function V(){z.next&&z.next(p())}V();var D=O(V);return{unsubscribe:D}}},u[nr]=function(){return this},u}return A({type:sr.INIT}),n={dispatch:A,subscribe:h,getState:p,replaceReducer:I},n[nr]=w,n}var It,ir;function Kn(){return ir||(ir=1,It=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[o]))return!1;for(o=n;o--!==0;){var i=s[o];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}),It}var Xn=Kn();const Jn=Wr.getDefaultExportFromCjs(Xn);var Ar=()=>{},ge=Ar;function ve(e){return{tag:0,0:e}}function at(e){return{tag:1,0:e}}var ar=()=>typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator",Qn=e=>e;function eo(e){return t=>r=>{var n=ge;t((o=>{o===0?r(0):o.tag===0?(n=o[0],r(o)):e(o[0])?r(o):n(0)}))}}function to(e){return t=>r=>t((n=>{n===0||n.tag===0?r(n):r(at(e(n[0])))}))}function Cr(e){return t=>r=>{var n=[],o=ge,s=!1,i=!1;t((a=>{i||(a===0?(i=!0,n.length||r(0)):a.tag===0?o=a[0]:(s=!1,(function(d){var p=ge;d((h=>{if(h===0){if(n.length){var A=n.indexOf(p);A>-1&&(n=n.slice()).splice(A,1),n.length||(i?r(0):s||(s=!0,o(0)))}}else h.tag===0?(n.push(p=h[0]),p(0)):n.length&&(r(h),p(0))}))})(e(a[0])),s||(s=!0,o(0))))})),r(ve((a=>{if(a===1){i||(i=!0,o(1));for(var l=0,d=n,p=n.length;l<p;l++)d[l](1);n.length=0}else{!i&&!s?(s=!0,o(0)):s=!1;for(var h=0,A=n,I=n.length;h<I;h++)A[h](0)}})))}}function ro(e){return Cr(Qn)(e)}function no(e){return ro(mo(e))}function oo(e){return t=>r=>{var n=!1;t((o=>{if(!n)if(o===0)n=!0,r(0),e();else if(o.tag===0){var s=o[0];r(ve((i=>{i===1?(n=!0,s(1),e()):s(i)})))}else r(o)}))}}function so(e){return t=>r=>{var n=!1;t((o=>{if(!n)if(o===0)n=!0,r(0);else if(o.tag===0){var s=o[0];r(ve((i=>{i===1&&(n=!0),s(i)})))}else e(o[0]),r(o)}))}}function io(e){return t=>r=>t((n=>{n===0?r(0):n.tag===0?(r(n),e()):r(n)}))}function Rr(e){var t=[],r=ge,n=!1;return o=>{t.push(o),t.length===1&&e((s=>{if(s===0){for(var i=0,a=t,l=t.length;i<l;i++)a[i](0);t.length=0}else if(s.tag===0)r=s[0];else{n=!1;for(var d=0,p=t,h=t.length;d<h;d++)p[d](s)}})),o(ve((s=>{if(s===1){var i=t.indexOf(o);i>-1&&(t=t.slice()).splice(i,1),t.length||r(1)}else n||(n=!0,r(0))})))}}function ao(e){return t=>r=>{var n=ge,o=ge,s=!1,i=!1,a=!1,l=!1;t((d=>{l||(d===0?(l=!0,a||r(0)):d.tag===0?n=d[0]:(a&&(o(1),o=ge),s?s=!1:(s=!0,n(0)),(function(h){a=!0,h((A=>{a&&(A===0?(a=!1,l?r(0):s||(s=!0,n(0))):A.tag===0?(i=!1,(o=A[0])(0)):(r(A),i?i=!1:o(0)))}))})(e(d[0]))))})),r(ve((d=>{d===1?(l||(l=!0,n(1)),a&&(a=!1,o(1))):(!l&&!s&&(s=!0,n(0)),a&&!i&&(i=!0,o(0)))})))}}function lo(e){return t=>r=>{var n=ge,o=!1,s=0;t((i=>{o||(i===0?(o=!0,r(0)):i.tag===0?n=i[0]:s++<e?(r(i),!o&&s>=e&&(o=!0,r(0),n(1))):r(i))})),r(ve((i=>{i===1&&!o?(o=!0,n(1)):i===0&&!o&&s<e&&n(0)})))}}function co(e){return t=>r=>{var n=ge,o=ge,s=!1;t((i=>{s||(i===0?(s=!0,o(1),r(0)):i.tag===0?(n=i[0],e((a=>{a===0||(a.tag===0?(o=a[0])(0):(s=!0,o(1),n(1),r(0)))}))):r(i))})),r(ve((i=>{i===1&&!s?(s=!0,n(1),o(1)):s||n(0)})))}}function fo(e,t){return r=>n=>{var o=ge,s=!1;r((i=>{s||(i===0?(s=!0,n(0)):i.tag===0?(o=i[0],n(i)):e(i[0])?n(i):(s=!0,t&&n(i),n(0),o(1)))}))}}function uo(e){return t=>e()(t)}function Ir(e){return t=>{var r=e[ar()]&&e[ar()]()||e,n=!1,o=!1,s=!1,i;t(ve((async a=>{if(a===1)n=!0,r.return&&r.return();else if(o)s=!0;else{for(s=o=!0;s&&!n;)if((i=await r.next()).done)n=!0,r.return&&await r.return(),t(0);else try{s=!1,t(at(i.value))}catch(l){if(r.throw)(n=!!(await r.throw(l)).done)&&t(0);else throw l}o=!1}})))}}function po(e){return e[Symbol.asyncIterator]?Ir(e):t=>{var r=e[Symbol.iterator](),n=!1,o=!1,s=!1,i;t(ve((a=>{if(a===1)n=!0,r.return&&r.return();else if(o)s=!0;else{for(s=o=!0;s&&!n;)if((i=r.next()).done)n=!0,r.return&&r.return(),t(0);else try{s=!1,t(at(i.value))}catch(l){if(r.throw)(n=!!r.throw(l).done)&&t(0);else throw l}o=!1}})))}}var mo=po;function ho(e){return t=>{var r=!1;t(ve((n=>{n===1?r=!0:r||(r=!0,t(at(e)),t(0))})))}}function go(e){return t=>{var r=!1,n=e({next(o){r||t(at(o))},complete(){r||(r=!0,t(0))}});t(ve((o=>{o===1&&!r&&(r=!0,n())})))}}function bo(){var e,t;return{source:Rr(go((r=>(e=r.next,t=r.complete,Ar)))),next(r){e&&e(r)},complete(){t&&t()}}}function zr(e){return t=>{var r=ge,n=!1;return t((o=>{o===0?n=!0:o.tag===0?(r=o[0])(0):n||(e(o[0]),r(0))})),{unsubscribe(){n||(n=!0,r(1))}}}}function yo(e){zr((t=>{}))(e)}function xo(e){return new Promise((t=>{var r=ge,n;e((o=>{o===0?Promise.resolve(n).then(t):o.tag===0?(r=o[0])(0):(n=o[0],r(0))}))}))}function Mr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Mr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wo(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Mr(e))&&(n&&(n+=" "),n+=t);return n}const Dt="-",vo=e=>{const t=So(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const a=i.split(Dt);return a[0]===""&&a.length!==1&&a.shift(),Or(a,t)||ko(i)},getConflictingClassGroupIds:(i,a)=>{const l=r[i]||[];return a&&n[i]?[...l,...n[i]]:l}}},Or=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Or(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Dt);return t.validators.find(({validator:i})=>i(s))?.classGroupId},lr=/^\[(.+)\]$/,ko=e=>{if(lr.test(e)){const t=lr.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},So=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Nt(r[o],n,o,t);return n},Nt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:cr(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(Eo(o)){Nt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,i])=>{Nt(i,cr(t,s),r,n)})})},cr=(e,t)=>{let r=e;return t.split(Dt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Eo=e=>e.isThemeGetter,Ao=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){r.has(s)?r.set(s,i):o(s,i)}}},_t="!",Lt=":",Co=Lt.length,Ro=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,a=0,l=0,d;for(let w=0;w<o.length;w++){let u=o[w];if(i===0&&a===0){if(u===Lt){s.push(o.slice(l,w)),l=w+Co;continue}if(u==="/"){d=w;continue}}u==="["?i++:u==="]"?i--:u==="("?a++:u===")"&&a--}const p=s.length===0?o:o.substring(l),h=Io(p),A=h!==p,I=d&&d>l?d-l:void 0;return{modifiers:s,hasImportantModifier:A,baseClassName:h,maybePostfixModifierPosition:I}};if(t){const o=t+Lt,s=n;n=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},Io=e=>e.endsWith(_t)?e.substring(0,e.length-1):e.startsWith(_t)?e.substring(1):e,zo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},Mo=e=>({cache:Ao(e.cacheSize),parseClassName:Ro(e),sortModifiers:zo(e),...vo(e)}),Oo=/\s+/,Po=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(Oo);let l="";for(let d=a.length-1;d>=0;d-=1){const p=a[d],{isExternal:h,modifiers:A,hasImportantModifier:I,baseClassName:w,maybePostfixModifierPosition:u}=r(p);if(h){l=p+(l.length>0?" "+l:l);continue}let O=!!u,S=n(O?w.substring(0,u):w);if(!S){if(!O){l=p+(l.length>0?" "+l:l);continue}if(S=n(w),!S){l=p+(l.length>0?" "+l:l);continue}O=!1}const z=s(A).join(":"),V=I?z+_t:z,D=V+S;if(i.includes(D))continue;i.push(D);const X=o(S,O);for(let q=0;q<X.length;++q){const M=X[q];i.push(V+M)}l=p+(l.length>0?" "+l:l)}return l};function To(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Pr(t))&&(n&&(n+=" "),n+=r);return n}const Pr=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Pr(e[n]))&&(r&&(r+=" "),r+=t);return r};function No(e,...t){let r,n,o,s=i;function i(l){const d=t.reduce((p,h)=>h(p),e());return r=Mo(d),n=r.cache.get,o=r.cache.set,s=a,a(l)}function a(l){const d=n(l);if(d)return d;const p=Po(l,r);return o(l,p),p}return function(){return s(To.apply(null,arguments))}}const Y=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Tr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Nr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_o=/^\d+\/\d+$/,Lo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$o=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Go=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Do=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ze=e=>_o.test(e),E=e=>!!e&&!Number.isNaN(Number(e)),Pe=e=>!!e&&Number.isInteger(Number(e)),zt=e=>e.endsWith("%")&&E(e.slice(0,-1)),Re=e=>Lo.test(e),Vo=()=>!0,Wo=e=>jo.test(e)&&!$o.test(e),_r=()=>!1,Fo=e=>Go.test(e),Bo=e=>Do.test(e),qo=e=>!c(e)&&!f(e),Uo=e=>Xe(e,$r,_r),c=e=>Tr.test(e),Ge=e=>Xe(e,Gr,Wo),Mt=e=>Xe(e,Xo,E),fr=e=>Xe(e,Lr,_r),Zo=e=>Xe(e,jr,Bo),pt=e=>Xe(e,Dr,Fo),f=e=>Nr.test(e),rt=e=>Je(e,Gr),Yo=e=>Je(e,Jo),ur=e=>Je(e,Lr),Ho=e=>Je(e,$r),Ko=e=>Je(e,jr),mt=e=>Je(e,Dr,!0),Xe=(e,t,r)=>{const n=Tr.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Je=(e,t,r=!1)=>{const n=Nr.exec(e);return n?n[1]?t(n[1]):r:!1},Lr=e=>e==="position"||e==="percentage",jr=e=>e==="image"||e==="url",$r=e=>e==="length"||e==="size"||e==="bg-size",Gr=e=>e==="length",Xo=e=>e==="number",Jo=e=>e==="family-name",Dr=e=>e==="shadow",Qo=()=>{const e=Y("color"),t=Y("font"),r=Y("text"),n=Y("font-weight"),o=Y("tracking"),s=Y("leading"),i=Y("breakpoint"),a=Y("container"),l=Y("spacing"),d=Y("radius"),p=Y("shadow"),h=Y("inset-shadow"),A=Y("text-shadow"),I=Y("drop-shadow"),w=Y("blur"),u=Y("perspective"),O=Y("aspect"),S=Y("ease"),z=Y("animate"),V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],X=()=>[...D(),f,c],q=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],y=()=>[f,c,l],xe=()=>[Ze,"full","auto",...y()],lt=()=>[Pe,"none","subgrid",f,c],ct=()=>["auto",{span:["full",Pe,f,c]},Pe,f,c],De=()=>[Pe,"auto",f,c],ft=()=>["auto","min","max","fr",f,c],Ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ie=()=>["start","end","center","stretch","center-safe","end-safe"],me=()=>["auto",...y()],be=()=>[Ze,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],g=()=>[e,f,c],Ve=()=>[...D(),ur,fr,{position:[f,c]}],We=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Qe=()=>["auto","cover","contain",Ho,Uo,{size:[f,c]}],Te=()=>[zt,rt,Ge],J=()=>["","none","full",d,f,c],ie=()=>["",E,rt,Ge],m=()=>["solid","dashed","dotted","double"],C=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],b=()=>[E,zt,ur,fr],$=()=>["","none",w,f,c],v=()=>["none",E,f,c],k=()=>["none",E,f,c],_=()=>[E,f,c],Q=()=>[Ze,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Re],breakpoint:[Re],color:[Vo],container:[Re],"drop-shadow":[Re],ease:["in","out","in-out"],font:[qo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Re],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Re],shadow:[Re],spacing:["px",E],text:[Re],"text-shadow":[Re],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ze,c,f,O]}],container:["container"],columns:[{columns:[E,c,f,a]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:X()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:xe()}],"inset-x":[{"inset-x":xe()}],"inset-y":[{"inset-y":xe()}],start:[{start:xe()}],end:[{end:xe()}],top:[{top:xe()}],right:[{right:xe()}],bottom:[{bottom:xe()}],left:[{left:xe()}],visibility:["visible","invisible","collapse"],z:[{z:[Pe,"auto",f,c]}],basis:[{basis:[Ze,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,Ze,"auto","initial","none",c]}],grow:[{grow:["",E,f,c]}],shrink:[{shrink:["",E,f,c]}],order:[{order:[Pe,"first","last","none",f,c]}],"grid-cols":[{"grid-cols":lt()}],"col-start-end":[{col:ct()}],"col-start":[{"col-start":De()}],"col-end":[{"col-end":De()}],"grid-rows":[{"grid-rows":lt()}],"row-start-end":[{row:ct()}],"row-start":[{"row-start":De()}],"row-end":[{"row-end":De()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ft()}],"auto-rows":[{"auto-rows":ft()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[...Ae(),"normal"]}],"justify-items":[{"justify-items":[...Ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ie()]}],"align-content":[{content:["normal",...Ae()]}],"align-items":[{items:[...Ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ae()}],"place-items":[{"place-items":[...Ie(),"baseline"]}],"place-self":[{"place-self":["auto",...Ie()]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:me()}],mx:[{mx:me()}],my:[{my:me()}],ms:[{ms:me()}],me:[{me:me()}],mt:[{mt:me()}],mr:[{mr:me()}],mb:[{mb:me()}],ml:[{ml:me()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:be()}],w:[{w:[a,"screen",...be()]}],"min-w":[{"min-w":[a,"screen","none",...be()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...be()]}],h:[{h:["screen","lh",...be()]}],"min-h":[{"min-h":["screen","lh","none",...be()]}],"max-h":[{"max-h":["screen","lh",...be()]}],"font-size":[{text:["base",r,rt,Ge]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,f,Mt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zt,c]}],"font-family":[{font:[Yo,c,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,f,c]}],"line-clamp":[{"line-clamp":[E,"none",f,Mt]}],leading:[{leading:[s,...y()]}],"list-image":[{"list-image":["none",f,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",f,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:g()}],"text-color":[{text:g()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...m(),"wavy"]}],"text-decoration-thickness":[{decoration:[E,"from-font","auto",f,Ge]}],"text-decoration-color":[{decoration:g()}],"underline-offset":[{"underline-offset":[E,"auto",f,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f,c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",f,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ve()}],"bg-repeat":[{bg:We()}],"bg-size":[{bg:Qe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Pe,f,c],radial:["",f,c],conic:[Pe,f,c]},Ko,Zo]}],"bg-color":[{bg:g()}],"gradient-from-pos":[{from:Te()}],"gradient-via-pos":[{via:Te()}],"gradient-to-pos":[{to:Te()}],"gradient-from":[{from:g()}],"gradient-via":[{via:g()}],"gradient-to":[{to:g()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...m(),"hidden","none"]}],"divide-style":[{divide:[...m(),"hidden","none"]}],"border-color":[{border:g()}],"border-color-x":[{"border-x":g()}],"border-color-y":[{"border-y":g()}],"border-color-s":[{"border-s":g()}],"border-color-e":[{"border-e":g()}],"border-color-t":[{"border-t":g()}],"border-color-r":[{"border-r":g()}],"border-color-b":[{"border-b":g()}],"border-color-l":[{"border-l":g()}],"divide-color":[{divide:g()}],"outline-style":[{outline:[...m(),"none","hidden"]}],"outline-offset":[{"outline-offset":[E,f,c]}],"outline-w":[{outline:["",E,rt,Ge]}],"outline-color":[{outline:g()}],shadow:[{shadow:["","none",p,mt,pt]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",h,mt,pt]}],"inset-shadow-color":[{"inset-shadow":g()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:g()}],"ring-offset-w":[{"ring-offset":[E,Ge]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":g()}],"text-shadow":[{"text-shadow":["none",A,mt,pt]}],"text-shadow-color":[{"text-shadow":g()}],opacity:[{opacity:[E,f,c]}],"mix-blend":[{"mix-blend":[...C(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":C()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E]}],"mask-image-linear-from-pos":[{"mask-linear-from":b()}],"mask-image-linear-to-pos":[{"mask-linear-to":b()}],"mask-image-linear-from-color":[{"mask-linear-from":g()}],"mask-image-linear-to-color":[{"mask-linear-to":g()}],"mask-image-t-from-pos":[{"mask-t-from":b()}],"mask-image-t-to-pos":[{"mask-t-to":b()}],"mask-image-t-from-color":[{"mask-t-from":g()}],"mask-image-t-to-color":[{"mask-t-to":g()}],"mask-image-r-from-pos":[{"mask-r-from":b()}],"mask-image-r-to-pos":[{"mask-r-to":b()}],"mask-image-r-from-color":[{"mask-r-from":g()}],"mask-image-r-to-color":[{"mask-r-to":g()}],"mask-image-b-from-pos":[{"mask-b-from":b()}],"mask-image-b-to-pos":[{"mask-b-to":b()}],"mask-image-b-from-color":[{"mask-b-from":g()}],"mask-image-b-to-color":[{"mask-b-to":g()}],"mask-image-l-from-pos":[{"mask-l-from":b()}],"mask-image-l-to-pos":[{"mask-l-to":b()}],"mask-image-l-from-color":[{"mask-l-from":g()}],"mask-image-l-to-color":[{"mask-l-to":g()}],"mask-image-x-from-pos":[{"mask-x-from":b()}],"mask-image-x-to-pos":[{"mask-x-to":b()}],"mask-image-x-from-color":[{"mask-x-from":g()}],"mask-image-x-to-color":[{"mask-x-to":g()}],"mask-image-y-from-pos":[{"mask-y-from":b()}],"mask-image-y-to-pos":[{"mask-y-to":b()}],"mask-image-y-from-color":[{"mask-y-from":g()}],"mask-image-y-to-color":[{"mask-y-to":g()}],"mask-image-radial":[{"mask-radial":[f,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":b()}],"mask-image-radial-to-pos":[{"mask-radial-to":b()}],"mask-image-radial-from-color":[{"mask-radial-from":g()}],"mask-image-radial-to-color":[{"mask-radial-to":g()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[E]}],"mask-image-conic-from-pos":[{"mask-conic-from":b()}],"mask-image-conic-to-pos":[{"mask-conic-to":b()}],"mask-image-conic-from-color":[{"mask-conic-from":g()}],"mask-image-conic-to-color":[{"mask-conic-to":g()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ve()}],"mask-repeat":[{mask:We()}],"mask-size":[{mask:Qe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",f,c]}],filter:[{filter:["","none",f,c]}],blur:[{blur:$()}],brightness:[{brightness:[E,f,c]}],contrast:[{contrast:[E,f,c]}],"drop-shadow":[{"drop-shadow":["","none",I,mt,pt]}],"drop-shadow-color":[{"drop-shadow":g()}],grayscale:[{grayscale:["",E,f,c]}],"hue-rotate":[{"hue-rotate":[E,f,c]}],invert:[{invert:["",E,f,c]}],saturate:[{saturate:[E,f,c]}],sepia:[{sepia:["",E,f,c]}],"backdrop-filter":[{"backdrop-filter":["","none",f,c]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[E,f,c]}],"backdrop-contrast":[{"backdrop-contrast":[E,f,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,f,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,f,c]}],"backdrop-invert":[{"backdrop-invert":["",E,f,c]}],"backdrop-opacity":[{"backdrop-opacity":[E,f,c]}],"backdrop-saturate":[{"backdrop-saturate":[E,f,c]}],"backdrop-sepia":[{"backdrop-sepia":["",E,f,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",f,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",f,c]}],ease:[{ease:["linear","initial",S,f,c]}],delay:[{delay:[E,f,c]}],animate:[{animate:["none",z,f,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[u,f,c]}],"perspective-origin":[{"perspective-origin":X()}],rotate:[{rotate:v()}],"rotate-x":[{"rotate-x":v()}],"rotate-y":[{"rotate-y":v()}],"rotate-z":[{"rotate-z":v()}],scale:[{scale:k()}],"scale-x":[{"scale-x":k()}],"scale-y":[{"scale-y":k()}],"scale-z":[{"scale-z":k()}],"scale-3d":["scale-3d"],skew:[{skew:_()}],"skew-x":[{"skew-x":_()}],"skew-y":[{"skew-y":_()}],transform:[{transform:[f,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:X()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Q()}],"translate-x":[{"translate-x":Q()}],"translate-y":[{"translate-y":Q()}],"translate-z":[{"translate-z":Q()}],"translate-none":["translate-none"],accent:[{accent:g()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:g()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f,c]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f,c]}],fill:[{fill:["none",...g()]}],"stroke-w":[{stroke:[E,rt,Ge,Mt]}],stroke:[{stroke:["none",...g()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},es=No(Qo);exports.clsx=wo;exports.createCache=In;exports.createStore=Er;exports.equal=Jn;exports.filter=eo;exports.fromAsyncIterable=Ir;exports.fromValue=ho;exports.getRegisteredStyles=Mn;exports.index=Vn;exports.insertStyles=On;exports.lazy=uo;exports.makeSubject=bo;exports.map=to;exports.memoizeOne=Bn;exports.merge=no;exports.mergeMap=Cr;exports.onEnd=oo;exports.onPush=so;exports.onStart=io;exports.publish=yo;exports.registerStyles=kr;exports.serializeStyles=jn;exports.share=Rr;exports.subscribe=zr;exports.switchMap=ao;exports.take=lo;exports.takeUntil=co;exports.takeWhile=fo;exports.toPromise=xo;exports.twMerge=es;exports.uFuzzy=xt;exports.useInsertionEffectAlwaysWithSyncFallback=Dn;
|