kdpa-components 1.30.2 → 1.30.4

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/index.js CHANGED
@@ -549,8 +549,8 @@ html body {
549
549
  * See the License for the specific language governing permissions and
550
550
  * limitations under the License.
551
551
  */(function(e,t){var n;function r(i,a){var s=[],c=0;function f(g){return s.push(g),a}function p(){return s[c++]}return{tokenize:function(g){return g.replace(i,f)},detokenize:function(g){return g.replace(new RegExp("("+a+")","g"),p)}}}function o(){var i="`TMP`",a="`NOFLIP_SINGLE`",s="`NOFLIP_CLASS`",c="`COMMENT`",f="[^\\u0020-\\u007e]",p="(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)",g="(?:[0-9]*\\.[0-9]+|[0-9]+)",y="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",x="direction\\s*:\\s*",w="[!#$%&*-~]",C=`['"]?\\s*`,k="(^|[^a-zA-Z])",P="[^\\}]*?",T="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",N="\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/",R="(?:"+p+"|\\\\[^\\r\\n\\f0-9a-f])",_="(?:[_a-z]|"+f+"|"+R+")",z="(?:[_a-z0-9-]|"+f+"|"+R+")",H="-?"+_+z+"*",Z=g+"(?:\\s*"+y+"|"+H+")?",U="((?:-?"+Z+")|(?:inherit|auto))",te="((?:margin|padding|border-width)\\s*:\\s*)",G="((?:-color|border-style)\\s*:\\s*)",ne="(#?"+z+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",ae="(?:"+w+"|"+f+"|"+R+")*?",ee="(?![a-zA-Z])",oe="(?!("+z+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+c+")*?{)",me="(?!"+ae+C+"\\))",ve="(?="+ae+C+"\\))",ce="(\\s*(?:!important\\s*)?[;}])",be=/`TMP`/g,he=new RegExp(N,"gi"),Me=new RegExp("("+T+oe+"[^;}]+;?)","gi"),$e=new RegExp("("+T+P+"})","gi"),Ue=new RegExp("("+x+")ltr","gi"),Ce=new RegExp("("+x+")rtl","gi"),pe=new RegExp(k+"(left)"+ee+me+oe,"gi"),De=new RegExp(k+"(right)"+ee+me+oe,"gi"),Te=new RegExp(k+"(left)"+ve,"gi"),Ne=new RegExp(k+"(right)"+ve,"gi"),ze=new RegExp(k+"(ltr)"+ve,"gi"),Le=new RegExp(k+"(rtl)"+ve,"gi"),_e=new RegExp(k+"([ns]?)e-resize","gi"),ke=new RegExp(k+"([ns]?)w-resize","gi"),Ve=new RegExp(te+U+"(\\s+)"+U+"(\\s+)"+U+"(\\s+)"+U+ce,"gi"),Ie=new RegExp(G+ne+"(\\s+)"+ne+"(\\s+)"+ne+"(\\s+)"+ne+ce,"gi"),qe=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+Z+")","gi"),Qe=new RegExp("(background-position-x\\s*:\\s*)(-?"+g+"%)","gi"),Pt=new RegExp("(border-radius\\s*:\\s*)"+U+"(?:(?:\\s+"+U+")(?:\\s+"+U+")?(?:\\s+"+U+")?)?(?:(?:(?:\\s*\\/\\s*)"+U+")(?:\\s+"+U+")?(?:\\s+"+U+")?(?:\\s+"+U+")?)?"+ce,"gi"),et=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+U,"gi"),Ye=new RegExp("(text-shadow\\s*:\\s*)"+U+"(\\s*)"+ne,"gi"),Ee=new RegExp("(text-shadow\\s*:\\s*)"+ne+"(\\s*)"+U,"gi"),Oe=new RegExp("(text-shadow\\s*:\\s*)"+U,"gi"),Ze=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+U+"(\\s*\\))","gi"),Mt=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+U+"((?:\\s*,\\s*"+U+"){0,2}\\s*\\))","gi");function Je(mt,Lt,St){var Tt,st;return St.slice(-1)==="%"&&(Tt=St.indexOf("."),Tt!==-1?(st=St.length-Tt-2,St=100-parseFloat(St),St=St.toFixed(st)+"%"):St=100-parseFloat(St)+"%"),Lt+St}function pt(mt){switch(mt.length){case 4:mt=[mt[1],mt[0],mt[3],mt[2]];break;case 3:mt=[mt[1],mt[0],mt[1],mt[2]];break;case 2:mt=[mt[1],mt[0]];break;case 1:mt=[mt[0]];break}return mt.join(" ")}function ut(mt,Lt){var St,Tt=[].slice.call(arguments),st=Tt.slice(2,6).filter(function(zt){return zt}),ft=Tt.slice(6,10).filter(function(zt){return zt}),$t=Tt[10]||"";return ft.length?St=pt(st)+" / "+pt(ft):St=pt(st),Lt+St+$t}function kt(mt){return parseFloat(mt)===0?mt:mt[0]==="-"?mt.slice(1):"-"+mt}function Ge(mt,Lt,St){return Lt+kt(St)}function Xe(mt,Lt,St,Tt,st){return Lt+St+kt(Tt)+st}function ot(mt,Lt,St,Tt,st){return Lt+St+Tt+kt(st)}return{transform:function(mt,Lt){var St=new r(Me,a),Tt=new r($e,s),st=new r(he,c);return mt=st.tokenize(Tt.tokenize(St.tokenize(mt.replace("`","%60")))),Lt.transformDirInUrl&&(mt=mt.replace(ze,"$1"+i).replace(Le,"$1ltr").replace(be,"rtl")),Lt.transformEdgeInUrl&&(mt=mt.replace(Te,"$1"+i).replace(Ne,"$1left").replace(be,"right")),mt=mt.replace(Ue,"$1"+i).replace(Ce,"$1ltr").replace(be,"rtl").replace(pe,"$1"+i).replace(De,"$1left").replace(be,"right").replace(_e,"$1$2"+i).replace(ke,"$1$2e-resize").replace(be,"w-resize").replace(Pt,ut).replace(et,Ge).replace(Ye,ot).replace(Ee,ot).replace(Oe,Ge).replace(Ze,Xe).replace(Mt,Xe).replace(Ve,"$1$2$3$8$5$6$7$4$9").replace(Ie,"$1$2$3$8$5$6$7$4$9").replace(qe,Je).replace(Qe,Je),mt=St.detokenize(Tt.detokenize(st.detokenize(mt))),mt}}}n=new o,e.exports?t.transform=function(i,a,s){var c;return typeof a=="object"?c=a:(c={},typeof a=="boolean"&&(c.transformDirInUrl=a),typeof s=="boolean"&&(c.transformEdgeInUrl=s)),n.transform(i,c)}:typeof window<"u"&&(window.cssjanus=n)})(v2,v2.exports);var NCe=v2.exports,RCe=uo(NCe);function Oz(e,t,n){switch(e.type){case vCe:case d2:case u2:return e.return=e.return||e.value;case Dg:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(o){o.type===u2&&(o.children=o.value)})}var r=Tz(Array.prototype.concat(e.children),Oz);return Ul(r)?e.return=e.value+"{"+r+"}":""}function Mz(e,t,n,r){if(e.type===bz||e.type===bCe||e.type===Dg&&(!e.parent||e.parent.type===gCe||e.parent.type===Dg)){var o=RCe.transform(Oz(e));e.children=o?ACe(o)[0].children:[],e.return=""}}Object.defineProperty(Mz,"name",{value:"stylisRTLPlugin"});function ICe(e){const t=to(()=>$S({key:"kdpa",stylisPlugins:[_Ce,Mz],container:e?.container}),[]);return W(yA,{value:t,children:e.children})}const LCe=It.forwardRef((e,t)=>W(yR,{direction:"up",ref:t,...e}));function $Ce({children:e,...t}){return W(Yf,{TransitionComponent:LCe,fullScreen:!0,...t,children:e})}function FCe(e){return mr({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(e)}function zCe(e){return mr({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(e)}function BCe({children:e,label:t,maxLength:n=23,expandable:r=!1,defaultOpen:o=!0,...i}){const a=t.length*4,[s,c]=Ln(o??!0),f=()=>{c(p=>!p)};return W(Rk,{sx:{...i.style,...i.sx,width:"100%"},children:xt(Rk,{xs:12,container:!0,sx:{border:"1px solid #ebe9f1 !important",position:"relative",marginLeft:"0.1rem",marginRight:"0.1rem",borderRadius:"0.357rem !important",borderTopWidth:"0px !important",padding:"1rem 0.1rem","::before":{content:'""',background:"#ebe9f1",position:"absolute",top:0,right:"2px",width:`calc(90% - ${a}px)`,height:"0.7px"},"::after":{content:'""',background:"#ebe9f1",position:"absolute",top:0,right:"2px",width:"20px",height:"0.7px"}},children:[W("span",{style:{position:"absolute",top:"-10px",right:"10px",fontSize:"80%",padding:"0 13px",width:`calc(100px + ${a}px)`},children:W(Qs,{title:t,children:W(ya,{children:t.length>23?xt(Vo,{children:[t.substring(0,n)," ..."]}):t})})}),r&&W("div",{style:{position:"absolute",top:"-8px",left:"20px",fontSize:"80%",padding:"0 16px",width:"20px",color:"var(--bs-primary,#7367AA)"},children:s?W(FCe,{size:18,onClick:f}):W(zCe,{size:18,onClick:f})}),W(J$,{in:r?s:!0,style:{width:"100%"},children:W(It.Fragment,{children:e})})]})})}function Pz(e){return mr({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"}},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"}},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"}}]})(e)}function Az(e){return mr({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}},{tag:"polyline",attr:{points:"17 8 12 3 7 8"}},{tag:"line",attr:{x1:"12",y1:"3",x2:"12",y2:"15"}}]})(e)}function VCe({onUpload:e,label:t,multiple:n=!1,...r}){const o=i=>{const a=i.target.files;a&&e(a)};return xt("label",{className:"kdpa-file-uploader",htmlFor:"kdpaFileUploader",children:[t&&W("span",{className:"kdpa-file-uploader__label",children:t}),W(mh,{component:"label",htmlFor:"kdpaFileUploader",sx:{padding:"7px 7px",minWidth:"36px"},children:W(Az,{size:20})}),W("input",{id:"kdpaFileUploader",type:"file",...r,hidden:!0,multiple:!0,onChange:o})]})}function jCe({style:e,sx:t,children:n,onSubmit:r,loading:o=!1,defaultValues:i,errorHandlingMode:a="onChange"},s){const c=h9({mode:a,defaultValues:i});return WP(s,()=>({formState:c})),W(KP,{...c,children:xt("form",{className:"kdpa-form-container",onSubmit:c.handleSubmit(r),style:{...t,...e},children:[n,o&&W("div",{className:"kdpa-form-container__loading",children:W(Js,{})})]})})}var HCe=rr(jCe);function WCe({name:e="",rules:t={},Component:n,...r}){const{control:o}=Yp(),{field:i,fieldState:{error:a}}=Up({control:o,name:e,rules:t,shouldUnregister:!0,defaultValue:r?.defaultValue});function s(...c){//! this will change in the future
552
- r.autoComplete?i.onChange(c[1]):i.onChange(...c),r?.onChange?.(...c)}return xt("div",{children:[W(n,{...i,...r,onChange:s}),a&&a.message&&W("span",{style:{color:"red"},children:a.message})]})}function YCe({children:e,handleClose:t,open:n,...r}){return W(Yf,{open:n,onClose:t,...r,children:e})}function UCe({name:e="",rules:t={},Component:n,...r}){const{control:o}=Yp(),{field:i,fieldState:{error:a}}=Up({control:o,name:e,rules:t,shouldUnregister:!0,defaultValue:r?.defaultValue});function s(...c){i.onChange(...c),r?.onChange?.(...c)}return xt("div",{children:[W(n,{...i,...r,onChange:s}),a&&a.message&&W(ya,{variant:"caption",sx:{color:"red"},children:a.message})]})}function Dz({style:e,sx:t,children:n,onSubmit:r,loading:o=!1,submitLoading:i=!1,formState:a}){return W(KP,{...a,children:xt("form",{className:"kdpa-form-container",onSubmit:a.handleSubmit(r),style:{...t,...e},children:[o?W(Js,{}):n,i&&W("div",{className:"kdpa-form-container__loading",children:W(Js,{})})]})})}function KCe({name:e="",rules:t={},options:n,multiple:r=!1,defaultValue:o,valueField:i,labelField:a,loading:s=!1,...c}){const{control:f,setValue:p,getValues:g}=Yp(),y=to(()=>{if(!o)return r?[]:null;if(r)if(i&&a){const k=o[i],P=o[a];return!P||!k?[]:k?.map((N,R)=>{const _={[a]:P[R],[i]:N};return i==="EnumTitle"&&(_.id=N),_})}else return[];else return o},[o]),{field:x,fieldState:{error:w}}=Up({control:f,name:e,rules:t,shouldUnregister:!0,defaultValue:y});function C(...k){x.onChange(k[1]),c?.onChange?.(k[1])}return xt("div",{children:[W(ag,{...x,...c,defaultValue:y,multiple:r,options:n,onChange:C,renderInput:k=>cn(qf,{...k,size:"small",key:c?.key,variant:c?.variant,label:c.label,InputProps:{...k.InputProps,endAdornment:xt(Vo,{children:[s?W(Js,{color:"inherit",size:20}):null,k.InputProps.endAdornment]})}})}),w&&w.message&&W(ya,{variant:"caption",sx:{color:"red"},children:w.message})]})}function XCe({name:e="",rules:t={},options:n,multiple:r=!1,defaultValueKey:o="",defaultValue:i="",...a}){const{control:s}=Yp(),c=to(()=>r&&Array.isArray(i)?n?.filter(y=>i.includes(y[o])):n?.find(y=>y[o]===i),[n,i]),{field:f,fieldState:{error:p}}=Up({control:s,name:e,rules:t,shouldUnregister:!0,defaultValue:c});function g(...y){f.onChange(y[1]),a?.onChange?.(y[1])}return xt("div",{children:[W(s7,{...f,...a,multiple:r,options:n,onChange:g}),p&&p.message&&W(ya,{variant:"caption",sx:{color:"red"},children:p.message})]})}const GCe=()=>{const e=({data:r,getOptionLabel:o=c=>c.label,getOptionIcon:i=c=>c.icon,getOptionValue:a=c=>c.value,getOptionParent:s=c=>c.parent})=>{const c=[];return r?.forEach(f=>{a(f)&&c.push({value:a(f),label:xt(Vo,{children:[i(f),o(f)]}),parent:s(f)})}),c},t=(r=[],o)=>{const i=[];for(const a of r){const s=a;if(!o&&!s?.parent||s?.parent===o){const c=t(r,s.value);c.length>0&&(s.children=c),i.push(s)}}return i},n=(r,o)=>{const i=[];if(!o)return[];const a=r.find(s=>s.value===o);return a&&(i.push(a.value),i.push(...n(r,a.parent))),i};return{renderTreeToSpecificFieldName:e,buildTree:t,findAllExpanded:n}};function qCe({data:e,defaultValue:t=[],onExpand:n,multiSelect:r=!0,getOptionValue:o,getOptionIcon:i,getOptionLabel:a,getOptionParent:s,noDataText:c="no data",...f}){const p=Kr(),{buildTree:g,renderTreeToSpecificFieldName:y,findAllExpanded:x}=GCe(),w=y({data:e,getOptionLabel:a,getOptionIcon:i,getOptionValue:o,getOptionParent:s}),C=g(w),[k,P]=Ln([]),[T,N]=Ln([C?.[0]?.value]);En(()=>{if(t)if(typeof t=="string")N(x(w,t)),P([t]);else{const z=[];t.forEach(H=>{z.push(...x(w,H))}),N(z),P([...t])}},[]),En(()=>{f?.onChange&&(r?f.onChange(k):f.onChange(k[0]))},[k]);function R(z,H){if(r)P(z);else if(H.isLeaf){const Z=!!k.find(U=>U===H.value);P(Z?[]:[H.value])}}function _(z,H){n&&n(z,H),N(z)}return W("div",{className:"KdTreeField",children:C?.length>0?W(o5,{...f,icons:{leaf:W("span",{}),parentOpen:W("span",{}),parentClose:W("span",{}),check:W(E4,{size:24,color:p?.palette?.primary?.main}),expandOpen:W(S4,{size:24}),uncheck:W(k4,{size:24}),expandClose:W(C4,{size:24}),halfCheck:W(T4,{color:p?.palette?.primary?.main,size:24})},nodes:C,onCheck:R,checked:k,expanded:T,onExpand:_,showNodeIcon:!0}):W("div",{style:{width:"100%",textAlign:"center"},children:c})})}function ZCe({name:e="",rules:t={},options:n,getOptionValue:r=s=>s.value,defaultValue:o,split:i,...a}){const{control:s,setValue:c}=Yp(),f=to(()=>o||null,[o]);En(()=>{c(e,f)},[f]);const{field:p,fieldState:{error:g}}=Up({control:s,name:e,rules:t,shouldUnregister:!0,defaultValue:f});function y(...x){i&&i?.length>0?(p.onChange(x[1]?.join(i)),a?.onChange?.(x[1]?.join(i))):(p.onChange(x[1]),a?.onChange?.(x[1]))}return xt("div",{children:[W(ag,{...p,...a,value:i&&i?.length>0?p?.value?.split(i):p?.value,multiple:!0,freeSolo:!0,options:n?.map(x=>r(x))??[],onChange:y}),g&&g.message&&W(ya,{variant:"caption",sx:{color:"red"},children:g.message})]})}var _z={exports:{}};/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */(function(e,t){(function(n,r){e.exports=r()})(Ho,function(){const{entries:n,setPrototypeOf:r,isFrozen:o,getPrototypeOf:i,getOwnPropertyDescriptor:a}=Object;let{freeze:s,seal:c,create:f}=Object,{apply:p,construct:g}=typeof Reflect<"u"&&Reflect;s||(s=function(Ee){return Ee}),c||(c=function(Ee){return Ee}),p||(p=function(Ee,Oe,Ze){return Ee.apply(Oe,Ze)}),g||(g=function(Ee,Oe){return new Ee(...Oe)});const y=Z(Array.prototype.forEach),x=Z(Array.prototype.pop),w=Z(Array.prototype.push),C=Z(String.prototype.toLowerCase),k=Z(String.prototype.toString),P=Z(String.prototype.match),T=Z(String.prototype.replace),N=Z(String.prototype.indexOf),R=Z(String.prototype.trim),_=Z(Object.prototype.hasOwnProperty),z=Z(RegExp.prototype.test),H=U(TypeError);function Z(Ye){return function(Ee){for(var Oe=arguments.length,Ze=new Array(Oe>1?Oe-1:0),Mt=1;Mt<Oe;Mt++)Ze[Mt-1]=arguments[Mt];return p(Ye,Ee,Ze)}}function U(Ye){return function(){for(var Ee=arguments.length,Oe=new Array(Ee),Ze=0;Ze<Ee;Ze++)Oe[Ze]=arguments[Ze];return g(Ye,Oe)}}function te(Ye,Ee){let Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C;r&&r(Ye,null);let Ze=Ee.length;for(;Ze--;){let Mt=Ee[Ze];if(typeof Mt=="string"){const Je=Oe(Mt);Je!==Mt&&(o(Ee)||(Ee[Ze]=Je),Mt=Je)}Ye[Mt]=!0}return Ye}function G(Ye){for(let Ee=0;Ee<Ye.length;Ee++)_(Ye,Ee)||(Ye[Ee]=null);return Ye}function ne(Ye){const Ee=f(null);for(const[Oe,Ze]of n(Ye))_(Ye,Oe)&&(Array.isArray(Ze)?Ee[Oe]=G(Ze):Ze&&typeof Ze=="object"&&Ze.constructor===Object?Ee[Oe]=ne(Ze):Ee[Oe]=Ze);return Ee}function ae(Ye,Ee){for(;Ye!==null;){const Ze=a(Ye,Ee);if(Ze){if(Ze.get)return Z(Ze.get);if(typeof Ze.value=="function")return Z(Ze.value)}Ye=i(Ye)}function Oe(){return null}return Oe}const ee=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),oe=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),me=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ve=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ce=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),be=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),he=s(["#text"]),Me=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),$e=s(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ue=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ce=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pe=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),De=c(/<%[\w\W]*|[\w\W]*%>/gm),Te=c(/\${[\w\W]*}/gm),Ne=c(/^data-[\-\w.\u00B7-\uFFFF]/),ze=c(/^aria-[\-\w]+$/),Le=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_e=c(/^(?:\w+script|data):/i),ke=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ve=c(/^html$/i);var Ie=Object.freeze({__proto__:null,MUSTACHE_EXPR:pe,ERB_EXPR:De,TMPLIT_EXPR:Te,DATA_ATTR:Ne,ARIA_ATTR:ze,IS_ALLOWED_URI:Le,IS_SCRIPT_OR_DATA:_e,ATTR_WHITESPACE:ke,DOCTYPE_NAME:Ve});const qe=function(){return typeof window>"u"?null:window},Qe=function(Ee,Oe){if(typeof Ee!="object"||typeof Ee.createPolicy!="function")return null;let Ze=null;const Mt="data-tt-policy-suffix";Oe&&Oe.hasAttribute(Mt)&&(Ze=Oe.getAttribute(Mt));const Je="dompurify"+(Ze?"#"+Ze:"");try{return Ee.createPolicy(Je,{createHTML(pt){return pt},createScriptURL(pt){return pt}})}catch{return console.warn("TrustedTypes policy "+Je+" could not be created."),null}};function Pt(){let Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qe();const Ee=On=>Pt(On);if(Ee.version="3.0.9",Ee.removed=[],!Ye||!Ye.document||Ye.document.nodeType!==9)return Ee.isSupported=!1,Ee;let{document:Oe}=Ye;const Ze=Oe,Mt=Ze.currentScript,{DocumentFragment:Je,HTMLTemplateElement:pt,Node:ut,Element:kt,NodeFilter:Ge,NamedNodeMap:Xe=Ye.NamedNodeMap||Ye.MozNamedAttrMap,HTMLFormElement:ot,DOMParser:mt,trustedTypes:Lt}=Ye,St=kt.prototype,Tt=ae(St,"cloneNode"),st=ae(St,"nextSibling"),ft=ae(St,"childNodes"),$t=ae(St,"parentNode");if(typeof pt=="function"){const On=Oe.createElement("template");On.content&&On.content.ownerDocument&&(Oe=On.content.ownerDocument)}let zt,an="";const{implementation:sn,createNodeIterator:Sn,createDocumentFragment:An,getElementsByTagName:Dn}=Oe,{importNode:He}=Ze;let we={};Ee.isSupported=typeof n=="function"&&typeof $t=="function"&&sn&&sn.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ct,ERB_EXPR:je,TMPLIT_EXPR:Et,DATA_ATTR:Vt,ARIA_ATTR:At,IS_SCRIPT_OR_DATA:Be,ATTR_WHITESPACE:Ae}=Ie;let{IS_ALLOWED_URI:Ke}=Ie,at=null;const Ct=te({},[...ee,...oe,...me,...ce,...he]);let wt=null;const gn=te({},[...Me,...$e,...Ue,...Ce]);let tn=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ln=null,qt=null,dt=!0,Pe=!0,rt=!1,yt=!0,Ft=!1,_t=!1,ie=!1,l=!1,u=!1,h=!1,m=!1,v=!0,b=!1;const S="user-content-";let E=!0,D=!1,I={},L=null;const $=te({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Y=null;const X=te({},["audio","video","img","source","image","track"]);let J=null;const re=te({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ue="http://www.w3.org/1998/Math/MathML",ye="http://www.w3.org/2000/svg",M="http://www.w3.org/1999/xhtml";let F=M,q=!1,le=null;const ge=te({},[ue,ye,M],k);let xe=null;const Re=["application/xhtml+xml","text/html"],Fe="text/html";let it=null,vt=null;const ht=Oe.createElement("form"),Ht=function(lt){return lt instanceof RegExp||lt instanceof Function},Zt=function(){let lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(vt&&vt===lt)){if((!lt||typeof lt!="object")&&(lt={}),lt=ne(lt),xe=Re.indexOf(lt.PARSER_MEDIA_TYPE)===-1?Fe:lt.PARSER_MEDIA_TYPE,it=xe==="application/xhtml+xml"?k:C,at=_(lt,"ALLOWED_TAGS")?te({},lt.ALLOWED_TAGS,it):Ct,wt=_(lt,"ALLOWED_ATTR")?te({},lt.ALLOWED_ATTR,it):gn,le=_(lt,"ALLOWED_NAMESPACES")?te({},lt.ALLOWED_NAMESPACES,k):ge,J=_(lt,"ADD_URI_SAFE_ATTR")?te(ne(re),lt.ADD_URI_SAFE_ATTR,it):re,Y=_(lt,"ADD_DATA_URI_TAGS")?te(ne(X),lt.ADD_DATA_URI_TAGS,it):X,L=_(lt,"FORBID_CONTENTS")?te({},lt.FORBID_CONTENTS,it):$,ln=_(lt,"FORBID_TAGS")?te({},lt.FORBID_TAGS,it):{},qt=_(lt,"FORBID_ATTR")?te({},lt.FORBID_ATTR,it):{},I=_(lt,"USE_PROFILES")?lt.USE_PROFILES:!1,dt=lt.ALLOW_ARIA_ATTR!==!1,Pe=lt.ALLOW_DATA_ATTR!==!1,rt=lt.ALLOW_UNKNOWN_PROTOCOLS||!1,yt=lt.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ft=lt.SAFE_FOR_TEMPLATES||!1,_t=lt.WHOLE_DOCUMENT||!1,u=lt.RETURN_DOM||!1,h=lt.RETURN_DOM_FRAGMENT||!1,m=lt.RETURN_TRUSTED_TYPE||!1,l=lt.FORCE_BODY||!1,v=lt.SANITIZE_DOM!==!1,b=lt.SANITIZE_NAMED_PROPS||!1,E=lt.KEEP_CONTENT!==!1,D=lt.IN_PLACE||!1,Ke=lt.ALLOWED_URI_REGEXP||Le,F=lt.NAMESPACE||M,tn=lt.CUSTOM_ELEMENT_HANDLING||{},lt.CUSTOM_ELEMENT_HANDLING&&Ht(lt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(tn.tagNameCheck=lt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),lt.CUSTOM_ELEMENT_HANDLING&&Ht(lt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(tn.attributeNameCheck=lt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),lt.CUSTOM_ELEMENT_HANDLING&&typeof lt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(tn.allowCustomizedBuiltInElements=lt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ft&&(Pe=!1),h&&(u=!0),I&&(at=te({},he),wt=[],I.html===!0&&(te(at,ee),te(wt,Me)),I.svg===!0&&(te(at,oe),te(wt,$e),te(wt,Ce)),I.svgFilters===!0&&(te(at,me),te(wt,$e),te(wt,Ce)),I.mathMl===!0&&(te(at,ce),te(wt,Ue),te(wt,Ce))),lt.ADD_TAGS&&(at===Ct&&(at=ne(at)),te(at,lt.ADD_TAGS,it)),lt.ADD_ATTR&&(wt===gn&&(wt=ne(wt)),te(wt,lt.ADD_ATTR,it)),lt.ADD_URI_SAFE_ATTR&&te(J,lt.ADD_URI_SAFE_ATTR,it),lt.FORBID_CONTENTS&&(L===$&&(L=ne(L)),te(L,lt.FORBID_CONTENTS,it)),E&&(at["#text"]=!0),_t&&te(at,["html","head","body"]),at.table&&(te(at,["tbody"]),delete ln.tbody),lt.TRUSTED_TYPES_POLICY){if(typeof lt.TRUSTED_TYPES_POLICY.createHTML!="function")throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof lt.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');zt=lt.TRUSTED_TYPES_POLICY,an=zt.createHTML("")}else zt===void 0&&(zt=Qe(Lt,Mt)),zt!==null&&typeof an=="string"&&(an=zt.createHTML(""));s&&s(lt),vt=lt}},nn=te({},["mi","mo","mn","ms","mtext"]),Tn=te({},["foreignobject","desc","title","annotation-xml"]),$n=te({},["title","style","font","a","script"]),Nn=te({},[...oe,...me,...ve]),Wn=te({},[...ce,...be]),Gn=function(lt){let Kt=$t(lt);(!Kt||!Kt.tagName)&&(Kt={namespaceURI:F,tagName:"template"});const Pn=C(lt.tagName),Or=C(Kt.tagName);return le[lt.namespaceURI]?lt.namespaceURI===ye?Kt.namespaceURI===M?Pn==="svg":Kt.namespaceURI===ue?Pn==="svg"&&(Or==="annotation-xml"||nn[Or]):!!Nn[Pn]:lt.namespaceURI===ue?Kt.namespaceURI===M?Pn==="math":Kt.namespaceURI===ye?Pn==="math"&&Tn[Or]:!!Wn[Pn]:lt.namespaceURI===M?Kt.namespaceURI===ye&&!Tn[Or]||Kt.namespaceURI===ue&&!nn[Or]?!1:!Wn[Pn]&&($n[Pn]||!Nn[Pn]):!!(xe==="application/xhtml+xml"&&le[lt.namespaceURI]):!1},hr=function(lt){w(Ee.removed,{element:lt});try{lt.parentNode.removeChild(lt)}catch{lt.remove()}},zr=function(lt,Kt){try{w(Ee.removed,{attribute:Kt.getAttributeNode(lt),from:Kt})}catch{w(Ee.removed,{attribute:null,from:Kt})}if(Kt.removeAttribute(lt),lt==="is"&&!wt[lt])if(u||h)try{hr(Kt)}catch{}else try{Kt.setAttribute(lt,"")}catch{}},So=function(lt){let Kt=null,Pn=null;if(l)lt="<remove></remove>"+lt;else{const mo=P(lt,/^[\r\n\t ]+/);Pn=mo&&mo[0]}xe==="application/xhtml+xml"&&F===M&&(lt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+lt+"</body></html>");const Or=zt?zt.createHTML(lt):lt;if(F===M)try{Kt=new mt().parseFromString(Or,xe)}catch{}if(!Kt||!Kt.documentElement){Kt=sn.createDocument(F,"template",null);try{Kt.documentElement.innerHTML=q?an:Or}catch{}}const eo=Kt.body||Kt.documentElement;return lt&&Pn&&eo.insertBefore(Oe.createTextNode(Pn),eo.childNodes[0]||null),F===M?Dn.call(Kt,_t?"html":"body")[0]:_t?Kt.documentElement:eo},zo=function(lt){return Sn.call(lt.ownerDocument||lt,lt,Ge.SHOW_ELEMENT|Ge.SHOW_COMMENT|Ge.SHOW_TEXT,null)},Hr=function(lt){return lt instanceof ot&&(typeof lt.nodeName!="string"||typeof lt.textContent!="string"||typeof lt.removeChild!="function"||!(lt.attributes instanceof Xe)||typeof lt.removeAttribute!="function"||typeof lt.setAttribute!="function"||typeof lt.namespaceURI!="string"||typeof lt.insertBefore!="function"||typeof lt.hasChildNodes!="function")},Yr=function(lt){return typeof ut=="function"&&lt instanceof ut},fn=function(lt,Kt,Pn){we[lt]&&y(we[lt],Or=>{Or.call(Ee,Kt,Pn,vt)})},Fn=function(lt){let Kt=null;if(fn("beforeSanitizeElements",lt,null),Hr(lt))return hr(lt),!0;const Pn=it(lt.nodeName);if(fn("uponSanitizeElement",lt,{tagName:Pn,allowedTags:at}),lt.hasChildNodes()&&!Yr(lt.firstElementChild)&&z(/<[/\w]/g,lt.innerHTML)&&z(/<[/\w]/g,lt.textContent))return hr(lt),!0;if(!at[Pn]||ln[Pn]){if(!ln[Pn]&&Gr(Pn)&&(tn.tagNameCheck instanceof RegExp&&z(tn.tagNameCheck,Pn)||tn.tagNameCheck instanceof Function&&tn.tagNameCheck(Pn)))return!1;if(E&&!L[Pn]){const Or=$t(lt)||lt.parentNode,eo=ft(lt)||lt.childNodes;if(eo&&Or){const mo=eo.length;for(let Bo=mo-1;Bo>=0;--Bo)Or.insertBefore(Tt(eo[Bo],!0),st(lt))}}return hr(lt),!0}return lt instanceof kt&&!Gn(lt)||(Pn==="noscript"||Pn==="noembed"||Pn==="noframes")&&z(/<\/no(script|embed|frames)/i,lt.innerHTML)?(hr(lt),!0):(Ft&&lt.nodeType===3&&(Kt=lt.textContent,y([ct,je,Et],Or=>{Kt=T(Kt,Or," ")}),lt.textContent!==Kt&&(w(Ee.removed,{element:lt.cloneNode()}),lt.textContent=Kt)),fn("afterSanitizeElements",lt,null),!1)},Br=function(lt,Kt,Pn){if(v&&(Kt==="id"||Kt==="name")&&(Pn in Oe||Pn in ht))return!1;if(!(Pe&&!qt[Kt]&&z(Vt,Kt))){if(!(dt&&z(At,Kt))){if(!wt[Kt]||qt[Kt]){if(!(Gr(lt)&&(tn.tagNameCheck instanceof RegExp&&z(tn.tagNameCheck,lt)||tn.tagNameCheck instanceof Function&&tn.tagNameCheck(lt))&&(tn.attributeNameCheck instanceof RegExp&&z(tn.attributeNameCheck,Kt)||tn.attributeNameCheck instanceof Function&&tn.attributeNameCheck(Kt))||Kt==="is"&&tn.allowCustomizedBuiltInElements&&(tn.tagNameCheck instanceof RegExp&&z(tn.tagNameCheck,Pn)||tn.tagNameCheck instanceof Function&&tn.tagNameCheck(Pn))))return!1}else if(!J[Kt]){if(!z(Ke,T(Pn,Ae,""))){if(!((Kt==="src"||Kt==="xlink:href"||Kt==="href")&&lt!=="script"&&N(Pn,"data:")===0&&Y[lt])){if(!(rt&&!z(Be,T(Pn,Ae,"")))){if(Pn)return!1}}}}}}return!0},Gr=function(lt){return lt!=="annotation-xml"&&lt.indexOf("-")>0},Vr=function(lt){fn("beforeSanitizeAttributes",lt,null);const{attributes:Kt}=lt;if(!Kt)return;const Pn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:wt};let Or=Kt.length;for(;Or--;){const eo=Kt[Or],{name:mo,namespaceURI:Bo,value:aa}=eo,rs=it(mo);let Go=mo==="value"?aa:R(aa);if(Pn.attrName=rs,Pn.attrValue=Go,Pn.keepAttr=!0,Pn.forceKeepAttr=void 0,fn("uponSanitizeAttribute",lt,Pn),Go=Pn.attrValue,Pn.forceKeepAttr||(zr(mo,lt),!Pn.keepAttr))continue;if(!yt&&z(/\/>/i,Go)){zr(mo,lt);continue}Ft&&y([ct,je,Et],Qd=>{Go=T(Go,Qd," ")});const Jd=it(lt.nodeName);if(Br(Jd,rs,Go)){if(b&&(rs==="id"||rs==="name")&&(zr(mo,lt),Go=S+Go),zt&&typeof Lt=="object"&&typeof Lt.getAttributeType=="function"&&!Bo)switch(Lt.getAttributeType(Jd,rs)){case"TrustedHTML":{Go=zt.createHTML(Go);break}case"TrustedScriptURL":{Go=zt.createScriptURL(Go);break}}try{Bo?lt.setAttributeNS(Bo,mo,Go):lt.setAttribute(mo,Go),x(Ee.removed)}catch{}}}fn("afterSanitizeAttributes",lt,null)},Rs=function On(lt){let Kt=null;const Pn=zo(lt);for(fn("beforeSanitizeShadowDOM",lt,null);Kt=Pn.nextNode();)fn("uponSanitizeShadowNode",Kt,null),!Fn(Kt)&&(Kt.content instanceof Je&&On(Kt.content),Vr(Kt));fn("afterSanitizeShadowDOM",lt,null)};return Ee.sanitize=function(On){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Kt=null,Pn=null,Or=null,eo=null;if(q=!On,q&&(On="<!-->"),typeof On!="string"&&!Yr(On))if(typeof On.toString=="function"){if(On=On.toString(),typeof On!="string")throw H("dirty is not a string, aborting")}else throw H("toString is not a function");if(!Ee.isSupported)return On;if(ie||Zt(lt),Ee.removed=[],typeof On=="string"&&(D=!1),D){if(On.nodeName){const aa=it(On.nodeName);if(!at[aa]||ln[aa])throw H("root node is forbidden and cannot be sanitized in-place")}}else if(On instanceof ut)Kt=So("<!---->"),Pn=Kt.ownerDocument.importNode(On,!0),Pn.nodeType===1&&Pn.nodeName==="BODY"||Pn.nodeName==="HTML"?Kt=Pn:Kt.appendChild(Pn);else{if(!u&&!Ft&&!_t&&On.indexOf("<")===-1)return zt&&m?zt.createHTML(On):On;if(Kt=So(On),!Kt)return u?null:m?an:""}Kt&&l&&hr(Kt.firstChild);const mo=zo(D?On:Kt);for(;Or=mo.nextNode();)Fn(Or)||(Or.content instanceof Je&&Rs(Or.content),Vr(Or));if(D)return On;if(u){if(h)for(eo=An.call(Kt.ownerDocument);Kt.firstChild;)eo.appendChild(Kt.firstChild);else eo=Kt;return(wt.shadowroot||wt.shadowrootmode)&&(eo=He.call(Ze,eo,!0)),eo}let Bo=_t?Kt.outerHTML:Kt.innerHTML;return _t&&at["!doctype"]&&Kt.ownerDocument&&Kt.ownerDocument.doctype&&Kt.ownerDocument.doctype.name&&z(Ve,Kt.ownerDocument.doctype.name)&&(Bo="<!DOCTYPE "+Kt.ownerDocument.doctype.name+`>
553
- `+Bo),Ft&&y([ct,je,Et],aa=>{Bo=T(Bo,aa," ")}),zt&&m?zt.createHTML(Bo):Bo},Ee.setConfig=function(){let On=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zt(On),ie=!0},Ee.clearConfig=function(){vt=null,ie=!1},Ee.isValidAttribute=function(On,lt,Kt){vt||Zt({});const Pn=it(On),Or=it(lt);return Br(Pn,Or,Kt)},Ee.addHook=function(On,lt){typeof lt=="function"&&(we[On]=we[On]||[],w(we[On],lt))},Ee.removeHook=function(On){if(we[On])return x(we[On])},Ee.removeHooks=function(On){we[On]&&(we[On]=[])},Ee.removeAllHooks=function(){we={}},Ee}var et=Pt();return et})})(_z);var JCe=_z.exports,QCe=uo(JCe);const eke=(e,t)=>{if(!e)return e;switch(t.type){case"string":return tke(e,t);case"number":return rke(e,t);case"date":return oke(e,t);case"boolean":return ike(e);case"html":return ake(e,t);default:return NaN}},tke=(e,t)=>t.maxLength&&typeof t.maxLength!="number"?e:nke(String(e),t.maxLength),nke=(e,t)=>t&&e.length>t?W(Qs,{title:e,children:W("span",{children:e.substring(0,t)+" ..."})}):W(Vo,{children:e}),rke=(e,t)=>{switch(t.typeNumber){case"int":return parseInt(String(e));case"float":return parseFloat(String(e));case"cost":{if(!parseFloat(String(e)))return NaN;const n=String(e),[r,o]=n.split("."),i=r.replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?`${i}.${o}`:i}default:return parseFloat(e)}},oke=(e,t)=>{if(typeof e!="string")return NaN;const n=new Date(e);if(isNaN(n.getTime()))return NaN;const r=localStorage.getItem("i18nextLng")??"fa",o=t.loc||r,i={fa:"YYYY/MM/DD",en:"YYYY-MM-DD",ar:"YYYY/MM/DD"},a=t.format||(i[o]??"YYYY/MM/DD");return s$(n).locale(o).format(a)},ike=e=>e?"true":"false",ake=(e,t)=>{if(typeof e!="string")return NaN;const n=QCe.sanitize(e,{USE_PROFILES:{html:!0}});return W("div",{dangerouslySetInnerHTML:{__html:t.ignoreTags?n:e}})},ske=({type:e="string",...t})=>{const n={type:e,maxLength:t.maxLength,typeNumber:t.typeNumber,format:t.format??"YYYY-MM-DD",loc:t.loc??"fa",ignoreTags:t.ignoreTags??!0};return W(ya,{...t,children:eke(t.children,n)})};function lke({item:e,uploadHandler:t,onDelete:n}){const r=t?.streamPath,o=t?.thumbnailstreamPath,i=t?.tempPath,a=t?.thumbnailTempPath,c=t?.files?.find(g=>g.session===e),f=c?`${a}/${e}`:`${o}/${e}`,p=c?`${i}/${e}`:`${r}/${e}`;return xt("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[xt("div",{className:"parent",style:{position:"relative",borderRadius:"8px"},children:[W(vx,{small:f,large:p,className:"modal-image rounded"}),W("div",{style:{position:"absolute",top:"100"},className:"child",children:W(Pz,{style:{color:"white",cursor:"pointer"},size:15,onClick:()=>{n(e)}})})]}),c?.fileName&&W("span",{style:{fontSize:"12px"},children:c?.fileName?.split("\\")?.slice(-1)?.[0]})]})}function cke(e,t){if(t){let n=[];return e.image&&(e.image==="ALL"?n=n.concat(t.image):n=n.concat(e?.image?.filter(r=>t?.image?.includes(r)))),e.video&&(e.video==="ALL"?n=n.concat(t.video):n=n.concat(e?.video?.filter(r=>t?.video?.includes(r)))),e.text&&(e.text==="ALL"?n=n.concat(t.text):n=n.concat(e?.text?.filter(r=>t?.text?.includes(r)))),e.compress&&(e.compress==="ALL"?n=n.concat(t.compress):n=n.concat(e?.compress?.filter(r=>t?.compress?.includes(r)))),n.map(r=>`.${r}`).join(",")}else return"*"}function uke({label:e,defaultValue:t,placeholder:n,multiple:r=!1,accept:o,uploadHandler:i,inputStyle:a,style:s,...c}){const f=i?.session,p=i?.clearSession,g=i?.handleFileChange,y=i?.fileExtension,[x,w]=Ln([]);En(()=>{w(t?()=>typeof t=="string"?[t]:[...t]:[])},[]),En(()=>{f&&(w(r?k=>[...k,f]:[f]),p&&p())},[f]),En(()=>{c.onChange&&(r?c.onChange(x):c.onChange(x[0]))},[x]);const C=k=>{w(P=>P.filter(T=>T!==k))};return xt("div",{className:"kd-file-uploader",style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"10px",alignItems:"center",width:"100%",...s},children:[W(ya,{children:e}),W("label",{htmlFor:`icon-button-file-${c.name}`,children:xt(mh,{component:"span",style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"5px",...a},children:[W(Az,{}),n]})}),W("input",{style:{display:"none"},accept:y&&o?cke(o,y):"*",id:`icon-button-file-${c.name}`,type:"file",multiple:r,onChange:g}),W("input",{type:"hidden",...c,value:x}),x&&x.map(k=>W(lke,{item:k,onDelete:C,uploadHandler:i}))]})}function dke({item:e,onDelete:t,uploadHandler:n}){const r=n?.streamPath,o=n?.thumbnailstreamPath,i=n?.tempPath,a=n?.thumbnailTempPath,c=n?.files?.find(g=>g.session===e),f=c?`${a}/${e}`:`${o}/${e}`,p=c?`${i}/${e}`:`${r}/${e}`;return xt("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[xt("div",{className:"parent",style:{position:"relative",borderRadius:"8px"},children:[W(vx,{small:f,large:p,className:"modal-image rounded"}),W("div",{style:{position:"absolute",top:"100"},className:"child",children:W(Pz,{style:{color:"white",cursor:"pointer"},size:20,onClick:()=>{t(e)}})})]}),c?.fileName&&W("span",{style:{fontSize:"12px"},children:c?.fileName?.split("\\")?.slice(-1)?.[0]})]})}function fke(e,t){if(t){const n={};return e.image&&(e.image==="ALL"?n["image/*"]=t.image.map(r=>`.${r}`):e.image.forEach(r=>{t?.image?.includes(r)&&(n["image/"+r]=["."+r])})),e.video&&(e.video==="ALL"?n["video/*"]=t.video.map(r=>`.${r}`):e.video.forEach(r=>{t?.video?.includes(r)&&(n["video/"+r]=["."+r])})),e.text&&(e.text==="ALL"?n["text/*"]=t.text.map(r=>`.${r}`):e.text.forEach(r=>{t?.text?.includes(r)&&(n["text/"+r]=["."+r])})),e.compress&&(e.compress==="ALL"?n["text/*"]=[...n["text/*"]??[],...t.compress.map(r=>`.${r}`)??[]]:e.compress.forEach(r=>{t?.compress?.includes(r)&&(n["text/"+r]=["."+r])})),n}else return"*"}const hke=({label:e="\u0641\u0627\u06CC\u0644(\u0647\u0627) \u0631\u0627 \u062F\u0631 \u0627\u06CC\u0646 \u062C\u0639\u0628\u0647 \u0631\u0647\u0627 \u06A9\u0646\u06CC\u062F\u060C \u06CC\u0627 \u0631\u0648\u06CC \u062C\u0639\u0628\u0647 \u06A9\u0644\u06CC\u06A9 \u06A9\u0646\u06CC\u062F",defaultValue:t,multiple:n=!1,accept:r={},uploadHandler:o,...i})=>{const a=o?.session,s=o?.clearSession,c=o?.handleFileChange,f=o?.fileExtension,[p,g]=Ln([]);En(()=>{g(t?()=>typeof t=="string"?[t]:[...t]:[])},[t]),En(()=>{a&&(g(n?R=>[...R,a]:[a]),s&&s())},[a]),En(()=>{i.onChange&&(n?i.onChange(p):i.onChange(p[0]))},[p]);const y=Zn(R=>{c({target:{files:R}})},[]),x=R=>{g(_=>_.filter(z=>z!==R))},{getRootProps:w,getInputProps:C,isDragAccept:k,isDragReject:P,open:T,inputRef:N}=eT({onDropAccepted:y,accept:fke(r,f??null),maxFiles:9999,noClick:!0,multiple:n});return En(()=>{if(!N.current)return;const R=async _=>{const z=_.clipboardData?.files;z&&z.length>0&&N.current&&(N.current.files=z,N.current.dispatchEvent(new Event("change",{bubbles:!0})))};return document.addEventListener("paste",R),()=>{document.removeEventListener("paste",R)}},[N]),W(ma,{className:"kd-advance-file-uploader",children:xt(ma,{component:"section",sx:{mb:1,border:2,borderStyle:"dashed",borderRadius:3,borderColor:R=>R.palette.primary.main,transition:"all 0.3s ease-in-ease-out",...k&&{borderColor:R=>R.palette.success.main},...k&&{bgcolor:R=>R.palette.success.light},...P&&{borderColor:R=>R.palette.warning.main},...P&&{bgcolor:R=>R.palette.warning.light}},...w(),children:[W("input",{...C()}),xt(ma,{sx:{p:2,display:"flex",flexDirection:"column",justifyContent:"center"},children:[W(ya,{sx:{display:"flex",justifyContent:"center"},children:e}),W(ma,{sx:{display:"flex",justifyContent:"center"},children:W(Ba,{sx:{color:R=>R.palette.primary.main,...k&&{color:R=>R.palette.success.main},...P&&{color:R=>R.palette.warning.main}},onClick:T,children:W(O4,{size:45})})}),W(YE,{in:p?.length!==0,children:W("div",{style:{display:"flex",flexDirection:"row",gap:"10px",flexWrap:"wrap"},children:p&&p.map(R=>W(dke,{item:R,uploadHandler:o,onDelete:x}))})})]})]})})};function pke(e,t,n,r){const o=Array.from(new Set(e.map(s=>s[t])));return o.length===1&&o[0]===void 0?{series:[],uniqueCategoryArray:[]}:{series:Array.from(new Set(e.map(s=>s[n]))).map(s=>({name:s,data:o.map(c=>{const f=e.find(p=>p[n]===s&&p[t]===c);return f&&!Number.isNaN(parseInt(f[r]))?parseInt(f[r]):0})})),uniqueCategoryArray:o}}var Nz={},b2={exports:{}};/*!
552
+ r.autoComplete?i.onChange(c[1]):i.onChange(...c),r?.onChange?.(...c)}return xt("div",{children:[W(n,{...i,...r,onChange:s}),a&&a.message&&W("span",{style:{color:"red"},children:a.message})]})}function YCe({children:e,handleClose:t,open:n,...r}){return W(Yf,{open:n,onClose:t,...r,children:e})}function UCe({name:e="",rules:t={},Component:n,...r}){const{control:o}=Yp(),{field:i,fieldState:{error:a}}=Up({control:o,name:e,rules:t,shouldUnregister:!0,defaultValue:r?.defaultValue});function s(...c){i.onChange(...c),r?.onChange?.(...c)}return xt("div",{children:[W(n,{...i,...r,error:a,onChange:s}),a&&a.message&&W(ya,{variant:"caption",sx:{color:"red"},children:a.message})]})}function Dz({style:e,sx:t,children:n,onSubmit:r,loading:o=!1,submitLoading:i=!1,formState:a}){return W(KP,{...a,children:xt("form",{className:"kdpa-form-container",onSubmit:a.handleSubmit(r),style:{...t,...e},children:[o?W(Js,{}):n,i&&W("div",{className:"kdpa-form-container__loading",children:W(Js,{})})]})})}function KCe({name:e="",rules:t={},options:n,multiple:r=!1,defaultValue:o,valueField:i,labelField:a,loading:s=!1,...c}){const{control:f,setValue:p,getValues:g}=Yp(),y=to(()=>{if(!o)return r?[]:null;if(r)if(i&&a){const k=o[i],P=o[a];return!P||!k?[]:k?.map((N,R)=>{const _={[a]:P[R],[i]:N};return i==="EnumTitle"&&(_.id=N),_})}else return[];else return o},[o]),{field:x,fieldState:{error:w}}=Up({control:f,name:e,rules:t,shouldUnregister:!0,defaultValue:y});function C(...k){x.onChange(k[1]),c?.onChange?.(k[1])}return xt("div",{children:[W(ag,{...x,...c,defaultValue:y,multiple:r,options:n,onChange:C,renderInput:k=>cn(qf,{...k,size:"small",key:c?.key,variant:c?.variant,label:c.label,InputProps:{...k.InputProps,endAdornment:xt(Vo,{children:[s?W(Js,{color:"inherit",size:20}):null,k.InputProps.endAdornment]})}})}),w&&w.message&&W(ya,{variant:"caption",sx:{color:"red"},children:w.message})]})}function XCe({name:e="",rules:t={},options:n,multiple:r=!1,defaultValueKey:o="",defaultValue:i="",...a}){const{control:s}=Yp(),c=to(()=>r&&Array.isArray(i)?n?.filter(y=>i.includes(y[o])):n?.find(y=>y[o]===i),[n,i]),{field:f,fieldState:{error:p}}=Up({control:s,name:e,rules:t,shouldUnregister:!0,defaultValue:c});function g(...y){f.onChange(y[1]),a?.onChange?.(y[1])}return xt("div",{children:[W(s7,{...f,...a,multiple:r,options:n,onChange:g}),p&&p.message&&W(ya,{variant:"caption",sx:{color:"red"},children:p.message})]})}const GCe=()=>{const e=({data:r,getOptionLabel:o=c=>c.label,getOptionIcon:i=c=>c.icon,getOptionValue:a=c=>c.value,getOptionParent:s=c=>c.parent})=>{const c=[];return r?.forEach(f=>{a(f)&&c.push({value:a(f),label:xt(Vo,{children:[i(f),o(f)]}),parent:s(f)})}),c},t=(r=[],o)=>{const i=[];for(const a of r){const s=a;if(!o&&!s?.parent||s?.parent===o){const c=t(r,s.value);c.length>0&&(s.children=c),i.push(s)}}return i},n=(r,o)=>{const i=[];if(!o)return[];const a=r.find(s=>s.value===o);return a&&(i.push(a.value),i.push(...n(r,a.parent))),i};return{renderTreeToSpecificFieldName:e,buildTree:t,findAllExpanded:n}};function qCe({data:e,defaultValue:t=[],onExpand:n,multiSelect:r=!0,getOptionValue:o,getOptionIcon:i,getOptionLabel:a,getOptionParent:s,noDataText:c="no data",...f}){const p=Kr(),{buildTree:g,renderTreeToSpecificFieldName:y,findAllExpanded:x}=GCe(),w=y({data:e,getOptionLabel:a,getOptionIcon:i,getOptionValue:o,getOptionParent:s}),C=g(w),[k,P]=Ln([]),[T,N]=Ln([C?.[0]?.value]);En(()=>{if(t)if(typeof t=="string")N(x(w,t)),P([t]);else{const z=[];t.forEach(H=>{z.push(...x(w,H))}),N(z),P([...t])}},[]),En(()=>{f?.onChange&&(r?f.onChange(k):f.onChange(k[0]))},[k]);function R(z,H){if(r)P(z);else if(H.isLeaf){const Z=!!k.find(U=>U===H.value);P(Z?[]:[H.value])}}function _(z,H){n&&n(z,H),N(z)}return W("div",{className:"KdTreeField",children:C?.length>0?W(o5,{...f,icons:{leaf:W("span",{}),parentOpen:W("span",{}),parentClose:W("span",{}),check:W(E4,{size:24,color:p?.palette?.primary?.main}),expandOpen:W(S4,{size:24}),uncheck:W(k4,{size:24}),expandClose:W(C4,{size:24}),halfCheck:W(T4,{color:p?.palette?.primary?.main,size:24})},nodes:C,onCheck:R,checked:k,expanded:T,onExpand:_,showNodeIcon:!0}):W("div",{style:{width:"100%",textAlign:"center"},children:c})})}function ZCe({name:e="",rules:t={},options:n,getOptionValue:r=s=>s.value,defaultValue:o,split:i,...a}){const{control:s,setValue:c}=Yp(),f=to(()=>o||null,[o]);En(()=>{c(e,f)},[f]);const{field:p,fieldState:{error:g}}=Up({control:s,name:e,rules:t,shouldUnregister:!0,defaultValue:f});function y(...x){i&&i?.length>0?(p.onChange(x[1]?.join(i)),a?.onChange?.(x[1]?.join(i))):(p.onChange(x[1]),a?.onChange?.(x[1]))}return xt("div",{children:[W(ag,{...p,...a,value:i&&i?.length>0?p?.value?.split(i):p?.value,multiple:!0,freeSolo:!0,options:n?.map(x=>r(x))??[],onChange:y}),g&&g.message&&W(ya,{variant:"caption",sx:{color:"red"},children:g.message})]})}var _z={exports:{}};/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */(function(e,t){(function(n,r){e.exports=r()})(Ho,function(){const{entries:n,setPrototypeOf:r,isFrozen:o,getPrototypeOf:i,getOwnPropertyDescriptor:a}=Object;let{freeze:s,seal:c,create:f}=Object,{apply:p,construct:g}=typeof Reflect<"u"&&Reflect;s||(s=function(Ee){return Ee}),c||(c=function(Ee){return Ee}),p||(p=function(Ee,Oe,Ze){return Ee.apply(Oe,Ze)}),g||(g=function(Ee,Oe){return new Ee(...Oe)});const y=Z(Array.prototype.forEach),x=Z(Array.prototype.pop),w=Z(Array.prototype.push),C=Z(String.prototype.toLowerCase),k=Z(String.prototype.toString),P=Z(String.prototype.match),T=Z(String.prototype.replace),N=Z(String.prototype.indexOf),R=Z(String.prototype.trim),_=Z(Object.prototype.hasOwnProperty),z=Z(RegExp.prototype.test),H=U(TypeError);function Z(Ye){return function(Ee){for(var Oe=arguments.length,Ze=new Array(Oe>1?Oe-1:0),Mt=1;Mt<Oe;Mt++)Ze[Mt-1]=arguments[Mt];return p(Ye,Ee,Ze)}}function U(Ye){return function(){for(var Ee=arguments.length,Oe=new Array(Ee),Ze=0;Ze<Ee;Ze++)Oe[Ze]=arguments[Ze];return g(Ye,Oe)}}function te(Ye,Ee){let Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C;r&&r(Ye,null);let Ze=Ee.length;for(;Ze--;){let Mt=Ee[Ze];if(typeof Mt=="string"){const Je=Oe(Mt);Je!==Mt&&(o(Ee)||(Ee[Ze]=Je),Mt=Je)}Ye[Mt]=!0}return Ye}function G(Ye){for(let Ee=0;Ee<Ye.length;Ee++)_(Ye,Ee)||(Ye[Ee]=null);return Ye}function ne(Ye){const Ee=f(null);for(const[Oe,Ze]of n(Ye))_(Ye,Oe)&&(Array.isArray(Ze)?Ee[Oe]=G(Ze):Ze&&typeof Ze=="object"&&Ze.constructor===Object?Ee[Oe]=ne(Ze):Ee[Oe]=Ze);return Ee}function ae(Ye,Ee){for(;Ye!==null;){const Ze=a(Ye,Ee);if(Ze){if(Ze.get)return Z(Ze.get);if(typeof Ze.value=="function")return Z(Ze.value)}Ye=i(Ye)}function Oe(){return null}return Oe}const ee=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),oe=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),me=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ve=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ce=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),be=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),he=s(["#text"]),Me=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),$e=s(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ue=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ce=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pe=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),De=c(/<%[\w\W]*|[\w\W]*%>/gm),Te=c(/\${[\w\W]*}/gm),Ne=c(/^data-[\-\w.\u00B7-\uFFFF]/),ze=c(/^aria-[\-\w]+$/),Le=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_e=c(/^(?:\w+script|data):/i),ke=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ve=c(/^html$/i);var Ie=Object.freeze({__proto__:null,MUSTACHE_EXPR:pe,ERB_EXPR:De,TMPLIT_EXPR:Te,DATA_ATTR:Ne,ARIA_ATTR:ze,IS_ALLOWED_URI:Le,IS_SCRIPT_OR_DATA:_e,ATTR_WHITESPACE:ke,DOCTYPE_NAME:Ve});const qe=function(){return typeof window>"u"?null:window},Qe=function(Ee,Oe){if(typeof Ee!="object"||typeof Ee.createPolicy!="function")return null;let Ze=null;const Mt="data-tt-policy-suffix";Oe&&Oe.hasAttribute(Mt)&&(Ze=Oe.getAttribute(Mt));const Je="dompurify"+(Ze?"#"+Ze:"");try{return Ee.createPolicy(Je,{createHTML(pt){return pt},createScriptURL(pt){return pt}})}catch{return console.warn("TrustedTypes policy "+Je+" could not be created."),null}};function Pt(){let Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qe();const Ee=On=>Pt(On);if(Ee.version="3.0.9",Ee.removed=[],!Ye||!Ye.document||Ye.document.nodeType!==9)return Ee.isSupported=!1,Ee;let{document:Oe}=Ye;const Ze=Oe,Mt=Ze.currentScript,{DocumentFragment:Je,HTMLTemplateElement:pt,Node:ut,Element:kt,NodeFilter:Ge,NamedNodeMap:Xe=Ye.NamedNodeMap||Ye.MozNamedAttrMap,HTMLFormElement:ot,DOMParser:mt,trustedTypes:Lt}=Ye,St=kt.prototype,Tt=ae(St,"cloneNode"),st=ae(St,"nextSibling"),ft=ae(St,"childNodes"),$t=ae(St,"parentNode");if(typeof pt=="function"){const On=Oe.createElement("template");On.content&&On.content.ownerDocument&&(Oe=On.content.ownerDocument)}let zt,an="";const{implementation:sn,createNodeIterator:Sn,createDocumentFragment:An,getElementsByTagName:Dn}=Oe,{importNode:He}=Ze;let we={};Ee.isSupported=typeof n=="function"&&typeof $t=="function"&&sn&&sn.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ct,ERB_EXPR:je,TMPLIT_EXPR:Et,DATA_ATTR:Vt,ARIA_ATTR:At,IS_SCRIPT_OR_DATA:Be,ATTR_WHITESPACE:Ae}=Ie;let{IS_ALLOWED_URI:Ke}=Ie,at=null;const Ct=te({},[...ee,...oe,...me,...ce,...he]);let wt=null;const gn=te({},[...Me,...$e,...Ue,...Ce]);let tn=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ln=null,qt=null,dt=!0,Pe=!0,rt=!1,yt=!0,Ft=!1,_t=!1,ie=!1,l=!1,u=!1,h=!1,m=!1,v=!0,b=!1;const S="user-content-";let E=!0,D=!1,I={},L=null;const $=te({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Y=null;const X=te({},["audio","video","img","source","image","track"]);let J=null;const re=te({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ue="http://www.w3.org/1998/Math/MathML",ye="http://www.w3.org/2000/svg",M="http://www.w3.org/1999/xhtml";let F=M,q=!1,le=null;const ge=te({},[ue,ye,M],k);let xe=null;const Re=["application/xhtml+xml","text/html"],Fe="text/html";let it=null,vt=null;const ht=Oe.createElement("form"),Ht=function(lt){return lt instanceof RegExp||lt instanceof Function},Zt=function(){let lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(vt&&vt===lt)){if((!lt||typeof lt!="object")&&(lt={}),lt=ne(lt),xe=Re.indexOf(lt.PARSER_MEDIA_TYPE)===-1?Fe:lt.PARSER_MEDIA_TYPE,it=xe==="application/xhtml+xml"?k:C,at=_(lt,"ALLOWED_TAGS")?te({},lt.ALLOWED_TAGS,it):Ct,wt=_(lt,"ALLOWED_ATTR")?te({},lt.ALLOWED_ATTR,it):gn,le=_(lt,"ALLOWED_NAMESPACES")?te({},lt.ALLOWED_NAMESPACES,k):ge,J=_(lt,"ADD_URI_SAFE_ATTR")?te(ne(re),lt.ADD_URI_SAFE_ATTR,it):re,Y=_(lt,"ADD_DATA_URI_TAGS")?te(ne(X),lt.ADD_DATA_URI_TAGS,it):X,L=_(lt,"FORBID_CONTENTS")?te({},lt.FORBID_CONTENTS,it):$,ln=_(lt,"FORBID_TAGS")?te({},lt.FORBID_TAGS,it):{},qt=_(lt,"FORBID_ATTR")?te({},lt.FORBID_ATTR,it):{},I=_(lt,"USE_PROFILES")?lt.USE_PROFILES:!1,dt=lt.ALLOW_ARIA_ATTR!==!1,Pe=lt.ALLOW_DATA_ATTR!==!1,rt=lt.ALLOW_UNKNOWN_PROTOCOLS||!1,yt=lt.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ft=lt.SAFE_FOR_TEMPLATES||!1,_t=lt.WHOLE_DOCUMENT||!1,u=lt.RETURN_DOM||!1,h=lt.RETURN_DOM_FRAGMENT||!1,m=lt.RETURN_TRUSTED_TYPE||!1,l=lt.FORCE_BODY||!1,v=lt.SANITIZE_DOM!==!1,b=lt.SANITIZE_NAMED_PROPS||!1,E=lt.KEEP_CONTENT!==!1,D=lt.IN_PLACE||!1,Ke=lt.ALLOWED_URI_REGEXP||Le,F=lt.NAMESPACE||M,tn=lt.CUSTOM_ELEMENT_HANDLING||{},lt.CUSTOM_ELEMENT_HANDLING&&Ht(lt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(tn.tagNameCheck=lt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),lt.CUSTOM_ELEMENT_HANDLING&&Ht(lt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(tn.attributeNameCheck=lt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),lt.CUSTOM_ELEMENT_HANDLING&&typeof lt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(tn.allowCustomizedBuiltInElements=lt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ft&&(Pe=!1),h&&(u=!0),I&&(at=te({},he),wt=[],I.html===!0&&(te(at,ee),te(wt,Me)),I.svg===!0&&(te(at,oe),te(wt,$e),te(wt,Ce)),I.svgFilters===!0&&(te(at,me),te(wt,$e),te(wt,Ce)),I.mathMl===!0&&(te(at,ce),te(wt,Ue),te(wt,Ce))),lt.ADD_TAGS&&(at===Ct&&(at=ne(at)),te(at,lt.ADD_TAGS,it)),lt.ADD_ATTR&&(wt===gn&&(wt=ne(wt)),te(wt,lt.ADD_ATTR,it)),lt.ADD_URI_SAFE_ATTR&&te(J,lt.ADD_URI_SAFE_ATTR,it),lt.FORBID_CONTENTS&&(L===$&&(L=ne(L)),te(L,lt.FORBID_CONTENTS,it)),E&&(at["#text"]=!0),_t&&te(at,["html","head","body"]),at.table&&(te(at,["tbody"]),delete ln.tbody),lt.TRUSTED_TYPES_POLICY){if(typeof lt.TRUSTED_TYPES_POLICY.createHTML!="function")throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof lt.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');zt=lt.TRUSTED_TYPES_POLICY,an=zt.createHTML("")}else zt===void 0&&(zt=Qe(Lt,Mt)),zt!==null&&typeof an=="string"&&(an=zt.createHTML(""));s&&s(lt),vt=lt}},nn=te({},["mi","mo","mn","ms","mtext"]),Tn=te({},["foreignobject","desc","title","annotation-xml"]),$n=te({},["title","style","font","a","script"]),Nn=te({},[...oe,...me,...ve]),Wn=te({},[...ce,...be]),Gn=function(lt){let Kt=$t(lt);(!Kt||!Kt.tagName)&&(Kt={namespaceURI:F,tagName:"template"});const Pn=C(lt.tagName),Or=C(Kt.tagName);return le[lt.namespaceURI]?lt.namespaceURI===ye?Kt.namespaceURI===M?Pn==="svg":Kt.namespaceURI===ue?Pn==="svg"&&(Or==="annotation-xml"||nn[Or]):!!Nn[Pn]:lt.namespaceURI===ue?Kt.namespaceURI===M?Pn==="math":Kt.namespaceURI===ye?Pn==="math"&&Tn[Or]:!!Wn[Pn]:lt.namespaceURI===M?Kt.namespaceURI===ye&&!Tn[Or]||Kt.namespaceURI===ue&&!nn[Or]?!1:!Wn[Pn]&&($n[Pn]||!Nn[Pn]):!!(xe==="application/xhtml+xml"&&le[lt.namespaceURI]):!1},hr=function(lt){w(Ee.removed,{element:lt});try{lt.parentNode.removeChild(lt)}catch{lt.remove()}},zr=function(lt,Kt){try{w(Ee.removed,{attribute:Kt.getAttributeNode(lt),from:Kt})}catch{w(Ee.removed,{attribute:null,from:Kt})}if(Kt.removeAttribute(lt),lt==="is"&&!wt[lt])if(u||h)try{hr(Kt)}catch{}else try{Kt.setAttribute(lt,"")}catch{}},So=function(lt){let Kt=null,Pn=null;if(l)lt="<remove></remove>"+lt;else{const mo=P(lt,/^[\r\n\t ]+/);Pn=mo&&mo[0]}xe==="application/xhtml+xml"&&F===M&&(lt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+lt+"</body></html>");const Or=zt?zt.createHTML(lt):lt;if(F===M)try{Kt=new mt().parseFromString(Or,xe)}catch{}if(!Kt||!Kt.documentElement){Kt=sn.createDocument(F,"template",null);try{Kt.documentElement.innerHTML=q?an:Or}catch{}}const eo=Kt.body||Kt.documentElement;return lt&&Pn&&eo.insertBefore(Oe.createTextNode(Pn),eo.childNodes[0]||null),F===M?Dn.call(Kt,_t?"html":"body")[0]:_t?Kt.documentElement:eo},zo=function(lt){return Sn.call(lt.ownerDocument||lt,lt,Ge.SHOW_ELEMENT|Ge.SHOW_COMMENT|Ge.SHOW_TEXT,null)},Hr=function(lt){return lt instanceof ot&&(typeof lt.nodeName!="string"||typeof lt.textContent!="string"||typeof lt.removeChild!="function"||!(lt.attributes instanceof Xe)||typeof lt.removeAttribute!="function"||typeof lt.setAttribute!="function"||typeof lt.namespaceURI!="string"||typeof lt.insertBefore!="function"||typeof lt.hasChildNodes!="function")},Yr=function(lt){return typeof ut=="function"&&lt instanceof ut},fn=function(lt,Kt,Pn){we[lt]&&y(we[lt],Or=>{Or.call(Ee,Kt,Pn,vt)})},Fn=function(lt){let Kt=null;if(fn("beforeSanitizeElements",lt,null),Hr(lt))return hr(lt),!0;const Pn=it(lt.nodeName);if(fn("uponSanitizeElement",lt,{tagName:Pn,allowedTags:at}),lt.hasChildNodes()&&!Yr(lt.firstElementChild)&&z(/<[/\w]/g,lt.innerHTML)&&z(/<[/\w]/g,lt.textContent))return hr(lt),!0;if(!at[Pn]||ln[Pn]){if(!ln[Pn]&&Gr(Pn)&&(tn.tagNameCheck instanceof RegExp&&z(tn.tagNameCheck,Pn)||tn.tagNameCheck instanceof Function&&tn.tagNameCheck(Pn)))return!1;if(E&&!L[Pn]){const Or=$t(lt)||lt.parentNode,eo=ft(lt)||lt.childNodes;if(eo&&Or){const mo=eo.length;for(let Bo=mo-1;Bo>=0;--Bo)Or.insertBefore(Tt(eo[Bo],!0),st(lt))}}return hr(lt),!0}return lt instanceof kt&&!Gn(lt)||(Pn==="noscript"||Pn==="noembed"||Pn==="noframes")&&z(/<\/no(script|embed|frames)/i,lt.innerHTML)?(hr(lt),!0):(Ft&&lt.nodeType===3&&(Kt=lt.textContent,y([ct,je,Et],Or=>{Kt=T(Kt,Or," ")}),lt.textContent!==Kt&&(w(Ee.removed,{element:lt.cloneNode()}),lt.textContent=Kt)),fn("afterSanitizeElements",lt,null),!1)},Br=function(lt,Kt,Pn){if(v&&(Kt==="id"||Kt==="name")&&(Pn in Oe||Pn in ht))return!1;if(!(Pe&&!qt[Kt]&&z(Vt,Kt))){if(!(dt&&z(At,Kt))){if(!wt[Kt]||qt[Kt]){if(!(Gr(lt)&&(tn.tagNameCheck instanceof RegExp&&z(tn.tagNameCheck,lt)||tn.tagNameCheck instanceof Function&&tn.tagNameCheck(lt))&&(tn.attributeNameCheck instanceof RegExp&&z(tn.attributeNameCheck,Kt)||tn.attributeNameCheck instanceof Function&&tn.attributeNameCheck(Kt))||Kt==="is"&&tn.allowCustomizedBuiltInElements&&(tn.tagNameCheck instanceof RegExp&&z(tn.tagNameCheck,Pn)||tn.tagNameCheck instanceof Function&&tn.tagNameCheck(Pn))))return!1}else if(!J[Kt]){if(!z(Ke,T(Pn,Ae,""))){if(!((Kt==="src"||Kt==="xlink:href"||Kt==="href")&&lt!=="script"&&N(Pn,"data:")===0&&Y[lt])){if(!(rt&&!z(Be,T(Pn,Ae,"")))){if(Pn)return!1}}}}}}return!0},Gr=function(lt){return lt!=="annotation-xml"&&lt.indexOf("-")>0},Vr=function(lt){fn("beforeSanitizeAttributes",lt,null);const{attributes:Kt}=lt;if(!Kt)return;const Pn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:wt};let Or=Kt.length;for(;Or--;){const eo=Kt[Or],{name:mo,namespaceURI:Bo,value:aa}=eo,rs=it(mo);let Go=mo==="value"?aa:R(aa);if(Pn.attrName=rs,Pn.attrValue=Go,Pn.keepAttr=!0,Pn.forceKeepAttr=void 0,fn("uponSanitizeAttribute",lt,Pn),Go=Pn.attrValue,Pn.forceKeepAttr||(zr(mo,lt),!Pn.keepAttr))continue;if(!yt&&z(/\/>/i,Go)){zr(mo,lt);continue}Ft&&y([ct,je,Et],Qd=>{Go=T(Go,Qd," ")});const Jd=it(lt.nodeName);if(Br(Jd,rs,Go)){if(b&&(rs==="id"||rs==="name")&&(zr(mo,lt),Go=S+Go),zt&&typeof Lt=="object"&&typeof Lt.getAttributeType=="function"&&!Bo)switch(Lt.getAttributeType(Jd,rs)){case"TrustedHTML":{Go=zt.createHTML(Go);break}case"TrustedScriptURL":{Go=zt.createScriptURL(Go);break}}try{Bo?lt.setAttributeNS(Bo,mo,Go):lt.setAttribute(mo,Go),x(Ee.removed)}catch{}}}fn("afterSanitizeAttributes",lt,null)},Rs=function On(lt){let Kt=null;const Pn=zo(lt);for(fn("beforeSanitizeShadowDOM",lt,null);Kt=Pn.nextNode();)fn("uponSanitizeShadowNode",Kt,null),!Fn(Kt)&&(Kt.content instanceof Je&&On(Kt.content),Vr(Kt));fn("afterSanitizeShadowDOM",lt,null)};return Ee.sanitize=function(On){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Kt=null,Pn=null,Or=null,eo=null;if(q=!On,q&&(On="<!-->"),typeof On!="string"&&!Yr(On))if(typeof On.toString=="function"){if(On=On.toString(),typeof On!="string")throw H("dirty is not a string, aborting")}else throw H("toString is not a function");if(!Ee.isSupported)return On;if(ie||Zt(lt),Ee.removed=[],typeof On=="string"&&(D=!1),D){if(On.nodeName){const aa=it(On.nodeName);if(!at[aa]||ln[aa])throw H("root node is forbidden and cannot be sanitized in-place")}}else if(On instanceof ut)Kt=So("<!---->"),Pn=Kt.ownerDocument.importNode(On,!0),Pn.nodeType===1&&Pn.nodeName==="BODY"||Pn.nodeName==="HTML"?Kt=Pn:Kt.appendChild(Pn);else{if(!u&&!Ft&&!_t&&On.indexOf("<")===-1)return zt&&m?zt.createHTML(On):On;if(Kt=So(On),!Kt)return u?null:m?an:""}Kt&&l&&hr(Kt.firstChild);const mo=zo(D?On:Kt);for(;Or=mo.nextNode();)Fn(Or)||(Or.content instanceof Je&&Rs(Or.content),Vr(Or));if(D)return On;if(u){if(h)for(eo=An.call(Kt.ownerDocument);Kt.firstChild;)eo.appendChild(Kt.firstChild);else eo=Kt;return(wt.shadowroot||wt.shadowrootmode)&&(eo=He.call(Ze,eo,!0)),eo}let Bo=_t?Kt.outerHTML:Kt.innerHTML;return _t&&at["!doctype"]&&Kt.ownerDocument&&Kt.ownerDocument.doctype&&Kt.ownerDocument.doctype.name&&z(Ve,Kt.ownerDocument.doctype.name)&&(Bo="<!DOCTYPE "+Kt.ownerDocument.doctype.name+`>
553
+ `+Bo),Ft&&y([ct,je,Et],aa=>{Bo=T(Bo,aa," ")}),zt&&m?zt.createHTML(Bo):Bo},Ee.setConfig=function(){let On=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zt(On),ie=!0},Ee.clearConfig=function(){vt=null,ie=!1},Ee.isValidAttribute=function(On,lt,Kt){vt||Zt({});const Pn=it(On),Or=it(lt);return Br(Pn,Or,Kt)},Ee.addHook=function(On,lt){typeof lt=="function"&&(we[On]=we[On]||[],w(we[On],lt))},Ee.removeHook=function(On){if(we[On])return x(we[On])},Ee.removeHooks=function(On){we[On]&&(we[On]=[])},Ee.removeAllHooks=function(){we={}},Ee}var et=Pt();return et})})(_z);var JCe=_z.exports,QCe=uo(JCe);const eke=(e,t)=>{if(!e)return e;switch(t.type){case"string":return tke(e,t);case"number":return rke(e,t);case"date":return oke(e,t);case"boolean":return ike(e);case"html":return ake(e,t);default:return NaN}},tke=(e,t)=>t.maxLength&&typeof t.maxLength!="number"?e:nke(String(e),t.maxLength),nke=(e,t)=>t&&e.length>t?W(Qs,{title:e,children:W("span",{children:e.substring(0,t)+" ..."})}):W(Vo,{children:e}),rke=(e,t)=>{switch(t.typeNumber){case"int":return parseInt(String(e));case"float":return parseFloat(String(e));case"cost":{if(!parseFloat(String(e)))return NaN;const n=String(e),[r,o]=n.split("."),i=r.replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?`${i}.${o}`:i}default:return parseFloat(e)}},oke=(e,t)=>{if(typeof e!="string")return NaN;const n=new Date(e);if(isNaN(n.getTime()))return NaN;const r=localStorage.getItem("i18nextLng")??"fa",o=t.loc||r,i={fa:"YYYY/MM/DD",en:"YYYY-MM-DD",ar:"YYYY/MM/DD"},a=t.format||(i[o]??"YYYY/MM/DD");return s$(n).locale(o).format(a)},ike=e=>e?"true":"false",ake=(e,t)=>{if(typeof e!="string")return NaN;const n=QCe.sanitize(e,{USE_PROFILES:{html:!0}});return W("div",{dangerouslySetInnerHTML:{__html:t.ignoreTags?n:e}})},ske=({type:e="string",...t})=>{const n={type:e,maxLength:t.maxLength,typeNumber:t.typeNumber,format:t.format??"YYYY-MM-DD",loc:t.loc??"fa",ignoreTags:t.ignoreTags??!0};return W(ya,{...t,children:eke(t.children,n)})};function lke({item:e,uploadHandler:t,onDelete:n}){const r=t?.streamPath,o=t?.thumbnailstreamPath,i=t?.tempPath,a=t?.thumbnailTempPath,c=t?.files?.find(g=>g.session===e),f=c?`${a}/${e}`:`${o}/${e}`,p=c?`${i}/${e}`:`${r}/${e}`;return xt("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[xt("div",{className:"parent",style:{position:"relative",borderRadius:"8px"},children:[W(vx,{small:f,large:p,className:"modal-image rounded"}),W("div",{style:{position:"absolute",top:"100"},className:"child",children:W(Pz,{style:{color:"white",cursor:"pointer"},size:15,onClick:()=>{n(e)}})})]}),c?.fileName&&W("span",{style:{fontSize:"12px"},children:c?.fileName?.split("\\")?.slice(-1)?.[0]})]})}function cke(e,t){if(t){let n=[];return e.image&&(e.image==="ALL"?n=n.concat(t.image):n=n.concat(e?.image?.filter(r=>t?.image?.includes(r)))),e.video&&(e.video==="ALL"?n=n.concat(t.video):n=n.concat(e?.video?.filter(r=>t?.video?.includes(r)))),e.text&&(e.text==="ALL"?n=n.concat(t.text):n=n.concat(e?.text?.filter(r=>t?.text?.includes(r)))),e.compress&&(e.compress==="ALL"?n=n.concat(t.compress):n=n.concat(e?.compress?.filter(r=>t?.compress?.includes(r)))),n.map(r=>`.${r}`).join(",")}else return"*"}function uke({label:e,defaultValue:t,placeholder:n,multiple:r=!1,accept:o,uploadHandler:i,inputStyle:a,style:s,...c}){const f=i?.session,p=i?.clearSession,g=i?.handleFileChange,y=i?.fileExtension,[x,w]=Ln([]);En(()=>{w(t?()=>typeof t=="string"?[t]:[...t]:[])},[]),En(()=>{f&&(w(r?k=>[...k,f]:[f]),p&&p())},[f]),En(()=>{c.onChange&&(r?c.onChange(x):c.onChange(x[0]))},[x]);const C=k=>{w(P=>P.filter(T=>T!==k))};return xt("div",{className:"kd-file-uploader",style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"10px",alignItems:"center",width:"100%",...s},children:[W(ya,{children:e}),W("label",{htmlFor:`icon-button-file-${c.name}`,children:xt(mh,{component:"span",style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"5px",...a},children:[W(Az,{}),n]})}),W("input",{style:{display:"none"},accept:y&&o?cke(o,y):"*",id:`icon-button-file-${c.name}`,type:"file",multiple:r,onChange:k=>g(k,o)}),W("input",{type:"hidden",...c,value:x}),x&&x.map(k=>W(lke,{item:k,onDelete:C,uploadHandler:i}))]})}function dke({item:e,onDelete:t,uploadHandler:n}){const r=n?.streamPath,o=n?.thumbnailstreamPath,i=n?.tempPath,a=n?.thumbnailTempPath,c=n?.files?.find(g=>g.session===e),f=c?`${a}/${e}`:`${o}/${e}`,p=c?`${i}/${e}`:`${r}/${e}`;return xt("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[xt("div",{className:"parent",style:{position:"relative",borderRadius:"8px"},children:[W(vx,{small:f,large:p,className:"modal-image rounded"}),W("div",{style:{position:"absolute",top:"100"},className:"child",children:W(Pz,{style:{color:"white",cursor:"pointer"},size:20,onClick:()=>{t(e)}})})]}),c?.fileName&&W("span",{style:{fontSize:"12px"},children:c?.fileName?.split("\\")?.slice(-1)?.[0]})]})}function fke(e,t){if(t){const n={};return e.image&&(e.image==="ALL"?n["image/*"]=t.image.map(r=>`.${r}`):e.image.forEach(r=>{t?.image?.includes(r)&&(n["image/"+r]=["."+r])})),e.video&&(e.video==="ALL"?n["video/*"]=t.video.map(r=>`.${r}`):e.video.forEach(r=>{t?.video?.includes(r)&&(n["video/"+r]=["."+r])})),e.text&&(e.text==="ALL"?n["text/*"]=t.text.map(r=>`.${r}`):e.text.forEach(r=>{t?.text?.includes(r)&&(n["text/"+r]=["."+r])})),e.compress&&(e.compress==="ALL"?n["text/*"]=[...n["text/*"]??[],...t.compress.map(r=>`.${r}`)??[]]:e.compress.forEach(r=>{t?.compress?.includes(r)&&(n["text/"+r]=["."+r])})),n}else return"*"}const hke=({label:e="\u0641\u0627\u06CC\u0644(\u0647\u0627) \u0631\u0627 \u062F\u0631 \u0627\u06CC\u0646 \u062C\u0639\u0628\u0647 \u0631\u0647\u0627 \u06A9\u0646\u06CC\u062F\u060C \u06CC\u0627 \u0631\u0648\u06CC \u062C\u0639\u0628\u0647 \u06A9\u0644\u06CC\u06A9 \u06A9\u0646\u06CC\u062F",defaultValue:t,multiple:n=!1,accept:r,uploadHandler:o,...i})=>{const a=o?.session,s=o?.clearSession,c=o?.handleFileChange,f=o?.fileExtension,[p,g]=Ln([]);En(()=>{g(t?()=>typeof t=="string"?[t]:[...t]:[])},[t]),En(()=>{a&&(g(n?R=>[...R,a]:[a]),s&&s())},[a]),En(()=>{i.onChange&&(n?i.onChange(p):i.onChange(p[0]))},[p]);const y=Zn(R=>{c({target:{files:R}},r)},[]),x=R=>{g(_=>_.filter(z=>z!==R))},{getRootProps:w,getInputProps:C,isDragAccept:k,isDragReject:P,open:T,inputRef:N}=eT({onDropAccepted:y,accept:r?fke(r,f??null):void 0,maxFiles:9999,noClick:!0,multiple:n});return En(()=>{if(!N.current)return;const R=async _=>{const z=_.clipboardData?.files;z&&z.length>0&&N.current&&(N.current.files=z,N.current.dispatchEvent(new Event("change",{bubbles:!0})))};return document.addEventListener("paste",R),()=>{document.removeEventListener("paste",R)}},[N]),W(ma,{className:"kd-advance-file-uploader",children:xt(ma,{component:"section",sx:{mb:1,border:2,borderStyle:"dashed",borderRadius:3,borderColor:R=>R.palette.primary.main,transition:"all 0.3s ease-in-ease-out",...k&&{borderColor:R=>R.palette.success.main},...k&&{bgcolor:R=>R.palette.success.light},...P&&{borderColor:R=>R.palette.warning.main},...P&&{bgcolor:R=>R.palette.warning.light}},...w(),children:[W("input",{...C()}),xt(ma,{sx:{p:2,display:"flex",flexDirection:"column",justifyContent:"center"},children:[W(ya,{sx:{display:"flex",justifyContent:"center"},children:e}),W(ma,{sx:{display:"flex",justifyContent:"center"},children:W(Ba,{sx:{color:R=>R.palette.primary.main,...k&&{color:R=>R.palette.success.main},...P&&{color:R=>R.palette.warning.main}},onClick:T,children:W(O4,{size:45})})}),W(YE,{in:p?.length!==0,children:W("div",{style:{display:"flex",flexDirection:"row",gap:"10px",flexWrap:"wrap"},children:p&&p.map(R=>W(dke,{item:R,uploadHandler:o,onDelete:x}))})})]})]})})};function pke(e,t,n,r){const o=Array.from(new Set(e.map(s=>s[t])));return o.length===1&&o[0]===void 0?{series:[],uniqueCategoryArray:[]}:{series:Array.from(new Set(e.map(s=>s[n]))).map(s=>({name:s,data:o.map(c=>{const f=e.find(p=>p[n]===s&&p[t]===c);return f&&!Number.isNaN(parseInt(f[r]))?parseInt(f[r]):0})})),uniqueCategoryArray:o}}var Nz={},b2={exports:{}};/*!
554
554
  * ApexCharts v3.46.0
555
555
  * (c) 2018-2024 ApexCharts
556
556
  * Released under the MIT License.
@@ -1 +1 @@
1
- {"version":3,"file":"KdFormField.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Form/KdFormField/KdFormField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAChC,CAAC,CAAC,EAAE,MAAM,GAAI,GAAG,CAAA;CAClB;AAED,iBAAS,aAAa,CAAC,EACrB,IAAS,EACT,KAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,2CA6BlB;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"KdFormField.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Form/KdFormField/KdFormField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAChC,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,iBAAS,aAAa,CAAC,EACrB,IAAS,EACT,KAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,2CA+BlB;AAED,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"KdAdvanceFileUploader.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdAdvanceFileUploader/KdAdvanceFileUploader.tsx"],"names":[],"mappings":"AACA,OAAO,8BAA8B,CAAC;AAMtC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,kCAAkC,CAAC;AAI1C,MAAM,WAAW,0BAA0B;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACjC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC1B,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,QAAA,MAAM,qBAAqB,uEAOxB,0BAA0B,4CA0K5B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"KdAdvanceFileUploader.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdAdvanceFileUploader/KdAdvanceFileUploader.tsx"],"names":[],"mappings":"AACA,OAAO,8BAA8B,CAAC;AAMtC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,kCAAkC,CAAC;AAI1C,MAAM,WAAW,0BAA0B;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACjC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC1B,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,QAAA,MAAM,qBAAqB,uEAOxB,0BAA0B,4CA4K5B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kdpa-components",
3
- "version": "1.30.2",
3
+ "version": "1.30.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",