import*as e from"react";import{PrimeReactContext as n}from"primereact/api";import{ComponentBase as t,useHandleStyle as a}from"primereact/componentbase";import{useMergeProps as r,useEventListener as o}from"primereact/hooks";import{classNames as l}from"primereact/utils";function i(e){if(Array.isArray(e))return e}function c(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,o,l,i=[],c=!0,s=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(a=o.call(t)).done)&&(i.push(a.value),i.length!==n);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=Array(n);t0&&u.max>0?u.min:0,u.min,u.max,p,h)},U=function(){return z(u.value,u.min,u.max,p,h)},W="M ".concat(50+Math.cos(p)*v," ").concat(50-Math.sin(p)*v," A ").concat(v," ").concat(v," 0 1 1 ").concat(50+Math.cos(h)*v," ").concat(50-Math.sin(h)*v),j="M ".concat(50+Math.cos(O())*v," ").concat(50-Math.sin(O())*v," A ").concat(v," ").concat(v," 0 ").concat(Math.abs(O()-U())O()?0:1," ").concat(50+Math.cos(U())*v," ").concat(50-Math.sin(U())*v),B=function(e,n){var t=Math.atan2(u.size/2-n,e-u.size/2),a=-Math.PI/2-Math.PI/6;L(t,a)},L=function(e,n){var t;if(e>h)t=z(e,p,h,u.min,u.max);else{if(!(eu.max?u.max:e