kdpa-components 1.46.6 → 1.46.7
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
|
@@ -556,7 +556,7 @@ html body {
|
|
|
556
556
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
557
557
|
* See the License for the specific language governing permissions and
|
|
558
558
|
* limitations under the License.
|
|
559
|
-
*/(function(o,s){var l;function x(j,V){var W=[],U=0;function Y(Z){return W.push(Z),V}function X(){return W[U++]}return{tokenize:function(Z){return Z.replace(j,Y)},detokenize:function(Z){return Z.replace(new RegExp("("+V+")","g"),X)}}}function w(){var j="`TMP`",V="`NOFLIP_SINGLE`",W="`NOFLIP_CLASS`",U="`COMMENT`",Y="[^\\u0020-\\u007e]",X="(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)",Z="(?:[0-9]*\\.[0-9]+|[0-9]+)",le="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",oe="direction\\s*:\\s*",re="[!#$%&*-~]",J=`['"]?\\s*`,ue="(^|[^a-zA-Z])",me="[^\\}]*?",fe="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",xe="\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/",Te="(?:"+X+"|\\\\[^\\r\\n\\f0-9a-f])",ge="(?:[_a-z]|"+Y+"|"+Te+")",Pe="(?:[_a-z0-9-]|"+Y+"|"+Te+")",Se="-?"+ge+Pe+"*",Re=Z+"(?:\\s*"+le+"|"+Se+")?",De="((?:-?"+Re+")|(?:inherit|auto))",Le="((?:margin|padding|border-width)\\s*:\\s*)",_e="((?:-color|border-style)\\s*:\\s*)",Be="(#?"+Pe+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",Fe="(?:"+re+"|"+Y+"|"+Te+")*?",je="(?![a-zA-Z])",ze="(?!("+Pe+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+U+")*?{)",We="(?!"+Fe+J+"\\))",Oe="(?="+Fe+J+"\\))",ke="(\\s*(?:!important\\s*)?[;}])",Ee=/`TMP`/g,Ae=new RegExp(xe,"gi"),Ve=new RegExp("("+fe+ze+"[^;}]+;?)","gi"),Xe=new RegExp("("+fe+me+"})","gi"),nt=new RegExp("("+oe+")ltr","gi"),tt=new RegExp("("+oe+")rtl","gi"),Ye=new RegExp(ue+"(left)"+je+We+ze,"gi"),He=new RegExp(ue+"(right)"+je+We+ze,"gi"),Ge=new RegExp(ue+"(left)"+Oe,"gi"),rt=new RegExp(ue+"(right)"+Oe,"gi"),dt=new RegExp(ue+"(ltr)"+Oe,"gi"),vt=new RegExp(ue+"(rtl)"+Oe,"gi"),yt=new RegExp(ue+"([ns]?)e-resize","gi"),ut=new RegExp(ue+"([ns]?)w-resize","gi"),St=new RegExp(Le+De+"(\\s+)"+De+"(\\s+)"+De+"(\\s+)"+De+ke,"gi"),Nt=new RegExp(_e+Be+"(\\s+)"+Be+"(\\s+)"+Be+"(\\s+)"+Be+ke,"gi"),Bt=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+Re+")","gi"),zt=new RegExp("(background-position-x\\s*:\\s*)(-?"+Z+"%)","gi"),jt=new RegExp("(border-radius\\s*:\\s*)"+De+"(?:(?:\\s+"+De+")(?:\\s+"+De+")?(?:\\s+"+De+")?)?(?:(?:(?:\\s*\\/\\s*)"+De+")(?:\\s+"+De+")?(?:\\s+"+De+")?(?:\\s+"+De+")?)?"+ke,"gi"),$t=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+De,"gi"),Dt=new RegExp("(text-shadow\\s*:\\s*)"+De+"(\\s*)"+Be,"gi"),Mt=new RegExp("(text-shadow\\s*:\\s*)"+Be+"(\\s*)"+De,"gi"),Ot=new RegExp("(text-shadow\\s*:\\s*)"+De,"gi"),Vt=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+De+"(\\s*\\))","gi"),Tn=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+De+"((?:\\s*,\\s*"+De+"){0,2}\\s*\\))","gi");function Zt(zn,qn,Bn){var xn,Yt;return Bn.slice(-1)==="%"&&(xn=Bn.indexOf("."),xn!==-1?(Yt=Bn.length-xn-2,Bn=100-parseFloat(Bn),Bn=Bn.toFixed(Yt)+"%"):Bn=100-parseFloat(Bn)+"%"),qn+Bn}function En(zn){switch(zn.length){case 4:zn=[zn[1],zn[0],zn[3],zn[2]];break;case 3:zn=[zn[1],zn[0],zn[1],zn[2]];break;case 2:zn=[zn[1],zn[0]];break;case 1:zn=[zn[0]];break}return zn.join(" ")}function Sn(zn,qn){var Bn,xn=[].slice.call(arguments),Yt=xn.slice(2,6).filter(function(Jn){return Jn}),Xt=xn.slice(6,10).filter(function(Jn){return Jn}),In=xn[10]||"";return Xt.length?Bn=En(Yt)+" / "+En(Xt):Bn=En(Yt),qn+Bn+In}function Ln(zn){return parseFloat(zn)===0?zn:zn[0]==="-"?zn.slice(1):"-"+zn}function vn(zn,qn,Bn){return qn+Ln(Bn)}function fn(zn,qn,Bn,xn,Yt){return qn+Bn+Ln(xn)+Yt}function Dn(zn,qn,Bn,xn,Yt){return qn+Bn+xn+Ln(Yt)}return{transform:function(zn,qn){var Bn=new x(Ve,V),xn=new x(Xe,W),Yt=new x(Ae,U);return zn=Yt.tokenize(xn.tokenize(Bn.tokenize(zn.replace("`","%60")))),qn.transformDirInUrl&&(zn=zn.replace(dt,"$1"+j).replace(vt,"$1ltr").replace(Ee,"rtl")),qn.transformEdgeInUrl&&(zn=zn.replace(Ge,"$1"+j).replace(rt,"$1left").replace(Ee,"right")),zn=zn.replace(nt,"$1"+j).replace(tt,"$1ltr").replace(Ee,"rtl").replace(Ye,"$1"+j).replace(He,"$1left").replace(Ee,"right").replace(yt,"$1$2"+j).replace(ut,"$1$2e-resize").replace(Ee,"w-resize").replace(jt,Sn).replace($t,vn).replace(Dt,Dn).replace(Mt,Dn).replace(Ot,vn).replace(Vt,fn).replace(Tn,fn).replace(St,"$1$2$3$8$5$6$7$4$9").replace(Nt,"$1$2$3$8$5$6$7$4$9").replace(Bt,Zt).replace(zt,Zt),zn=Bn.detokenize(xn.detokenize(Yt.detokenize(zn))),zn}}}l=new w,o.exports?s.transform=function(j,V,W){var U;return typeof V=="object"?U=V:(U={},typeof V=="boolean"&&(U.transformDirInUrl=V),typeof W=="boolean"&&(U.transformEdgeInUrl=W)),l.transform(j,U)}:typeof window<"u"&&(window.cssjanus=l)})(cssjanus$1,cssjanus$1.exports);var cssjanusExports=cssjanus$1.exports,cssjanus=getDefaultExportFromCjs(cssjanusExports);function stringifyPreserveComments(o,s,l){switch(o.type){case IMPORT:case DECLARATION:case COMMENT:return o.return=o.return||o.value;case RULESET:o.value=Array.isArray(o.props)?o.props.join(","):o.props,Array.isArray(o.children)&&o.children.forEach(function(w){w.type===COMMENT&&(w.children=w.value)})}var x=serialize(Array.prototype.concat(o.children),stringifyPreserveComments);return strlen(x)?o.return=o.value+"{"+x+"}":""}function stylisRTLPlugin(o,s,l,x){if(o.type===KEYFRAMES||o.type===SUPPORTS||o.type===RULESET&&(!o.parent||o.parent.type===MEDIA||o.parent.type===RULESET)){var w=cssjanus.transform(stringifyPreserveComments(o));o.children=w?compile(w)[0].children:[],o.return=""}}Object.defineProperty(stylisRTLPlugin,"name",{value:"stylisRTLPlugin"});function KdpaRtlProvider(o){const s=useMemo$1(()=>createCache({key:"kdpa",stylisPlugins:[prefixer,stylisRTLPlugin],container:o?.container}),[]);return jsx(CacheProvider,{value:s,children:o.children})}const Transition=React__default.forwardRef((o,s)=>jsx(Slide$1,{direction:"up",ref:s,...o}));function KdpaFullScreenDialog({children:o,...s}){return jsx(Dialog$1,{TransitionComponent:Transition,fullScreen:!0,...s,children:o})}function AiOutlineMinusCircle(o){return GenIcon({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"}}]})(o)}function AiOutlinePlusCircle(o){return GenIcon({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"}}]})(o)}const StyledDiv$4=styled$1("div")();function KdpaSegment({children:o,label:s="",maxLength:l=23,expandable:x=!1,defaultOpen:w=!0,color:j,openIcon:V,closeIcon:W,...U}){const Y=Math.min(l,s.length)*7,[X,Z]=useState(w??!0),le=useTheme$3(),oe=j||le.palette?.primary?.main||"var(--bs-primary,#7367AA)",re=j||"#ebe9f1",J=()=>{Z(ue=>!ue)};return jsx(KdpaGrid,{sx:{...U.style,...U.sx,width:"100%"},children:jsxs(KdpaGrid,{xs:12,container:!0,sx:{borderStyle:"solid",borderWidth:"1px",borderColor:re,position:"relative",marginLeft:"0.1rem",marginRight:"0.1rem",borderRadius:"0.357rem !important",borderTopWidth:"0px !important",padding:"1rem 0.1rem","::before":{content:'""',backgroundColor:re,position:"absolute",top:0,right:"2px",width:`calc(${Y===0?"100%":`90% - ${Y}px`})`,height:"0.7px"},"::after":{content:'""',backgroundColor:re,position:"absolute",top:0,right:"2px",width:"20px",height:"0.7px"}},children:[jsx("span",{style:{position:"absolute",top:"-10px",right:"10px",fontSize:"80%",padding:"0 13px",width:`calc(100px + ${Y}px)`},children:jsx(KdpaTooltip,{title:s,children:jsx("span",{children:s.length>l?jsxs(Fragment$1,{children:[s.substring(0,l)," ..."]}):s})})}),x&&jsx(StyledDiv$4,{sx:{position:"absolute",top:"-8px",right:"20px",fontSize:"80%",padding:"0 16px",width:"20px",color:oe},children:jsx("div",{onClick:J,children:X?V||jsx(AiOutlineMinusCircle,{size:18}):W||jsx(AiOutlinePlusCircle,{size:18})})}),jsx(KdpaCollapse$1,{in:x?X:!0,style:{width:"100%"},children:jsx(React__default.Fragment,{children:o})})]})})}function FiTrash2(o){return GenIcon({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"}}]})(o)}function FiUpload(o){return GenIcon({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"}}]})(o)}function KdpaFileUploader({onUpload:o,label:s,multiple:l=!1,...x}){const w=j=>{const V=j.target.files;V&&o(V)};return jsxs("label",{className:"kdpa-file-uploader",htmlFor:"kdpaFileUploader",children:[s&&jsx("span",{className:"kdpa-file-uploader__label",children:s}),jsx(KdpaSecondaryButton,{component:"label",htmlFor:"kdpaFileUploader",sx:{padding:"7px 7px",minWidth:"36px"},children:jsx(FiUpload,{size:20})}),jsx("input",{id:"kdpaFileUploader",type:"file",...x,hidden:!0,multiple:!0,onChange:w})]})}function KdpaFormContainer({style:o,sx:s,children:l,onSubmit:x,loading:w=!1,defaultValues:j,errorHandlingMode:V="onChange"},W){const U=useForm({mode:V,defaultValues:j});return useImperativeHandle(W,()=>({formState:U})),jsx(FormProvider,{...U,children:jsxs("form",{className:"kdpa-form-container",onSubmit:U.handleSubmit(x),style:{...s,...o},children:[l,w&&jsx("div",{className:"kdpa-form-container__loading",children:jsx(CircularProgress$1,{})})]})})}var KdpaFormContainer$1=forwardRef(KdpaFormContainer);function KdpaFormField$2({name:o="",rules:s={},Component:l,...x}){const{control:w}=useFormContext(),{field:j,fieldState:{error:V}}=useController({control:w,name:o,rules:s,shouldUnregister:!0,defaultValue:x?.defaultValue});function W(...U){//! this will change in the future
|
|
559
|
+
*/(function(o,s){var l;function x(j,V){var W=[],U=0;function Y(Z){return W.push(Z),V}function X(){return W[U++]}return{tokenize:function(Z){return Z.replace(j,Y)},detokenize:function(Z){return Z.replace(new RegExp("("+V+")","g"),X)}}}function w(){var j="`TMP`",V="`NOFLIP_SINGLE`",W="`NOFLIP_CLASS`",U="`COMMENT`",Y="[^\\u0020-\\u007e]",X="(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)",Z="(?:[0-9]*\\.[0-9]+|[0-9]+)",le="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",oe="direction\\s*:\\s*",re="[!#$%&*-~]",J=`['"]?\\s*`,ue="(^|[^a-zA-Z])",me="[^\\}]*?",fe="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",xe="\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/",Te="(?:"+X+"|\\\\[^\\r\\n\\f0-9a-f])",ge="(?:[_a-z]|"+Y+"|"+Te+")",Pe="(?:[_a-z0-9-]|"+Y+"|"+Te+")",Se="-?"+ge+Pe+"*",Re=Z+"(?:\\s*"+le+"|"+Se+")?",De="((?:-?"+Re+")|(?:inherit|auto))",Le="((?:margin|padding|border-width)\\s*:\\s*)",_e="((?:-color|border-style)\\s*:\\s*)",Be="(#?"+Pe+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",Fe="(?:"+re+"|"+Y+"|"+Te+")*?",je="(?![a-zA-Z])",ze="(?!("+Pe+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+U+")*?{)",We="(?!"+Fe+J+"\\))",Oe="(?="+Fe+J+"\\))",ke="(\\s*(?:!important\\s*)?[;}])",Ee=/`TMP`/g,Ae=new RegExp(xe,"gi"),Ve=new RegExp("("+fe+ze+"[^;}]+;?)","gi"),Xe=new RegExp("("+fe+me+"})","gi"),nt=new RegExp("("+oe+")ltr","gi"),tt=new RegExp("("+oe+")rtl","gi"),Ye=new RegExp(ue+"(left)"+je+We+ze,"gi"),He=new RegExp(ue+"(right)"+je+We+ze,"gi"),Ge=new RegExp(ue+"(left)"+Oe,"gi"),rt=new RegExp(ue+"(right)"+Oe,"gi"),dt=new RegExp(ue+"(ltr)"+Oe,"gi"),vt=new RegExp(ue+"(rtl)"+Oe,"gi"),yt=new RegExp(ue+"([ns]?)e-resize","gi"),ut=new RegExp(ue+"([ns]?)w-resize","gi"),St=new RegExp(Le+De+"(\\s+)"+De+"(\\s+)"+De+"(\\s+)"+De+ke,"gi"),Nt=new RegExp(_e+Be+"(\\s+)"+Be+"(\\s+)"+Be+"(\\s+)"+Be+ke,"gi"),Bt=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+Re+")","gi"),zt=new RegExp("(background-position-x\\s*:\\s*)(-?"+Z+"%)","gi"),jt=new RegExp("(border-radius\\s*:\\s*)"+De+"(?:(?:\\s+"+De+")(?:\\s+"+De+")?(?:\\s+"+De+")?)?(?:(?:(?:\\s*\\/\\s*)"+De+")(?:\\s+"+De+")?(?:\\s+"+De+")?(?:\\s+"+De+")?)?"+ke,"gi"),$t=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+De,"gi"),Dt=new RegExp("(text-shadow\\s*:\\s*)"+De+"(\\s*)"+Be,"gi"),Mt=new RegExp("(text-shadow\\s*:\\s*)"+Be+"(\\s*)"+De,"gi"),Ot=new RegExp("(text-shadow\\s*:\\s*)"+De,"gi"),Vt=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+De+"(\\s*\\))","gi"),Tn=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+De+"((?:\\s*,\\s*"+De+"){0,2}\\s*\\))","gi");function Zt(zn,qn,Bn){var xn,Yt;return Bn.slice(-1)==="%"&&(xn=Bn.indexOf("."),xn!==-1?(Yt=Bn.length-xn-2,Bn=100-parseFloat(Bn),Bn=Bn.toFixed(Yt)+"%"):Bn=100-parseFloat(Bn)+"%"),qn+Bn}function En(zn){switch(zn.length){case 4:zn=[zn[1],zn[0],zn[3],zn[2]];break;case 3:zn=[zn[1],zn[0],zn[1],zn[2]];break;case 2:zn=[zn[1],zn[0]];break;case 1:zn=[zn[0]];break}return zn.join(" ")}function Sn(zn,qn){var Bn,xn=[].slice.call(arguments),Yt=xn.slice(2,6).filter(function(Jn){return Jn}),Xt=xn.slice(6,10).filter(function(Jn){return Jn}),In=xn[10]||"";return Xt.length?Bn=En(Yt)+" / "+En(Xt):Bn=En(Yt),qn+Bn+In}function Ln(zn){return parseFloat(zn)===0?zn:zn[0]==="-"?zn.slice(1):"-"+zn}function vn(zn,qn,Bn){return qn+Ln(Bn)}function fn(zn,qn,Bn,xn,Yt){return qn+Bn+Ln(xn)+Yt}function Dn(zn,qn,Bn,xn,Yt){return qn+Bn+xn+Ln(Yt)}return{transform:function(zn,qn){var Bn=new x(Ve,V),xn=new x(Xe,W),Yt=new x(Ae,U);return zn=Yt.tokenize(xn.tokenize(Bn.tokenize(zn.replace("`","%60")))),qn.transformDirInUrl&&(zn=zn.replace(dt,"$1"+j).replace(vt,"$1ltr").replace(Ee,"rtl")),qn.transformEdgeInUrl&&(zn=zn.replace(Ge,"$1"+j).replace(rt,"$1left").replace(Ee,"right")),zn=zn.replace(nt,"$1"+j).replace(tt,"$1ltr").replace(Ee,"rtl").replace(Ye,"$1"+j).replace(He,"$1left").replace(Ee,"right").replace(yt,"$1$2"+j).replace(ut,"$1$2e-resize").replace(Ee,"w-resize").replace(jt,Sn).replace($t,vn).replace(Dt,Dn).replace(Mt,Dn).replace(Ot,vn).replace(Vt,fn).replace(Tn,fn).replace(St,"$1$2$3$8$5$6$7$4$9").replace(Nt,"$1$2$3$8$5$6$7$4$9").replace(Bt,Zt).replace(zt,Zt),zn=Bn.detokenize(xn.detokenize(Yt.detokenize(zn))),zn}}}l=new w,o.exports?s.transform=function(j,V,W){var U;return typeof V=="object"?U=V:(U={},typeof V=="boolean"&&(U.transformDirInUrl=V),typeof W=="boolean"&&(U.transformEdgeInUrl=W)),l.transform(j,U)}:typeof window<"u"&&(window.cssjanus=l)})(cssjanus$1,cssjanus$1.exports);var cssjanusExports=cssjanus$1.exports,cssjanus=getDefaultExportFromCjs(cssjanusExports);function stringifyPreserveComments(o,s,l){switch(o.type){case IMPORT:case DECLARATION:case COMMENT:return o.return=o.return||o.value;case RULESET:o.value=Array.isArray(o.props)?o.props.join(","):o.props,Array.isArray(o.children)&&o.children.forEach(function(w){w.type===COMMENT&&(w.children=w.value)})}var x=serialize(Array.prototype.concat(o.children),stringifyPreserveComments);return strlen(x)?o.return=o.value+"{"+x+"}":""}function stylisRTLPlugin(o,s,l,x){if(o.type===KEYFRAMES||o.type===SUPPORTS||o.type===RULESET&&(!o.parent||o.parent.type===MEDIA||o.parent.type===RULESET)){var w=cssjanus.transform(stringifyPreserveComments(o));o.children=w?compile(w)[0].children:[],o.return=""}}Object.defineProperty(stylisRTLPlugin,"name",{value:"stylisRTLPlugin"});function KdpaRtlProvider(o){const s=useMemo$1(()=>createCache({key:"kdpa",stylisPlugins:[prefixer,stylisRTLPlugin],container:o?.container}),[]);return jsx(CacheProvider,{value:s,children:o.children})}const Transition=React__default.forwardRef((o,s)=>jsx(Slide$1,{direction:"up",ref:s,...o}));function KdpaFullScreenDialog({children:o,...s}){return jsx(Dialog$1,{TransitionComponent:Transition,fullScreen:!0,...s,children:o})}function AiOutlineMinusCircle(o){return GenIcon({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"}}]})(o)}function AiOutlinePlusCircle(o){return GenIcon({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"}}]})(o)}const StyledDiv$4=styled$1("div")();function KdpaSegment({children:o,label:s="",maxLength:l=23,expandable:x=!1,defaultOpen:w=!0,color:j,openIcon:V,closeIcon:W,...U}){const Y=Math.min(l,s.length)*7,[X,Z]=useState(w??!0),le=useTheme$3(),oe=j||le.palette?.primary?.main||"var(--bs-primary,#7367AA)",re=j||"#ebe9f1",J=()=>{Z(ue=>!ue)};return jsx(KdpaGrid,{sx:{...U.style,...U.sx,width:"100%"},children:jsxs(KdpaGrid,{xs:12,container:!0,sx:{borderStyle:"solid",borderWidth:"1px",borderColor:re,position:"relative",marginLeft:"0.1rem",marginRight:"0.1rem",borderRadius:"0.357rem !important",borderTopWidth:"0px !important",padding:"1rem 0.1rem","::before":{content:'""',backgroundColor:re,position:"absolute",top:0,right:"2px",width:`calc(${Y===0?"100%":`90% - ${Y}px`})`,height:"0.7px"},"::after":{content:'""',backgroundColor:re,position:"absolute",top:0,right:"2px",width:"20px",height:"0.7px"}},children:[jsx("span",{style:{position:"absolute",top:"-10px",right:"10px",fontSize:"80%",padding:"0 13px",width:`calc(100px + ${Y}px)`},children:jsx(KdpaTooltip,{title:s,children:jsx("span",{children:s.length>l?jsxs(Fragment$1,{children:[s.substring(0,l)," ..."]}):s})})}),x&&jsx(StyledDiv$4,{sx:{position:"absolute",top:"-8px",right:"20px",fontSize:"80%",padding:"0 16px",width:"20px",color:oe},children:jsx("div",{onClick:J,children:X?V||jsx(AiOutlineMinusCircle,{size:18}):W||jsx(AiOutlinePlusCircle,{size:18})})}),jsx(KdpaCollapse$1,{in:x?X:!0,style:{width:"100%"},children:jsx(React__default.Fragment,{children:o})})]})})}function FiFileText(o){return GenIcon({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}},{tag:"polyline",attr:{points:"14 2 14 8 20 8"}},{tag:"line",attr:{x1:"16",y1:"13",x2:"8",y2:"13"}},{tag:"line",attr:{x1:"16",y1:"17",x2:"8",y2:"17"}},{tag:"polyline",attr:{points:"10 9 9 9 8 9"}}]})(o)}function FiTrash2(o){return GenIcon({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"}}]})(o)}function FiUpload(o){return GenIcon({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"}}]})(o)}function KdpaFileUploader({onUpload:o,label:s,multiple:l=!1,...x}){const w=j=>{const V=j.target.files;V&&o(V)};return jsxs("label",{className:"kdpa-file-uploader",htmlFor:"kdpaFileUploader",children:[s&&jsx("span",{className:"kdpa-file-uploader__label",children:s}),jsx(KdpaSecondaryButton,{component:"label",htmlFor:"kdpaFileUploader",sx:{padding:"7px 7px",minWidth:"36px"},children:jsx(FiUpload,{size:20})}),jsx("input",{id:"kdpaFileUploader",type:"file",...x,hidden:!0,multiple:!0,onChange:w})]})}function KdpaFormContainer({style:o,sx:s,children:l,onSubmit:x,loading:w=!1,defaultValues:j,errorHandlingMode:V="onChange"},W){const U=useForm({mode:V,defaultValues:j});return useImperativeHandle(W,()=>({formState:U})),jsx(FormProvider,{...U,children:jsxs("form",{className:"kdpa-form-container",onSubmit:U.handleSubmit(x),style:{...s,...o},children:[l,w&&jsx("div",{className:"kdpa-form-container__loading",children:jsx(CircularProgress$1,{})})]})})}var KdpaFormContainer$1=forwardRef(KdpaFormContainer);function KdpaFormField$2({name:o="",rules:s={},Component:l,...x}){const{control:w}=useFormContext(),{field:j,fieldState:{error:V}}=useController({control:w,name:o,rules:s,shouldUnregister:!0,defaultValue:x?.defaultValue});function W(...U){//! this will change in the future
|
|
560
560
|
x.autoComplete?j.onChange(U[1]):j.onChange(...U),x?.onChange?.(...U)}return jsxs("div",{children:[jsx(l,{...j,...x,onChange:W}),V&&V.message&&jsx("span",{style:{color:"red"},children:V.message})]})}function KdpaDialog({children:o,handleClose:s,open:l,...x}){return jsx(Dialog$1,{open:l,onClose:s,...x,children:o})}function CiFileOn(o){return GenIcon({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"File_On"},child:[{tag:"path",attr:{d:"M19.485,7.35l-4.97-4.86a1.466,1.466,0,0,0-1.05-.43h-6.9a2.5,2.5,0,0,0-2.5,2.5V19.44a2.507,2.507,0,0,0,2.5,2.5h10.87a2.507,2.507,0,0,0,2.5-2.5V8.42A1.49,1.49,0,0,0,19.485,7.35Zm-1.27.15h-2.34a1.5,1.5,0,0,1-1.5-1.5V3.75Zm.72,11.94a1.5,1.5,0,0,1-1.5,1.5H6.565a1.5,1.5,0,0,1-1.5-1.5V4.56a1.5,1.5,0,0,1,1.5-1.5h6.81V6a2.5,2.5,0,0,0,2.5,2.5h3.06Z"}}]}]})(o)}function CircularProgressWithLabel(o){return jsxs(Box3,{sx:{position:"relative",display:"inline-flex"},children:[jsx(CircularProgress$1,{variant:"determinate",...o}),jsx(Box3,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:jsx(Typography$1,{variant:"caption",component:"div",color:"text.secondary",children:`${Math.round(o.value)}%`})})]})}function KdpaUploadingFile({progress:o}){return jsx("div",{className:"kdpa-uploading-file",style:{display:"flex",flexDirection:"column",alignItems:"center"},children:jsx("div",{className:"parent",style:{position:"relative",borderRadius:"8px"},children:jsxs("div",{style:{position:"relative",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:[jsx(CiFileOn,{style:{position:"absolute",height:"100%",width:"100%",opacity:.2}}),jsx(CircularProgressWithLabel,{variant:o===0?"indeterminate":"determinate",value:o})]})})})}function KdpaFormField$1({name:o="",rules:s={},Component:l,...x}){const{control:w,setValue:j}=useFormContext(),{field:V,fieldState:{error:W}}=useController({control:w,name:o,rules:s,shouldUnregister:!0,defaultValue:x?.defaultValue});useEffect(()=>{(x?.defaultValue!==null||x?.defaultValue!==void 0)&&j(o,x?.defaultValue)},[x?.defaultValue]);function U(...Y){V.onChange(...Y),x?.onChange?.(...Y)}return jsxs(Fragment$1,{children:[jsx(l,{...V,...x,error:W,onChange:U}),W&&W.message&&jsx(KdpaTypography,{variant:"caption",sx:{color:"red"},children:W.message})]})}var KdFormField=React__default.memo(KdpaFormField$1);function KdFormContainer({style:o,sx:s,children:l,onSubmit:x,loading:w=!1,submitLoading:j=!1,formState:V}){return jsx(FormProvider,{...V,children:jsxs("form",{noValidate:!0,className:"kdpa-form-container",onSubmit:W=>(W&&(typeof W.preventDefault=="function"&&W.preventDefault(),typeof W.stopPropagation=="function"&&W.stopPropagation()),V?.handleSubmit(async U=>{x?.(U)})(W)),style:{...s,...o},children:[w?jsx(CircularProgress$1,{}):l,j&&jsx("div",{className:"kdpa-form-container__loading",children:jsx(CircularProgress$1,{})})]})})}var KdFormContainer$1=React__default.memo(KdFormContainer);function KdDropDownField({name:o="",rules:s={},options:l,multiple:x=!1,defaultValue:w,valueField:j,labelField:V,loading:W=!1,getOptionValue:U,getOptionImage:Y,basePathImages:X,imageSize:Z="md",disableSearchable:le,...oe}){const{control:re,setValue:J,getValues:ue}=useFormContext(),me=useMemo$1(()=>{if(!w)return x?[]:null;if(x)if(j&&V){const ge=w[j],Pe=w[V];return!Pe||!ge?[]:ge?.map((Re,De)=>{const Le={[V]:Pe[De],[j]:Re};return j==="EnumTitle"&&(Le.id=Re),Le})}else return[];else return w},[]),{field:fe,fieldState:{error:xe}}=useController({control:re,name:o,rules:s,shouldUnregister:!0,defaultValue:me});useEffect(()=>{w&&J(o,me)},[me]);function Te(...ge){fe.onChange(ge[1]),oe?.onChange?.(ge[1])}return jsxs(Fragment$1,{children:[jsx(KdpaAutoComplete,{...fe,...oe,getOptionKey:U,defaultValue:me,multiple:x,options:l,renderOption:Y?(ge,Pe)=>{const Se=Y(Pe);return createElement("div",{...ge,key:U?.(Pe),style:{padding:"10px",cursor:"pointer",display:"flex",flexDirection:"row",gap:"8px"}},jsx("img",{src:(X?.basePathStream??"")+Se,style:{maxWidth:Z==="lg"?"100px":Z==="md"?"75px":"50px"}}),oe.getOptionLabel?.(Pe))}:void 0,onChange:Te,renderInput:ge=>createElement(KdpaInput,{...ge,size:"small",key:oe?.key,placeholder:oe?.placeholder,variant:oe?.variant,label:oe.label,autoComplete:oe.autoComplete,error:!!xe,required:!!oe?.required,helperText:xe?void 0:oe?.helperText,inputProps:{...ge.inputProps,readOnly:le?!0:ge.inputProps?.readOnly},InputProps:{...ge.InputProps,...oe?.InputProps,endAdornment:jsxs(Fragment$1,{children:[W?jsx(CircularProgress$1,{color:"inherit",size:20}):null,ge.InputProps.endAdornment]})}})}),xe&&xe.message&&jsx(KdpaTypography,{variant:"caption",sx:{color:"red"},children:xe.message})]})}function KdLazyDropDownField({onScrollEnd:o,onSearch:s,limitCharacterSearch:l=3,delaySearch:x=700,...w}){let j,V;function W(Z,le,oe){clearTimeout(j),clearTimeout(V),le.length===0&&(V=setTimeout(()=>{s&&s(le)},350)),le.length>=l&&(j=setTimeout(()=>{s&&s(le)},x))}const U=useRef(null),Y=useRef(0),X=Z=>{const le=Z.target;Y.current!==le.scrollTop&&(Y.current=le.scrollTop,le.scrollTop+le.clientHeight===le.scrollHeight&&!w?.loading&&o&&o())};return useEffect(()=>{U.current&&(U.current.scrollTop=Y.current)},[w?.options]),jsx(KdDropDownField,{...w,onInputChange:W,ListboxComponent:Z=>jsx("ul",{onScroll:X,ref:le=>{U.current=le},...Z,style:{maxHeight:"200px"},children:Z.children})})}function KdpaFormField({name:o="",rules:s={},options:l,multiple:x=!1,defaultValueKey:w="",defaultValue:j="",...V}){const{control:W}=useFormContext(),U=useMemo$1(()=>x&&Array.isArray(j)?l?.filter(le=>j.includes(le[w])):l?.find(le=>le[w]===j),[l,j]),{field:Y,fieldState:{error:X}}=useController({control:W,name:o,rules:s,shouldUnregister:!0,defaultValue:U});function Z(...le){Y.onChange(le[1]),V?.onChange?.(le[1])}return jsxs(Fragment$1,{children:[jsx(KdSearchableInput,{...Y,...V,error:!!X,multiple:x,options:l,onChange:Z}),X&&X.message&&jsx(KdpaTypography,{variant:"caption",sx:{color:"red"},children:X.message})]})}const useTreeFieldHelper=()=>{const o=({data:x,getOptionLabel:w=U=>U.label,getOptionIcon:j=U=>U.icon,getOptionValue:V=U=>U.value,getOptionParent:W=U=>U.parent})=>{const U=[];return x?.forEach(Y=>{V(Y)&&U.push({value:V(Y),label:jsxs(Fragment$1,{children:[j(Y),w(Y)]}),parent:W(Y)})}),U},s=(x=[],w)=>{const j=[];for(const V of x){const W=V;if(!w&&!W?.parent||W?.parent===w){const U=s(x,W.value);U.length>0&&(W.children=U),j.push(W)}}return j},l=(x,w)=>{const j=[];if(!w)return[];const V=x.find(W=>W.value===w);return V&&(j.push(V.value),j.push(...l(x,V.parent))),j};return{renderTreeToSpecificFieldName:o,buildTree:s,findAllExpanded:l}};function KdTreeField({data:o,defaultValue:s=[],onExpand:l,multiSelect:x=!0,getOptionValue:w,getOptionIcon:j,getOptionLabel:V,getOptionParent:W,noDataText:U="no data",...Y}){const X=useTheme$1(),{buildTree:Z,renderTreeToSpecificFieldName:le,findAllExpanded:oe}=useTreeFieldHelper(),re=le({data:o,getOptionLabel:V,getOptionIcon:j,getOptionValue:w,getOptionParent:W}),J=Z(re),[ue,me]=useState([]),[fe,xe]=useState([J?.[0]?.value]);useEffect(()=>{if(s)if(typeof s=="string")xe(oe(re,s)),me([s]);else{const Pe=[];s.forEach(Se=>{Pe.push(...oe(re,Se))}),xe(Pe),me([...s])}},[]),useEffect(()=>{Y?.onChange&&(x?Y.onChange(ue):Y.onChange(ue[0]))},[ue]);function Te(Pe,Se){if(x)me(Pe);else if(Se.isLeaf){const Re=!!ue.find(De=>De===Se.value);me(Re?[]:[Se.value])}}function ge(Pe,Se){l&&l(Pe,Se),xe(Pe)}return jsx("div",{className:"KdTreeField",children:J?.length>0?jsx(CheckboxTree,{...Y,icons:{leaf:jsx("span",{}),parentOpen:jsx("span",{}),parentClose:jsx("span",{}),check:jsx(MdCheckBox,{size:24,color:X?.palette?.primary?.main}),expandOpen:jsx(MdKeyboardArrowDown,{size:24}),uncheck:jsx(MdCheckBoxOutlineBlank,{size:24}),expandClose:jsx(MdKeyboardArrowLeft,{size:24}),halfCheck:jsx(MdIndeterminateCheckBox,{color:X?.palette?.primary?.main,size:24})},nodes:J,onCheck:Te,checked:ue,expanded:fe,onExpand:ge,showNodeIcon:!0}):jsx("div",{style:{width:"100%",textAlign:"center"},children:U})})}function KdTagBoxInput({name:o="",rules:s={},options:l,getOptionValue:x=W=>W.value,defaultValue:w,split:j,...V}){const{control:W,setValue:U}=useFormContext(),Y=useMemo$1(()=>w||null,[w]);useEffect(()=>{U(o,Y)},[Y]);const{field:X,fieldState:{error:Z}}=useController({control:W,name:o,rules:s,shouldUnregister:!0,defaultValue:Y});function le(...oe){j&&j?.length>0?(X.onChange(oe[1]?.join(j)),V?.onChange?.(oe[1]?.join(j))):(X.onChange(oe[1]),V?.onChange?.(oe[1]))}return jsxs(Fragment$1,{children:[jsx(KdpaAutoComplete,{...X,...V,value:j&&j?.length>0&&X?.value?X?.value?.split(j):[],error:!!Z,multiple:!0,freeSolo:!0,options:l?.map(oe=>x(oe))??[],onChange:le}),Z&&Z.message&&jsx(KdpaTypography,{variant:"caption",sx:{color:"red"},children:Z.message})]})}var purify={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(o,s){(function(l,x){o.exports=x()})(commonjsGlobal,function(){const{entries:l,setPrototypeOf:x,isFrozen:w,getPrototypeOf:j,getOwnPropertyDescriptor:V}=Object;let{freeze:W,seal:U,create:Y}=Object,{apply:X,construct:Z}=typeof Reflect<"u"&&Reflect;W||(W=function(Mt){return Mt}),U||(U=function(Mt){return Mt}),X||(X=function(Mt,Ot,Vt){return Mt.apply(Ot,Vt)}),Z||(Z=function(Mt,Ot){return new Mt(...Ot)});const le=Re(Array.prototype.forEach),oe=Re(Array.prototype.pop),re=Re(Array.prototype.push),J=Re(String.prototype.toLowerCase),ue=Re(String.prototype.toString),me=Re(String.prototype.match),fe=Re(String.prototype.replace),xe=Re(String.prototype.indexOf),Te=Re(String.prototype.trim),ge=Re(Object.prototype.hasOwnProperty),Pe=Re(RegExp.prototype.test),Se=De(TypeError);function Re(Dt){return function(Mt){for(var Ot=arguments.length,Vt=new Array(Ot>1?Ot-1:0),Tn=1;Tn<Ot;Tn++)Vt[Tn-1]=arguments[Tn];return X(Dt,Mt,Vt)}}function De(Dt){return function(){for(var Mt=arguments.length,Ot=new Array(Mt),Vt=0;Vt<Mt;Vt++)Ot[Vt]=arguments[Vt];return Z(Dt,Ot)}}function Le(Dt,Mt){let Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:J;x&&x(Dt,null);let Vt=Mt.length;for(;Vt--;){let Tn=Mt[Vt];if(typeof Tn=="string"){const Zt=Ot(Tn);Zt!==Tn&&(w(Mt)||(Mt[Vt]=Zt),Tn=Zt)}Dt[Tn]=!0}return Dt}function _e(Dt){for(let Mt=0;Mt<Dt.length;Mt++)ge(Dt,Mt)||(Dt[Mt]=null);return Dt}function Be(Dt){const Mt=Y(null);for(const[Ot,Vt]of l(Dt))ge(Dt,Ot)&&(Array.isArray(Vt)?Mt[Ot]=_e(Vt):Vt&&typeof Vt=="object"&&Vt.constructor===Object?Mt[Ot]=Be(Vt):Mt[Ot]=Vt);return Mt}function Fe(Dt,Mt){for(;Dt!==null;){const Vt=V(Dt,Mt);if(Vt){if(Vt.get)return Re(Vt.get);if(typeof Vt.value=="function")return Re(Vt.value)}Dt=j(Dt)}function Ot(){return null}return Ot}const je=W(["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"]),ze=W(["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"]),We=W(["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"]),Oe=W(["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"]),ke=W(["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"]),Ee=W(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ae=W(["#text"]),Ve=W(["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"]),Xe=W(["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"]),nt=W(["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"]),tt=W(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ye=U(/\{\{[\w\W]*|[\w\W]*\}\}/gm),He=U(/<%[\w\W]*|[\w\W]*%>/gm),Ge=U(/\${[\w\W]*}/gm),rt=U(/^data-[\-\w.\u00B7-\uFFFF]/),dt=U(/^aria-[\-\w]+$/),vt=U(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yt=U(/^(?:\w+script|data):/i),ut=U(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),St=U(/^html$/i);var Nt=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ye,ERB_EXPR:He,TMPLIT_EXPR:Ge,DATA_ATTR:rt,ARIA_ATTR:dt,IS_ALLOWED_URI:vt,IS_SCRIPT_OR_DATA:yt,ATTR_WHITESPACE:ut,DOCTYPE_NAME:St});const Bt=function(){return typeof window>"u"?null:window},zt=function(Mt,Ot){if(typeof Mt!="object"||typeof Mt.createPolicy!="function")return null;let Vt=null;const Tn="data-tt-policy-suffix";Ot&&Ot.hasAttribute(Tn)&&(Vt=Ot.getAttribute(Tn));const Zt="dompurify"+(Vt?"#"+Vt:"");try{return Mt.createPolicy(Zt,{createHTML(En){return En},createScriptURL(En){return En}})}catch{return console.warn("TrustedTypes policy "+Zt+" could not be created."),null}};function jt(){let Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bt();const Mt=rn=>jt(rn);if(Mt.version="3.0.9",Mt.removed=[],!Dt||!Dt.document||Dt.document.nodeType!==9)return Mt.isSupported=!1,Mt;let{document:Ot}=Dt;const Vt=Ot,Tn=Vt.currentScript,{DocumentFragment:Zt,HTMLTemplateElement:En,Node:Sn,Element:Ln,NodeFilter:vn,NamedNodeMap:fn=Dt.NamedNodeMap||Dt.MozNamedAttrMap,HTMLFormElement:Dn,DOMParser:zn,trustedTypes:qn}=Dt,Bn=Ln.prototype,xn=Fe(Bn,"cloneNode"),Yt=Fe(Bn,"nextSibling"),Xt=Fe(Bn,"childNodes"),In=Fe(Bn,"parentNode");if(typeof En=="function"){const rn=Ot.createElement("template");rn.content&&rn.content.ownerDocument&&(Ot=rn.content.ownerDocument)}let Jn,vr="";const{implementation:wr,createNodeIterator:Dr,createDocumentFragment:Fr,getElementsByTagName:Gr}=Ot,{importNode:_n}=Vt;let qt={};Mt.isSupported=typeof l=="function"&&typeof In=="function"&&wr&&wr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Wn,ERB_EXPR:An,TMPLIT_EXPR:Zn,DATA_ATTR:kr,ARIA_ATTR:lr,IS_SCRIPT_OR_DATA:wn,ATTR_WHITESPACE:dn}=Nt;let{IS_ALLOWED_URI:On}=Nt,Yn=null;const er=Le({},[...je,...ze,...We,...ke,...Ae]);let dr=null;const Jr=Le({},[...Ve,...Xe,...nt,...tt]);let Hr=Object.seal(Y(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}})),qr=null,jr=null,Qn=!0,pn=!0,jn=!1,gr=!0,$r=!1,Sr=!1,Et=!1,G=!1,K=!1,ae=!1,pe=!1,ye=!0,we=!1;const Ce="user-content-";let $e=!0,Ne=!1,Ue={},qe=null;const Ke=Le({},["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 at=null;const ft=Le({},["audio","video","img","source","image","track"]);let bt=null;const Ct=Le({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),It="http://www.w3.org/1998/Math/MathML",Wt="http://www.w3.org/2000/svg",Me="http://www.w3.org/1999/xhtml";let Je=Me,ht=!1,Rt=null;const Ft=Le({},[It,Wt,Me],ue);let Kt=null;const Cn=["application/xhtml+xml","text/html"],Rn="text/html";let Gn=null,pr=null;const ir=Ot.createElement("form"),Mr=function(Lt){return Lt instanceof RegExp||Lt instanceof Function},zr=function(){let Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(pr&&pr===Lt)){if((!Lt||typeof Lt!="object")&&(Lt={}),Lt=Be(Lt),Kt=Cn.indexOf(Lt.PARSER_MEDIA_TYPE)===-1?Rn:Lt.PARSER_MEDIA_TYPE,Gn=Kt==="application/xhtml+xml"?ue:J,Yn=ge(Lt,"ALLOWED_TAGS")?Le({},Lt.ALLOWED_TAGS,Gn):er,dr=ge(Lt,"ALLOWED_ATTR")?Le({},Lt.ALLOWED_ATTR,Gn):Jr,Rt=ge(Lt,"ALLOWED_NAMESPACES")?Le({},Lt.ALLOWED_NAMESPACES,ue):Ft,bt=ge(Lt,"ADD_URI_SAFE_ATTR")?Le(Be(Ct),Lt.ADD_URI_SAFE_ATTR,Gn):Ct,at=ge(Lt,"ADD_DATA_URI_TAGS")?Le(Be(ft),Lt.ADD_DATA_URI_TAGS,Gn):ft,qe=ge(Lt,"FORBID_CONTENTS")?Le({},Lt.FORBID_CONTENTS,Gn):Ke,qr=ge(Lt,"FORBID_TAGS")?Le({},Lt.FORBID_TAGS,Gn):{},jr=ge(Lt,"FORBID_ATTR")?Le({},Lt.FORBID_ATTR,Gn):{},Ue=ge(Lt,"USE_PROFILES")?Lt.USE_PROFILES:!1,Qn=Lt.ALLOW_ARIA_ATTR!==!1,pn=Lt.ALLOW_DATA_ATTR!==!1,jn=Lt.ALLOW_UNKNOWN_PROTOCOLS||!1,gr=Lt.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$r=Lt.SAFE_FOR_TEMPLATES||!1,Sr=Lt.WHOLE_DOCUMENT||!1,K=Lt.RETURN_DOM||!1,ae=Lt.RETURN_DOM_FRAGMENT||!1,pe=Lt.RETURN_TRUSTED_TYPE||!1,G=Lt.FORCE_BODY||!1,ye=Lt.SANITIZE_DOM!==!1,we=Lt.SANITIZE_NAMED_PROPS||!1,$e=Lt.KEEP_CONTENT!==!1,Ne=Lt.IN_PLACE||!1,On=Lt.ALLOWED_URI_REGEXP||vt,Je=Lt.NAMESPACE||Me,Hr=Lt.CUSTOM_ELEMENT_HANDLING||{},Lt.CUSTOM_ELEMENT_HANDLING&&Mr(Lt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Hr.tagNameCheck=Lt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Lt.CUSTOM_ELEMENT_HANDLING&&Mr(Lt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Hr.attributeNameCheck=Lt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Lt.CUSTOM_ELEMENT_HANDLING&&typeof Lt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Hr.allowCustomizedBuiltInElements=Lt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$r&&(pn=!1),ae&&(K=!0),Ue&&(Yn=Le({},Ae),dr=[],Ue.html===!0&&(Le(Yn,je),Le(dr,Ve)),Ue.svg===!0&&(Le(Yn,ze),Le(dr,Xe),Le(dr,tt)),Ue.svgFilters===!0&&(Le(Yn,We),Le(dr,Xe),Le(dr,tt)),Ue.mathMl===!0&&(Le(Yn,ke),Le(dr,nt),Le(dr,tt))),Lt.ADD_TAGS&&(Yn===er&&(Yn=Be(Yn)),Le(Yn,Lt.ADD_TAGS,Gn)),Lt.ADD_ATTR&&(dr===Jr&&(dr=Be(dr)),Le(dr,Lt.ADD_ATTR,Gn)),Lt.ADD_URI_SAFE_ATTR&&Le(bt,Lt.ADD_URI_SAFE_ATTR,Gn),Lt.FORBID_CONTENTS&&(qe===Ke&&(qe=Be(qe)),Le(qe,Lt.FORBID_CONTENTS,Gn)),$e&&(Yn["#text"]=!0),Sr&&Le(Yn,["html","head","body"]),Yn.table&&(Le(Yn,["tbody"]),delete qr.tbody),Lt.TRUSTED_TYPES_POLICY){if(typeof Lt.TRUSTED_TYPES_POLICY.createHTML!="function")throw Se('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Lt.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Se('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Jn=Lt.TRUSTED_TYPES_POLICY,vr=Jn.createHTML("")}else Jn===void 0&&(Jn=zt(qn,Tn)),Jn!==null&&typeof vr=="string"&&(vr=Jn.createHTML(""));W&&W(Lt),pr=Lt}},Vr=Le({},["mi","mo","mn","ms","mtext"]),Lr=Le({},["foreignobject","desc","title","annotation-xml"]),Mo=Le({},["title","style","font","a","script"]),Co=Le({},[...ze,...We,...Oe]),Vo=Le({},[...ke,...Ee]),Yo=function(Lt){let cn=In(Lt);(!cn||!cn.tagName)&&(cn={namespaceURI:Je,tagName:"template"});const yn=J(Lt.tagName),Fn=J(cn.tagName);return Rt[Lt.namespaceURI]?Lt.namespaceURI===Wt?cn.namespaceURI===Me?yn==="svg":cn.namespaceURI===It?yn==="svg"&&(Fn==="annotation-xml"||Vr[Fn]):!!Co[yn]:Lt.namespaceURI===It?cn.namespaceURI===Me?yn==="math":cn.namespaceURI===Wt?yn==="math"&&Lr[Fn]:!!Vo[yn]:Lt.namespaceURI===Me?cn.namespaceURI===Wt&&!Lr[Fn]||cn.namespaceURI===It&&!Vr[Fn]?!1:!Vo[yn]&&(Mo[yn]||!Co[yn]):!!(Kt==="application/xhtml+xml"&&Rt[Lt.namespaceURI]):!1},la=function(Lt){re(Mt.removed,{element:Lt});try{Lt.parentNode.removeChild(Lt)}catch{Lt.remove()}},ya=function(Lt,cn){try{re(Mt.removed,{attribute:cn.getAttributeNode(Lt),from:cn})}catch{re(Mt.removed,{attribute:null,from:cn})}if(cn.removeAttribute(Lt),Lt==="is"&&!dr[Lt])if(K||ae)try{la(cn)}catch{}else try{cn.setAttribute(Lt,"")}catch{}},Va=function(Lt){let cn=null,yn=null;if(G)Lt="<remove></remove>"+Lt;else{const Pn=me(Lt,/^[\r\n\t ]+/);yn=Pn&&Pn[0]}Kt==="application/xhtml+xml"&&Je===Me&&(Lt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Lt+"</body></html>");const Fn=Jn?Jn.createHTML(Lt):Lt;if(Je===Me)try{cn=new zn().parseFromString(Fn,Kt)}catch{}if(!cn||!cn.documentElement){cn=wr.createDocument(Je,"template",null);try{cn.documentElement.innerHTML=ht?vr:Fn}catch{}}const Nn=cn.body||cn.documentElement;return Lt&&yn&&Nn.insertBefore(Ot.createTextNode(yn),Nn.childNodes[0]||null),Je===Me?Gr.call(cn,Sr?"html":"body")[0]:Sr?cn.documentElement:Nn},Ha=function(Lt){return Dr.call(Lt.ownerDocument||Lt,Lt,vn.SHOW_ELEMENT|vn.SHOW_COMMENT|vn.SHOW_TEXT,null)},_a=function(Lt){return Lt instanceof Dn&&(typeof Lt.nodeName!="string"||typeof Lt.textContent!="string"||typeof Lt.removeChild!="function"||!(Lt.attributes instanceof fn)||typeof Lt.removeAttribute!="function"||typeof Lt.setAttribute!="function"||typeof Lt.namespaceURI!="string"||typeof Lt.insertBefore!="function"||typeof Lt.hasChildNodes!="function")},Aa=function(Lt){return typeof Sn=="function"&&Lt instanceof Sn},Xr=function(Lt,cn,yn){qt[Lt]&&le(qt[Lt],Fn=>{Fn.call(Mt,cn,yn,pr)})},Oo=function(Lt){let cn=null;if(Xr("beforeSanitizeElements",Lt,null),_a(Lt))return la(Lt),!0;const yn=Gn(Lt.nodeName);if(Xr("uponSanitizeElement",Lt,{tagName:yn,allowedTags:Yn}),Lt.hasChildNodes()&&!Aa(Lt.firstElementChild)&&Pe(/<[/\w]/g,Lt.innerHTML)&&Pe(/<[/\w]/g,Lt.textContent))return la(Lt),!0;if(!Yn[yn]||qr[yn]){if(!qr[yn]&&Ia(yn)&&(Hr.tagNameCheck instanceof RegExp&&Pe(Hr.tagNameCheck,yn)||Hr.tagNameCheck instanceof Function&&Hr.tagNameCheck(yn)))return!1;if($e&&!qe[yn]){const Fn=In(Lt)||Lt.parentNode,Nn=Xt(Lt)||Lt.childNodes;if(Nn&&Fn){const Pn=Nn.length;for(let Vn=Pn-1;Vn>=0;--Vn)Fn.insertBefore(xn(Nn[Vn],!0),Yt(Lt))}}return la(Lt),!0}return Lt instanceof Ln&&!Yo(Lt)||(yn==="noscript"||yn==="noembed"||yn==="noframes")&&Pe(/<\/no(script|embed|frames)/i,Lt.innerHTML)?(la(Lt),!0):($r&&Lt.nodeType===3&&(cn=Lt.textContent,le([Wn,An,Zn],Fn=>{cn=fe(cn,Fn," ")}),Lt.textContent!==cn&&(re(Mt.removed,{element:Lt.cloneNode()}),Lt.textContent=cn)),Xr("afterSanitizeElements",Lt,null),!1)},Ea=function(Lt,cn,yn){if(ye&&(cn==="id"||cn==="name")&&(yn in Ot||yn in ir))return!1;if(!(pn&&!jr[cn]&&Pe(kr,cn))){if(!(Qn&&Pe(lr,cn))){if(!dr[cn]||jr[cn]){if(!(Ia(Lt)&&(Hr.tagNameCheck instanceof RegExp&&Pe(Hr.tagNameCheck,Lt)||Hr.tagNameCheck instanceof Function&&Hr.tagNameCheck(Lt))&&(Hr.attributeNameCheck instanceof RegExp&&Pe(Hr.attributeNameCheck,cn)||Hr.attributeNameCheck instanceof Function&&Hr.attributeNameCheck(cn))||cn==="is"&&Hr.allowCustomizedBuiltInElements&&(Hr.tagNameCheck instanceof RegExp&&Pe(Hr.tagNameCheck,yn)||Hr.tagNameCheck instanceof Function&&Hr.tagNameCheck(yn))))return!1}else if(!bt[cn]){if(!Pe(On,fe(yn,dn,""))){if(!((cn==="src"||cn==="xlink:href"||cn==="href")&&Lt!=="script"&&xe(yn,"data:")===0&&at[Lt])){if(!(jn&&!Pe(wn,fe(yn,dn,"")))){if(yn)return!1}}}}}}return!0},Ia=function(Lt){return Lt!=="annotation-xml"&&Lt.indexOf("-")>0},Tt=function(Lt){Xr("beforeSanitizeAttributes",Lt,null);const{attributes:cn}=Lt;if(!cn)return;const yn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:dr};let Fn=cn.length;for(;Fn--;){const Nn=cn[Fn],{name:Pn,namespaceURI:Vn,value:Un}=Nn,Cr=Gn(Pn);let yr=Pn==="value"?Un:Te(Un);if(yn.attrName=Cr,yn.attrValue=yr,yn.keepAttr=!0,yn.forceKeepAttr=void 0,Xr("uponSanitizeAttribute",Lt,yn),yr=yn.attrValue,yn.forceKeepAttr||(ya(Pn,Lt),!yn.keepAttr))continue;if(!gr&&Pe(/\/>/i,yr)){ya(Pn,Lt);continue}$r&&le([Wn,An,Zn],Nr=>{yr=fe(yr,Nr," ")});const Pr=Gn(Lt.nodeName);if(Ea(Pr,Cr,yr)){if(we&&(Cr==="id"||Cr==="name")&&(ya(Pn,Lt),yr=Ce+yr),Jn&&typeof qn=="object"&&typeof qn.getAttributeType=="function"&&!Vn)switch(qn.getAttributeType(Pr,Cr)){case"TrustedHTML":{yr=Jn.createHTML(yr);break}case"TrustedScriptURL":{yr=Jn.createScriptURL(yr);break}}try{Vn?Lt.setAttributeNS(Vn,Pn,yr):Lt.setAttribute(Pn,yr),oe(Mt.removed)}catch{}}}Xr("afterSanitizeAttributes",Lt,null)},Ht=function rn(Lt){let cn=null;const yn=Ha(Lt);for(Xr("beforeSanitizeShadowDOM",Lt,null);cn=yn.nextNode();)Xr("uponSanitizeShadowNode",cn,null),!Oo(cn)&&(cn.content instanceof Zt&&rn(cn.content),Tt(cn));Xr("afterSanitizeShadowDOM",Lt,null)};return Mt.sanitize=function(rn){let Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},cn=null,yn=null,Fn=null,Nn=null;if(ht=!rn,ht&&(rn="<!-->"),typeof rn!="string"&&!Aa(rn))if(typeof rn.toString=="function"){if(rn=rn.toString(),typeof rn!="string")throw Se("dirty is not a string, aborting")}else throw Se("toString is not a function");if(!Mt.isSupported)return rn;if(Et||zr(Lt),Mt.removed=[],typeof rn=="string"&&(Ne=!1),Ne){if(rn.nodeName){const Un=Gn(rn.nodeName);if(!Yn[Un]||qr[Un])throw Se("root node is forbidden and cannot be sanitized in-place")}}else if(rn instanceof Sn)cn=Va("<!---->"),yn=cn.ownerDocument.importNode(rn,!0),yn.nodeType===1&&yn.nodeName==="BODY"||yn.nodeName==="HTML"?cn=yn:cn.appendChild(yn);else{if(!K&&!$r&&!Sr&&rn.indexOf("<")===-1)return Jn&&pe?Jn.createHTML(rn):rn;if(cn=Va(rn),!cn)return K?null:pe?vr:""}cn&&G&&la(cn.firstChild);const Pn=Ha(Ne?rn:cn);for(;Fn=Pn.nextNode();)Oo(Fn)||(Fn.content instanceof Zt&&Ht(Fn.content),Tt(Fn));if(Ne)return rn;if(K){if(ae)for(Nn=Fr.call(cn.ownerDocument);cn.firstChild;)Nn.appendChild(cn.firstChild);else Nn=cn;return(dr.shadowroot||dr.shadowrootmode)&&(Nn=_n.call(Vt,Nn,!0)),Nn}let Vn=Sr?cn.outerHTML:cn.innerHTML;return Sr&&Yn["!doctype"]&&cn.ownerDocument&&cn.ownerDocument.doctype&&cn.ownerDocument.doctype.name&&Pe(St,cn.ownerDocument.doctype.name)&&(Vn="<!DOCTYPE "+cn.ownerDocument.doctype.name+`>
|
|
561
561
|
`+Vn),$r&&le([Wn,An,Zn],Un=>{Vn=fe(Vn,Un," ")}),Jn&&pe?Jn.createHTML(Vn):Vn},Mt.setConfig=function(){let rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zr(rn),Et=!0},Mt.clearConfig=function(){pr=null,Et=!1},Mt.isValidAttribute=function(rn,Lt,cn){pr||zr({});const yn=Gn(rn),Fn=Gn(Lt);return Ea(yn,Fn,cn)},Mt.addHook=function(rn,Lt){typeof Lt=="function"&&(qt[rn]=qt[rn]||[],re(qt[rn],Lt))},Mt.removeHook=function(rn){if(qt[rn])return oe(qt[rn])},Mt.removeHooks=function(rn){qt[rn]&&(qt[rn]=[])},Mt.removeAllHooks=function(){qt={}},Mt}var $t=jt();return $t})})(purify);var purifyExports=purify.exports,DOMPurify=getDefaultExportFromCjs(purifyExports),he$2={exports:{}};/*! https://mths.be/he v1.2.0 by @mathias | MIT license */he$2.exports,function(o,s){(function(l){var x=s,w=o&&o.exports==x&&o,j=typeof commonjsGlobal=="object"&&commonjsGlobal;(j.global===j||j.window===j)&&(l=j);var V=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,W=/[\x01-\x7F]/g,U=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Y=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,X={"\xAD":"shy","\u200C":"zwnj","\u200D":"zwj","\u200E":"lrm","\u2063":"ic","\u2062":"it","\u2061":"af","\u200F":"rlm","\u200B":"ZeroWidthSpace","\u2060":"NoBreak","\u0311":"DownBreve","\u20DB":"tdot","\u20DC":"DotDot"," ":"Tab","\n":"NewLine","\u2008":"puncsp","\u205F":"MediumSpace","\u2009":"thinsp","\u200A":"hairsp","\u2004":"emsp13","\u2002":"ensp","\u2005":"emsp14","\u2003":"emsp","\u2007":"numsp","\xA0":"nbsp","\u205F\u200A":"ThickSpace","\u203E":"oline",_:"lowbar","\u2010":"dash","\u2013":"ndash","\u2014":"mdash","\u2015":"horbar",",":"comma",";":"semi","\u204F":"bsemi",":":"colon","\u2A74":"Colone","!":"excl","\xA1":"iexcl","?":"quest","\xBF":"iquest",".":"period","\u2025":"nldr","\u2026":"mldr","\xB7":"middot","'":"apos","\u2018":"lsquo","\u2019":"rsquo","\u201A":"sbquo","\u2039":"lsaquo","\u203A":"rsaquo",'"':"quot","\u201C":"ldquo","\u201D":"rdquo","\u201E":"bdquo","\xAB":"laquo","\xBB":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","\u2308":"lceil","\u2309":"rceil","\u230A":"lfloor","\u230B":"rfloor","\u2985":"lopar","\u2986":"ropar","\u298B":"lbrke","\u298C":"rbrke","\u298D":"lbrkslu","\u298E":"rbrksld","\u298F":"lbrksld","\u2990":"rbrkslu","\u2991":"langd","\u2992":"rangd","\u2993":"lparlt","\u2994":"rpargt","\u2995":"gtlPar","\u2996":"ltrPar","\u27E6":"lobrk","\u27E7":"robrk","\u27E8":"lang","\u27E9":"rang","\u27EA":"Lang","\u27EB":"Rang","\u27EC":"loang","\u27ED":"roang","\u2772":"lbbrk","\u2773":"rbbrk","\u2016":"Vert","\xA7":"sect","\xB6":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","\u2030":"permil","\u2031":"pertenk","\u2020":"dagger","\u2021":"Dagger","\u2022":"bull","\u2043":"hybull","\u2032":"prime","\u2033":"Prime","\u2034":"tprime","\u2057":"qprime","\u2035":"bprime","\u2041":"caret","`":"grave","\xB4":"acute","\u02DC":"tilde","^":"Hat","\xAF":"macr","\u02D8":"breve","\u02D9":"dot","\xA8":"die","\u02DA":"ring","\u02DD":"dblac","\xB8":"cedil","\u02DB":"ogon","\u02C6":"circ","\u02C7":"caron","\xB0":"deg","\xA9":"copy","\xAE":"reg","\u2117":"copysr","\u2118":"wp","\u211E":"rx","\u2127":"mho","\u2129":"iiota","\u2190":"larr","\u219A":"nlarr","\u2192":"rarr","\u219B":"nrarr","\u2191":"uarr","\u2193":"darr","\u2194":"harr","\u21AE":"nharr","\u2195":"varr","\u2196":"nwarr","\u2197":"nearr","\u2198":"searr","\u2199":"swarr","\u219D":"rarrw","\u219D\u0338":"nrarrw","\u219E":"Larr","\u219F":"Uarr","\u21A0":"Rarr","\u21A1":"Darr","\u21A2":"larrtl","\u21A3":"rarrtl","\u21A4":"mapstoleft","\u21A5":"mapstoup","\u21A6":"map","\u21A7":"mapstodown","\u21A9":"larrhk","\u21AA":"rarrhk","\u21AB":"larrlp","\u21AC":"rarrlp","\u21AD":"harrw","\u21B0":"lsh","\u21B1":"rsh","\u21B2":"ldsh","\u21B3":"rdsh","\u21B5":"crarr","\u21B6":"cularr","\u21B7":"curarr","\u21BA":"olarr","\u21BB":"orarr","\u21BC":"lharu","\u21BD":"lhard","\u21BE":"uharr","\u21BF":"uharl","\u21C0":"rharu","\u21C1":"rhard","\u21C2":"dharr","\u21C3":"dharl","\u21C4":"rlarr","\u21C5":"udarr","\u21C6":"lrarr","\u21C7":"llarr","\u21C8":"uuarr","\u21C9":"rrarr","\u21CA":"ddarr","\u21CB":"lrhar","\u21CC":"rlhar","\u21D0":"lArr","\u21CD":"nlArr","\u21D1":"uArr","\u21D2":"rArr","\u21CF":"nrArr","\u21D3":"dArr","\u21D4":"iff","\u21CE":"nhArr","\u21D5":"vArr","\u21D6":"nwArr","\u21D7":"neArr","\u21D8":"seArr","\u21D9":"swArr","\u21DA":"lAarr","\u21DB":"rAarr","\u21DD":"zigrarr","\u21E4":"larrb","\u21E5":"rarrb","\u21F5":"duarr","\u21FD":"loarr","\u21FE":"roarr","\u21FF":"hoarr","\u2200":"forall","\u2201":"comp","\u2202":"part","\u2202\u0338":"npart","\u2203":"exist","\u2204":"nexist","\u2205":"empty","\u2207":"Del","\u2208":"in","\u2209":"notin","\u220B":"ni","\u220C":"notni","\u03F6":"bepsi","\u220F":"prod","\u2210":"coprod","\u2211":"sum","+":"plus","\xB1":"pm","\xF7":"div","\xD7":"times","<":"lt","\u226E":"nlt","<\u20D2":"nvlt","=":"equals","\u2260":"ne","=\u20E5":"bne","\u2A75":"Equal",">":"gt","\u226F":"ngt",">\u20D2":"nvgt","\xAC":"not","|":"vert","\xA6":"brvbar","\u2212":"minus","\u2213":"mp","\u2214":"plusdo","\u2044":"frasl","\u2216":"setmn","\u2217":"lowast","\u2218":"compfn","\u221A":"Sqrt","\u221D":"prop","\u221E":"infin","\u221F":"angrt","\u2220":"ang","\u2220\u20D2":"nang","\u2221":"angmsd","\u2222":"angsph","\u2223":"mid","\u2224":"nmid","\u2225":"par","\u2226":"npar","\u2227":"and","\u2228":"or","\u2229":"cap","\u2229\uFE00":"caps","\u222A":"cup","\u222A\uFE00":"cups","\u222B":"int","\u222C":"Int","\u222D":"tint","\u2A0C":"qint","\u222E":"oint","\u222F":"Conint","\u2230":"Cconint","\u2231":"cwint","\u2232":"cwconint","\u2233":"awconint","\u2234":"there4","\u2235":"becaus","\u2236":"ratio","\u2237":"Colon","\u2238":"minusd","\u223A":"mDDot","\u223B":"homtht","\u223C":"sim","\u2241":"nsim","\u223C\u20D2":"nvsim","\u223D":"bsim","\u223D\u0331":"race","\u223E":"ac","\u223E\u0333":"acE","\u223F":"acd","\u2240":"wr","\u2242":"esim","\u2242\u0338":"nesim","\u2243":"sime","\u2244":"nsime","\u2245":"cong","\u2247":"ncong","\u2246":"simne","\u2248":"ap","\u2249":"nap","\u224A":"ape","\u224B":"apid","\u224B\u0338":"napid","\u224C":"bcong","\u224D":"CupCap","\u226D":"NotCupCap","\u224D\u20D2":"nvap","\u224E":"bump","\u224E\u0338":"nbump","\u224F":"bumpe","\u224F\u0338":"nbumpe","\u2250":"doteq","\u2250\u0338":"nedot","\u2251":"eDot","\u2252":"efDot","\u2253":"erDot","\u2254":"colone","\u2255":"ecolon","\u2256":"ecir","\u2257":"cire","\u2259":"wedgeq","\u225A":"veeeq","\u225C":"trie","\u225F":"equest","\u2261":"equiv","\u2262":"nequiv","\u2261\u20E5":"bnequiv","\u2264":"le","\u2270":"nle","\u2264\u20D2":"nvle","\u2265":"ge","\u2271":"nge","\u2265\u20D2":"nvge","\u2266":"lE","\u2266\u0338":"nlE","\u2267":"gE","\u2267\u0338":"ngE","\u2268\uFE00":"lvnE","\u2268":"lnE","\u2269":"gnE","\u2269\uFE00":"gvnE","\u226A":"ll","\u226A\u0338":"nLtv","\u226A\u20D2":"nLt","\u226B":"gg","\u226B\u0338":"nGtv","\u226B\u20D2":"nGt","\u226C":"twixt","\u2272":"lsim","\u2274":"nlsim","\u2273":"gsim","\u2275":"ngsim","\u2276":"lg","\u2278":"ntlg","\u2277":"gl","\u2279":"ntgl","\u227A":"pr","\u2280":"npr","\u227B":"sc","\u2281":"nsc","\u227C":"prcue","\u22E0":"nprcue","\u227D":"sccue","\u22E1":"nsccue","\u227E":"prsim","\u227F":"scsim","\u227F\u0338":"NotSucceedsTilde","\u2282":"sub","\u2284":"nsub","\u2282\u20D2":"vnsub","\u2283":"sup","\u2285":"nsup","\u2283\u20D2":"vnsup","\u2286":"sube","\u2288":"nsube","\u2287":"supe","\u2289":"nsupe","\u228A\uFE00":"vsubne","\u228A":"subne","\u228B\uFE00":"vsupne","\u228B":"supne","\u228D":"cupdot","\u228E":"uplus","\u228F":"sqsub","\u228F\u0338":"NotSquareSubset","\u2290":"sqsup","\u2290\u0338":"NotSquareSuperset","\u2291":"sqsube","\u22E2":"nsqsube","\u2292":"sqsupe","\u22E3":"nsqsupe","\u2293":"sqcap","\u2293\uFE00":"sqcaps","\u2294":"sqcup","\u2294\uFE00":"sqcups","\u2295":"oplus","\u2296":"ominus","\u2297":"otimes","\u2298":"osol","\u2299":"odot","\u229A":"ocir","\u229B":"oast","\u229D":"odash","\u229E":"plusb","\u229F":"minusb","\u22A0":"timesb","\u22A1":"sdotb","\u22A2":"vdash","\u22AC":"nvdash","\u22A3":"dashv","\u22A4":"top","\u22A5":"bot","\u22A7":"models","\u22A8":"vDash","\u22AD":"nvDash","\u22A9":"Vdash","\u22AE":"nVdash","\u22AA":"Vvdash","\u22AB":"VDash","\u22AF":"nVDash","\u22B0":"prurel","\u22B2":"vltri","\u22EA":"nltri","\u22B3":"vrtri","\u22EB":"nrtri","\u22B4":"ltrie","\u22EC":"nltrie","\u22B4\u20D2":"nvltrie","\u22B5":"rtrie","\u22ED":"nrtrie","\u22B5\u20D2":"nvrtrie","\u22B6":"origof","\u22B7":"imof","\u22B8":"mumap","\u22B9":"hercon","\u22BA":"intcal","\u22BB":"veebar","\u22BD":"barvee","\u22BE":"angrtvb","\u22BF":"lrtri","\u22C0":"Wedge","\u22C1":"Vee","\u22C2":"xcap","\u22C3":"xcup","\u22C4":"diam","\u22C5":"sdot","\u22C6":"Star","\u22C7":"divonx","\u22C8":"bowtie","\u22C9":"ltimes","\u22CA":"rtimes","\u22CB":"lthree","\u22CC":"rthree","\u22CD":"bsime","\u22CE":"cuvee","\u22CF":"cuwed","\u22D0":"Sub","\u22D1":"Sup","\u22D2":"Cap","\u22D3":"Cup","\u22D4":"fork","\u22D5":"epar","\u22D6":"ltdot","\u22D7":"gtdot","\u22D8":"Ll","\u22D8\u0338":"nLl","\u22D9":"Gg","\u22D9\u0338":"nGg","\u22DA\uFE00":"lesg","\u22DA":"leg","\u22DB":"gel","\u22DB\uFE00":"gesl","\u22DE":"cuepr","\u22DF":"cuesc","\u22E6":"lnsim","\u22E7":"gnsim","\u22E8":"prnsim","\u22E9":"scnsim","\u22EE":"vellip","\u22EF":"ctdot","\u22F0":"utdot","\u22F1":"dtdot","\u22F2":"disin","\u22F3":"isinsv","\u22F4":"isins","\u22F5":"isindot","\u22F5\u0338":"notindot","\u22F6":"notinvc","\u22F7":"notinvb","\u22F9":"isinE","\u22F9\u0338":"notinE","\u22FA":"nisd","\u22FB":"xnis","\u22FC":"nis","\u22FD":"notnivc","\u22FE":"notnivb","\u2305":"barwed","\u2306":"Barwed","\u230C":"drcrop","\u230D":"dlcrop","\u230E":"urcrop","\u230F":"ulcrop","\u2310":"bnot","\u2312":"profline","\u2313":"profsurf","\u2315":"telrec","\u2316":"target","\u231C":"ulcorn","\u231D":"urcorn","\u231E":"dlcorn","\u231F":"drcorn","\u2322":"frown","\u2323":"smile","\u232D":"cylcty","\u232E":"profalar","\u2336":"topbot","\u233D":"ovbar","\u233F":"solbar","\u237C":"angzarr","\u23B0":"lmoust","\u23B1":"rmoust","\u23B4":"tbrk","\u23B5":"bbrk","\u23B6":"bbrktbrk","\u23DC":"OverParenthesis","\u23DD":"UnderParenthesis","\u23DE":"OverBrace","\u23DF":"UnderBrace","\u23E2":"trpezium","\u23E7":"elinters","\u2423":"blank","\u2500":"boxh","\u2502":"boxv","\u250C":"boxdr","\u2510":"boxdl","\u2514":"boxur","\u2518":"boxul","\u251C":"boxvr","\u2524":"boxvl","\u252C":"boxhd","\u2534":"boxhu","\u253C":"boxvh","\u2550":"boxH","\u2551":"boxV","\u2552":"boxdR","\u2553":"boxDr","\u2554":"boxDR","\u2555":"boxdL","\u2556":"boxDl","\u2557":"boxDL","\u2558":"boxuR","\u2559":"boxUr","\u255A":"boxUR","\u255B":"boxuL","\u255C":"boxUl","\u255D":"boxUL","\u255E":"boxvR","\u255F":"boxVr","\u2560":"boxVR","\u2561":"boxvL","\u2562":"boxVl","\u2563":"boxVL","\u2564":"boxHd","\u2565":"boxhD","\u2566":"boxHD","\u2567":"boxHu","\u2568":"boxhU","\u2569":"boxHU","\u256A":"boxvH","\u256B":"boxVh","\u256C":"boxVH","\u2580":"uhblk","\u2584":"lhblk","\u2588":"block","\u2591":"blk14","\u2592":"blk12","\u2593":"blk34","\u25A1":"squ","\u25AA":"squf","\u25AB":"EmptyVerySmallSquare","\u25AD":"rect","\u25AE":"marker","\u25B1":"fltns","\u25B3":"xutri","\u25B4":"utrif","\u25B5":"utri","\u25B8":"rtrif","\u25B9":"rtri","\u25BD":"xdtri","\u25BE":"dtrif","\u25BF":"dtri","\u25C2":"ltrif","\u25C3":"ltri","\u25CA":"loz","\u25CB":"cir","\u25EC":"tridot","\u25EF":"xcirc","\u25F8":"ultri","\u25F9":"urtri","\u25FA":"lltri","\u25FB":"EmptySmallSquare","\u25FC":"FilledSmallSquare","\u2605":"starf","\u2606":"star","\u260E":"phone","\u2640":"female","\u2642":"male","\u2660":"spades","\u2663":"clubs","\u2665":"hearts","\u2666":"diams","\u266A":"sung","\u2713":"check","\u2717":"cross","\u2720":"malt","\u2736":"sext","\u2758":"VerticalSeparator","\u27C8":"bsolhsub","\u27C9":"suphsol","\u27F5":"xlarr","\u27F6":"xrarr","\u27F7":"xharr","\u27F8":"xlArr","\u27F9":"xrArr","\u27FA":"xhArr","\u27FC":"xmap","\u27FF":"dzigrarr","\u2902":"nvlArr","\u2903":"nvrArr","\u2904":"nvHarr","\u2905":"Map","\u290C":"lbarr","\u290D":"rbarr","\u290E":"lBarr","\u290F":"rBarr","\u2910":"RBarr","\u2911":"DDotrahd","\u2912":"UpArrowBar","\u2913":"DownArrowBar","\u2916":"Rarrtl","\u2919":"latail","\u291A":"ratail","\u291B":"lAtail","\u291C":"rAtail","\u291D":"larrfs","\u291E":"rarrfs","\u291F":"larrbfs","\u2920":"rarrbfs","\u2923":"nwarhk","\u2924":"nearhk","\u2925":"searhk","\u2926":"swarhk","\u2927":"nwnear","\u2928":"toea","\u2929":"tosa","\u292A":"swnwar","\u2933":"rarrc","\u2933\u0338":"nrarrc","\u2935":"cudarrr","\u2936":"ldca","\u2937":"rdca","\u2938":"cudarrl","\u2939":"larrpl","\u293C":"curarrm","\u293D":"cularrp","\u2945":"rarrpl","\u2948":"harrcir","\u2949":"Uarrocir","\u294A":"lurdshar","\u294B":"ldrushar","\u294E":"LeftRightVector","\u294F":"RightUpDownVector","\u2950":"DownLeftRightVector","\u2951":"LeftUpDownVector","\u2952":"LeftVectorBar","\u2953":"RightVectorBar","\u2954":"RightUpVectorBar","\u2955":"RightDownVectorBar","\u2956":"DownLeftVectorBar","\u2957":"DownRightVectorBar","\u2958":"LeftUpVectorBar","\u2959":"LeftDownVectorBar","\u295A":"LeftTeeVector","\u295B":"RightTeeVector","\u295C":"RightUpTeeVector","\u295D":"RightDownTeeVector","\u295E":"DownLeftTeeVector","\u295F":"DownRightTeeVector","\u2960":"LeftUpTeeVector","\u2961":"LeftDownTeeVector","\u2962":"lHar","\u2963":"uHar","\u2964":"rHar","\u2965":"dHar","\u2966":"luruhar","\u2967":"ldrdhar","\u2968":"ruluhar","\u2969":"rdldhar","\u296A":"lharul","\u296B":"llhard","\u296C":"rharul","\u296D":"lrhard","\u296E":"udhar","\u296F":"duhar","\u2970":"RoundImplies","\u2971":"erarr","\u2972":"simrarr","\u2973":"larrsim","\u2974":"rarrsim","\u2975":"rarrap","\u2976":"ltlarr","\u2978":"gtrarr","\u2979":"subrarr","\u297B":"suplarr","\u297C":"lfisht","\u297D":"rfisht","\u297E":"ufisht","\u297F":"dfisht","\u299A":"vzigzag","\u299C":"vangrt","\u299D":"angrtvbd","\u29A4":"ange","\u29A5":"range","\u29A6":"dwangle","\u29A7":"uwangle","\u29A8":"angmsdaa","\u29A9":"angmsdab","\u29AA":"angmsdac","\u29AB":"angmsdad","\u29AC":"angmsdae","\u29AD":"angmsdaf","\u29AE":"angmsdag","\u29AF":"angmsdah","\u29B0":"bemptyv","\u29B1":"demptyv","\u29B2":"cemptyv","\u29B3":"raemptyv","\u29B4":"laemptyv","\u29B5":"ohbar","\u29B6":"omid","\u29B7":"opar","\u29B9":"operp","\u29BB":"olcross","\u29BC":"odsold","\u29BE":"olcir","\u29BF":"ofcir","\u29C0":"olt","\u29C1":"ogt","\u29C2":"cirscir","\u29C3":"cirE","\u29C4":"solb","\u29C5":"bsolb","\u29C9":"boxbox","\u29CD":"trisb","\u29CE":"rtriltri","\u29CF":"LeftTriangleBar","\u29CF\u0338":"NotLeftTriangleBar","\u29D0":"RightTriangleBar","\u29D0\u0338":"NotRightTriangleBar","\u29DC":"iinfin","\u29DD":"infintie","\u29DE":"nvinfin","\u29E3":"eparsl","\u29E4":"smeparsl","\u29E5":"eqvparsl","\u29EB":"lozf","\u29F4":"RuleDelayed","\u29F6":"dsol","\u2A00":"xodot","\u2A01":"xoplus","\u2A02":"xotime","\u2A04":"xuplus","\u2A06":"xsqcup","\u2A0D":"fpartint","\u2A10":"cirfnint","\u2A11":"awint","\u2A12":"rppolint","\u2A13":"scpolint","\u2A14":"npolint","\u2A15":"pointint","\u2A16":"quatint","\u2A17":"intlarhk","\u2A22":"pluscir","\u2A23":"plusacir","\u2A24":"simplus","\u2A25":"plusdu","\u2A26":"plussim","\u2A27":"plustwo","\u2A29":"mcomma","\u2A2A":"minusdu","\u2A2D":"loplus","\u2A2E":"roplus","\u2A2F":"Cross","\u2A30":"timesd","\u2A31":"timesbar","\u2A33":"smashp","\u2A34":"lotimes","\u2A35":"rotimes","\u2A36":"otimesas","\u2A37":"Otimes","\u2A38":"odiv","\u2A39":"triplus","\u2A3A":"triminus","\u2A3B":"tritime","\u2A3C":"iprod","\u2A3F":"amalg","\u2A40":"capdot","\u2A42":"ncup","\u2A43":"ncap","\u2A44":"capand","\u2A45":"cupor","\u2A46":"cupcap","\u2A47":"capcup","\u2A48":"cupbrcap","\u2A49":"capbrcup","\u2A4A":"cupcup","\u2A4B":"capcap","\u2A4C":"ccups","\u2A4D":"ccaps","\u2A50":"ccupssm","\u2A53":"And","\u2A54":"Or","\u2A55":"andand","\u2A56":"oror","\u2A57":"orslope","\u2A58":"andslope","\u2A5A":"andv","\u2A5B":"orv","\u2A5C":"andd","\u2A5D":"ord","\u2A5F":"wedbar","\u2A66":"sdote","\u2A6A":"simdot","\u2A6D":"congdot","\u2A6D\u0338":"ncongdot","\u2A6E":"easter","\u2A6F":"apacir","\u2A70":"apE","\u2A70\u0338":"napE","\u2A71":"eplus","\u2A72":"pluse","\u2A73":"Esim","\u2A77":"eDDot","\u2A78":"equivDD","\u2A79":"ltcir","\u2A7A":"gtcir","\u2A7B":"ltquest","\u2A7C":"gtquest","\u2A7D":"les","\u2A7D\u0338":"nles","\u2A7E":"ges","\u2A7E\u0338":"nges","\u2A7F":"lesdot","\u2A80":"gesdot","\u2A81":"lesdoto","\u2A82":"gesdoto","\u2A83":"lesdotor","\u2A84":"gesdotol","\u2A85":"lap","\u2A86":"gap","\u2A87":"lne","\u2A88":"gne","\u2A89":"lnap","\u2A8A":"gnap","\u2A8B":"lEg","\u2A8C":"gEl","\u2A8D":"lsime","\u2A8E":"gsime","\u2A8F":"lsimg","\u2A90":"gsiml","\u2A91":"lgE","\u2A92":"glE","\u2A93":"lesges","\u2A94":"gesles","\u2A95":"els","\u2A96":"egs","\u2A97":"elsdot","\u2A98":"egsdot","\u2A99":"el","\u2A9A":"eg","\u2A9D":"siml","\u2A9E":"simg","\u2A9F":"simlE","\u2AA0":"simgE","\u2AA1":"LessLess","\u2AA1\u0338":"NotNestedLessLess","\u2AA2":"GreaterGreater","\u2AA2\u0338":"NotNestedGreaterGreater","\u2AA4":"glj","\u2AA5":"gla","\u2AA6":"ltcc","\u2AA7":"gtcc","\u2AA8":"lescc","\u2AA9":"gescc","\u2AAA":"smt","\u2AAB":"lat","\u2AAC":"smte","\u2AAC\uFE00":"smtes","\u2AAD":"late","\u2AAD\uFE00":"lates","\u2AAE":"bumpE","\u2AAF":"pre","\u2AAF\u0338":"npre","\u2AB0":"sce","\u2AB0\u0338":"nsce","\u2AB3":"prE","\u2AB4":"scE","\u2AB5":"prnE","\u2AB6":"scnE","\u2AB7":"prap","\u2AB8":"scap","\u2AB9":"prnap","\u2ABA":"scnap","\u2ABB":"Pr","\u2ABC":"Sc","\u2ABD":"subdot","\u2ABE":"supdot","\u2ABF":"subplus","\u2AC0":"supplus","\u2AC1":"submult","\u2AC2":"supmult","\u2AC3":"subedot","\u2AC4":"supedot","\u2AC5":"subE","\u2AC5\u0338":"nsubE","\u2AC6":"supE","\u2AC6\u0338":"nsupE","\u2AC7":"subsim","\u2AC8":"supsim","\u2ACB\uFE00":"vsubnE","\u2ACB":"subnE","\u2ACC\uFE00":"vsupnE","\u2ACC":"supnE","\u2ACF":"csub","\u2AD0":"csup","\u2AD1":"csube","\u2AD2":"csupe","\u2AD3":"subsup","\u2AD4":"supsub","\u2AD5":"subsub","\u2AD6":"supsup","\u2AD7":"suphsub","\u2AD8":"supdsub","\u2AD9":"forkv","\u2ADA":"topfork","\u2ADB":"mlcp","\u2AE4":"Dashv","\u2AE6":"Vdashl","\u2AE7":"Barv","\u2AE8":"vBar","\u2AE9":"vBarv","\u2AEB":"Vbar","\u2AEC":"Not","\u2AED":"bNot","\u2AEE":"rnmid","\u2AEF":"cirmid","\u2AF0":"midcir","\u2AF1":"topcir","\u2AF2":"nhpar","\u2AF3":"parsim","\u2AFD":"parsl","\u2AFD\u20E5":"nparsl","\u266D":"flat","\u266E":"natur","\u266F":"sharp","\xA4":"curren","\xA2":"cent",$:"dollar","\xA3":"pound","\xA5":"yen","\u20AC":"euro","\xB9":"sup1","\xBD":"half","\u2153":"frac13","\xBC":"frac14","\u2155":"frac15","\u2159":"frac16","\u215B":"frac18","\xB2":"sup2","\u2154":"frac23","\u2156":"frac25","\xB3":"sup3","\xBE":"frac34","\u2157":"frac35","\u215C":"frac38","\u2158":"frac45","\u215A":"frac56","\u215D":"frac58","\u215E":"frac78","\u{1D4B6}":"ascr","\u{1D552}":"aopf","\u{1D51E}":"afr","\u{1D538}":"Aopf","\u{1D504}":"Afr","\u{1D49C}":"Ascr",\u00AA:"ordf",\u00E1:"aacute",\u00C1:"Aacute",\u00E0:"agrave",\u00C0:"Agrave",\u0103:"abreve",\u0102:"Abreve",\u00E2:"acirc",\u00C2:"Acirc",\u00E5:"aring",\u00C5:"angst",\u00E4:"auml",\u00C4:"Auml",\u00E3:"atilde",\u00C3:"Atilde",\u0105:"aogon",\u0104:"Aogon",\u0101:"amacr",\u0100:"Amacr",\u00E6:"aelig",\u00C6:"AElig","\u{1D4B7}":"bscr","\u{1D553}":"bopf","\u{1D51F}":"bfr","\u{1D539}":"Bopf",\u212C:"Bscr","\u{1D505}":"Bfr","\u{1D520}":"cfr","\u{1D4B8}":"cscr","\u{1D554}":"copf",\u212D:"Cfr","\u{1D49E}":"Cscr",\u2102:"Copf",\u0107:"cacute",\u0106:"Cacute",\u0109:"ccirc",\u0108:"Ccirc",\u010D:"ccaron",\u010C:"Ccaron",\u010B:"cdot",\u010A:"Cdot",\u00E7:"ccedil",\u00C7:"Ccedil","\u2105":"incare","\u{1D521}":"dfr","\u2146":"dd","\u{1D555}":"dopf","\u{1D4B9}":"dscr","\u{1D49F}":"Dscr","\u{1D507}":"Dfr","\u2145":"DD","\u{1D53B}":"Dopf",\u010F:"dcaron",\u010E:"Dcaron",\u0111:"dstrok",\u0110:"Dstrok",\u00F0:"eth",\u00D0:"ETH","\u2147":"ee",\u212F:"escr","\u{1D522}":"efr","\u{1D556}":"eopf",\u2130:"Escr","\u{1D508}":"Efr","\u{1D53C}":"Eopf",\u00E9:"eacute",\u00C9:"Eacute",\u00E8:"egrave",\u00C8:"Egrave",\u00EA:"ecirc",\u00CA:"Ecirc",\u011B:"ecaron",\u011A:"Ecaron",\u00EB:"euml",\u00CB:"Euml",\u0117:"edot",\u0116:"Edot",\u0119:"eogon",\u0118:"Eogon",\u0113:"emacr",\u0112:"Emacr","\u{1D523}":"ffr","\u{1D557}":"fopf","\u{1D4BB}":"fscr","\u{1D509}":"Ffr","\u{1D53D}":"Fopf",\u2131:"Fscr",\uFB00:"fflig",\uFB03:"ffilig",\uFB04:"ffllig",\uFB01:"filig",fj:"fjlig",\uFB02:"fllig",\u0192:"fnof",\u210A:"gscr","\u{1D558}":"gopf","\u{1D524}":"gfr","\u{1D4A2}":"Gscr","\u{1D53E}":"Gopf","\u{1D50A}":"Gfr",\u01F5:"gacute",\u011F:"gbreve",\u011E:"Gbreve",\u011D:"gcirc",\u011C:"Gcirc",\u0121:"gdot",\u0120:"Gdot",\u0122:"Gcedil","\u{1D525}":"hfr",\u210E:"planckh","\u{1D4BD}":"hscr","\u{1D559}":"hopf",\u210B:"Hscr",\u210C:"Hfr",\u210D:"Hopf",\u0125:"hcirc",\u0124:"Hcirc",\u210F:"hbar",\u0127:"hstrok",\u0126:"Hstrok","\u{1D55A}":"iopf","\u{1D526}":"ifr","\u{1D4BE}":"iscr","\u2148":"ii","\u{1D540}":"Iopf",\u2110:"Iscr",\u2111:"Im",\u00ED:"iacute",\u00CD:"Iacute",\u00EC:"igrave",\u00CC:"Igrave",\u00EE:"icirc",\u00CE:"Icirc",\u00EF:"iuml",\u00CF:"Iuml",\u0129:"itilde",\u0128:"Itilde",\u0130:"Idot",\u012F:"iogon",\u012E:"Iogon",\u012B:"imacr",\u012A:"Imacr",\u0133:"ijlig",\u0132:"IJlig",\u0131:"imath","\u{1D4BF}":"jscr","\u{1D55B}":"jopf","\u{1D527}":"jfr","\u{1D4A5}":"Jscr","\u{1D50D}":"Jfr","\u{1D541}":"Jopf",\u0135:"jcirc",\u0134:"Jcirc","\u0237":"jmath","\u{1D55C}":"kopf","\u{1D4C0}":"kscr","\u{1D528}":"kfr","\u{1D4A6}":"Kscr","\u{1D542}":"Kopf","\u{1D50E}":"Kfr",\u0137:"kcedil",\u0136:"Kcedil","\u{1D529}":"lfr","\u{1D4C1}":"lscr",\u2113:"ell","\u{1D55D}":"lopf",\u2112:"Lscr","\u{1D50F}":"Lfr","\u{1D543}":"Lopf",\u013A:"lacute",\u0139:"Lacute",\u013E:"lcaron",\u013D:"Lcaron",\u013C:"lcedil",\u013B:"Lcedil",\u0142:"lstrok",\u0141:"Lstrok",\u0140:"lmidot",\u013F:"Lmidot","\u{1D52A}":"mfr","\u{1D55E}":"mopf","\u{1D4C2}":"mscr","\u{1D510}":"Mfr","\u{1D544}":"Mopf",\u2133:"Mscr","\u{1D52B}":"nfr","\u{1D55F}":"nopf","\u{1D4C3}":"nscr",\u2115:"Nopf","\u{1D4A9}":"Nscr","\u{1D511}":"Nfr",\u0144:"nacute",\u0143:"Nacute",\u0148:"ncaron",\u0147:"Ncaron",\u00F1:"ntilde",\u00D1:"Ntilde",\u0146:"ncedil",\u0145:"Ncedil","\u2116":"numero",\u014B:"eng",\u014A:"ENG","\u{1D560}":"oopf","\u{1D52C}":"ofr",\u2134:"oscr","\u{1D4AA}":"Oscr","\u{1D512}":"Ofr","\u{1D546}":"Oopf",\u00BA:"ordm",\u00F3:"oacute",\u00D3:"Oacute",\u00F2:"ograve",\u00D2:"Ograve",\u00F4:"ocirc",\u00D4:"Ocirc",\u00F6:"ouml",\u00D6:"Ouml",\u0151:"odblac",\u0150:"Odblac",\u00F5:"otilde",\u00D5:"Otilde",\u00F8:"oslash",\u00D8:"Oslash",\u014D:"omacr",\u014C:"Omacr",\u0153:"oelig",\u0152:"OElig","\u{1D52D}":"pfr","\u{1D4C5}":"pscr","\u{1D561}":"popf",\u2119:"Popf","\u{1D513}":"Pfr","\u{1D4AB}":"Pscr","\u{1D562}":"qopf","\u{1D52E}":"qfr","\u{1D4C6}":"qscr","\u{1D4AC}":"Qscr","\u{1D514}":"Qfr",\u211A:"Qopf",\u0138:"kgreen","\u{1D52F}":"rfr","\u{1D563}":"ropf","\u{1D4C7}":"rscr",\u211B:"Rscr",\u211C:"Re",\u211D:"Ropf",\u0155:"racute",\u0154:"Racute",\u0159:"rcaron",\u0158:"Rcaron",\u0157:"rcedil",\u0156:"Rcedil","\u{1D564}":"sopf","\u{1D4C8}":"sscr","\u{1D530}":"sfr","\u{1D54A}":"Sopf","\u{1D516}":"Sfr","\u{1D4AE}":"Sscr","\u24C8":"oS",\u015B:"sacute",\u015A:"Sacute",\u015D:"scirc",\u015C:"Scirc",\u0161:"scaron",\u0160:"Scaron",\u015F:"scedil",\u015E:"Scedil",\u00DF:"szlig","\u{1D531}":"tfr","\u{1D4C9}":"tscr","\u{1D565}":"topf","\u{1D4AF}":"Tscr","\u{1D517}":"Tfr","\u{1D54B}":"Topf",\u0165:"tcaron",\u0164:"Tcaron",\u0163:"tcedil",\u0162:"Tcedil","\u2122":"trade",\u0167:"tstrok",\u0166:"Tstrok","\u{1D4CA}":"uscr","\u{1D566}":"uopf","\u{1D532}":"ufr","\u{1D54C}":"Uopf","\u{1D518}":"Ufr","\u{1D4B0}":"Uscr",\u00FA:"uacute",\u00DA:"Uacute",\u00F9:"ugrave",\u00D9:"Ugrave",\u016D:"ubreve",\u016C:"Ubreve",\u00FB:"ucirc",\u00DB:"Ucirc",\u016F:"uring",\u016E:"Uring",\u00FC:"uuml",\u00DC:"Uuml",\u0171:"udblac",\u0170:"Udblac",\u0169:"utilde",\u0168:"Utilde",\u0173:"uogon",\u0172:"Uogon",\u016B:"umacr",\u016A:"Umacr","\u{1D533}":"vfr","\u{1D567}":"vopf","\u{1D4CB}":"vscr","\u{1D519}":"Vfr","\u{1D54D}":"Vopf","\u{1D4B1}":"Vscr","\u{1D568}":"wopf","\u{1D4CC}":"wscr","\u{1D534}":"wfr","\u{1D4B2}":"Wscr","\u{1D54E}":"Wopf","\u{1D51A}":"Wfr",\u0175:"wcirc",\u0174:"Wcirc","\u{1D535}":"xfr","\u{1D4CD}":"xscr","\u{1D569}":"xopf","\u{1D54F}":"Xopf","\u{1D51B}":"Xfr","\u{1D4B3}":"Xscr","\u{1D536}":"yfr","\u{1D4CE}":"yscr","\u{1D56A}":"yopf","\u{1D4B4}":"Yscr","\u{1D51C}":"Yfr","\u{1D550}":"Yopf",\u00FD:"yacute",\u00DD:"Yacute",\u0177:"ycirc",\u0176:"Ycirc",\u00FF:"yuml",\u0178:"Yuml","\u{1D4CF}":"zscr","\u{1D537}":"zfr","\u{1D56B}":"zopf",\u2128:"Zfr",\u2124:"Zopf","\u{1D4B5}":"Zscr",\u017A:"zacute",\u0179:"Zacute",\u017E:"zcaron",\u017D:"Zcaron",\u017C:"zdot",\u017B:"Zdot",\u01B5:"imped",\u00FE:"thorn",\u00DE:"THORN",\u0149:"napos",\u03B1:"alpha",\u0391:"Alpha",\u03B2:"beta",\u0392:"Beta",\u03B3:"gamma",\u0393:"Gamma",\u03B4:"delta",\u0394:"Delta",\u03B5:"epsi","\u03F5":"epsiv",\u0395:"Epsilon",\u03DD:"gammad",\u03DC:"Gammad",\u03B6:"zeta",\u0396:"Zeta",\u03B7:"eta",\u0397:"Eta",\u03B8:"theta",\u03D1:"thetav",\u0398:"Theta",\u03B9:"iota",\u0399:"Iota",\u03BA:"kappa",\u03F0:"kappav",\u039A:"Kappa",\u03BB:"lambda",\u039B:"Lambda",\u03BC:"mu",\u00B5:"micro",\u039C:"Mu",\u03BD:"nu",\u039D:"Nu",\u03BE:"xi",\u039E:"Xi",\u03BF:"omicron",\u039F:"Omicron",\u03C0:"pi",\u03D6:"piv",\u03A0:"Pi",\u03C1:"rho",\u03F1:"rhov",\u03A1:"Rho",\u03C3:"sigma",\u03A3:"Sigma",\u03C2:"sigmaf",\u03C4:"tau",\u03A4:"Tau",\u03C5:"upsi",\u03A5:"Upsilon",\u03D2:"Upsi",\u03C6:"phi",\u03D5:"phiv",\u03A6:"Phi",\u03C7:"chi",\u03A7:"Chi",\u03C8:"psi",\u03A8:"Psi",\u03C9:"omega",\u03A9:"ohm",\u0430:"acy",\u0410:"Acy",\u0431:"bcy",\u0411:"Bcy",\u0432:"vcy",\u0412:"Vcy",\u0433:"gcy",\u0413:"Gcy",\u0453:"gjcy",\u0403:"GJcy",\u0434:"dcy",\u0414:"Dcy",\u0452:"djcy",\u0402:"DJcy",\u0435:"iecy",\u0415:"IEcy",\u0451:"iocy",\u0401:"IOcy",\u0454:"jukcy",\u0404:"Jukcy",\u0436:"zhcy",\u0416:"ZHcy",\u0437:"zcy",\u0417:"Zcy",\u0455:"dscy",\u0405:"DScy",\u0438:"icy",\u0418:"Icy",\u0456:"iukcy",\u0406:"Iukcy",\u0457:"yicy",\u0407:"YIcy",\u0439:"jcy",\u0419:"Jcy",\u0458:"jsercy",\u0408:"Jsercy",\u043A:"kcy",\u041A:"Kcy",\u045C:"kjcy",\u040C:"KJcy",\u043B:"lcy",\u041B:"Lcy",\u0459:"ljcy",\u0409:"LJcy",\u043C:"mcy",\u041C:"Mcy",\u043D:"ncy",\u041D:"Ncy",\u045A:"njcy",\u040A:"NJcy",\u043E:"ocy",\u041E:"Ocy",\u043F:"pcy",\u041F:"Pcy",\u0440:"rcy",\u0420:"Rcy",\u0441:"scy",\u0421:"Scy",\u0442:"tcy",\u0422:"Tcy",\u045B:"tshcy",\u040B:"TSHcy",\u0443:"ucy",\u0423:"Ucy",\u045E:"ubrcy",\u040E:"Ubrcy",\u0444:"fcy",\u0424:"Fcy",\u0445:"khcy",\u0425:"KHcy",\u0446:"tscy",\u0426:"TScy",\u0447:"chcy",\u0427:"CHcy",\u045F:"dzcy",\u040F:"DZcy",\u0448:"shcy",\u0428:"SHcy",\u0449:"shchcy",\u0429:"SHCHcy",\u044A:"hardcy",\u042A:"HARDcy",\u044B:"ycy",\u042B:"Ycy",\u044C:"softcy",\u042C:"SOFTcy",\u044D:"ecy",\u042D:"Ecy",\u044E:"yucy",\u042E:"YUcy",\u044F:"yacy",\u042F:"YAcy",\u2135:"aleph",\u2136:"beth",\u2137:"gimel",\u2138:"daleth"},Z=/["&'<>`]/g,le={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},oe=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,re=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,J=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,ue={aacute:"\xE1",Aacute:"\xC1",abreve:"\u0103",Abreve:"\u0102",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",acirc:"\xE2",Acirc:"\xC2",acute:"\xB4",acy:"\u0430",Acy:"\u0410",aelig:"\xE6",AElig:"\xC6",af:"\u2061",afr:"\u{1D51E}",Afr:"\u{1D504}",agrave:"\xE0",Agrave:"\xC0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",Alpha:"\u0391",amacr:"\u0101",Amacr:"\u0100",amalg:"\u2A3F",amp:"&",AMP:"&",and:"\u2227",And:"\u2A53",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",Aogon:"\u0104",aopf:"\u{1D552}",Aopf:"\u{1D538}",ap:"\u2248",apacir:"\u2A6F",ape:"\u224A",apE:"\u2A70",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",Aring:"\xC5",ascr:"\u{1D4B6}",Ascr:"\u{1D49C}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",Atilde:"\xC3",auml:"\xE4",Auml:"\xC4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",Bcy:"\u0411",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",beta:"\u03B2",Beta:"\u0392",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",Bfr:"\u{1D505}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bNot:"\u2AED",bopf:"\u{1D553}",Bopf:"\u{1D539}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxhD:"\u2565",boxHd:"\u2564",boxHD:"\u2566",boxhu:"\u2534",boxhU:"\u2568",boxHu:"\u2567",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpe:"\u224F",bumpE:"\u2AAE",bumpeq:"\u224F",Bumpeq:"\u224E",cacute:"\u0107",Cacute:"\u0106",cap:"\u2229",Cap:"\u22D2",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",ccaron:"\u010D",Ccaron:"\u010C",ccedil:"\xE7",Ccedil:"\xC7",ccirc:"\u0109",Ccirc:"\u0108",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",Cdot:"\u010A",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",chcy:"\u0447",CHcy:"\u0427",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",Chi:"\u03A7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cire:"\u2257",cirE:"\u29C3",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",colone:"\u2254",Colone:"\u2A74",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",cscr:"\u{1D4B8}",Cscr:"\u{1D49E}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",Cup:"\u22D3",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",dArr:"\u21D3",Darr:"\u21A1",dash:"\u2010",dashv:"\u22A3",Dashv:"\u2AE4",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",Dcaron:"\u010E",dcy:"\u0434",Dcy:"\u0414",dd:"\u2146",DD:"\u2145",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",delta:"\u03B4",Delta:"\u0394",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",Dfr:"\u{1D507}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",DJcy:"\u0402",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",Dopf:"\u{1D53B}",dot:"\u02D9",Dot:"\xA8",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",downarrow:"\u2193",Downarrow:"\u21D3",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",Dscr:"\u{1D49F}",dscy:"\u0455",DScy:"\u0405",dsol:"\u29F6",dstrok:"\u0111",Dstrok:"\u0110",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",DZcy:"\u040F",dzigrarr:"\u27FF",eacute:"\xE9",Eacute:"\xC9",easter:"\u2A6E",ecaron:"\u011B",Ecaron:"\u011A",ecir:"\u2256",ecirc:"\xEA",Ecirc:"\xCA",ecolon:"\u2255",ecy:"\u044D",Ecy:"\u042D",eDDot:"\u2A77",edot:"\u0117",eDot:"\u2251",Edot:"\u0116",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",Efr:"\u{1D508}",eg:"\u2A9A",egrave:"\xE8",Egrave:"\xC8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",Emacr:"\u0112",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",eng:"\u014B",ENG:"\u014A",ensp:"\u2002",eogon:"\u0119",Eogon:"\u0118",eopf:"\u{1D556}",Eopf:"\u{1D53C}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",Epsilon:"\u0395",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",esim:"\u2242",Esim:"\u2A73",eta:"\u03B7",Eta:"\u0397",eth:"\xF0",ETH:"\xD0",euml:"\xEB",Euml:"\xCB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",Fcy:"\u0424",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",Ffr:"\u{1D509}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",Fopf:"\u{1D53D}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",gamma:"\u03B3",Gamma:"\u0393",gammad:"\u03DD",Gammad:"\u03DC",gap:"\u2A86",gbreve:"\u011F",Gbreve:"\u011E",Gcedil:"\u0122",gcirc:"\u011D",Gcirc:"\u011C",gcy:"\u0433",Gcy:"\u0413",gdot:"\u0121",Gdot:"\u0120",ge:"\u2265",gE:"\u2267",gel:"\u22DB",gEl:"\u2A8C",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",Gfr:"\u{1D50A}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",GJcy:"\u0403",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",Gopf:"\u{1D53E}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",gscr:"\u210A",Gscr:"\u{1D4A2}",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",Gt:"\u226B",GT:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",HARDcy:"\u042A",harr:"\u2194",hArr:"\u21D4",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",hcirc:"\u0125",Hcirc:"\u0124",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",hstrok:"\u0127",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",Iacute:"\xCD",ic:"\u2063",icirc:"\xEE",Icirc:"\xCE",icy:"\u0438",Icy:"\u0418",Idot:"\u0130",iecy:"\u0435",IEcy:"\u0415",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",igrave:"\xEC",Igrave:"\xCC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",IJlig:"\u0132",Im:"\u2111",imacr:"\u012B",Imacr:"\u012A",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",Int:"\u222C",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",iocy:"\u0451",IOcy:"\u0401",iogon:"\u012F",Iogon:"\u012E",iopf:"\u{1D55A}",Iopf:"\u{1D540}",iota:"\u03B9",Iota:"\u0399",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",Itilde:"\u0128",iukcy:"\u0456",Iukcy:"\u0406",iuml:"\xEF",Iuml:"\xCF",jcirc:"\u0135",Jcirc:"\u0134",jcy:"\u0439",Jcy:"\u0419",jfr:"\u{1D527}",Jfr:"\u{1D50D}",jmath:"\u0237",jopf:"\u{1D55B}",Jopf:"\u{1D541}",jscr:"\u{1D4BF}",Jscr:"\u{1D4A5}",jsercy:"\u0458",Jsercy:"\u0408",jukcy:"\u0454",Jukcy:"\u0404",kappa:"\u03BA",Kappa:"\u039A",kappav:"\u03F0",kcedil:"\u0137",Kcedil:"\u0136",kcy:"\u043A",Kcy:"\u041A",kfr:"\u{1D528}",Kfr:"\u{1D50E}",kgreen:"\u0138",khcy:"\u0445",KHcy:"\u0425",kjcy:"\u045C",KJcy:"\u040C",kopf:"\u{1D55C}",Kopf:"\u{1D542}",kscr:"\u{1D4C0}",Kscr:"\u{1D4A6}",lAarr:"\u21DA",lacute:"\u013A",Lacute:"\u0139",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",Lambda:"\u039B",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larr:"\u2190",lArr:"\u21D0",Larr:"\u219E",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",lAtail:"\u291B",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",Lcaron:"\u013D",lcedil:"\u013C",Lcedil:"\u013B",lceil:"\u2308",lcub:"{",lcy:"\u043B",Lcy:"\u041B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",leftarrow:"\u2190",Leftarrow:"\u21D0",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",Leftrightarrow:"\u21D4",LeftRightArrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",leg:"\u22DA",lEg:"\u2A8B",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",Lfr:"\u{1D50F}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",LJcy:"\u0409",ll:"\u226A",Ll:"\u22D8",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",Lmidot:"\u013F",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",Longleftarrow:"\u27F8",LongLeftArrow:"\u27F5",longleftrightarrow:"\u27F7",Longleftrightarrow:"\u27FA",LongLeftRightArrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",Longrightarrow:"\u27F9",LongRightArrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",Lopf:"\u{1D543}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",Lstrok:"\u0141",lt:"<",Lt:"\u226A",LT:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",Map:"\u2905",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",Mcy:"\u041C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",mfr:"\u{1D52A}",Mfr:"\u{1D510}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",Mopf:"\u{1D544}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",mu:"\u03BC",Mu:"\u039C",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",nacute:"\u0144",Nacute:"\u0143",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",Ncaron:"\u0147",ncedil:"\u0146",Ncedil:"\u0145",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",Ncy:"\u041D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
562
562
|
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",pcy:"\u043F",Pcy:"\u041F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",Pfr:"\u{1D513}",phi:"\u03C6",Phi:"\u03A6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",Pi:"\u03A0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",pr:"\u227A",Pr:"\u2ABB",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prE:"\u2AB3",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",Pscr:"\u{1D4AB}",psi:"\u03C8",Psi:"\u03A8",puncsp:"\u2008",qfr:"\u{1D52E}",Qfr:"\u{1D514}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",qscr:"\u{1D4C6}",Qscr:"\u{1D4AC}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",racute:"\u0155",Racute:"\u0154",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rArr:"\u21D2",Rarr:"\u21A0",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",Rarrtl:"\u2916",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",Rcaron:"\u0158",rcedil:"\u0157",Rcedil:"\u0156",rceil:"\u2309",rcub:"}",rcy:"\u0440",Rcy:"\u0420",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",Rho:"\u03A1",rhov:"\u03F1",RightAngleBracket:"\u27E9",rightarrow:"\u2192",Rightarrow:"\u21D2",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",Sacute:"\u015A",sbquo:"\u201A",sc:"\u227B",Sc:"\u2ABC",scap:"\u2AB8",scaron:"\u0161",Scaron:"\u0160",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",scedil:"\u015F",Scedil:"\u015E",scirc:"\u015D",Scirc:"\u015C",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",Scy:"\u0421",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",Sfr:"\u{1D516}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",SHCHcy:"\u0429",shcy:"\u0448",SHcy:"\u0428",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",sigma:"\u03C3",Sigma:"\u03A3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",SOFTcy:"\u042C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",Sopf:"\u{1D54A}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",Sscr:"\u{1D4AE}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",Star:"\u22C6",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",sube:"\u2286",subE:"\u2AC5",subedot:"\u2AC3",submult:"\u2AC1",subne:"\u228A",subnE:"\u2ACB",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup:"\u2283",Sup:"\u22D1",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supE:"\u2AC6",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supne:"\u228B",supnE:"\u2ACC",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",tau:"\u03C4",Tau:"\u03A4",tbrk:"\u23B4",tcaron:"\u0165",Tcaron:"\u0164",tcedil:"\u0163",Tcedil:"\u0162",tcy:"\u0442",Tcy:"\u0422",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",Tfr:"\u{1D517}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",theta:"\u03B8",Theta:"\u0398",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",THORN:"\xDE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",Topf:"\u{1D54B}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",Tscr:"\u{1D4AF}",tscy:"\u0446",TScy:"\u0426",tshcy:"\u045B",TSHcy:"\u040B",tstrok:"\u0167",Tstrok:"\u0166",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uacute:"\xFA",Uacute:"\xDA",uarr:"\u2191",uArr:"\u21D1",Uarr:"\u219F",Uarrocir:"\u2949",ubrcy:"\u045E",Ubrcy:"\u040E",ubreve:"\u016D",Ubreve:"\u016C",ucirc:"\xFB",Ucirc:"\xDB",ucy:"\u0443",Ucy:"\u0423",udarr:"\u21C5",udblac:"\u0171",Udblac:"\u0170",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",Ufr:"\u{1D518}",ugrave:"\xF9",Ugrave:"\xD9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",Umacr:"\u016A",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",uogon:"\u0173",Uogon:"\u0172",uopf:"\u{1D566}",Uopf:"\u{1D54C}",uparrow:"\u2191",Uparrow:"\u21D1",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",Updownarrow:"\u21D5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",upsilon:"\u03C5",Upsilon:"\u03A5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",Uring:"\u016E",urtri:"\u25F9",uscr:"\u{1D4CA}",Uscr:"\u{1D4B0}",utdot:"\u22F0",utilde:"\u0169",Utilde:"\u0168",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",Uuml:"\xDC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",vcy:"\u0432",Vcy:"\u0412",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",vee:"\u2228",Vee:"\u22C1",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",vfr:"\u{1D533}",Vfr:"\u{1D519}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",Vopf:"\u{1D54D}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",Vscr:"\u{1D4B1}",vsubne:"\u228A\uFE00",vsubnE:"\u2ACB\uFE00",vsupne:"\u228B\uFE00",vsupnE:"\u2ACC\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",wcirc:"\u0175",Wcirc:"\u0174",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",Wfr:"\u{1D51A}",wopf:"\u{1D568}",Wopf:"\u{1D54E}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",Wscr:"\u{1D4B2}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",Xfr:"\u{1D51B}",xharr:"\u27F7",xhArr:"\u27FA",xi:"\u03BE",Xi:"\u039E",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",Xopf:"\u{1D54F}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",xscr:"\u{1D4CD}",Xscr:"\u{1D4B3}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",Yacute:"\xDD",yacy:"\u044F",YAcy:"\u042F",ycirc:"\u0177",Ycirc:"\u0176",ycy:"\u044B",Ycy:"\u042B",yen:"\xA5",yfr:"\u{1D536}",Yfr:"\u{1D51C}",yicy:"\u0457",YIcy:"\u0407",yopf:"\u{1D56A}",Yopf:"\u{1D550}",yscr:"\u{1D4CE}",Yscr:"\u{1D4B4}",yucy:"\u044E",YUcy:"\u042E",yuml:"\xFF",Yuml:"\u0178",zacute:"\u017A",Zacute:"\u0179",zcaron:"\u017E",Zcaron:"\u017D",zcy:"\u0437",Zcy:"\u0417",zdot:"\u017C",Zdot:"\u017B",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",zeta:"\u03B6",Zeta:"\u0396",zfr:"\u{1D537}",Zfr:"\u2128",zhcy:"\u0436",ZHcy:"\u0416",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",zscr:"\u{1D4CF}",Zscr:"\u{1D4B5}",zwj:"\u200D",zwnj:"\u200C"},me={aacute:"\xE1",Aacute:"\xC1",acirc:"\xE2",Acirc:"\xC2",acute:"\xB4",aelig:"\xE6",AElig:"\xC6",agrave:"\xE0",Agrave:"\xC0",amp:"&",AMP:"&",aring:"\xE5",Aring:"\xC5",atilde:"\xE3",Atilde:"\xC3",auml:"\xE4",Auml:"\xC4",brvbar:"\xA6",ccedil:"\xE7",Ccedil:"\xC7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",Eacute:"\xC9",ecirc:"\xEA",Ecirc:"\xCA",egrave:"\xE8",Egrave:"\xC8",eth:"\xF0",ETH:"\xD0",euml:"\xEB",Euml:"\xCB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",iacute:"\xED",Iacute:"\xCD",icirc:"\xEE",Icirc:"\xCE",iexcl:"\xA1",igrave:"\xEC",Igrave:"\xCC",iquest:"\xBF",iuml:"\xEF",Iuml:"\xCF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",Ntilde:"\xD1",oacute:"\xF3",Oacute:"\xD3",ocirc:"\xF4",Ocirc:"\xD4",ograve:"\xF2",Ograve:"\xD2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",Oslash:"\xD8",otilde:"\xF5",Otilde:"\xD5",ouml:"\xF6",Ouml:"\xD6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",THORN:"\xDE",times:"\xD7",uacute:"\xFA",Uacute:"\xDA",ucirc:"\xFB",Ucirc:"\xDB",ugrave:"\xF9",Ugrave:"\xD9",uml:"\xA8",uuml:"\xFC",Uuml:"\xDC",yacute:"\xFD",Yacute:"\xDD",yen:"\xA5",yuml:"\xFF"},fe={0:"\uFFFD",128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"},xe=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],Te=String.fromCharCode,ge={},Pe=ge.hasOwnProperty,Se=function(Ee,Ae){return Pe.call(Ee,Ae)},Re=function(Ee,Ae){for(var Ve=-1,Xe=Ee.length;++Ve<Xe;)if(Ee[Ve]==Ae)return!0;return!1},De=function(Ee,Ae){if(!Ee)return Ae;var Ve={},Xe;for(Xe in Ae)Ve[Xe]=Se(Ee,Xe)?Ee[Xe]:Ae[Xe];return Ve},Le=function(Ee,Ae){var Ve="";return Ee>=55296&&Ee<=57343||Ee>1114111?(Ae&&Fe("character reference outside the permissible Unicode range"),"\uFFFD"):Se(fe,Ee)?(Ae&&Fe("disallowed character reference"),fe[Ee]):(Ae&&Re(xe,Ee)&&Fe("disallowed character reference"),Ee>65535&&(Ee-=65536,Ve+=Te(Ee>>>10&1023|55296),Ee=56320|Ee&1023),Ve+=Te(Ee),Ve)},_e=function(Ee){return"&#x"+Ee.toString(16).toUpperCase()+";"},Be=function(Ee){return"&#"+Ee+";"},Fe=function(Ee){throw Error("Parse error: "+Ee)},je=function(Ee,Ae){Ae=De(Ae,je.options);var Ve=Ae.strict;Ve&&re.test(Ee)&&Fe("forbidden code point");var Xe=Ae.encodeEverything,nt=Ae.useNamedReferences,tt=Ae.allowUnsafeSymbols,Ye=Ae.decimal?Be:_e,He=function(Ge){return Ye(Ge.charCodeAt(0))};return Xe?(Ee=Ee.replace(W,function(Ge){return nt&&Se(X,Ge)?"&"+X[Ge]+";":He(Ge)}),nt&&(Ee=Ee.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),nt&&(Ee=Ee.replace(Y,function(Ge){return"&"+X[Ge]+";"}))):nt?(tt||(Ee=Ee.replace(Z,function(Ge){return"&"+X[Ge]+";"})),Ee=Ee.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒"),Ee=Ee.replace(Y,function(Ge){return"&"+X[Ge]+";"})):tt||(Ee=Ee.replace(Z,He)),Ee.replace(V,function(Ge){var rt=Ge.charCodeAt(0),dt=Ge.charCodeAt(1),vt=(rt-55296)*1024+dt-56320+65536;return Ye(vt)}).replace(U,He)};je.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var ze=function(Ee,Ae){Ae=De(Ae,ze.options);var Ve=Ae.strict;return Ve&&oe.test(Ee)&&Fe("malformed character reference"),Ee.replace(J,function(Xe,nt,tt,Ye,He,Ge,rt,dt,vt){var yt,ut,St,Nt,Bt,zt;return nt?(Bt=nt,ue[Bt]):tt?(Bt=tt,zt=Ye,zt&&Ae.isAttributeValue?(Ve&&zt=="="&&Fe("`&` did not start a character reference"),Xe):(Ve&&Fe("named character reference was not terminated by a semicolon"),me[Bt]+(zt||""))):He?(St=He,ut=Ge,Ve&&!ut&&Fe("character reference was not terminated by a semicolon"),yt=parseInt(St,10),Le(yt,Ve)):rt?(Nt=rt,ut=dt,Ve&&!ut&&Fe("character reference was not terminated by a semicolon"),yt=parseInt(Nt,16),Le(yt,Ve)):(Ve&&Fe("named character reference was not terminated by a semicolon"),Xe)})};ze.options={isAttributeValue:!1,strict:!1};var We=function(Ee){return Ee.replace(Z,function(Ae){return le[Ae]})},Oe={version:"1.2.0",encode:je,decode:ze,escape:We,unescape:ze};if(x&&!x.nodeType)if(w)w.exports=Oe;else for(var ke in Oe)Se(Oe,ke)&&(x[ke]=Oe[ke]);else l.he=Oe})(commonjsGlobal)}(he$2,he$2.exports);var heExports=he$2.exports,he$1=getDefaultExportFromCjs(heExports);const typographyHelper=(o,s)=>{if(!o)return o;switch(s.type){case"string":return convertToStringFormat(o,s);case"number":return convertToNumberFormat(o,s);case"date":return convertToDateFormat(o,s);case"time":return convertToTimeFormat(o,s);case"date-time":return convertToDateTimeFormat(o,s);case"boolean":return convertToBooleanFormat(o);case"html":return convertStringToHtml(o,s);default:return o}},convertToStringFormat=(o,s)=>s.maxLength&&typeof s.maxLength!="number"?o:textWrapper(he$1.unescape(String(o)),"rtl",s.maxLength),textWrapper=(o,s,l)=>l&&o.length>l?s==="rtl"?jsx(Fragment$1,{children:o.substring(0,l)+" ..."}):jsx(Fragment$1,{children:"..."+o.substring(0,l)}):jsx(Fragment$1,{children:o}),convertToNumberFormat=(o,s)=>{switch(s.typeNumber){case"int":return textWrapper(String(parseInt(String(o))),"ltr",s.maxLength);case"float":return textWrapper(String(parseFloat(String(o))),"ltr",s.maxLength);case"cost":{if(Number.isNaN(parseFloat(String(o))))return o;const l=String(o),[x,w]=l.split("."),j=x.replace(/\B(?=(\d{3})+(?!\d))/g,","),V=w?`${j}.${w}`:j;return textWrapper(V,"ltr",s.maxLength)}default:return textWrapper(String(parseFloat(String(o))),"ltr",s.maxLength)}},convertToDateFormat=(o,s)=>{if(typeof o!="string")return console.error("Kdpa Typography error: Date value is not a string"),o;const l=new Date(o);if(isNaN(l.getTime()))return console.error("Kdpa Typography error: Date value is not a valid date (new Date)"),o;const x=localStorage.getItem("i18nextLng")??"fa",w=s.loc||x,j={fa:"YYYY/MM/DD",en:"YYYY-MM-DD",ar:"YYYY/MM/DD"},V=s.format||(j[w]??"YYYY/MM/DD");let W;try{W=moment$1(l).locale(w).format(V)}catch{return console.error("Kdpa Typography error: Date value is not a valid date (jalali moment)"),o}return W},convertToTimeFormat=(o,s)=>{if(typeof o!="string")return console.error("Kdpa Typography error: Time value is not a string"),o;const l=new Date(o);if(isNaN(l.getTime()))return console.error("Kdpa Typography error: Time value is not a valid date (new Date)"),o;const x=localStorage.getItem("i18nextLng")??"fa",w=s.loc||x,j={fa:"HH:mm:ss",en:"hh:mm:ss a",ar:"hh:mm:ss a"},V=s.formatTime||(j[w]??"HH:mm:ss");let W;try{W=moment$1(l).locale(w).format(V)}catch{return console.error("Kdpa Typography error: Time value is not a valid date (jalali moment)"),o}return W},convertToDateTimeFormat=(o,s)=>{if(typeof o!="string")return console.error("Kdpa Typography error: Date Time value is not a string"),o;const l=new Date(o);if(isNaN(l.getTime()))return console.error("Kdpa Typography error: Date Time value is not a valid date (new Date)"),o;const x=localStorage.getItem("i18nextLng")??"fa",w=s.loc||x,j={fa:"YYYY/MM/DD HH:mm:ss",en:"YYYY-MM-DD hh:mm:ss a",ar:"YYYY/MM/DD hh:mm:ss a"},V=s.formatDateTime||(j[w]??"YYYY/MM/DD HH:mm:ss");let W;try{W=moment$1(l).locale(w).format(V)}catch{return console.error("Kdpa Typography error: Date Time value is not a valid date (jalali moment)"),o}return W},convertToBooleanFormat=o=>o?"true":"false",convertStringToHtml=(o,s)=>{if(typeof o!="string")return o;const l=DOMPurify.sanitize(he$1.unescape(o),{USE_PROFILES:{html:!0}});return jsx("div",{dangerouslySetInnerHTML:{__html:s.ignoreTags?l:o}})},KdTypography=({type:o="string",...s})=>{const l={type:o,maxLength:s.maxLength,typeNumber:s.typeNumber,format:s.format,formatTime:s.formatTime,formatDateTime:s.formatDateTime,loc:s.loc,ignoreTags:s.ignoreTags??!0};return jsx(KdpaTypography,{...s,children:typographyHelper(s.children,l)})};function getFileExtensions$1(o,s){if(s){let l=[];return o.image&&(o.image==="ALL"?l=l.concat(s.image):l=l.concat(o?.image?.filter(x=>s?.image?.includes(x)))),o.video&&(o.video==="ALL"?l=l.concat(s.video):l=l.concat(o?.video?.filter(x=>s?.video?.includes(x)))),o.text&&(o.text==="ALL"?l=l.concat(s.text):l=l.concat(o?.text?.filter(x=>s?.text?.includes(x)))),o.compress&&(o.compress==="ALL"?l=l.concat(s.compress):l=l.concat(o?.compress?.filter(x=>s?.compress?.includes(x)))),l.map(x=>`.${x}`).join(",")}else return"*"}const fileExtension={image:["jpg","jpeg","gif","png","svg","ico"],font:["ttf","eot","woff","woff2"],text:["doc","pdf","xls","ppt","txt","htm","docx","bmp","xlsx","pptx","tif","xml","epub","bpmn","cmmn","csv"],video:["mp4","wmv","mpg","divx","div","tix","qt","mov","avi","mpa","mpe","m1v","bmp"],compress:["zip","rar","tar","gz","tar.gz","tar.xz"]};function urlCreator(o,s){return{thumbnail_URL:s?.[0]==="$"?`${o}${serviceName.upload}${pathFile.thumbnailTempPath}${s}`:`${o}${serviceName.upload}${pathFile.thumbnailstreamPath}${s}`,larg_URL:s?.[0]==="$"?`${o}${serviceName.upload}${pathFile.tempPath}${s}`:`${o}${serviceName.upload}${pathFile.streamPath}${s}`}}async function fetchFilesProperty(o,s,l){if(!s||s.length===0)return[];try{const x={method:"GET",headers:{sessionId:l??""},credentials:"include"};return(await(await fetch(`${o}${serviceName.upload}${s?.[0]?.[0]==="$"?pathFile.restTempUrlFileProperty:pathFile.restStreamUrlFileProperty}${s.join(",")}`,x)).json())?.data}catch(x){return console.error("Error:",x),[]}}const showMessageActions=(o,s,l)=>{o.filter(w=>w?.subStatusCode===3||w?.subStatusCode===4)?.forEach(w=>{if(w)switch(w?.subStatusCode){case 0:break;case 1:break;case 2:break;case 3:l?.(w?.message??"");break;case 4:s?.(w?.message??"");break}})},serviceName={upload:"/upload/rest"},pathFile={streamPath:"/api/v1/fileupload/download/stream/",thumbnailstreamPath:"/api/v1/fileupload/thumbnail/stream/",tempPath:"/api/v1/fileupload/download/temp/",thumbnailTempPath:"/api/v1/fileupload/thumbnail/temp/",restStreamUrlFileProperty:"/api/v1/fileupload/property/stream/",restTempUrlFileProperty:"/api/v1/fileupload/property/temp/",exportPath:"/api/v1/export/download/"},pathServicesUpload={pathFileUpload:"/api/v1/fileupload/",pathForUploadCunk:"/api/v1/fileupload/upload/session/",pathForGetFile:"/api/v1/fileupload/upload/"},captchaPath="/auth/api/v1/bpmsCaptcha/image?rnd=";function KdFileUploader({label:o,defaultValue:s,placeholder:l,multiple:x=!1,accept:w,fileCountLimit:j,fileSizeLimit:V,onError:W,onWarning:U,pathProp:Y,inputStyle:X,style:Z,required:le,downloadSmallSize:oe,...re}){const{files:J,removeFile:ue,uploadingFiles:me,handleFileChange:fe,fileExtension:xe,APIURL:Te}=KdpaUseFileUploadHook({multiple:x,APIURL:Y?.APIURL,sessionId:Y?.sessionId,onError:W,onWarning:U,fileSizeLimit:V,fileCountLimit:j}),[ge,Pe]=useState([]);useEffect(()=>{re?.value===null&&ge.length>0&&(ge.forEach(Re=>ue(Re.session)),Pe([]))},[re?.value]),useEffect(()=>{(async()=>{if(s){const De=Array.isArray(s)?[...s]:[s],Le=await fetchFilesProperty(Te,De,Y?.sessionId);Pe(De.map(_e=>({fileName:(Le??[]).find(Be=>Be.guid===_e)?.fileName,session:_e})))}else Pe([])})()},[s]),useEffect(()=>{J&&(x?Pe(Re=>[...Re,...J.filter(De=>!ge.find(Le=>Le.session===De.session)).map(De=>({fileName:De.fileName,session:De.session}))??[]]):J.length>0&&Pe([{fileName:J[0]?.fileName,session:J[0]?.session}]))},[J]),useEffect(()=>{re.onChange&&(x?re.onChange((ge??[]).map(Re=>Re.session)):ge.length>0?re.onChange(ge[ge.length-1]?.session):re.onChange())},[ge]);const Se=Re=>{Pe(De=>De.filter(Le=>Le.session!==Re)),J?.find(De=>De.session===Re)&&ue&&ue(Re)};return jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"10px",alignItems:"center",width:"100%",...Z},children:[jsxs(KdpaTypography,{children:[o," ",le&&"*"]}),jsx("label",{htmlFor:`icon-button-file-${re.name}`,children:jsxs(KdpaSecondaryButton,{component:"span",style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"5px",...X,...re?.disabled&&{opacity:"0.5"}},children:[jsx(FiUpload,{}),l]})}),jsx("input",{style:{display:"none"},accept:xe&&w?getFileExtensions$1(w,xe):"*",id:`icon-button-file-${re.name}`,type:"file",multiple:x,onChange:Re=>{fe(Re,w)},disabled:re?.disabled}),jsx("input",{type:"hidden",...re,value:ge?.map(Re=>Re.session)}),ge&&ge.map(Re=>{const De=urlCreator(Te,Re.session);return jsx(KdpaUploadedFile,{sessionId:Re?.session,smallUrl:De.thumbnail_URL,largeUrl:De.larg_URL,fileName:Re?.fileName,onDelete:re.disabled?void 0:Se,downloadSmallSize:oe,modal:!0,extention:Re.fileName?.split(".").pop()})}),me&&(x||ge.length===0)&&me.map(Re=>jsx(KdpaUploadingFile,{progress:Re.progress}))]})}function getFileExtensions(o,s){if(s){const l={};return o.image&&(o.image==="ALL"?l["image/*"]=s.image.map(x=>`.${x}`):o.image.forEach(x=>{s?.image?.includes(x)&&(l["image/"+x]=["."+x])})),o.video&&(o.video==="ALL"?l["video/*"]=s.video.map(x=>`.${x}`):o.video.forEach(x=>{s?.video?.includes(x)&&(l["video/"+x]=["."+x])})),o.text&&(o.text==="ALL"?l["text/*"]=s.text.map(x=>`.${x}`):o.text.forEach(x=>{s?.text?.includes(x)&&(l["text/"+x]=["."+x])})),o.compress&&(o.compress==="ALL"?l["text/*"]=[...l["text/*"]??[],...s.compress.map(x=>`.${x}`)??[]]:o.compress.forEach(x=>{s?.compress?.includes(x)&&(l["text/"+x]=["."+x])})),l}else return"*"}const KdAdvanceFileUploader=({label:o="\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:s,multiple:l=!1,accept:x,fileCountLimit:w=20,fileSizeLimit:j,onError:V,onWarning:W,required:U,pathProp:Y,downloadSmallSize:X,...Z})=>{const{files:le,removeFile:oe,uploadingFiles:re,handleFileChange:J,fileExtension:ue,APIURL:me}=KdpaUseFileUploadHook({multiple:l,APIURL:Y?.APIURL,sessionId:Y?.sessionId,onError:V,onWarning:W,fileSizeLimit:j,fileCountLimit:w}),[fe,xe]=useState([]);useEffect(()=>{Z?.value===null&&fe.length>0&&(fe.forEach(Be=>oe(Be.session)),xe([]))},[Z?.value]),useEffect(()=>{(async()=>{if(s){const Fe=Array.isArray(s)?[...s]:[s],je=await fetchFilesProperty(me,Fe,Y?.sessionId);xe(Fe.map(ze=>({fileName:(je??[]).find(We=>We.guid===ze)?.fileName,session:ze})))}else xe([])})()},[s]),useEffect(()=>{le&&(l?xe(Be=>[...Be,...le.filter(Fe=>!fe.find(je=>je.session===Fe.session)).map(Fe=>({fileName:Fe.fileName,session:Fe.session}))??[]]):le.length>0&&xe([{fileName:le[0]?.fileName,session:le[0]?.session}]))},[le]),useEffect(()=>{Z.onChange&&(l?Z.onChange((fe??[]).map(Be=>Be.session)):fe.length>0?Z.onChange(fe[fe.length-1].session):Z.onChange())},[fe]);const Te=useCallback(Be=>{const Fe={target:{files:Be}};if(Be.length+fe.length>w){V?.(`\u062D\u062F\u0627\u06A9\u062B\u0631 ${w} \u0641\u0627\u06CC\u0644 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F.`);return}else J(Fe,x)},[fe]),ge=Be=>{xe(Fe=>Fe.filter(je=>je.session!==Be)),le?.find(Fe=>Fe.session===Be)&&oe&&oe(Be)},{getRootProps:Pe,getInputProps:Se,isDragAccept:Re,isDragReject:De,open:Le,inputRef:_e}=useDropzone({onDropAccepted:Te,accept:x?getFileExtensions(x,ue??null):void 0,maxFiles:9999,noClick:!0,multiple:l,disabled:Z?.disabled});return useEffect(()=>{if(!_e.current)return;const Be=async Fe=>{const je=Fe.clipboardData?.files;je&&je.length>0&&_e.current&&(_e.current.files=je,_e.current.dispatchEvent(new Event("change",{bubbles:!0})))};return document.addEventListener("paste",Be),()=>{document.removeEventListener("paste",Be)}},[_e]),jsx(Box3,{children:jsxs(Box3,{component:"section",sx:{mb:1,border:2,borderStyle:"dashed",borderRadius:3,borderColor:Be=>Be.palette.primary.main,transition:"all 0.3s ease-in-ease-out",...Re&&{borderColor:Be=>Be.palette.success.main},...Re&&{bgcolor:Be=>Be.palette.success.light},...De&&{borderColor:Be=>Be.palette.warning.main},...De&&{bgcolor:Be=>Be.palette.warning.light},...Z.sx},...Pe(),children:[jsx("input",{...Se(),...Z["aria-id"]&&{"aria-id":Z["aria-id"]}}),jsxs(Box3,{sx:{p:2,display:"flex",flexDirection:"column",justifyContent:"center"},children:[jsxs(KdpaTypography,{sx:{display:"flex",justifyContent:"center"},children:[o," ",U&&"*"]}),jsx(Box3,{sx:{display:"flex",justifyContent:"center"},children:jsx(IconButton$1,{sx:{color:Be=>Be.palette.primary.main,...Re&&{color:Be=>Be.palette.success.main},...De&&{color:Be=>Be.palette.warning.main},...Z?.disabled&&{opacity:"0.5"}},onClick:Le,children:jsx(SlCloudUpload,{size:45})})}),jsx(KdpaCollapse,{in:fe?.length!==0||re?.length!==0,children:jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"10px",flexWrap:"wrap"},children:[fe&&fe.map(Be=>{const Fe=urlCreator(me,Be.session);return jsx(KdpaUploadedFile,{sessionId:Be.session,smallUrl:Fe.thumbnail_URL,largeUrl:Fe.larg_URL,fileName:Be.fileName,onDelete:Z.disabled?void 0:ge,downloadSmallSize:X,modal:!0,extention:Be.fileName?.split(".").pop()})}),re&&(l||fe.length===0)&&re.map(Be=>jsx(KdpaUploadingFile,{progress:Be.progress}))]})})]})]})})};function GenerateDataChart3D(o,s,l,x){const w=Array.from(new Set(o.map(W=>W[s])));return w.length===1&&w[0]===void 0?{series:[],uniqueCategoryArray:[]}:{series:Array.from(new Set(o.map(W=>W[l]))).map(W=>({name:W,data:w.map(U=>{const Y=o.find(X=>X[l]===W&&X[s]===U);return Y&&!Number.isNaN(parseInt(Y[x]))?parseInt(Y[x]):0})})),uniqueCategoryArray:w}}var reactApexcharts_min={},apexcharts_common={exports:{}};/*!
|
|
@@ -1477,7 +1477,7 @@ Message: ${o}`),o}}const isString=o=>typeof o=="string",isFunction=o=>typeof o==
|
|
|
1477
1477
|
}
|
|
1478
1478
|
`;return j&&j.insertRule(V,0),x};var BasicColors;(function(o){o.maroon="#800000",o.red="#FF0000",o.orange="#FFA500",o.yellow="#FFFF00",o.olive="#808000",o.green="#008000",o.purple="#800080",o.fuchsia="#FF00FF",o.lime="#00FF00",o.teal="#008080",o.aqua="#00FFFF",o.blue="#0000FF",o.navy="#000080",o.black="#000000",o.gray="#808080",o.silver="#C0C0C0",o.white="#FFFFFF"})(BasicColors||(BasicColors={}));const handleRgbColorString=(o,s)=>{if(o.includes("/"))return o.replace("rgb(","rgba(");const l=o.substring(o.startsWith("rgba(")?5:4,o.length-1).trim(),x=l.split(",");return x.length===4?o.replace("rgb(","rgba("):x.length===3?`rgba(${l}, ${s})`:`rgba(${l} / ${s})`},calculateRgba=(o,s)=>{if(o.startsWith("rgb"))return handleRgbColorString(o,s);if(Object.keys(BasicColors).includes(o)&&(o=BasicColors[o]),o[0]==="#"&&(o=o.slice(1)),o.length===3){let x="";o.split("").forEach(w=>{x+=w,x+=w}),o=x}return`rgba(${(o.match(/.{2}/g)||[]).map(x=>parseInt(x,16)).join(", ")}, ${s})`},long=createAnimation("BarLoader","0% {left: -35%;right: 100%} 60% {left: 100%;right: -90%} 100% {left: 100%;right: -90%}","long"),short=createAnimation("BarLoader","0% {left: -200%;right: 100%} 60% {left: 107%;right: -8%} 100% {left: 107%;right: -8%}","short");function BarLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},height:w=4,width:j=100,...V}){const W={display:"inherit",position:"relative",width:cssValue(j),height:cssValue(w),overflow:"hidden",backgroundColor:calculateRgba(s,.2),backgroundClip:"padding-box",...x},U=Y=>({position:"absolute",height:cssValue(w),overflow:"hidden",backgroundColor:s,backgroundClip:"padding-box",display:"block",borderRadius:2,willChange:"left, right",animationFillMode:"forwards",animation:`${Y===1?long:short} ${2.1/l}s ${Y===2?`${1.15/l}s`:""} ${Y===1?"cubic-bezier(0.65, 0.815, 0.735, 0.395)":"cubic-bezier(0.165, 0.84, 0.44, 1)"} infinite`});return o?jsxs("span",{style:W,...V,children:[jsx("span",{style:U(1)}),jsx("span",{style:U(2)})]}):null}const beat=createAnimation("BeatLoader","50% {transform: scale(0.75);opacity: 0.2} 100% {transform: scale(1);opacity: 1}","beat");function BeatLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=15,margin:j=2,...V}){const W={display:"inherit",...x},U=Y=>({display:"inline-block",backgroundColor:s,width:cssValue(w),height:cssValue(w),margin:cssValue(j),borderRadius:"100%",animation:`${beat} ${.7/l}s ${Y%2?"0s":`${.35/l}s`} infinite linear`,animationFillMode:"both"});return o?jsxs("span",{style:W,...V,children:[jsx("span",{style:U(1)}),jsx("span",{style:U(2)}),jsx("span",{style:U(3)})]}):null}const circle=createAnimation("CircleLoader","0% {transform: rotate(0deg)} 50% {transform: rotate(180deg)} 100% {transform: rotate(360deg)}","circle");function CircleLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=50,...j}){const V={display:"inherit",position:"relative",width:cssValue(w),height:cssValue(w),...x},W=U=>{const{value:Y,unit:X}=parseLengthAndUnit(w);return{position:"absolute",height:`${Y*(1-U/10)}${X}`,width:`${Y*(1-U/10)}${X}`,borderTop:`1px solid ${s}`,borderBottom:"none",borderLeft:`1px solid ${s}`,borderRight:"none",borderRadius:"100%",transition:"2s",top:`${U*.7*2.5}%`,left:`${U*.35*2.5}%`,animation:`${circle} ${1/l}s ${U*.2/l}s infinite linear`}};return o?jsxs("span",{style:V,...j,children:[jsx("span",{style:W(0)}),jsx("span",{style:W(1)}),jsx("span",{style:W(2)}),jsx("span",{style:W(3)}),jsx("span",{style:W(4)})]}):null}const clip=createAnimation("ClipLoader","0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(1)} 100% {transform: rotate(360deg) scale(1)}","clip");function ClipLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=35,...j}){const V={background:"transparent !important",width:cssValue(w),height:cssValue(w),borderRadius:"100%",border:"3px solid",borderTopColor:s,borderBottomColor:"transparent",borderLeftColor:s,borderRightColor:s,display:"inline-block",animation:`${clip} ${.75/l}s 0s infinite linear`,animationFillMode:"both",...x};return o?jsx("span",{style:V,...j}):null}const rotate$2=createAnimation("ClockLoader","100% { transform: rotate(360deg) }","rotate");function ClockLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=50,...j}){const{value:V,unit:W}=parseLengthAndUnit(w),U={display:"inherit",position:"relative",width:`${V}${W}`,height:`${V}${W}`,backgroundColor:"transparent",boxShadow:`inset 0px 0px 0px 2px ${s}`,borderRadius:"50%",...x},Y={position:"absolute",backgroundColor:s,width:`${V/3}px`,height:"2px",top:`${V/2-1}px`,left:`${V/2-1}px`,transformOrigin:"1px 1px",animation:`${rotate$2} ${8/l}s linear infinite`},X={position:"absolute",backgroundColor:s,width:`${V/2.4}px`,height:"2px",top:`${V/2-1}px`,left:`${V/2-1}px`,transformOrigin:"1px 1px",animation:`${rotate$2} ${2/l}s linear infinite`};return o?jsxs("span",{style:U,...j,children:[jsx("span",{style:X}),jsx("span",{style:Y})]}):null}const rotate$1=createAnimation("DotLoader","100% {transform: rotate(360deg)}","rotate"),bounce=createAnimation("DotLoader","0%, 100% {transform: scale(0)} 50% {transform: scale(1.0)}","bounce");function DotLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=60,...j}){const V={display:"inherit",position:"relative",width:cssValue(w),height:cssValue(w),animationFillMode:"forwards",animation:`${rotate$1} ${2/l}s 0s infinite linear`,...x},W=U=>{const{value:Y,unit:X}=parseLengthAndUnit(w);return{position:"absolute",top:U%2?"0":"auto",bottom:U%2?"auto":"0",height:`${Y/2}${X}`,width:`${Y/2}${X}`,backgroundColor:s,borderRadius:"100%",animationFillMode:"forwards",animation:`${bounce} ${2/l}s ${U===2?"1s":"0s"} infinite linear`}};return o?jsxs("span",{style:V,...j,children:[jsx("span",{style:W(1)}),jsx("span",{style:W(2)})]}):null}const fade=createAnimation("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade");function FadeLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=40,...j}){const{value:V}=parseLengthAndUnit(w),W=Number(w)/2,U=W/2+W/5.5,Y={display:"inherit",position:"relative",fontSize:"0",top:W-W/2,left:W-W/2,width:`${V}px`,height:`${V}px`,...x},X=xe=>({position:"absolute",width:cssValue(4),height:cssValue(Number(w)-W),margin:cssValue(2),backgroundColor:s,borderRadius:cssValue(2),transition:"2s",animationFillMode:"both",animation:`${fade} ${1.2/l}s ${xe*.12}s infinite ease-in-out`}),Z={...X(1),top:`${W}px`,left:"0"},le={...X(2),top:`${U}px`,left:`${U}px`,transform:"rotate(-45deg)"},oe={...X(3),top:"0",left:`${W}px`,transform:"rotate(90deg)"},re={...X(4),top:`${-1*U}px`,left:`${U}px`,transform:"rotate(45deg)"},J={...X(5),top:`${-1*W}px`,left:"0"},ue={...X(6),top:`${-1*U}px`,left:`${-1*U}px`,transform:"rotate(-45deg)"},me={...X(7),top:"0",left:`${-1*W}px`,transform:"rotate(90deg)"},fe={...X(8),top:`${U}px`,left:`${-1*U}px`,transform:"rotate(45deg)"};return o?jsxs("span",{style:Y,...j,children:[jsx("span",{style:Z}),jsx("span",{style:le}),jsx("span",{style:oe}),jsx("span",{style:re}),jsx("span",{style:J}),jsx("span",{style:ue}),jsx("span",{style:me}),jsx("span",{style:fe})]}):null}const grid=createAnimation("GridLoader","0% {transform: scale(1)} 50% {transform: scale(0.5); opacity: 0.7} 100% {transform: scale(1); opacity: 1}","grid"),random=o=>Math.random()*o;function GridLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=15,margin:j=2,...V}){const W=parseLengthAndUnit(w),U=parseLengthAndUnit(j),Y=parseFloat(W.value.toString())*3+parseFloat(U.value.toString())*6,X={width:`${Y}${W.unit}`,fontSize:0,display:"inline-block",...x},Z=le=>({display:"inline-block",backgroundColor:s,width:`${cssValue(w)}`,height:`${cssValue(w)}`,margin:cssValue(j),borderRadius:"100%",animationFillMode:"both",animation:`${grid} ${(le/100+.6)/l}s ${le/100-.2}s infinite ease`});return o?jsxs("span",{style:X,...V,ref:le=>{le&&le.style.setProperty("width",`${Y}${W.unit}`,"important")},children:[jsx("span",{style:Z(random(100))}),jsx("span",{style:Z(random(100))}),jsx("span",{style:Z(random(100))}),jsx("span",{style:Z(random(100))}),jsx("span",{style:Z(random(100))}),jsx("span",{style:Z(random(100))}),jsx("span",{style:Z(random(100))}),jsx("span",{style:Z(random(100))}),jsx("span",{style:Z(random(100))})]}):null}const moon=createAnimation("MoonLoader","100% {transform: rotate(360deg)}","moon");function MoonLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=60,...j}){const{value:V,unit:W}=parseLengthAndUnit(w),U=Math.round(V/7),Y={display:"inherit",position:"relative",width:`${`${V+U*2}${W}`}`,height:`${`${V+U*2}${W}`}`,animation:`${moon} ${.6/l}s 0s infinite linear`,animationFillMode:"forwards",...x},X=oe=>({width:cssValue(oe),height:cssValue(oe),borderRadius:"100%"}),Z={...X(U),backgroundColor:`${s}`,opacity:"0.8",position:"absolute",top:`${`${V/2-U/2}${W}`}`,animation:`${moon} ${.6/l}s 0s infinite linear`,animationFillMode:"forwards"},le={...X(V),border:`${U}px solid ${s}`,opacity:"0.1",boxSizing:"content-box",position:"absolute"};return o?jsxs("span",{style:Y,...j,children:[jsx("span",{style:Z}),jsx("span",{style:le})]}):null}const pulse=createAnimation("PulseLoader","0% {transform: scale(1); opacity: 1} 45% {transform: scale(0.1); opacity: 0.7} 80% {transform: scale(1); opacity: 1}","pulse");function PulseLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=15,margin:j=2,...V}){const W={display:"inherit",...x},U=Y=>({backgroundColor:s,width:cssValue(w),height:cssValue(w),margin:cssValue(j),borderRadius:"100%",display:"inline-block",animation:`${pulse} ${.75/l}s ${Y*.12/l}s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)`,animationFillMode:"both"});return o?jsxs("span",{style:W,...V,children:[jsx("span",{style:U(1)}),jsx("span",{style:U(2)}),jsx("span",{style:U(3)})]}):null}const puff=[createAnimation("PuffLoader","0% {transform: scale(0)} 100% {transform: scale(1.0)}","puff-1"),createAnimation("PuffLoader","0% {opacity: 1} 100% {opacity: 0}","puff-2")];function PuffLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=60,...j}){const V={display:"inherit",position:"relative",width:cssValue(w),height:cssValue(w),...x},W=U=>({position:"absolute",height:cssValue(w),width:cssValue(w),border:`thick solid ${s}`,borderRadius:"50%",opacity:"1",top:"0",left:"0",animationFillMode:"both",animation:`${puff[0]}, ${puff[1]}`,animationDuration:`${2/l}s`,animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1)",animationDelay:U===1?"-1s":"0s"});return o?jsxs("span",{style:V,...j,children:[jsx("span",{style:W(1)}),jsx("span",{style:W(2)})]}):null}const right=createAnimation("RingLoader","0% {transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg)} 100% {transform: rotateX(180deg) rotateY(360deg) rotateZ(360deg)}","right"),left=createAnimation("RingLoader","0% {transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg)} 100% {transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg)}","left");function RingLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=60,...j}){const{value:V,unit:W}=parseLengthAndUnit(w),U={display:"inherit",width:cssValue(w),height:cssValue(w),position:"relative",...x},Y=X=>({position:"absolute",top:"0",left:"0",width:`${V}${W}`,height:`${V}${W}`,border:`${V/10}${W} solid ${s}`,opacity:"0.4",borderRadius:"100%",animationFillMode:"forwards",perspective:"800px",animation:`${X===1?right:left} ${2/l}s 0s infinite linear`});return o?jsxs("span",{style:U,...j,children:[jsx("span",{style:Y(1)}),jsx("span",{style:Y(2)})]}):null}const scale=createAnimation("ScaleLoader","0% {transform: scaley(1.0)} 50% {transform: scaley(0.4)} 100% {transform: scaley(1.0)}","scale");function ScaleLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=60,margin:j=2,...V}){const W={display:"inherit",...x},U=Y=>({backgroundColor:s,width:cssValue(Math.round(Number(w)/10)),height:cssValue(w),margin:cssValue(j),borderRadius:cssValue(2),display:"inline-block",animation:`${scale} ${1/l}s ${Y*.1}s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)`,animationFillMode:"both"});return o?jsx("span",{style:W,...V,children:Array.from(Array(Math.round(Number(w)/10)).keys()).map(Y=>jsx("span",{style:U(Y)},Y))}):null}const sync=createAnimation("SyncLoader",`33% {transform: translateY(10px)}
|
|
1479
1479
|
66% {transform: translateY(-10px)}
|
|
1480
|
-
100% {transform: translateY(0)}`,"sync");function SyncLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=15,margin:j=2,...V}){const W={display:"inherit",...x},U=Y=>({backgroundColor:s,width:cssValue(w),height:cssValue(w),margin:cssValue(j),borderRadius:"100%",display:"inline-block",animation:`${sync} ${.6/l}s ${Y*.07}s infinite ease-in-out`,animationFillMode:"both"});return o?jsxs("span",{style:W,...V,children:[jsx("span",{style:U(1)}),jsx("span",{style:U(2)}),jsx("span",{style:U(3)})]}):null}var Components=Object.freeze({__proto__:null,BarLoader,BeatLoader,CircleLoader,ClipLoader,ClockLoader,DotLoader,FadeLoader,GridLoader,MoonLoader,PuffLoader,PulseLoader,RingLoader,ScaleLoader,SyncLoader});function KdLoading({type:o="ClipLoader",color:s,...l}){const x=useTheme$1(),w=useMemo$1(()=>Components[o],[o]),j=s||l?.sx?.color||x.palette.primary.main,V=j?.includes(".")?j.split(".").reduce((W,U)=>W?.[U],x.palette):j;return jsx(KdStyledComponent,{Component:w,...l,color:V})}var _defs$1,_g$1;function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(o){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var x in l)Object.prototype.hasOwnProperty.call(l,x)&&(o[x]=l[x])}return o},_extends$2.apply(this,arguments)}var SvgIr=function(s){return React$1.createElement("svg",_extends$2({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},s),_defs$1||(_defs$1=React$1.createElement("defs",null,React$1.createElement("clipPath",{id:"ir_svg__a"},React$1.createElement("path",{fillOpacity:.7,d:"M-85.3 0h682.7v512H-85.3z"})))),_g$1||(_g$1=React$1.createElement("g",{fillRule:"evenodd",clipPath:"url(#ir_svg__a)",transform:"translate(80)scale(.9375)"},React$1.createElement("path",{fill:"#fff",d:"M-192 0h896v512h-896z"}),React$1.createElement("path",{fill:"#da0000",d:"M-192 343.8h896V512h-896z"}),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M-21.6 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M52.4 367.7v3.4H33.8v-3.4zm-34.6-7.9H21v11.3h-3.3z"}),React$1.createElement("path",{d:"M49.6 351H53v20h-3.4zm-8.4 0h3.3v20h-3.3zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M17.8 359.9H21V371h-3.3z"}),React$1.createElement("path",{d:"M17.8 359.9H21V371h-3.3z"}),React$1.createElement("path",{d:"M17.8 359.9H21V371h-3.3zm-39.3 0h3.3V371h-3.3zm28.8 0h3.4V371H7.3zm-14.3 0h3.4V371H-7z"}),React$1.createElement("path",{d:"M9.6 367.7v3.4H-5.5v-3.4zm1-8.7v3.4H1V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M-102.2 351h49v3.3h-49zm7.3 16.8h3.4v3.3H-95zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M-28.2 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M-31 351h3.4v20H-31zm-8.4 0h3.3v20h-3.3zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M-62.8 359.9h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M-62.8 359.9h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M-62.8 359.9h3.3V371h-3.3zm-39.3 0h3.3V371h-3.3zm28.8 0h3.3V371h-3.3zm-14.3 0h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M-71 367.7v3.4h-15v-3.4zm1-8.7v3.4h-9.6V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M58.3 351h49v3.3h-49zm7.3 16.8H69v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.3-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M132.3 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M129.5 351h3.4v20h-3.4zm-8.4 0h3.4v20H121zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M97.7 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M97.7 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M97.7 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M89.6 367.7v3.4H74.4v-3.4zm1-8.7v3.4H81V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M622.7 351h49v3.3h-49zm7.3 16.8h3.4v3.3H630zm41.9 0v3.3H662v-3.4zm5.3-16.8h3.3v20h-3.4z"}),React$1.createElement("path",{d:"M696.7 367.7v3.4H678v-3.4zm-34.6-7.9h3.4v11.3H662z"}),React$1.createElement("path",{d:"M694 351h3.3v20h-3.4zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M662 359.9h3.5V371H662z"}),React$1.createElement("path",{d:"M662 359.9h3.5V371H662z"}),React$1.createElement("path",{d:"M662 359.9h3.5V371H662zm-39.2 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M654 367.7v3.4h-15.2v-3.4zm1-8.7v3.4h-9.6V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M138.7 351h49.1v3.3h-49zm7.4 16.8h3.3v3.3h-3.3zm41.8 0v3.3h-9.8v-3.4zm5.3-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M212.8 367.7v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M210 351h3.4v20H210zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-17.9V359zm39.3 0v3.4h-17.9V359z"}),React$1.createElement("path",{d:"M178.1 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M178.1 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M178.1 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.2 0h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M170 367.7v3.4h-15.1v-3.4zm1-8.7v3.4h-9.6V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M219.5 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zM274 351h3.3v20H274z"}),React$1.createElement("path",{d:"M293.5 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M290.7 351h3.4v20h-3.4zm-8.4 0h3.4v20h-3.4zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M258.9 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M258.9 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M258.9 359.9h3.4V371h-3.4zm-39.3 0h3.3V371h-3.3zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371H234z"}),React$1.createElement("path",{d:"M250.8 367.7v3.4h-15.2v-3.4zm1-8.7v3.4H242V359z"})),React$1.createElement("path",{fill:"#239f40",d:"M-192 0h896v168.2h-896z"}),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M300.7 351h49v3.3h-49zm7.3 16.8h3.4v3.3H308zm41.9 0v3.3H340v-3.4zm5.3-16.8h3.3v20h-3.3z"}),React$1.createElement("path",{d:"M374.7 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3H340z"}),React$1.createElement("path",{d:"M372 351h3.3v20H372zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M340 359.9h3.5V371H340z"}),React$1.createElement("path",{d:"M340 359.9h3.5V371H340z"}),React$1.createElement("path",{d:"M340 359.9h3.5V371H340zm-39.2 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M332 367.7v3.4h-15.2v-3.4zm1-8.7v3.4h-9.6V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M381.4 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm42 0v3.3h-9.9v-3.4zm5.2-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M455.4 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M452.7 351h3.3v20h-3.3zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-17.9V359zm39.3 0v3.4h-17.9V359z"}),React$1.createElement("path",{d:"M420.8 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M420.8 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M420.8 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.3z"}),React$1.createElement("path",{d:"M412.7 367.7v3.4h-15.1v-3.4zm1-8.7v3.4H404V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M462.2 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M536.2 367.7v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M533.4 351h3.4v20h-3.4zm-8.4 0h3.3v20H525zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M501.6 359.9h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M501.6 359.9h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M501.6 359.9h3.3V371h-3.3zm-39.4 0h3.4V371h-3.4zm28.9 0h3.3V371h-3.3zm-14.3 0h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M493.4 367.7v3.4h-15.1v-3.4zm1-8.7v3.4h-9.6V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M543.4 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M617.4 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M614.6 351h3.4v20h-3.4zm-8.4 0h3.3v20h-3.3zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M582.8 359.9h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M582.8 359.9h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M582.8 359.9h3.3V371h-3.3zm-39.3 0h3.3V371h-3.3zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371H558z"}),React$1.createElement("path",{d:"M574.6 367.7v3.4h-15.1v-3.4zm1-8.7v3.4H566V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M-183.8 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm42 0v3.3h-9.9v-3.4zm5.2-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M-109.8 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M-112.5 351h3.3v20h-3.3zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-17.9V359zm39.3 0v3.4h-17.9V359z"}),React$1.createElement("path",{d:"M-144.4 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M-144.4 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M-144.4 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M-152.5 367.7v3.4h-15.2v-3.4zm1-8.7v3.4h-9.6V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M-21.6 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M52.4 160.2v3.4H33.8v-3.4zm-34.6-7.9H21v11.3h-3.3z"}),React$1.createElement("path",{d:"M49.6 143.4H53v20.2h-3.4zm-8.4 0h3.3v20.2h-3.3zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M17.8 152.3H21v11.3h-3.3z"}),React$1.createElement("path",{d:"M17.8 152.3H21v11.3h-3.3z"}),React$1.createElement("path",{d:"M17.8 152.3H21v11.3h-3.3zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.4v11.3H7.3zm-14.3 0h3.4v11.3H-7z"}),React$1.createElement("path",{d:"M9.6 160.2v3.4H-5.5v-3.4zm1-8.7v3.3H1v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M-102.2 143.4h49v3.4h-49zm7.3 17h3.4v3.2H-95zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M-28.2 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M-31 143.4h3.4v20.2H-31zm-8.4 0h3.3v20.2h-3.3zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M-62.8 152.3h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M-62.8 152.3h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M-62.8 152.3h3.3v11.3h-3.3zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.3v11.3h-3.3zm-14.3 0h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M-71 160.2v3.4h-15v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M58.3 143.4h49v3.4h-49zm7.3 17H69v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.3-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M132.3 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M129.5 143.4h3.4v20.2h-3.4zm-8.4 0h3.4v20.2H121zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M97.7 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M97.7 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M97.7 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M89.6 160.2v3.4H74.4v-3.4zm1-8.7v3.3H81v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M622.7 143.4h49v3.4h-49zm7.3 17h3.4v3.2H630zm41.9-.2v3.4H662v-3.4zm5.3-16.8h3.3v20.2h-3.4z"}),React$1.createElement("path",{d:"M696.7 160.2v3.4H678v-3.4zm-34.6-7.9h3.4v11.3H662z"}),React$1.createElement("path",{d:"M694 143.4h3.3v20.2h-3.4zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M662 152.3h3.5v11.3H662z"}),React$1.createElement("path",{d:"M662 152.3h3.5v11.3H662z"}),React$1.createElement("path",{d:"M662 152.3h3.5v11.3H662zm-39.2 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M654 160.2v3.4h-15.2v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M138.7 143.4h49.1v3.4h-49zm7.4 17h3.3v3.2h-3.3zm41.8-.2v3.4h-9.8v-3.4zm5.3-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M212.8 160.2v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M210 143.4h3.4v20.2H210zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-17.9v-3.3zm39.3 0v3.4h-17.9v-3.3z"}),React$1.createElement("path",{d:"M178.1 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M178.1 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M178.1 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.2 0h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M170 160.2v3.4h-15.1v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M219.5 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.3-16.8h3.3v20.2H274z"}),React$1.createElement("path",{d:"M293.5 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M290.7 143.4h3.4v20.2h-3.4zm-8.4 0h3.4v20.2h-3.4zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M258.9 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M258.9 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M258.9 152.3h3.4v11.3h-3.4zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3H234z"}),React$1.createElement("path",{d:"M250.8 160.2v3.4h-15.2v-3.4zm1-8.7v3.3H242v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M300.7 143.4h49v3.4h-49zm7.3 17h3.4v3.2H308zm41.9-.2v3.4H340v-3.4zm5.3-16.8h3.3v20.2h-3.3z"}),React$1.createElement("path",{d:"M374.7 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3H340z"}),React$1.createElement("path",{d:"M372 143.4h3.3v20.2H372zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M340 152.3h3.5v11.3H340z"}),React$1.createElement("path",{d:"M340 152.3h3.5v11.3H340z"}),React$1.createElement("path",{d:"M340 152.3h3.5v11.3H340zm-39.2 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M332 160.2v3.4h-15.2v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M381.4 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm42-.2v3.4h-9.9v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M455.4 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M452.7 143.4h3.3v20.2h-3.3zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-17.9v-3.3zm39.3 0v3.4h-17.9v-3.3z"}),React$1.createElement("path",{d:"M420.8 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M420.8 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M420.8 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.3z"}),React$1.createElement("path",{d:"M412.7 160.2v3.4h-15.1v-3.4zm1-8.7v3.3H404v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M462.2 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M536.2 160.2v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M533.4 143.4h3.4v20.2h-3.4zm-8.4 0h3.3v20.2H525zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M501.6 152.3h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M501.6 152.3h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M501.6 152.3h3.3v11.3h-3.3zm-39.4 0h3.4v11.3h-3.4zm28.9 0h3.3v11.3h-3.3zm-14.3 0h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M493.4 160.2v3.4h-15.1v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M543.4 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M617.4 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M614.6 143.4h3.4v20.2h-3.4zm-8.4 0h3.3v20.2h-3.3zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M582.8 152.3h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M582.8 152.3h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M582.8 152.3h3.3v11.3h-3.3zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3H558z"}),React$1.createElement("path",{d:"M574.6 160.2v3.4h-15.1v-3.4zm1-8.7v3.3H566v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M-183.8 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm42-.2v3.4h-9.9v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M-109.8 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M-112.5 143.4h3.3v20.2h-3.3zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-17.9v-3.3zm39.3 0v3.4h-17.9v-3.3z"}),React$1.createElement("path",{d:"M-144.4 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M-144.4 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M-144.4 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M-152.5 160.2v3.4h-15.2v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),React$1.createElement("path",{fill:"#d90000",d:"M-68.8 339.5h6V350h-6zm160.5 0h6V350h-6zm-283.7 0h6V350h-6zm81.5 0h6V350h-6zm80.9 0h6V350h-6zm40 0h6V350h-6zm40.9 0h6V350h-6zm80.4 0h6V350h-6zm203 0h6.1V350h-6zm-162.1 0h6V350h-6zm40 0h6V350h-6zm40.5 0h6V350h-6zm40.4 0h6V350h-6zm323.2 0h6V350h-6zm-242.7 0h6V350h-6zm40.8 0h6V350h-6zm41.3 0h6V350h-6zm38.8 0h6V350h-6zm41.3 0h6V350h-6zm40.4 0h6V350h-6zm119.7 0h6V350h-6zm-38.8 0h6V350h-6zm-808.9 0h6V350h-6z"}),React$1.createElement("path",{fill:"#239e3f",d:"M-68.8 162.6h6v10.5h-6zm160.5 0h6v10.5h-6zm-283.7 0h6v10.5h-6zm81.5 0h6v10.5h-6zm80.9 0h6v10.5h-6zm40 0h6v10.5h-6zm40.9 0h6v10.5h-6zm80.4 0h6v10.5h-6zm203 0h6.1v10.5h-6zm-162.1 0h6v10.5h-6zm40 0h6v10.5h-6zm40.5 0h6v10.5h-6zm40.4 0h6v10.5h-6zm323.2 0h6v10.5h-6zm-242.7 0h6v10.5h-6zm40.8 0h6v10.5h-6zm41.3 0h6v10.5h-6zm38.8 0h6v10.5h-6zm41.3 0h6v10.5h-6zm40.4 0h6v10.5h-6zm119.7 0h6v10.5h-6zm-38.8 0h6v10.5h-6zm-808.9 0h6v10.5h-6z"}),React$1.createElement("g",{fill:"#da0000"},React$1.createElement("path",{d:"M279.8 197.5c8.4 10.4 34.5 67.6-15.7 105.2-23.7 17.8-9 18.6-8.3 21.6 38-20.1 50.3-47.5 50-72-.2-24.4-13.2-46-26-54.8"}),React$1.createElement("path",{d:"M284.8 194.8a73.3 73.3 0 0 1 15.7 112.4c27.2-6 62-86.4-15.7-112.4m-57.6 0a73.3 73.3 0 0 0-15.6 112.4c-27.3-6-62-86.4 15.6-112.4"}),React$1.createElement("path",{d:"M232.2 197.5c-8.4 10.4-34.5 67.6 15.7 105.2 23.6 17.8 9 18.6 8.3 21.6-38-20.1-50.3-47.5-50-72 .2-24.4 13.2-46 26-54.8"}),React$1.createElement("path",{d:"M304.2 319.1c-14.9.2-33.6-2-47.5-9.3 2.3 4.5 4.2 7.3 6.5 11.7 13.2 1.3 31.5 2.8 41-2.4m-95 0c14.9.2 33.6-2 47.5-9.3-2.3 4.5-4.2 7.3-6.5 11.7-13.2 1.3-31.5 2.8-41-2.4m27.3-138.7c3 8 10.9 9.2 19.3 4.5 6.2 3.6 15.7 3.9 19-4.1 2.5 19.8-18.3 15-19 11.2-7.8 7.5-22.2 3.2-19.3-11.6"}),React$1.createElement("path",{d:"m256.4 331.6 7.8-9 1.1-120.1-9.3-8.2-9.3 7.8 1.9 121z"})))))},_path,_path2,_path3,_marker,_path4;function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(o){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var x in l)Object.prototype.hasOwnProperty.call(l,x)&&(o[x]=l[x])}return o},_extends$1.apply(this,arguments)}var SvgUs=function(s){return React$1.createElement("svg",_extends$1({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},s),_path||(_path=React$1.createElement("path",{fill:"#bd3d44",d:"M0 0h640v480H0"})),_path2||(_path2=React$1.createElement("path",{stroke:"#fff",strokeWidth:37,d:"M0 55.3h640M0 129h640M0 203h640M0 277h640M0 351h640M0 425h640"})),_path3||(_path3=React$1.createElement("path",{fill:"#192f5d",d:"M0 0h364.8v258.5H0"})),_marker||(_marker=React$1.createElement("marker",{id:"us_svg__a",markerHeight:30,markerWidth:30},React$1.createElement("path",{fill:"#fff",d:"m14 0 9 27L0 10h28L5 27z"}))),_path4||(_path4=React$1.createElement("path",{fill:"none",markerMid:"url(#us_svg__a)",d:"m0 0 16 11h61 61 61 61 60L47 37h61 61 60 61L16 63h61 61 61 61 60L47 89h61 61 60 61L16 115h61 61 61 61 60L47 141h61 61 60 61L16 166h61 61 61 61 60L47 192h61 61 60 61L16 218h61 61 61 61 60z"})))},_defs,_g;function _extends(){return _extends=Object.assign?Object.assign.bind():function(o){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var x in l)Object.prototype.hasOwnProperty.call(l,x)&&(o[x]=l[x])}return o},_extends.apply(this,arguments)}var SvgSa=function(s){return React$1.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},s),_defs||(_defs=React$1.createElement("defs",null,React$1.createElement("clipPath",{id:"sa_svg__a"},React$1.createElement("path",{fillOpacity:.7,d:"M-85.3 0h682.6v512H-85.3z"})))),_g||(_g=React$1.createElement("g",{fillRule:"evenodd",clipPath:"url(#sa_svg__a)",transform:"translate(80)scale(.9375)"},React$1.createElement("path",{fill:"#165d31",d:"M-128 0h768v512h-768z"}),React$1.createElement("path",{fill:"#fff",d:"M65.5 145.1c-.8 12-2 33 8.3 35.2 12.3 1.2 5.5-20.8 10-24.8.8-2 2.3-2 2.4.5v18.7c0 6 4 7.8 7 9 3.2-.2 5.4 0 6.6 3l1.6 32.3s7.4 2.2 7.8-18.1c.3-12-2.4-21.9-.8-24.2 0-2.3 3-2.4 5-1.3 3.2 2.2 4.6 5 9.6 4 7.6-2.2 12.2-5.9 12.3-11.7a47 47 0 0 0-3.5-16.6c.4-1-1.4-3.7-1-4.7 1.3 2.2 3.4 2 3.8 0-1.3-4.2-3.3-8.3-6.5-10-2.7-2.4-6.7-2-8 3-.8 5.7 2 12.4 6.1 18 .9 2.1 2.1 5.7 1.6 8.9-2.2 1.3-4.4.7-6.3-1.2 0 0-6-4.5-6-5.6 1.6-10.2.3-11.4-.6-14.3-.6-3.9-2.5-5.2-4-7.8-1.5-1.6-3.5-1.6-4.5 0-2.7 4.6-1.4 14.5.5 19 1.4 4.1 3.5 6.7 2.5 6.7-.8 2.3-2.5 1.7-3.8-1a66.6 66.6 0 0 1-2.1-17.4c-.5-4.6-1.1-14.4-4.2-17-1.8-2.4-4.5-1.2-5.5 1a82.4 82.4 0 0 0 .3 13.4c2 7.4 2.7 14 3.7 21.5.3 10.1-5.8 4.4-5.5-.7a45 45 0 0 0-.3-19.4c-1-2.6-2.1-3.2-4.6-2.8-1.9 0-6.8 5.3-8.2 14.3 0 0-1.2 4.6-1.7 8.7-.7 4.6-3.7 8-5.9-.6-1.8-6.3-3-21.6-6-18z"}),React$1.createElement("path",{fill:"#fff",d:"m99 194.2-32 15.4c.3-7.3 15.1-20.4 25.3-20.5 6.5.1 4.9 2.5 6.6 5.1z"}),React$1.createElement("path",{fill:"#fff",d:"M93.3 204.2c-16.8 43.5 39.5 49.6 45.8 1.8.6-2 3-3.9 3.4-.7-1.3 43.3-43.6 46.2-50.8 32.6a41.9 41.9 0 0 1-2.5-14.6c-1-8.5-5.5-5.2-6.2 3.2-.7 4.7-.5 6-.5 10.5 2.2 34.2 56.7 19.5 65.6-8.7 4.7-15.6-.8-27.1 1.7-27.1 5.4 5.8 13 .8 14.7-1.2.7-1 2.5-1.7 3.7-.4 4.2 3 11.6 1.6 13.2-3.7.9-5.3 1.6-10.7 1.8-16.2-3.5 1-6 1.7-6.3 3.2l-.7 4.6c-.3 1.5-3.2 1.5-3.4-.4-1.3-6-6.7-6.7-10 2.5-2.1 1.8-6.1 2.2-6.5-.5.5-6.2-2-7-7-4.1l-4.8-36.2c2 0 4 1.5 5.9-.9-2-6.5-6.5-19.7-9-20.7-1.1-1.4-2.1-.5-3.7-.1-2.6.8-5 3-4.2 7.4 3 18.8 5 33.1 8.1 52 .5 2.1-1.3 5-3.7 4.7-4-2.7-5-8.2-12-8-5 0-10.6 5.5-11.3 10.7-.9 4.2-1.2 8.7 0 12.3 3.5 4.2 7.7 3.8 11.4 2.9 3-1.3 5.5-4.3 6.6-3.6.7.9.1 10.9-14.3 18.5-8.7 4-15.7 4.8-19.4-2.3-2.3-4.5.2-21.4-5.6-17.5"}),React$1.createElement("path",{fill:"#fff",d:"M165 160c3.3-1.2 19.3-19.6 19.3-19.6l-2.4-2c-.9-.7-.8-1.5 0-2.2 4-2.4 2.7-7.4.7-9.8a9.7 9.7 0 0 0-8.7.1c-2.8 2.7-3.4 7-1.2 9.6 2.1 1 4.2 3.2 2.8 4.4-6.6 7-24.5 19.1-22.4 19.5.4.6 11.5.6 11.8 0zm-97 65c-6 9.6-6.5 23.9-3.2 28.2 1.8 2 4.7 2.9 6.8 2.2 3.8-1.6 5.5-9.3 4.6-12-1.3-2-2.3-2.3-3.6-.7-2.6 5.4-3.7 1.7-4-1.3a70 70 0 0 1 .8-15.2c.7-4.2 0-3-1.4-1.2m257.1-15.3c-5.8-12.6-13.9-25-16.4-29.7a558 558 0 0 0-24.8-36c-6.2-7.4 10.2 3.1-2-11.7l-8.9-7.5c-2-1.4-6.8-4-7.6.2-.4 3.8-.2 5.8.4 8.9.5 2 3.5 5.5 5 7.5a565 565 0 0 1 53.8 86.5c2.6-1.3 2-16.1.5-18.2"}),React$1.createElement("path",{fill:"#fff",d:"M299.6 251.5c-1.2 1.3 2.8 6.8 8 6.8 8.6-1 16.2-5.8 23.2-18.6a33 33 0 0 0 5.3-14.2 317 317 0 0 0-5.8-72.4c-.3-2 0-4.4.2-5 .6-.7 2.5 0 3.5-1.7 1.5-1.5-4-14-7-18.7-1-2.2-1.5-3.6-3.3.2a27 27 0 0 0-3 13.6c4.1 28.5 5.4 53.4 8 81.9.3 2.8-.1 6.8-2 8.4a80.2 80.2 0 0 1-27.1 19.7m116.5-.1c-6.2 3.6-6.2 7.7-1.2 7.8 8.6-1 18.8-1.7 25.8-12.3a41 41 0 0 0 4.2-16 303 303 0 0 0-4.7-71.4c-.2-2-1.1-6.7-.8-7.3.6-1.4 3.4.1 4.4-1.5 1.4-1.5-7.3-12.7-10.4-17.5-1-2.2-1.4-3.6-3.3.2a22.3 22.3 0 0 0-1.8 13.6c4.6 31 8 54.2 8.7 81.6-.4 2.6-.5 4-1.7 7.3-2.7 3.4-5.7 7.8-8.5 9.9-2.8 2-8.8 4-10.7 5.6"}),React$1.createElement("path",{fill:"#fff",d:"M420.7 223.7c0-7.3.1-13.5-.1-19a34 34 0 0 0-3-13.5c-1.8-4.1-.7-7.4-1.6-11.8-.8-4.4-.6-11-1.8-16.1-.4-2-1.4-8.5-1.1-9.2.5-1.4 2.4 0 3.4-1.6 1.4-1.5-5-18-8.2-22.7-1.1-2.1-3.3-1.4-5.8 2-2.5 2.3-1.6 7.4-.6 12.3 6.1 32.3 10.8 61.6 9.8 92.3-.4 2.6 9-7.8 9-12.7m-45.7-40c-3.9-.2-12-7.7-14.4-12a8 8 0 0 1 .4-6.5c1.5-1 3.7-2 5.4-1 0 0 1.7 2.4 1.4 2.7 2 1 3 .5 3.2-.4.1-1.5-.6-2.4-.6-4 .9-4.6 6-5.3 8-2.4 1.4 1.8 2 5.5 2.1 8 0 1.3-2-.2-3.3 0-1.1.4-1.4 1.8-1.5 3-.2 3.3-.6 8.6-.7 12.5zm-71.8 48c1-9.8-.4-27.3-.5-33.1A477 477 0 0 0 299 154c-1.2-8.4 3.4.9 2.8-4-1.5-8.3-6.1-14-11.6-21.5-1.7-2.5-1.7-3-4.4.6-3 6.7-.4 11.4.4 16.7 3.9 17.2 6.2 33 7.3 48.7a393 393 0 0 1 .4 49c3 .1 7.6-4.7 9.3-11.8"}),React$1.createElement("path",{fill:"#fff",d:"M434 216c-6.9-11.6-17.2-24-20-28.7a658 658 0 0 0-29.2-37.8c-8.5-9 4-1.5-1.6-8.5-4.7-5.1-6-6.8-10.1-9.9-2-1.3-3.2-3.8-4 .5a83 83 0 0 0-.2 11.2c0 1.7 1.8 5 3.4 7 20.7 25.5 43.4 51.5 61.6 84.2 2.6-1.3 1.7-16 0-18z"}),React$1.createElement("path",{fill:"#165d31",d:"M122.6 194.7c-.5.9-1.6 2-1.2 3.1.7 1 1.4 1.3 2.6 1.3 1.1 0 2.7.3 3-.3.6-.7 1-2 .6-3.3-1.2-3-4.4-1.8-5-.8"}),React$1.createElement("path",{fill:"#fff",d:"M354.2 362.5c9.2.4 15.2.5 23.3 1.4l9.6-1c10.6-1 11 15.1 11 15.1 0 9.5-3.7 10-8.4 11-2.7.4-4-1.6-5.5-3.6a14 14 0 0 1-7 .4c-3.9-.2-7.7-.2-11.5-.5-4-.3-6.2.5-10.3.1-.8 1.3-2 3.1-4.4 2.6-2-.3-4.5-6-3.8-10.5 1.5-3.2 1-2.1 1-3.5-37.6-1-75.5-2.7-112.3-2.2-28.8.1-57.2 1.3-85.7 2.5-15.2-.2-26.8-2.6-34.8-14.3.8 0 38.8 2.1 49.9 1.4 20.5-.2 39.3-1.9 60.2-2.5 41.2.7 82.1.7 123.3 3.6-4-2.7-4-9 2-10.6.5-.4.8 3.1 1.7 3 4.9-.3 2.7 6.3 1.7 7.6M188.6 135.3c-6.2 17.8 3.6 37.4 10.4 35.5 5 2 8-7.4 10-17.6 1.5-2.9 2.5-3.2 3.2-1.7-.2 13.6 1 16.7 4.5 20.8 7.8 6 14.3.8 14.8.3l6-6.1c1.4-1.5 3.2-1.5 5.1-.3 1.9 1.7 1.6 4.6 5.6 6.6 3.4 1.4 10.5.4 12.2-2.5 2.2-3.9 2.8-5.2 3.8-6.6 1.6-2.1 4.3-1.2 4.3-.5-.3 1.2-1.9 2.3-.8 4.5 2 1.4 2.4.5 3.5.2 4-2 7-10.6 7-10.6.1-3.2-1.7-3-2.9-2.2l-3.1 2.1c-2 .3-5.7 1.6-7.6-1.3-1.9-3.4-1.9-8.3-3.3-11.8 0-.2-2.6-5.5-.2-5.8 1.2.2 3.7.9 4.1-1.2 1.2-2.1-2.6-8-5.3-11-2.3-2.5-5.5-2.8-8.6-.2-2.2 2-1.9 4.2-2.3 6.3a9.8 9.8 0 0 0 2 8.7c2.2 4.2 6.1 9.7 4.8 17.5 0 0-2.3 3.6-6.3 3.1-1.7-.3-4.4-1-5.8-11.8-1.1-8 .2-19.4-3.2-24.7-1.3-3.3-2.2-6.4-5.2-.9-.8 2.2-4.3 5.5-1.8 12.2a36 36 0 0 1 2 19c-1.5 2.2-1.8 2.9-3.7 5-2.6 3-5.5 2.2-7.7 1.1-2-1.3-3.6-2-4.6-6.5.2-7 .6-18.5-.7-20.9-1.9-3.8-5-2.4-6.3-1.2a47.7 47.7 0 0 0-11.5 23.5c-1.8 5.8-3.7 4.1-5 1.8-3.2-3-3.5-26.7-7.4-22.8"}),React$1.createElement("path",{fill:"#fff",d:"M207.4 174.1c2.9-2 1.6-3.4 5.8.8a72 72 0 0 1 9.2 31.3c-.2 2.6 1.6 4.2 2.5 3.6.4-6 15.1-14.4 28.6-15.6 2-.5 1-4.4 1.3-6.4-.8-7.5 4.2-14.3 11.2-14.8 9.6 1.4 12.8 6.5 13 14.2-1.1 15-16.7 17.5-25.4 18.7-1.3.5-1.9 1.1 0 1.8l36.6.2 1.9 1c.2 1-.6.2-2 2.6a29.5 29.5 0 0 0-3.7 11.5c-10.9 3.6-22.2 5-33.6 6.5-4 2-6 4.7-5.2 7.7 1.4 3.3 10.2 6.7 10.2 6.8 1.7 1 3.6 3.5-.5 8.6-17.8-.8-31.7-8.4-36.5-19.1-1.4-1.1-3 0-4 1.4-7 9-13.8 17-25.7 21.4-7 1.8-14.3-1.1-17.7-5.7-2.3-2.7-2.2-5.6-3-6.2-3.9 1.7-36.9 15.7-32.7 9.1 8-8.5 22-14.9 34.2-23.3.9-2.9 2.5-12.5 7.3-15.6.3 0-.7 5.6-.6 8 0 2-.2 2.7.2 2.2.9-.5 15.7-12.2 17-15.8 1.4-2 .3-7.2.3-7.4-2.8-7.2-6.7-7.8-8.1-11.4-1.3-4.7-.7-10.1 2-11.7 2.4-2.1 5.2-1.9 7.9.5 3 2.7 5.6 8 6.4 11.9-.5 1.5-4-1-5-.3a16 16 0 0 1 3.7 7.8c2 8.2 1.4 11.4-.6 16.7-6.6 13.9-15 18-22.4 23.2-.2 0-.3 3.5 2.4 5.4 1 1 4.9 1.5 9.4 0a54.5 54.5 0 0 0 22.3-23.3 51 51 0 0 0-2.4-22.2c-2.9-6.7-6.3-16.2-6.3-16.4-.1-4.2.2-5.6 2-7.7m-95.8-38.6c4.2 2 12.2 1.1 11.8-5.7l-.2-3.1c-.8-2-3.2-1.5-3.7.5-.2.7.3 1.8-.3 2.1-.4.4-1.7.2-1.7-1.7 0-.6-.4-1.2-.7-1.6-.2-.2-.4-.2-.9-.2-.6 0-.6.1-.9.6-.1.5-.3 1-.3 1.6 0 .7-.4.9-.8 1-.6 0-.5 0-1-.2-.2-.3-.5-.4-.5-1l-.3-1.6c-.2-.3-.6-.5-1-.6-2.3 0-2.5 2.7-2.3 3.7-.2.2-.3 4.9 2.8 6.2"}),React$1.createElement("path",{fill:"#fff",d:"M235.1 187.7c4.2 2 14.3.9 11.8-5.6l-.2-3.2c-.9-2-3.2-1.5-3.7.6-.2.6.3 1.7-.4 2-.3.4-1.7.2-1.6-1.6 0-.6-.4-1.3-.7-1.7-.3-.1-.4-.2-1-.2-.5 0-.5.2-.8.7-.2.5-.3 1-.3 1.6-.1.6-.4.8-.9 1-.5 0-.4 0-.8-.3-.3-.3-.6-.4-.6-.9l-.3-1.6c-.2-.3-.6-.5-1-.6-2.3 0-2.5 2.6-2.4 3.6-.1.2-.2 5 3 6.2zm72-21.6c4.2 2 12.1 1.1 11.8-5.6l-.2-3.2c-.9-2-3.2-1.5-3.7.5-.2.7.3 1.8-.4 2.2-.3.3-1.7.1-1.6-1.8 0-.6-.4-1.2-.7-1.6-.3-.2-.4-.2-1-.2-.5 0-.5.2-.8.7l-.3 1.5c-.1.7-.4 1-.9 1s-.4 0-.8-.2c-.3-.3-.6-.4-.6-.9s-.1-1.3-.3-1.7c-.2-.3-.6-.4-1-.5-2.3 0-2.5 2.6-2.4 3.6-.1.2-.2 4.9 3 6.2zm37.3 54.3c-7.3 8.3-4.1 22-2.4 25 2.4 4.8 4.3 7.9 9 10.3 4.3 3.1 7.7 1.2 9.5-1 4.3-4.5 4.4-16 6.4-18.2 1.4-4.2 5-3.5 6.7-1.6a16.5 16.5 0 0 0 6.2 5.3c4 3.5 8.8 4.2 13.6 1 3.2-1.9 5.3-4.2 7.2-8.9 2-5.6 1-31.6.5-47l-4.2-21.5c0-.2-.5-10.2-1-12.5 0-1-.3-1.3.7-1.2 1.1 1 1.2 1 2 1.3 1 .2 2-1.7 1.3-3.3l-10-18.6c-.8-.8-1.9-1.6-3.2.2a7.3 7.3 0 0 0-2.4 5.5c.3 4.4 1 8.9 1.3 13.3l4 22.6c1.3 16 1.6 29.2 2.9 45.3-.2 6.8-2.3 12.7-4.3 13.6 0 0-3 1.7-5-.2-1.5-.6-7.4-9.9-7.4-9.9-3-2.7-5-2-7.1 0-6 5.8-8.6 16.4-12.7 23.8-1 1.7-4 3-7.2-.1-8.2-11.3-3.4-27.3-4.4-23.2M309 126.7c3.8 1.5 6.4 9.2 5.6 13-.8 4.5-2.8 9.5-4.2 8.9-1.6-.6 1-4.6-.5-8.8-.8-2.8-6-7.8-5.4-9.2-1-3.1 2.2-4.5 4.5-4z"}),React$1.createElement("path",{fill:"#fff",d:"M356.6 225c.7-9.2-.6-14.8-.8-20.2s-6.1-46.6-7.3-50.6c-1.5-7.8 5.7-1 4.9-5.6-2.5-5.6-8.6-13.9-10.5-18.8-1.2-2-.7-4-3.3-.5a42.3 42.3 0 0 0-2.3 19.2c6.2 32.3 12.5 59.1 11.5 89.8 3 0 6.3-6.7 7.8-13.3m64.4-85.3c3.5 1.7 5.5 11.3 5.1 14-.7 5-2.5 10.4-3.8 9.7-1.5-.6.3-7.4-.4-9.5-.8-3-5.5-8.4-5-10-1-3.4 2-4.8 4.1-4.2m-255.7 67.9c3.3 1.3 5.3 8.3 5 10.3-.8 3.7-2.5 7.7-3.8 7.1-1.3-.4.3-5.4-.3-7-.3-3.7-4.9-5.7-4.8-7.3-.8-3 2-3.5 4-3.1z"}),React$1.createElement("path",{fill:"#165d31",d:"M244.9 218.2c4.2.2 6.3 3.6 2.4 5-4 1.3-7.7 2.4-7.8 8 1.5 8-2 5.2-4 4.2-2.4-1.8-9.2-6-10.2-15-.1-2.1 1.6-4 4.3-4 4 1.1 10 1.2 15.3 1.8"}),React$1.createElement("path",{fill:"#fff",d:"M77.4 124.4c4.8 1.4 5.1 8.6 4.8 10.7-.7 3.8-2.4 7.9-3.6 7.4-1.4-.5 0-5.7-.7-7.3-.7-2.2-4.8-6.4-4.4-7.6-.9-2.5 2-3.7 3.9-3.2m95.9 33.6c-3.8 2-5.2 8-2.9 11.6 2.2 3 5.6 1.9 6 1.9 3.7.4 5.9-6.9 5.9-6.9s.1-2-4.2 1.9c-1.9.3-2-.4-2.5-1.4a9 9 0 0 1 .5-5.7c.7-1.8-.7-2.6-2.8-1.4m28-36.4c-2 1.3-5.7 5.2-5.8 9.6-.1 2.5-.6 2.5 1 4 1.3 1.8 2.4 1.7 4.8.4a5.1 5.1 0 0 0 2.3-3.4c.6-2.8-3 1.4-3.4-1.8-.8-3 1.5-4.2 3.7-7 0-2 0-3.3-2.7-1.8zm22.4 4a59.5 59.5 0 0 0-1.6 11.1c-.6 2.8 3 4 4.5.4 2.4-6.5 2.4-9.3 2.6-12-.7-4.3-3.6-4.2-5.5.5m142 72.3c.4-.5 20-14.4 20-14.4 2-.7 1.5 7.2.6 7.1a77.8 77.8 0 0 1-20.7 14.3c-1 .7-1.9-5.3 0-7zm17.7-.2c3.5 1.7 4.9 11.8 4.5 14.5 0 5.4-3.3 9.6-4.7 9-1.4-.7.2-6.7-.5-8.8-.8-3-3.7-8.5-3.2-10.1-1-3.4 1.8-5.2 4-4.6zm-116 43.4a26 26 0 0 1 5.6-4.9c2-1 3.8.8 3.7.7.3 2-1.2 3.7-.7 6.3.4 1 .7 2.2 2.6 1.8 3.1-2.5 6-2.7 9-2.8 2.5.1 2.6 4.2 1 4.2-5.7 1.2-8.2 2.8-12.3 4.3-2 1.2-3.6-.3-3.6-.4s-1.1-1.1-.4-3.7c.2-2-.6-3.2-2.4-3-1.2.8-2.4 1.2-3-.3-.3-1-.4-1.6.5-2.2m136.6 5.4c.8 1 1.4 2-.1 3.8l-3.7 3.2c-.6 1-1 2.8 1 3.3 3.6 1 12-4.5 12-4.6 1.4-1 1-3 .8-3-.8-.9-2.6-.3-3.8-.5-.6 0-2.5-.2-1.6-2a11.4 11.4 0 0 0 1.6-2.9c.5-1.2 0-2-2-2.7-2.1-.4-3-.2-5.3 0-1.2.2-1.6.8-1.9 2.3.1 2.3 1.5 2.2 3 3z"}),React$1.createElement("path",{fill:"#165d31",d:"M268.1 189.7c-.5 1-2.3 1-4 0s-2.7-2.6-2.1-3.5 2.3-.9 4 0 2.6 2.6 2.1 3.5m-89-53.6c-1 .3-2.4-.6-3-2s-.3-2.6.7-2.9 2.3.7 3 2 .3 2.7-.8 3zM355.2 375c9.4.4 18.2 0 27.5.5 1.7 1.5.5 5-.6 4.8l-7.8-.3c-.1-3-7.7-2.5-7.5.1-4.1.5-7.8-.1-12-.3-1.2-1.5-1-4.2.4-4.8"}))))};const KdLanguageChange=({defaultValue:o,...s})=>{const[l,x]=useState(o??"fa"),w={fa:"\u0641\u0627\u0631\u0633\u06CC",en:"English",ar:"\u0627\u0644\u0639\u0631\u0628\u06CC\u0629"},j=W=>{switch(W){case"fa":return jsx(SvgIr,{className:"KdLanguageChange-country-flag"});case"ar":return jsx(SvgSa,{className:"KdLanguageChange-country-flag"});case"en":return jsx(SvgUs,{className:"KdLanguageChange-country-flag"});default:return jsx(SvgIr,{className:"KdLanguageChange-country-flag"})}},V=W=>{x(W),s?.onChange(W)};return jsx($0520064cdfc1bd2d$export$be92b6f5f03c0fe9,{className:"KdLanguageChange-MenubarRoot",dir:"rtl",...s,children:jsxs($0520064cdfc1bd2d$export$d9b273488cd8ce6f,{children:[jsxs($0520064cdfc1bd2d$export$41fb9f06171c75f4,{className:"KdLanguageChange-MenubarTrigger",children:[j(l),w[l]]}),jsx($0520064cdfc1bd2d$export$602eac185826482c,{children:jsx($0520064cdfc1bd2d$export$7c6e2c02157bb7d2,{align:"start",side:"bottom",sideOffset:10,className:"KdLanguageChange-MenubarContent",children:Object.keys(w).map((W,U)=>jsxs("div",{className:"KdLanguageChange-MenubarItem",onClick:()=>V(W),children:[j(W),w[W]]},U))})})]})})},StyledImage$1=styled$1("img")(),KdCaptcha=({pathProp:o,randomNumber:s,...l})=>jsx(StyledImage$1,{...l,alt:"CAPTCHA",src:`${o.APIURL}${captchaPath}${s}`});function KdDrawer({isOpen:o,onClose:s,...l}){return jsx(Drawer$1,{...l,open:o,onClose:s})}const StyledSpan=styled$1("span")(),KdTooltip=({title:o="",arrow:s,children:l,placement:x,enterDelay:w,leaveDelay:j,...V})=>jsx(Tooltip$1,{title:o,TransitionComponent:Zoom$1,enterDelay:w,leaveDelay:j,arrow:s,placement:x,children:jsx(StyledSpan,{...V,children:l})}),StyledImage=styled$1("img")(),StyledDiv=styled$1("div")();function FullScreenDialog({children:o,open:s}){return jsx(Dialog$1,{open:s,fullScreen:!0,children:jsx(DialogContent$1,{sx:{padding:"0px"},children:o})})}function KdFileViewer({src:o,modal:s=!1,basePath:l,pathProp:x,...w}){const[j,V]=useState({fileType:"",extention:""}),[W,U]=useState(!1);useEffect(()=>{(async()=>{if(o&&x?.APIURL){const re=(await fetchFilesProperty(x.APIURL,[o])??[]).find(ue=>ue.guid===o)?.fileName,J=re&&re?.split(".").pop();V({extention:J,fileType:Object.keys(fileExtension).find(ue=>fileExtension[ue].includes(J))??""})}})()},[o]);const Y=le=>le==="small"?l?.basePathThumbnail?l?.basePathThumbnail+o:o:l?.basePathStream?l?.basePathStream+o:o;if(!o)return jsx(StyledDiv,{sx:{...w?.style,...w?.sx},children:jsx(BsImage,{style:{color:"gray",height:"100%",width:"100%"}})});function X(){if(j.fileType==="text"&&j.extention==="pdf")return jsx(KdpaPdfViewer,{handleClose:()=>U(!1),fileUrl:Y("large")})}const Z=X();if(s===!0)return jsxs(Fragment$1,{children:[jsx(StyledImage,{...w,src:Y("small"),onClick:()=>Z&&U(!0)}),Z&&jsx(FullScreenDialog,{open:W,children:Z})]});if(Z){if(Z)return jsx(StyledDiv,{...w,children:Z})}else jsx(StyledImage,{...w,src:Y("small")})}const createUploadUrl=(o,s,l,x,w)=>{const j={IMG:"create/image",TEXT:"create/text",VIDEO:"create/video",COMPRESS:"create/compress",FONT:"create/font"};return o?{url:j.IMG,type:"IMG"}:s?{url:j.TEXT,type:"TEXT"}:l?{url:j.VIDEO,type:"VIDEO"}:x?{url:j.COMPRESS,type:"COMPRESS"}:w?{url:j.FONT,type:"FONT"}:{url:"create",type:void 0}};function KdpaUseFileUploadHook({APIURL:o=window?.env?.REACT_APP_APIURL??void 0,sessionId:s=localStorage.getItem("sessionId")??"",fileSizeLimit:l=2,fileCountLimit:x=20,validUploadType:w=["IMG","TEXT","VIDEO","COMPRESS","FONT"],multiple:j=!0,onError:V,onWarning:W}){const[U,Y]=useState([]),X=useRef(0),[Z,le]=useState([]),re={"Accept-Language":localStorage.getItem("i18nextLng")||""},J=xe=>{Y(Te=>{const ge=Te.filter(Pe=>Pe.session!==xe);return X.current=ge.length,ge})},ue=(xe,Te,ge)=>{xe&&(console.error(Te,"err"),V?.(Te??"\u0639\u0645\u0644\u06CC\u0627\u062A \u0628\u0627 \u062E\u0637\u0627 \u0645\u0648\u0627\u062C\u0647 \u0634\u062F")),le(Pe=>Pe.filter(Se=>Se.file!==ge))},me=(xe,Te)=>{if(xe.status===502||xe.status===503){ue(!0,"\u062E\u0637\u0627\u06CC\u06CC \u062F\u0631 \u0627\u0631\u062A\u0628\u0627\u0637 \u0628\u0627 \u0645\u06CC\u06A9\u0631\u0648\u0633\u0631\u0648\u06CC\u0633 \u0622\u067E\u0644\u0648\u062F \u0631\u062E \u062F\u0627\u062F\u0647 \u0627\u0633\u062A!",Te);return}else if(xe.status!==200){ue(!0,null,Te);return}else try{return xe.json()}catch{ue(!0,null,Te)}};function fe(xe,Te){if(!o)V?.("Not exist APIURL"),console.error("Not exist APIURL");else try{const ge=xe.target.files||[];if(!j&&ge.length>1){V?.("\u062D\u062F\u0627\u06A9\u062B\u0631 1 \u0641\u0627\u06CC\u0644 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F.");return}if(j&&ge.length+X.current>x){V?.(`\u062D\u062F\u0627\u06A9\u062B\u0631 ${x} \u0641\u0627\u06CC\u0644 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F.`);return}for(let Pe=0;Pe<ge.length;Pe++){const Se=ge[Pe];if(Se.size===0){V?.("\u0634\u0645\u0627 \u0646\u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0641\u0627\u06CC\u0644 \u062E\u0627\u0644\u06CC \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F");return}const Re=Se.size/1024/1024,De=Se.name,Le=De.lastIndexOf(".")+1,_e=De.substr(Le,De.length).toLowerCase(),Be=Te?!!Te?.image&&!!(Te?.image==="ALL"?fileExtension.image:Te?.image)?.find(Ae=>Ae===_e):!!w?.find(Ae=>Ae==="IMG")&&!!fileExtension?.image?.find(Ae=>Ae===_e),Fe=Te?!!Te?.text&&!!(Te?.text==="ALL"?fileExtension.text:Te?.text)?.find(Ae=>Ae===_e):!!w?.find(Ae=>Ae==="TEXT")&&!!fileExtension?.text?.find(Ae=>Ae===_e),je=Te?!!Te?.video&&!!(Te?.video==="ALL"?fileExtension.video:Te?.video)?.find(Ae=>Ae===_e):!!w?.find(Ae=>Ae==="VIDEO")&&!!fileExtension?.video?.find(Ae=>Ae===_e),ze=Te?!!Te?.compress&&!!(Te?.compress==="ALL"?fileExtension.compress:Te?.compress)?.find(Ae=>Ae===_e):!!w?.find(Ae=>Ae==="COMPRESS")&&!!fileExtension?.compress?.find(Ae=>Ae===_e),We=Te?!!Te?.font&&!!(Te?.font==="ALL"?fileExtension.font:Te?.font)?.find(Ae=>Ae===_e):!!w?.find(Ae=>Ae==="FONT")&&!!fileExtension?.font?.find(Ae=>Ae===_e),{url:Oe,type:ke}=createUploadUrl(Be,Fe,je,ze,We),Ee=`${o}${serviceName.upload}${pathServicesUpload.pathFileUpload}${Oe}`;if(Re>l)V?.(`\u062D\u062F\u0627\u06A9\u062B\u0631 \u062D\u062C\u0645 \u0622\u067E\u0644\u0648\u062F ${l} \u0645\u06AF\u0627\u0628\u0627\u06CC\u062A \u0645\u06CC\u200C\u0628\u0627\u0634\u062F.`);else if(ke){const Ae={file:Se,progress:0,type:ke};le(He=>j?[...He,Ae]:[Ae]);const Ve=512*1024,Xe=new FormData;Xe.append("chunkSize",String(Ve)),Xe.append("totalSize",String(Se.size)),Xe.append("fileName",Se.name);const nt=Math.ceil(Se.size/Ve),tt=[];for(let He=1;He<=nt;He++)tt.push(He);fetch(Ee,{method:"POST",headers:re,body:Xe,credentials:"include"}).then(async He=>{const Ge=await me(He,Se);if(Ge)if(showMessageActions(Ge?.subStatuses??[],V,W),Ge?.statusCode===200){let rt=0;if(Ge?.data?.sessionId?.length>0){let dt=1,vt=!1;for(let yt=0;yt<Se.size;yt+=Ve,dt++)if(!vt){const ut=Se.slice(yt,yt+Ve),St=new FormData;St.append("data",ut);const Nt={method:"PUT",headers:{...re,sessionId:s},body:St,credentials:"include"};await fetch(`${o}${serviceName.upload}${pathServicesUpload.pathForUploadCunk}${Ge?.data?.sessionId}?chunkNumber=${dt}`,Nt).then(async Bt=>{const zt=await me(Bt,Se);if(!zt){vt=!0;return}if(showMessageActions(zt?.subStatuses??[],V,W),zt?.statusCode!==200){vt=!0;return}rt=rt+ut.size;const jt=Math.round(rt/Se.size*100);le($t=>$t.map(Dt=>Dt.file===Se?{...Dt,progress:jt,session:Ge?.data?.sessionId}:Dt))})}if(vt)ue(!1,null,Se);else{const yt={method:"GET",headers:{...re,sessionId:s},credentials:"include"};await fetch(`${o}${serviceName.upload}${pathServicesUpload.pathForGetFile}${Ge?.data?.sessionId}`,yt).then(async ut=>{const St=await me(ut,Se);if(St&&(showMessageActions(St?.subStatuses??[],V,W),le(Nt=>Nt.filter(Bt=>Bt.session!==Ge?.data?.sessionId)),St?.statusCode===200)){const Nt={session:Ge?.data?.sessionId,concluded:St?.data?.concluded,progress:100,fileURL:`${o}${serviceName.upload}${St?.data?.fileLink}`,fileName:De??"",type:ke};Y(Bt=>(j?X.current=Bt.length+1:X.current=1,j?[...Bt,Nt]:[Nt]))}})}}else ue(!0,`err in ${Oe} service`,Se)}else ue(!1,null,Se)})}else V?.("\u0644\u0637\u0641\u0627 \u0641\u0631\u0645\u062A \u0645\u0646\u0627\u0633\u0628 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F.")}}catch(ge){console.error("Error",ge)}}return{APIURL:o,uploadingFiles:Z,files:U,removeFile:J,handleFileChange:fe,fileExtension}}var lib$h={exports:{}},core_min={},pdf={exports:{}},_nodeResolve_empty={},_nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty}),require$$5=getAugmentedNamespace(_nodeResolve_empty$1),hasRequiredPdf;function requirePdf(){return hasRequiredPdf||(hasRequiredPdf=1,function(module,exports){(function(s,l){module.exports=s.pdfjsLib=l()})(globalThis,()=>(()=>{var __webpack_modules__=[,(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.VerbosityLevel=s.Util=s.UnknownErrorException=s.UnexpectedResponseException=s.TextRenderingMode=s.RenderingIntentFlag=s.PromiseCapability=s.PermissionFlag=s.PasswordResponses=s.PasswordException=s.PageActionEventType=s.OPS=s.MissingPDFException=s.MAX_IMAGE_SIZE_TO_CACHE=s.LINE_FACTOR=s.LINE_DESCENT_FACTOR=s.InvalidPDFException=s.ImageKind=s.IDENTITY_MATRIX=s.FormatError=s.FeatureTest=s.FONT_IDENTITY_MATRIX=s.DocumentActionEventType=s.CMapCompressionType=s.BaseException=s.BASELINE_FACTOR=s.AnnotationType=s.AnnotationReplyType=s.AnnotationPrefix=s.AnnotationMode=s.AnnotationFlag=s.AnnotationFieldFlag=s.AnnotationEditorType=s.AnnotationEditorPrefix=s.AnnotationEditorParamsType=s.AnnotationBorderStyleType=s.AnnotationActionEventType=s.AbortException=void 0,s.assert=Ee,s.bytesToString=yt,s.createValidAbsoluteUrl=Ve,s.getModificationDate=Ln,s.getUuid=qn,s.getVerbosityLevel=ze,s.info=We,s.isArrayBuffer=En,s.isArrayEqual=Sn,s.isNodeJS=void 0,s.normalizeUnicode=zn,s.objectFromMap=Bt,s.objectSize=Nt,s.setVerbosityLevel=je,s.shadow=Xe,s.string32=St,s.stringToBytes=ut,s.stringToPDFString=Vt,s.stringToUTF8String=Tn,s.unreachable=ke,s.utf8StringToString=Zt,s.warn=Oe;const l=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");s.isNodeJS=l;const x=[1,0,0,1,0,0];s.IDENTITY_MATRIX=x;const w=[.001,0,0,.001,0,0];s.FONT_IDENTITY_MATRIX=w;const j=1e7;s.MAX_IMAGE_SIZE_TO_CACHE=j;const V=1.35;s.LINE_FACTOR=V;const W=.35;s.LINE_DESCENT_FACTOR=W;const U=W/V;s.BASELINE_FACTOR=U;const Y={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};s.RenderingIntentFlag=Y;const X={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};s.AnnotationMode=X;const Z="pdfjs_internal_editor_";s.AnnotationEditorPrefix=Z;const le={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};s.AnnotationEditorType=le;const oe={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};s.AnnotationEditorParamsType=oe;const re={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};s.PermissionFlag=re;const J={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};s.TextRenderingMode=J;const ue={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};s.ImageKind=ue;const me={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};s.AnnotationType=me;const fe={GROUP:"Group",REPLY:"R"};s.AnnotationReplyType=fe;const xe={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};s.AnnotationFlag=xe;const Te={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};s.AnnotationFieldFlag=Te;const ge={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};s.AnnotationBorderStyleType=ge;const Pe={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};s.AnnotationActionEventType=Pe;const Se={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};s.DocumentActionEventType=Se;const Re={O:"PageOpen",C:"PageClose"};s.PageActionEventType=Re;const De={ERRORS:0,WARNINGS:1,INFOS:5};s.VerbosityLevel=De;const Le={NONE:0,BINARY:1};s.CMapCompressionType=Le;const _e={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};s.OPS=_e;const Be={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};s.PasswordResponses=Be;let Fe=De.WARNINGS;function je(xn){Number.isInteger(xn)&&(Fe=xn)}function ze(){return Fe}function We(xn){Fe>=De.INFOS&&console.log(`Info: ${xn}`)}function Oe(xn){Fe>=De.WARNINGS&&console.log(`Warning: ${xn}`)}function ke(xn){throw new Error(xn)}function Ee(xn,Yt){xn||ke(Yt)}function Ae(xn){switch(xn?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Ve(xn,Yt=null,Xt=null){if(!xn)return null;try{if(Xt&&typeof xn=="string"&&(Xt.addDefaultProtocol&&xn.startsWith("www.")&&xn.match(/\./g)?.length>=2&&(xn=`http://${xn}`),Xt.tryConvertEncoding))try{xn=Tn(xn)}catch{}const In=Yt?new URL(xn,Yt):new URL(xn);if(Ae(In))return In}catch{}return null}function Xe(xn,Yt,Xt,In=!1){return Object.defineProperty(xn,Yt,{value:Xt,enumerable:!In,configurable:!0,writable:!1}),Xt}const nt=function(){function Yt(Xt,In){this.constructor===Yt&&ke("Cannot initialize BaseException."),this.message=Xt,this.name=In}return Yt.prototype=new Error,Yt.constructor=Yt,Yt}();s.BaseException=nt;class tt extends nt{constructor(Yt,Xt){super(Yt,"PasswordException"),this.code=Xt}}s.PasswordException=tt;class Ye extends nt{constructor(Yt,Xt){super(Yt,"UnknownErrorException"),this.details=Xt}}s.UnknownErrorException=Ye;class He extends nt{constructor(Yt){super(Yt,"InvalidPDFException")}}s.InvalidPDFException=He;class Ge extends nt{constructor(Yt){super(Yt,"MissingPDFException")}}s.MissingPDFException=Ge;class rt extends nt{constructor(Yt,Xt){super(Yt,"UnexpectedResponseException"),this.status=Xt}}s.UnexpectedResponseException=rt;class dt extends nt{constructor(Yt){super(Yt,"FormatError")}}s.FormatError=dt;class vt extends nt{constructor(Yt){super(Yt,"AbortException")}}s.AbortException=vt;function yt(xn){(typeof xn!="object"||xn?.length===void 0)&&ke("Invalid argument for bytesToString");const Yt=xn.length,Xt=8192;if(Yt<Xt)return String.fromCharCode.apply(null,xn);const In=[];for(let Jn=0;Jn<Yt;Jn+=Xt){const vr=Math.min(Jn+Xt,Yt),wr=xn.subarray(Jn,vr);In.push(String.fromCharCode.apply(null,wr))}return In.join("")}function ut(xn){typeof xn!="string"&&ke("Invalid argument for stringToBytes");const Yt=xn.length,Xt=new Uint8Array(Yt);for(let In=0;In<Yt;++In)Xt[In]=xn.charCodeAt(In)&255;return Xt}function St(xn){return String.fromCharCode(xn>>24&255,xn>>16&255,xn>>8&255,xn&255)}function Nt(xn){return Object.keys(xn).length}function Bt(xn){const Yt=Object.create(null);for(const[Xt,In]of xn)Yt[Xt]=In;return Yt}function zt(){const xn=new Uint8Array(4);return xn[0]=1,new Uint32Array(xn.buffer,0,1)[0]===1}function jt(){try{return new Function(""),!0}catch{return!1}}class $t{static get isLittleEndian(){return Xe(this,"isLittleEndian",zt())}static get isEvalSupported(){return Xe(this,"isEvalSupported",jt())}static get isOffscreenCanvasSupported(){return Xe(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?Xe(this,"platform",{isWin:!1,isMac:!1}):Xe(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){return Xe(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}s.FeatureTest=$t;const Dt=[...Array(256).keys()].map(xn=>xn.toString(16).padStart(2,"0"));class Mt{static makeHexColor(Yt,Xt,In){return`#${Dt[Yt]}${Dt[Xt]}${Dt[In]}`}static scaleMinMax(Yt,Xt){let In;Yt[0]?(Yt[0]<0&&(In=Xt[0],Xt[0]=Xt[1],Xt[1]=In),Xt[0]*=Yt[0],Xt[1]*=Yt[0],Yt[3]<0&&(In=Xt[2],Xt[2]=Xt[3],Xt[3]=In),Xt[2]*=Yt[3],Xt[3]*=Yt[3]):(In=Xt[0],Xt[0]=Xt[2],Xt[2]=In,In=Xt[1],Xt[1]=Xt[3],Xt[3]=In,Yt[1]<0&&(In=Xt[2],Xt[2]=Xt[3],Xt[3]=In),Xt[2]*=Yt[1],Xt[3]*=Yt[1],Yt[2]<0&&(In=Xt[0],Xt[0]=Xt[1],Xt[1]=In),Xt[0]*=Yt[2],Xt[1]*=Yt[2]),Xt[0]+=Yt[4],Xt[1]+=Yt[4],Xt[2]+=Yt[5],Xt[3]+=Yt[5]}static transform(Yt,Xt){return[Yt[0]*Xt[0]+Yt[2]*Xt[1],Yt[1]*Xt[0]+Yt[3]*Xt[1],Yt[0]*Xt[2]+Yt[2]*Xt[3],Yt[1]*Xt[2]+Yt[3]*Xt[3],Yt[0]*Xt[4]+Yt[2]*Xt[5]+Yt[4],Yt[1]*Xt[4]+Yt[3]*Xt[5]+Yt[5]]}static applyTransform(Yt,Xt){const In=Yt[0]*Xt[0]+Yt[1]*Xt[2]+Xt[4],Jn=Yt[0]*Xt[1]+Yt[1]*Xt[3]+Xt[5];return[In,Jn]}static applyInverseTransform(Yt,Xt){const In=Xt[0]*Xt[3]-Xt[1]*Xt[2],Jn=(Yt[0]*Xt[3]-Yt[1]*Xt[2]+Xt[2]*Xt[5]-Xt[4]*Xt[3])/In,vr=(-Yt[0]*Xt[1]+Yt[1]*Xt[0]+Xt[4]*Xt[1]-Xt[5]*Xt[0])/In;return[Jn,vr]}static getAxialAlignedBoundingBox(Yt,Xt){const In=this.applyTransform(Yt,Xt),Jn=this.applyTransform(Yt.slice(2,4),Xt),vr=this.applyTransform([Yt[0],Yt[3]],Xt),wr=this.applyTransform([Yt[2],Yt[1]],Xt);return[Math.min(In[0],Jn[0],vr[0],wr[0]),Math.min(In[1],Jn[1],vr[1],wr[1]),Math.max(In[0],Jn[0],vr[0],wr[0]),Math.max(In[1],Jn[1],vr[1],wr[1])]}static inverseTransform(Yt){const Xt=Yt[0]*Yt[3]-Yt[1]*Yt[2];return[Yt[3]/Xt,-Yt[1]/Xt,-Yt[2]/Xt,Yt[0]/Xt,(Yt[2]*Yt[5]-Yt[4]*Yt[3])/Xt,(Yt[4]*Yt[1]-Yt[5]*Yt[0])/Xt]}static singularValueDecompose2dScale(Yt){const Xt=[Yt[0],Yt[2],Yt[1],Yt[3]],In=Yt[0]*Xt[0]+Yt[1]*Xt[2],Jn=Yt[0]*Xt[1]+Yt[1]*Xt[3],vr=Yt[2]*Xt[0]+Yt[3]*Xt[2],wr=Yt[2]*Xt[1]+Yt[3]*Xt[3],Dr=(In+wr)/2,Fr=Math.sqrt((In+wr)**2-4*(In*wr-vr*Jn))/2,Gr=Dr+Fr||1,_n=Dr-Fr||1;return[Math.sqrt(Gr),Math.sqrt(_n)]}static normalizeRect(Yt){const Xt=Yt.slice(0);return Yt[0]>Yt[2]&&(Xt[0]=Yt[2],Xt[2]=Yt[0]),Yt[1]>Yt[3]&&(Xt[1]=Yt[3],Xt[3]=Yt[1]),Xt}static intersect(Yt,Xt){const In=Math.max(Math.min(Yt[0],Yt[2]),Math.min(Xt[0],Xt[2])),Jn=Math.min(Math.max(Yt[0],Yt[2]),Math.max(Xt[0],Xt[2]));if(In>Jn)return null;const vr=Math.max(Math.min(Yt[1],Yt[3]),Math.min(Xt[1],Xt[3])),wr=Math.min(Math.max(Yt[1],Yt[3]),Math.max(Xt[1],Xt[3]));return vr>wr?null:[In,vr,Jn,wr]}static bezierBoundingBox(Yt,Xt,In,Jn,vr,wr,Dr,Fr){const Gr=[],_n=[[],[]];let qt,Wn,An,Zn,kr,lr,wn,dn;for(let dr=0;dr<2;++dr){if(dr===0?(Wn=6*Yt-12*In+6*vr,qt=-3*Yt+9*In-9*vr+3*Dr,An=3*In-3*Yt):(Wn=6*Xt-12*Jn+6*wr,qt=-3*Xt+9*Jn-9*wr+3*Fr,An=3*Jn-3*Xt),Math.abs(qt)<1e-12){if(Math.abs(Wn)<1e-12)continue;Zn=-An/Wn,0<Zn&&Zn<1&&Gr.push(Zn);continue}wn=Wn*Wn-4*An*qt,dn=Math.sqrt(wn),!(wn<0)&&(kr=(-Wn+dn)/(2*qt),0<kr&&kr<1&&Gr.push(kr),lr=(-Wn-dn)/(2*qt),0<lr&&lr<1&&Gr.push(lr))}let On=Gr.length,Yn;const er=On;for(;On--;)Zn=Gr[On],Yn=1-Zn,_n[0][On]=Yn*Yn*Yn*Yt+3*Yn*Yn*Zn*In+3*Yn*Zn*Zn*vr+Zn*Zn*Zn*Dr,_n[1][On]=Yn*Yn*Yn*Xt+3*Yn*Yn*Zn*Jn+3*Yn*Zn*Zn*wr+Zn*Zn*Zn*Fr;return _n[0][er]=Yt,_n[1][er]=Xt,_n[0][er+1]=Dr,_n[1][er+1]=Fr,_n[0].length=_n[1].length=er+2,[Math.min(..._n[0]),Math.min(..._n[1]),Math.max(..._n[0]),Math.max(..._n[1])]}}s.Util=Mt;const Ot=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function Vt(xn){if(xn[0]>="\xEF"){let Xt;if(xn[0]==="\xFE"&&xn[1]==="\xFF"?Xt="utf-16be":xn[0]==="\xFF"&&xn[1]==="\xFE"?Xt="utf-16le":xn[0]==="\xEF"&&xn[1]==="\xBB"&&xn[2]==="\xBF"&&(Xt="utf-8"),Xt)try{const In=new TextDecoder(Xt,{fatal:!0}),Jn=ut(xn);return In.decode(Jn)}catch(In){Oe(`stringToPDFString: "${In}".`)}}const Yt=[];for(let Xt=0,In=xn.length;Xt<In;Xt++){const Jn=Ot[xn.charCodeAt(Xt)];Yt.push(Jn?String.fromCharCode(Jn):xn.charAt(Xt))}return Yt.join("")}function Tn(xn){return decodeURIComponent(escape(xn))}function Zt(xn){return unescape(encodeURIComponent(xn))}function En(xn){return typeof xn=="object"&&xn?.byteLength!==void 0}function Sn(xn,Yt){if(xn.length!==Yt.length)return!1;for(let Xt=0,In=xn.length;Xt<In;Xt++)if(xn[Xt]!==Yt[Xt])return!1;return!0}function Ln(xn=new Date){return[xn.getUTCFullYear().toString(),(xn.getUTCMonth()+1).toString().padStart(2,"0"),xn.getUTCDate().toString().padStart(2,"0"),xn.getUTCHours().toString().padStart(2,"0"),xn.getUTCMinutes().toString().padStart(2,"0"),xn.getUTCSeconds().toString().padStart(2,"0")].join("")}class vn{#e=!1;constructor(){this.promise=new Promise((Yt,Xt)=>{this.resolve=In=>{this.#e=!0,Yt(In)},this.reject=In=>{this.#e=!0,Xt(In)}})}get settled(){return this.#e}}s.PromiseCapability=vn;let fn=null,Dn=null;function zn(xn){return fn||(fn=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,Dn=new Map([["\uFB05","\u017Ft"]])),xn.replaceAll(fn,(Yt,Xt,In)=>Xt?Xt.normalize("NFKC"):Dn.get(In))}function qn(){if(typeof crypto<"u"&&typeof crypto?.randomUUID=="function")return crypto.randomUUID();const xn=new Uint8Array(32);if(typeof crypto<"u"&&typeof crypto?.getRandomValues=="function")crypto.getRandomValues(xn);else for(let Yt=0;Yt<32;Yt++)xn[Yt]=Math.floor(Math.random()*255);return yt(xn)}const Bn="pdfjs_internal_id_";s.AnnotationPrefix=Bn},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;function getDocument(o){if(typeof o=="string"||o instanceof URL?o={url:o}:(0,_util.isArrayBuffer)(o)&&(o={data:o}),typeof o!="object")throw new Error("Invalid parameter in getDocument, need parameter object.");if(!o.url&&!o.data&&!o.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const s=new PDFDocumentLoadingTask,{docId:l}=s,x=o.url?getUrlProp(o.url):null,w=o.data?getDataProp(o.data):null,j=o.httpHeaders||null,V=o.withCredentials===!0,W=o.password??null,U=o.range instanceof PDFDataRangeTransport?o.range:null,Y=Number.isInteger(o.rangeChunkSize)&&o.rangeChunkSize>0?o.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let X=o.worker instanceof PDFWorker?o.worker:null;const Z=o.verbosity,le=typeof o.docBaseUrl=="string"&&!(0,_display_utils.isDataScheme)(o.docBaseUrl)?o.docBaseUrl:null,oe=typeof o.cMapUrl=="string"?o.cMapUrl:null,re=o.cMapPacked!==!1,J=o.CMapReaderFactory||DefaultCMapReaderFactory,ue=typeof o.standardFontDataUrl=="string"?o.standardFontDataUrl:null,me=o.StandardFontDataFactory||DefaultStandardFontDataFactory,fe=o.stopAtErrors!==!0,xe=Number.isInteger(o.maxImageSize)&&o.maxImageSize>-1?o.maxImageSize:-1,Te=o.isEvalSupported!==!1,ge=typeof o.isOffscreenCanvasSupported=="boolean"?o.isOffscreenCanvasSupported:!_util.isNodeJS,Pe=Number.isInteger(o.canvasMaxAreaInBytes)?o.canvasMaxAreaInBytes:-1,Se=typeof o.disableFontFace=="boolean"?o.disableFontFace:_util.isNodeJS,Re=o.fontExtraProperties===!0,De=o.enableXfa===!0,Le=o.ownerDocument||globalThis.document,_e=o.disableRange===!0,Be=o.disableStream===!0,Fe=o.disableAutoFetch===!0,je=o.pdfBug===!0,ze=U?U.length:o.length??NaN,We=typeof o.useSystemFonts=="boolean"?o.useSystemFonts:!_util.isNodeJS&&!Se,Oe=typeof o.useWorkerFetch=="boolean"?o.useWorkerFetch:J===_display_utils.DOMCMapReaderFactory&&me===_display_utils.DOMStandardFontDataFactory&&oe&&ue&&(0,_display_utils.isValidFetchUrl)(oe,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(ue,document.baseURI),ke=o.canvasFactory||new DefaultCanvasFactory({ownerDocument:Le}),Ee=o.filterFactory||new DefaultFilterFactory({docId:l,ownerDocument:Le}),Ae=null;(0,_util.setVerbosityLevel)(Z);const Ve={canvasFactory:ke,filterFactory:Ee};if(Oe||(Ve.cMapReaderFactory=new J({baseUrl:oe,isCompressed:re}),Ve.standardFontDataFactory=new me({baseUrl:ue})),!X){const tt={verbosity:Z,port:_worker_options.GlobalWorkerOptions.workerPort};X=tt.port?PDFWorker.fromPort(tt):new PDFWorker(tt),s._worker=X}const Xe={docId:l,apiVersion:"3.11.174",data:w,password:W,disableAutoFetch:Fe,rangeChunkSize:Y,length:ze,docBaseUrl:le,enableXfa:De,evaluatorOptions:{maxImageSize:xe,disableFontFace:Se,ignoreErrors:fe,isEvalSupported:Te,isOffscreenCanvasSupported:ge,canvasMaxAreaInBytes:Pe,fontExtraProperties:Re,useSystemFonts:We,cMapUrl:Oe?oe:null,standardFontDataUrl:Oe?ue:null}},nt={ignoreErrors:fe,isEvalSupported:Te,disableFontFace:Se,fontExtraProperties:Re,enableXfa:De,ownerDocument:Le,disableAutoFetch:Fe,pdfBug:je,styleElement:Ae};return X.promise.then(function(){if(s.destroyed)throw new Error("Loading aborted");const tt=_fetchDocument(X,Xe),Ye=new Promise(function(He){let Ge;U?Ge=new _transport_stream.PDFDataTransportStream({length:ze,initialData:U.initialData,progressiveDone:U.progressiveDone,contentDispositionFilename:U.contentDispositionFilename,disableRange:_e,disableStream:Be},U):w||(Ge=(dt=>_util.isNodeJS?new _displayNode_stream.PDFNodeStream(dt):(0,_display_utils.isValidFetchUrl)(dt.url)?new _displayFetch_stream.PDFFetchStream(dt):new _displayNetwork.PDFNetworkStream(dt))({url:x,length:ze,httpHeaders:j,withCredentials:V,rangeChunkSize:Y,disableRange:_e,disableStream:Be})),He(Ge)});return Promise.all([tt,Ye]).then(function([He,Ge]){if(s.destroyed)throw new Error("Loading aborted");const rt=new _message_handler.MessageHandler(l,He,X.port),dt=new WorkerTransport(rt,s,Ge,nt,Ve);s._transport=dt,rt.send("Ready",null)})}).catch(s._capability.reject),s}async function _fetchDocument(o,s){if(o.destroyed)throw new Error("Worker was destroyed");const l=await o.messageHandler.sendWithPromise("GetDocRequest",s,s.data?[s.data.buffer]:null);if(o.destroyed)throw new Error("Worker was destroyed");return l}function getUrlProp(o){if(o instanceof URL)return o.href;try{return new URL(o,window.location).href}catch{if(_util.isNodeJS&&typeof o=="string")return o}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(o){if(_util.isNodeJS&&typeof Buffer<"u"&&o instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength)return o;if(typeof o=="string")return(0,_util.stringToBytes)(o);if(typeof o=="object"&&!isNaN(o?.length)||(0,_util.isArrayBuffer)(o))return new Uint8Array(o);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}class PDFDocumentLoadingTask{static#e=0;constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId=`d${PDFDocumentLoadingTask.#e++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(s){throw this._worker?.port&&delete this._worker._pendingDestroy,s}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(s,l,x=!1,w=null){this.length=s,this.initialData=l,this.progressiveDone=x,this.contentDispositionFilename=w,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(s){this._rangeListeners.push(s)}addProgressListener(s){this._progressListeners.push(s)}addProgressiveReadListener(s){this._progressiveReadListeners.push(s)}addProgressiveDoneListener(s){this._progressiveDoneListeners.push(s)}onDataRange(s,l){for(const x of this._rangeListeners)x(s,l)}onDataProgress(s,l){this._readyCapability.promise.then(()=>{for(const x of this._progressListeners)x(s,l)})}onDataProgressiveRead(s){this._readyCapability.promise.then(()=>{for(const l of this._progressiveReadListeners)l(s)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const s of this._progressiveDoneListeners)s()})}transportReady(){this._readyCapability.resolve()}requestDataRange(s,l){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(s,l){this._pdfInfo=s,this._transport=l,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then(x=>{if(!x)return x;const w=[];for(const j in x)w.push(...x[j]);return w}))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(s){return this._transport.getPage(s)}getPageIndex(s){return this._transport.getPageIndex(s)}getDestinations(){return this._transport.getDestinations()}getDestination(s){return this._transport.getDestination(s)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(s=!1){return this._transport.startCleanup(s||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{#e=null;#t=!1;constructor(s,l,x,w=!1){this._pageIndex=s,this._pageInfo=l,this._transport=x,this._stats=w?new _display_utils.StatTimer:null,this._pdfBug=w,this.commonObjs=x.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:s,rotation:l=this.rotate,offsetX:x=0,offsetY:w=0,dontFlip:j=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:s,rotation:l,offsetX:x,offsetY:w,dontFlip:j})}getAnnotations({intent:s="display"}={}){const l=this._transport.getRenderingIntent(s);return this._transport.getAnnotations(this._pageIndex,l.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:s,viewport:l,intent:x="display",annotationMode:w=_util.AnnotationMode.ENABLE,transform:j=null,background:V=null,optionalContentConfigPromise:W=null,annotationCanvasMap:U=null,pageColors:Y=null,printAnnotationStorage:X=null}){this._stats?.time("Overall");const Z=this._transport.getRenderingIntent(x,w,X);this.#t=!1,this.#r(),W||(W=this._transport.getOptionalContentConfig());let le=this._intentStates.get(Z.cacheKey);le||(le=Object.create(null),this._intentStates.set(Z.cacheKey,le)),le.streamReaderCancelTimeout&&(clearTimeout(le.streamReaderCancelTimeout),le.streamReaderCancelTimeout=null);const oe=!!(Z.renderingIntent&_util.RenderingIntentFlag.PRINT);le.displayReadyCapability||(le.displayReadyCapability=new _util.PromiseCapability,le.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(Z));const re=me=>{le.renderTasks.delete(J),(this._maybeCleanupAfterRender||oe)&&(this.#t=!0),this.#n(!oe),me?(J.capability.reject(me),this._abortOperatorList({intentState:le,reason:me instanceof Error?me:new Error(me)})):J.capability.resolve(),this._stats?.timeEnd("Rendering"),this._stats?.timeEnd("Overall")},J=new InternalRenderTask({callback:re,params:{canvasContext:s,viewport:l,transform:j,background:V},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:U,operatorList:le.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!oe,pdfBug:this._pdfBug,pageColors:Y});(le.renderTasks||=new Set).add(J);const ue=J.task;return Promise.all([le.displayReadyCapability.promise,W]).then(([me,fe])=>{if(this.destroyed){re();return}this._stats?.time("Rendering"),J.initializeGraphics({transparency:me,optionalContentConfig:fe}),J.operatorListChanged()}).catch(re),ue}getOperatorList({intent:s="display",annotationMode:l=_util.AnnotationMode.ENABLE,printAnnotationStorage:x=null}={}){function w(){V.operatorList.lastChunk&&(V.opListReadCapability.resolve(V.operatorList),V.renderTasks.delete(W))}const j=this._transport.getRenderingIntent(s,l,x,!0);let V=this._intentStates.get(j.cacheKey);V||(V=Object.create(null),this._intentStates.set(j.cacheKey,V));let W;return V.opListReadCapability||(W=Object.create(null),W.operatorListChanged=w,V.opListReadCapability=new _util.PromiseCapability,(V.renderTasks||=new Set).add(W),V.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(j)),V.opListReadCapability.promise}streamTextContent({includeMarkedContent:s=!1,disableNormalization:l=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:s===!0,disableNormalization:l===!0},{highWaterMark:100,size(w){return w.items.length}})}getTextContent(s={}){if(this._transport._htmlForXfa)return this.getXfa().then(x=>_xfa_text.XfaText.textContent(x));const l=this.streamTextContent(s);return new Promise(function(x,w){function j(){V.read().then(function({value:U,done:Y}){if(Y){x(W);return}Object.assign(W.styles,U.styles),W.items.push(...U.items),j()},w)}const V=l.getReader(),W={items:[],styles:Object.create(null)};j()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const s=[];for(const l of this._intentStates.values())if(this._abortOperatorList({intentState:l,reason:new Error("Page was destroyed."),force:!0}),!l.opListReadCapability)for(const x of l.renderTasks)s.push(x.completed),x.cancel();return this.objs.clear(),this.#t=!1,this.#r(),Promise.all(s)}cleanup(s=!1){this.#t=!0;const l=this.#n(!1);return s&&l&&(this._stats&&=new _display_utils.StatTimer),l}#n(s=!1){if(this.#r(),!this.#t||this.destroyed)return!1;if(s)return this.#e=setTimeout(()=>{this.#e=null,this.#n(!1)},DELAYED_CLEANUP_TIMEOUT),!1;for(const{renderTasks:l,operatorList:x}of this._intentStates.values())if(l.size>0||!x.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#t=!1,!0}#r(){this.#e&&(clearTimeout(this.#e),this.#e=null)}_startRenderPage(s,l){const x=this._intentStates.get(l);x&&(this._stats?.timeEnd("Page Request"),x.displayReadyCapability?.resolve(s))}_renderPageChunk(s,l){for(let x=0,w=s.length;x<w;x++)l.operatorList.fnArray.push(s.fnArray[x]),l.operatorList.argsArray.push(s.argsArray[x]);l.operatorList.lastChunk=s.lastChunk,l.operatorList.separateAnnots=s.separateAnnots;for(const x of l.renderTasks)x.operatorListChanged();s.lastChunk&&this.#n(!0)}_pumpOperatorList({renderingIntent:s,cacheKey:l,annotationStorageSerializable:x}){const{map:w,transfers:j}=x,W=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:s,cacheKey:l,annotationStorage:w},j).getReader(),U=this._intentStates.get(l);U.streamReader=W;const Y=()=>{W.read().then(({value:X,done:Z})=>{if(Z){U.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(X,U),Y())},X=>{if(U.streamReader=null,!this._transport.destroyed){if(U.operatorList){U.operatorList.lastChunk=!0;for(const Z of U.renderTasks)Z.operatorListChanged();this.#n(!0)}if(U.displayReadyCapability)U.displayReadyCapability.reject(X);else if(U.opListReadCapability)U.opListReadCapability.reject(X);else throw X}})};Y()}_abortOperatorList({intentState:s,reason:l,force:x=!1}){if(s.streamReader){if(s.streamReaderCancelTimeout&&(clearTimeout(s.streamReaderCancelTimeout),s.streamReaderCancelTimeout=null),!x){if(s.renderTasks.size>0)return;if(l instanceof _display_utils.RenderingCancelledException){let w=RENDERING_CANCELLED_TIMEOUT;l.extraDelay>0&&l.extraDelay<1e3&&(w+=l.extraDelay),s.streamReaderCancelTimeout=setTimeout(()=>{s.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:s,reason:l,force:!0})},w);return}}if(s.streamReader.cancel(new _util.AbortException(l.message)).catch(()=>{}),s.streamReader=null,!this._transport.destroyed){for(const[w,j]of this._intentStates)if(j===s){this._intentStates.delete(w);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{#e=new Set;#t=Promise.resolve();postMessage(s,l){const x={data:structuredClone(s,l?{transfer:l}:null)};this.#t.then(()=>{for(const w of this.#e)w.call(this,x)})}addEventListener(s,l){this.#e.add(l)}removeEventListener(s,l){this.#e.delete(l)}terminate(){this.#e.clear()}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_util.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){const o=document?.currentScript?.src;o&&(PDFWorkerUtil.fallbackWorkerSrc=o.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(o,s){let l;try{if(l=new URL(o),!l.origin||l.origin==="null")return!1}catch{return!1}const x=new URL(s,l);return l.origin===x.origin},PDFWorkerUtil.createCDNWrapper=function(o){const s=`importScripts("${o}");`;return URL.createObjectURL(new Blob([s]))}}class PDFWorker{static#workerPorts;constructor({name:o=null,port:s=null,verbosity:l=(0,_util.getVerbosityLevel)()}={}){if(this.name=o,this.destroyed=!1,this.verbosity=l,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,s){if(PDFWorker.#workerPorts?.has(s))throw new Error("Cannot use more than one PDFWorker per port.");(PDFWorker.#workerPorts||=new WeakMap).set(s,this),this._initializeFromPort(s);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(o){this._port=o,this._messageHandler=new _message_handler.MessageHandler("main","worker",o),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:o}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,o)||(o=PDFWorkerUtil.createCDNWrapper(new URL(o,window.location).href));const s=new Worker(o),l=new _message_handler.MessageHandler("main","worker",s),x=()=>{s.removeEventListener("error",w),l.destroy(),s.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},w=()=>{this._webWorker||x()};s.addEventListener("error",w),l.on("test",V=>{if(s.removeEventListener("error",w),this.destroyed){x();return}V?(this._messageHandler=l,this._port=s,this._webWorker=s,this._readyCapability.resolve(),l.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),l.destroy(),s.terminate())}),l.on("ready",V=>{if(s.removeEventListener("error",w),this.destroyed){x();return}try{j()}catch{this._setupFakeWorker()}});const j=()=>{const V=new Uint8Array;l.send("test",V,[V.buffer])};j();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(o=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const s=new LoopbackPort;this._port=s;const l=`fake${PDFWorkerUtil.fakeWorkerId++}`,x=new _message_handler.MessageHandler(l+"_worker",l,s);o.setup(x,s);const w=new _message_handler.MessageHandler(l,l+"_worker",s);this._messageHandler=w,this._readyCapability.resolve(),w.send("configure",{verbosity:this.verbosity})}).catch(o=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${o.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#workerPorts?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(o){if(!o?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const s=this.#workerPorts?.get(o.port);if(s){if(s._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return s}return new PDFWorker(o)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS&&typeof commonjsRequire=="function"){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker;class WorkerTransport{#e=new Map;#t=new Map;#n=new Map;#r=null;constructor(s,l,x,w,j){this.messageHandler=s,this.loadingTask=l,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:w.ownerDocument,styleElement:w.styleElement}),this._params=w,this.canvasFactory=j.canvasFactory,this.filterFactory=j.filterFactory,this.cMapReaderFactory=j.cMapReaderFactory,this.standardFontDataFactory=j.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=x,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}#s(s,l=null){const x=this.#e.get(s);if(x)return x;const w=this.messageHandler.sendWithPromise(s,l);return this.#e.set(s,w),w}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(s,l=_util.AnnotationMode.ENABLE,x=null,w=!1){let j=_util.RenderingIntentFlag.DISPLAY,V=_annotation_storage.SerializableEmpty;switch(s){case"any":j=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":j=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${s}`)}switch(l){case _util.AnnotationMode.DISABLE:j+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:j+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:j+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,V=(j&_util.RenderingIntentFlag.PRINT&&x instanceof _annotation_storage.PrintAnnotationStorage?x:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${l}`)}return w&&(j+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:j,cacheKey:`${j}_${V.hash}`,annotationStorageSerializable:V}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,this.#r?.reject(new Error("Worker was destroyed during onPassword callback"));const s=[];for(const x of this.#t.values())s.push(x._destroy());this.#t.clear(),this.#n.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const l=this.messageHandler.sendWithPromise("Terminate",null);return s.push(l),Promise.all(s).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),this._networkStream?.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:s,loadingTask:l}=this;s.on("GetReader",(x,w)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=j=>{this._lastProgress={loaded:j.loaded,total:j.total}},w.onPull=()=>{this._fullReader.read().then(function({value:j,done:V}){if(V){w.close();return}(0,_util.assert)(j instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),w.enqueue(new Uint8Array(j),1,[j])}).catch(j=>{w.error(j)})},w.onCancel=j=>{this._fullReader.cancel(j),w.ready.catch(V=>{if(!this.destroyed)throw V})}}),s.on("ReaderHeadersReady",x=>{const w=new _util.PromiseCapability,j=this._fullReader;return j.headersReady.then(()=>{(!j.isStreamingSupported||!j.isRangeSupported)&&(this._lastProgress&&l.onProgress?.(this._lastProgress),j.onProgress=V=>{l.onProgress?.({loaded:V.loaded,total:V.total})}),w.resolve({isStreamingSupported:j.isStreamingSupported,isRangeSupported:j.isRangeSupported,contentLength:j.contentLength})},w.reject),w.promise}),s.on("GetRangeReader",(x,w)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const j=this._networkStream.getRangeReader(x.begin,x.end);if(!j){w.close();return}w.onPull=()=>{j.read().then(function({value:V,done:W}){if(W){w.close();return}(0,_util.assert)(V instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),w.enqueue(new Uint8Array(V),1,[V])}).catch(V=>{w.error(V)})},w.onCancel=V=>{j.cancel(V),w.ready.catch(W=>{if(!this.destroyed)throw W})}}),s.on("GetDoc",({pdfInfo:x})=>{this._numPages=x.numPages,this._htmlForXfa=x.htmlForXfa,delete x.htmlForXfa,l._capability.resolve(new PDFDocumentProxy(x,this))}),s.on("DocException",function(x){let w;switch(x.name){case"PasswordException":w=new _util.PasswordException(x.message,x.code);break;case"InvalidPDFException":w=new _util.InvalidPDFException(x.message);break;case"MissingPDFException":w=new _util.MissingPDFException(x.message);break;case"UnexpectedResponseException":w=new _util.UnexpectedResponseException(x.message,x.status);break;case"UnknownErrorException":w=new _util.UnknownErrorException(x.message,x.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}l._capability.reject(w)}),s.on("PasswordRequest",x=>{if(this.#r=new _util.PromiseCapability,l.onPassword){const w=j=>{j instanceof Error?this.#r.reject(j):this.#r.resolve({password:j})};try{l.onPassword(w,x.code)}catch(j){this.#r.reject(j)}}else this.#r.reject(new _util.PasswordException(x.message,x.code));return this.#r.promise}),s.on("DataLoaded",x=>{l.onProgress?.({loaded:x.length,total:x.length}),this.downloadInfoCapability.resolve(x)}),s.on("StartRenderPage",x=>{if(this.destroyed)return;this.#t.get(x.pageIndex)._startRenderPage(x.transparency,x.cacheKey)}),s.on("commonobj",([x,w,j])=>{if(!this.destroyed&&!this.commonObjs.has(x))switch(w){case"Font":const V=this._params;if("error"in j){const Y=j.error;(0,_util.warn)(`Error during font loading: ${Y}`),this.commonObjs.resolve(x,Y);break}const W=V.pdfBug&&globalThis.FontInspector?.enabled?(Y,X)=>globalThis.FontInspector.fontAdded(Y,X):null,U=new _font_loader.FontFaceObject(j,{isEvalSupported:V.isEvalSupported,disableFontFace:V.disableFontFace,ignoreErrors:V.ignoreErrors,inspectFont:W});this.fontLoader.bind(U).catch(Y=>s.sendWithPromise("FontFallback",{id:x})).finally(()=>{!V.fontExtraProperties&&U.data&&(U.data=null),this.commonObjs.resolve(x,U)});break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(x,j);break;default:throw new Error(`Got unknown common object type ${w}`)}}),s.on("obj",([x,w,j,V])=>{if(this.destroyed)return;const W=this.#t.get(w);if(!W.objs.has(x))switch(j){case"Image":if(W.objs.resolve(x,V),V){let U;if(V.bitmap){const{width:Y,height:X}=V;U=Y*X*4}else U=V.data?.length||0;U>_util.MAX_IMAGE_SIZE_TO_CACHE&&(W._maybeCleanupAfterRender=!0)}break;case"Pattern":W.objs.resolve(x,V);break;default:throw new Error(`Got unknown object type ${j}`)}}),s.on("DocProgress",x=>{this.destroyed||l.onProgress?.({loaded:x.loaded,total:x.total})}),s.on("FetchBuiltInCMap",x=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(x):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),s.on("FetchStandardFontData",x=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(x):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:s,transfers:l}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:s,filename:this._fullReader?.filename??null},l).finally(()=>{this.annotationStorage.resetModified()})}getPage(s){if(!Number.isInteger(s)||s<=0||s>this._numPages)return Promise.reject(new Error("Invalid page request."));const l=s-1,x=this.#n.get(l);if(x)return x;const w=this.messageHandler.sendWithPromise("GetPage",{pageIndex:l}).then(j=>{if(this.destroyed)throw new Error("Transport destroyed");const V=new PDFPageProxy(l,j,this,this._params.pdfBug);return this.#t.set(l,V),V});return this.#n.set(l,w),w}getPageIndex(s){return typeof s!="object"||s===null||!Number.isInteger(s.num)||s.num<0||!Number.isInteger(s.gen)||s.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:s.num,gen:s.gen})}getAnnotations(s,l){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:s,intent:l})}getFieldObjects(){return this.#s("GetFieldObjects")}hasJSActions(){return this.#s("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(s){return typeof s!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:s})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#s("GetDocJSActions")}getPageJSActions(s){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:s})}getStructTree(s){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:s})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(s=>new _optional_content_config.OptionalContentConfig(s))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const s="GetMetadata",l=this.#e.get(s);if(l)return l;const x=this.messageHandler.sendWithPromise(s,null).then(w=>({info:w[0],metadata:w[1]?new _metadata.Metadata(w[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(s,x),x}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(s=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const l of this.#t.values())if(!l.cleanup())throw new Error(`startCleanup: Page ${l.pageNumber} is currently rendering.`);this.commonObjs.clear(),s||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:s,enableXfa:l}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:s,enableXfa:l})}}class PDFObjects{#e=Object.create(null);#t(s){return this.#e[s]||={capability:new _util.PromiseCapability,data:null}}get(s,l=null){if(l){const w=this.#t(s);return w.capability.promise.then(()=>l(w.data)),null}const x=this.#e[s];if(!x?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${s}.`);return x.data}has(s){return this.#e[s]?.capability.settled||!1}resolve(s,l=null){const x=this.#t(s);x.data=l,x.capability.resolve()}clear(){for(const s in this.#e){const{data:l}=this.#e[s];l?.bitmap?.close()}this.#e=Object.create(null)}}class RenderTask{#e=null;constructor(s){this.#e=s,this.onContinue=null}get promise(){return this.#e.capability.promise}cancel(s=0){this.#e.cancel(null,s)}get separateAnnots(){const{separateAnnots:s}=this.#e.operatorList;if(!s)return!1;const{annotationCanvasMap:l}=this.#e;return s.form||s.canvas&&l?.size>0}}exports.RenderTask=RenderTask;class InternalRenderTask{static#e=new WeakSet;constructor({callback:s,params:l,objs:x,commonObjs:w,annotationCanvasMap:j,operatorList:V,pageIndex:W,canvasFactory:U,filterFactory:Y,useRequestAnimationFrame:X=!1,pdfBug:Z=!1,pageColors:le=null}){this.callback=s,this.params=l,this.objs=x,this.commonObjs=w,this.annotationCanvasMap=j,this.operatorListIdx=null,this.operatorList=V,this._pageIndex=W,this.canvasFactory=U,this.filterFactory=Y,this._pdfBug=Z,this.pageColors=le,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=X===!0&&typeof window<"u",this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=l.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:s=!1,optionalContentConfig:l}){if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");InternalRenderTask.#e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:x,viewport:w,transform:j,background:V}=this.params;this.gfx=new _canvas.CanvasGraphics(x,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:l},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:j,viewport:w,transparency:s,background:V}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(s=null,l=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),InternalRenderTask.#e.delete(this._canvas),this.callback(s||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,l))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),InternalRenderTask.#e.delete(this._canvas),this.callback())))}}const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SerializableEmpty=s.PrintAnnotationStorage=s.AnnotationStorage=void 0;var x=l(1),w=l(4),j=l(8);const V=Object.freeze({map:null,hash:"",transfers:void 0});s.SerializableEmpty=V;class W{#e=!1;#t=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(X,Z){const le=this.#t.get(X);return le===void 0?Z:Object.assign(Z,le)}getRawValue(X){return this.#t.get(X)}remove(X){if(this.#t.delete(X),this.#t.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const Z of this.#t.values())if(Z instanceof w.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(X,Z){const le=this.#t.get(X);let oe=!1;if(le!==void 0)for(const[re,J]of Object.entries(Z))le[re]!==J&&(oe=!0,le[re]=J);else oe=!0,this.#t.set(X,Z);oe&&this.#n(),Z instanceof w.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(Z.constructor._type)}has(X){return this.#t.has(X)}getAll(){return this.#t.size>0?(0,x.objectFromMap)(this.#t):null}setAll(X){for(const[Z,le]of Object.entries(X))this.setValue(Z,le)}get size(){return this.#t.size}#n(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new U(this)}get serializable(){if(this.#t.size===0)return V;const X=new Map,Z=new j.MurmurHash3_64,le=[],oe=Object.create(null);let re=!1;for(const[J,ue]of this.#t){const me=ue instanceof w.AnnotationEditor?ue.serialize(!1,oe):ue;me&&(X.set(J,me),Z.update(`${J}:${JSON.stringify(me)}`),re||=!!me.bitmap)}if(re)for(const J of X.values())J.bitmap&&le.push(J.bitmap);return X.size>0?{map:X,hash:Z.hexdigest(),transfers:le}:V}}s.AnnotationStorage=W;class U extends W{#e;constructor(X){super();const{map:Z,hash:le,transfers:oe}=X.serializable,re=structuredClone(Z,oe?{transfer:oe}:null);this.#e={map:re,hash:le,transfers:oe}}get print(){(0,x.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}}s.PrintAnnotationStorage=U},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.AnnotationEditor=void 0;var x=l(5),w=l(1),j=l(6);class V{#e="";#t=!1;#n=null;#r=null;#s=null;#i=!1;#a=null;#l=this.focusin.bind(this);#c=this.focusout.bind(this);#o=!1;#f=!1;#d=!1;_initialOptions=Object.create(null);_uiManager=null;_focusEventsAllowed=!0;_l10nPromise=null;#p=!1;#h=V._zIndex++;static _borderLineWidth=-1;static _colorManager=new x.ColorManager;static _zIndex=1;static SMALL_EDITOR_SIZE=0;constructor(Y){this.constructor===V&&(0,w.unreachable)("Cannot initialize AnnotationEditor."),this.parent=Y.parent,this.id=Y.id,this.width=this.height=null,this.pageIndex=Y.parent.pageIndex,this.name=Y.name,this.div=null,this._uiManager=Y.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=Y.isCentered,this._structTreeParentId=null;const{rotation:X,rawDims:{pageWidth:Z,pageHeight:le,pageX:oe,pageY:re}}=this.parent.viewport;this.rotation=X,this.pageRotation=(360+X-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[Z,le],this.pageTranslation=[oe,re];const[J,ue]=this.parentDimensions;this.x=Y.x/J,this.y=Y.y/ue,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,w.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(Y){const X=new W({id:Y.parent.getNextId(),parent:Y.parent,uiManager:Y._uiManager});X.annotationElementId=Y.annotationElementId,X.deleted=!0,X._uiManager.addToAnnotationStorage(X)}static initialize(Y,X=null){if(V._l10nPromise||=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map(le=>[le,Y.get(le)])),X?.strings)for(const le of X.strings)V._l10nPromise.set(le,Y.get(le));if(V._borderLineWidth!==-1)return;const Z=getComputedStyle(document.documentElement);V._borderLineWidth=parseFloat(Z.getPropertyValue("--outline-width"))||0}static updateDefaultParams(Y,X){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(Y){return!1}static paste(Y,X){(0,w.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#p}set _isDraggable(Y){this.#p=Y,this.div?.classList.toggle("draggable",Y)}center(){const[Y,X]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*X/(Y*2),this.y+=this.width*Y/(X*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*X/(Y*2),this.y-=this.width*Y/(X*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(Y){this._uiManager.addCommands(Y)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#h}setParent(Y){Y!==null&&(this.pageIndex=Y.pageIndex,this.pageDimensions=Y.pageDimensions),this.parent=Y}focusin(Y){this._focusEventsAllowed&&(this.#o?this.#o=!1:this.parent.setSelected(this))}focusout(Y){!this._focusEventsAllowed||!this.isAttachedToDOM||Y.relatedTarget?.closest(`#${this.id}`)||(Y.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(Y,X,Z,le){const[oe,re]=this.parentDimensions;[Z,le]=this.screenToPageTranslation(Z,le),this.x=(Y+Z)/oe,this.y=(X+le)/re,this.fixAndSetPosition()}#v([Y,X],Z,le){[Z,le]=this.screenToPageTranslation(Z,le),this.x+=Z/Y,this.y+=le/X,this.fixAndSetPosition()}translate(Y,X){this.#v(this.parentDimensions,Y,X)}translateInPage(Y,X){this.#v(this.pageDimensions,Y,X),this.div.scrollIntoView({block:"nearest"})}drag(Y,X){const[Z,le]=this.parentDimensions;if(this.x+=Y/Z,this.y+=X/le,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:me,y:fe}=this.div.getBoundingClientRect();this.parent.findNewParent(this,me,fe)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:oe,y:re}=this;const[J,ue]=this.#g();oe+=J,re+=ue,this.div.style.left=`${(100*oe).toFixed(2)}%`,this.div.style.top=`${(100*re).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}#g(){const[Y,X]=this.parentDimensions,{_borderLineWidth:Z}=V,le=Z/Y,oe=Z/X;switch(this.rotation){case 90:return[-le,oe];case 180:return[le,oe];case 270:return[le,-oe];default:return[-le,-oe]}}fixAndSetPosition(){const[Y,X]=this.pageDimensions;let{x:Z,y:le,width:oe,height:re}=this;switch(oe*=Y,re*=X,Z*=Y,le*=X,this.rotation){case 0:Z=Math.max(0,Math.min(Y-oe,Z)),le=Math.max(0,Math.min(X-re,le));break;case 90:Z=Math.max(0,Math.min(Y-re,Z)),le=Math.min(X,Math.max(oe,le));break;case 180:Z=Math.min(Y,Math.max(oe,Z)),le=Math.min(X,Math.max(re,le));break;case 270:Z=Math.min(Y,Math.max(re,Z)),le=Math.max(0,Math.min(X-oe,le));break}this.x=Z/=Y,this.y=le/=X;const[J,ue]=this.#g();Z+=J,le+=ue;const{style:me}=this.div;me.left=`${(100*Z).toFixed(2)}%`,me.top=`${(100*le).toFixed(2)}%`,this.moveInDOM()}static#m(Y,X,Z){switch(Z){case 90:return[X,-Y];case 180:return[-Y,-X];case 270:return[-X,Y];default:return[Y,X]}}screenToPageTranslation(Y,X){return V.#m(Y,X,this.parentRotation)}pageTranslationToScreen(Y,X){return V.#m(Y,X,360-this.parentRotation)}#u(Y){switch(Y){case 90:{const[X,Z]=this.pageDimensions;return[0,-X/Z,Z/X,0]}case 180:return[-1,0,0,-1];case 270:{const[X,Z]=this.pageDimensions;return[0,X/Z,-Z/X,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:Y,pageDimensions:[X,Z]}=this,le=X*Y,oe=Z*Y;return w.FeatureTest.isCSSRoundSupported?[Math.round(le),Math.round(oe)]:[le,oe]}setDims(Y,X){const[Z,le]=this.parentDimensions;this.div.style.width=`${(100*Y/Z).toFixed(2)}%`,this.#i||(this.div.style.height=`${(100*X/le).toFixed(2)}%`),this.#n?.classList.toggle("small",Y<V.SMALL_EDITOR_SIZE||X<V.SMALL_EDITOR_SIZE)}fixDims(){const{style:Y}=this.div,{height:X,width:Z}=Y,le=Z.endsWith("%"),oe=!this.#i&&X.endsWith("%");if(le&&oe)return;const[re,J]=this.parentDimensions;le||(Y.width=`${(100*parseFloat(Z)/re).toFixed(2)}%`),!this.#i&&!oe&&(Y.height=`${(100*parseFloat(X)/J).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#y(){if(this.#a)return;this.#a=document.createElement("div"),this.#a.classList.add("resizers");const Y=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||Y.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const X of Y){const Z=document.createElement("div");this.#a.append(Z),Z.classList.add("resizer",X),Z.addEventListener("pointerdown",this.#C.bind(this,X)),Z.addEventListener("contextmenu",j.noContextMenu)}this.div.prepend(this.#a)}#C(Y,X){X.preventDefault();const{isMac:Z}=w.FeatureTest.platform;if(X.button!==0||X.ctrlKey&&Z)return;const le=this.#T.bind(this,Y),oe=this._isDraggable;this._isDraggable=!1;const re={passive:!0,capture:!0};window.addEventListener("pointermove",le,re);const J=this.x,ue=this.y,me=this.width,fe=this.height,xe=this.parent.div.style.cursor,Te=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(X.target).cursor;const ge=()=>{this._isDraggable=oe,window.removeEventListener("pointerup",ge),window.removeEventListener("blur",ge),window.removeEventListener("pointermove",le,re),this.parent.div.style.cursor=xe,this.div.style.cursor=Te;const Pe=this.x,Se=this.y,Re=this.width,De=this.height;Pe===J&&Se===ue&&Re===me&&De===fe||this.addCommands({cmd:()=>{this.width=Re,this.height=De,this.x=Pe,this.y=Se;const[Le,_e]=this.parentDimensions;this.setDims(Le*Re,_e*De),this.fixAndSetPosition()},undo:()=>{this.width=me,this.height=fe,this.x=J,this.y=ue;const[Le,_e]=this.parentDimensions;this.setDims(Le*me,_e*fe),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",ge),window.addEventListener("blur",ge)}#T(Y,X){const[Z,le]=this.parentDimensions,oe=this.x,re=this.y,J=this.width,ue=this.height,me=V.MIN_SIZE/Z,fe=V.MIN_SIZE/le,xe=Ye=>Math.round(Ye*1e4)/1e4,Te=this.#u(this.rotation),ge=(Ye,He)=>[Te[0]*Ye+Te[2]*He,Te[1]*Ye+Te[3]*He],Pe=this.#u(360-this.rotation),Se=(Ye,He)=>[Pe[0]*Ye+Pe[2]*He,Pe[1]*Ye+Pe[3]*He];let Re,De,Le=!1,_e=!1;switch(Y){case"topLeft":Le=!0,Re=(Ye,He)=>[0,0],De=(Ye,He)=>[Ye,He];break;case"topMiddle":Re=(Ye,He)=>[Ye/2,0],De=(Ye,He)=>[Ye/2,He];break;case"topRight":Le=!0,Re=(Ye,He)=>[Ye,0],De=(Ye,He)=>[0,He];break;case"middleRight":_e=!0,Re=(Ye,He)=>[Ye,He/2],De=(Ye,He)=>[0,He/2];break;case"bottomRight":Le=!0,Re=(Ye,He)=>[Ye,He],De=(Ye,He)=>[0,0];break;case"bottomMiddle":Re=(Ye,He)=>[Ye/2,He],De=(Ye,He)=>[Ye/2,0];break;case"bottomLeft":Le=!0,Re=(Ye,He)=>[0,He],De=(Ye,He)=>[Ye,0];break;case"middleLeft":_e=!0,Re=(Ye,He)=>[0,He/2],De=(Ye,He)=>[Ye,He/2];break}const Be=Re(J,ue),Fe=De(J,ue);let je=ge(...Fe);const ze=xe(oe+je[0]),We=xe(re+je[1]);let Oe=1,ke=1,[Ee,Ae]=this.screenToPageTranslation(X.movementX,X.movementY);if([Ee,Ae]=Se(Ee/Z,Ae/le),Le){const Ye=Math.hypot(J,ue);Oe=ke=Math.max(Math.min(Math.hypot(Fe[0]-Be[0]-Ee,Fe[1]-Be[1]-Ae)/Ye,1/J,1/ue),me/J,fe/ue)}else _e?Oe=Math.max(me,Math.min(1,Math.abs(Fe[0]-Be[0]-Ee)))/J:ke=Math.max(fe,Math.min(1,Math.abs(Fe[1]-Be[1]-Ae)))/ue;const Ve=xe(J*Oe),Xe=xe(ue*ke);je=ge(...De(Ve,Xe));const nt=ze-je[0],tt=We-je[1];this.width=Ve,this.height=Xe,this.x=nt,this.y=tt,this.setDims(Z*Ve,le*Xe),this.fixAndSetPosition()}async addAltTextButton(){if(this.#n)return;const Y=this.#n=document.createElement("button");Y.className="altText";const X=await V._l10nPromise.get("editor_alt_text_button_label");Y.textContent=X,Y.setAttribute("aria-label",X),Y.tabIndex="0",Y.addEventListener("contextmenu",j.noContextMenu),Y.addEventListener("pointerdown",Z=>Z.stopPropagation()),Y.addEventListener("click",Z=>{Z.preventDefault(),this._uiManager.editAltText(this)},{capture:!0}),Y.addEventListener("keydown",Z=>{Z.target===Y&&Z.key==="Enter"&&(Z.preventDefault(),this._uiManager.editAltText(this))}),this.#_(),this.div.append(Y),V.SMALL_EDITOR_SIZE||(V.SMALL_EDITOR_SIZE=Math.min(128,Math.round(Y.getBoundingClientRect().width*1.4)))}async#_(){const Y=this.#n;if(!Y)return;if(!this.#e&&!this.#t){Y.classList.remove("done"),this.#r?.remove();return}V._l10nPromise.get("editor_alt_text_edit_button_label").then(Z=>{Y.setAttribute("aria-label",Z)});let X=this.#r;if(!X){this.#r=X=document.createElement("span"),X.className="tooltip",X.setAttribute("role","tooltip");const Z=X.id=`alt-text-tooltip-${this.id}`;Y.setAttribute("aria-describedby",Z);const le=100;Y.addEventListener("mouseenter",()=>{this.#s=setTimeout(()=>{this.#s=null,this.#r.classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})},le)}),Y.addEventListener("mouseleave",()=>{clearTimeout(this.#s),this.#s=null,this.#r?.classList.remove("show")})}Y.classList.add("done"),X.innerText=this.#t?await V._l10nPromise.get("editor_alt_text_decorative_tooltip"):this.#e,X.parentNode||Y.append(X)}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:this.#e,decorative:this.#t}}set altTextData({altText:Y,decorative:X}){this.#e===Y&&this.#t===X||(this.#e=Y,this.#t=X,this.#_())}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",this.#l),this.div.addEventListener("focusout",this.#c);const[Y,X]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*X/Y).toFixed(2)}%`,this.div.style.maxHeight=`${(100*Y/X).toFixed(2)}%`);const[Z,le]=this.getInitialTranslation();return this.translate(Z,le),(0,x.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(Y){const{isMac:X}=w.FeatureTest.platform;if(Y.button!==0||Y.ctrlKey&&X){Y.preventDefault();return}this.#o=!0,this.#$(Y)}#$(Y){if(!this._isDraggable)return;const X=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let Z,le;X&&(Z={passive:!0,capture:!0},le=re=>{const[J,ue]=this.screenToPageTranslation(re.movementX,re.movementY);this._uiManager.dragSelectedEditors(J,ue)},window.addEventListener("pointermove",le,Z));const oe=()=>{if(window.removeEventListener("pointerup",oe),window.removeEventListener("blur",oe),X&&window.removeEventListener("pointermove",le,Z),this.#o=!1,!this._uiManager.endDragSession()){const{isMac:re}=w.FeatureTest.platform;Y.ctrlKey&&!re||Y.shiftKey||Y.metaKey&&re?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",oe),window.addEventListener("blur",oe)}moveInDOM(){this.parent?.moveEditorInDOM(this)}_setParentAndPosition(Y,X,Z){Y.changeParent(this),this.x=X,this.y=Z,this.fixAndSetPosition()}getRect(Y,X){const Z=this.parentScale,[le,oe]=this.pageDimensions,[re,J]=this.pageTranslation,ue=Y/Z,me=X/Z,fe=this.x*le,xe=this.y*oe,Te=this.width*le,ge=this.height*oe;switch(this.rotation){case 0:return[fe+ue+re,oe-xe-me-ge+J,fe+ue+Te+re,oe-xe-me+J];case 90:return[fe+me+re,oe-xe+ue+J,fe+me+ge+re,oe-xe+ue+Te+J];case 180:return[fe-ue-Te+re,oe-xe+me+J,fe-ue+re,oe-xe+me+ge+J];case 270:return[fe-me-ge+re,oe-xe-ue-Te+J,fe-me+re,oe-xe-ue+J];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(Y,X){const[Z,le,oe,re]=Y,J=oe-Z,ue=re-le;switch(this.rotation){case 0:return[Z,X-re,J,ue];case 90:return[Z,X-le,ue,J];case 180:return[oe,X-le,J,ue];case 270:return[oe,X-re,ue,J];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#d=!0}disableEditMode(){this.#d=!1}isInEditMode(){return this.#d}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#l),this.div?.addEventListener("focusout",this.#c)}serialize(Y=!1,X=null){(0,w.unreachable)("An editor must be serializable")}static deserialize(Y,X,Z){const le=new this.prototype.constructor({parent:X,id:X.getNextId(),uiManager:Z});le.rotation=Y.rotation;const[oe,re]=le.pageDimensions,[J,ue,me,fe]=le.getRectInCurrentCoords(Y.rect,re);return le.x=J/oe,le.y=ue/re,le.width=me/oe,le.height=fe/re,le}remove(){this.div.removeEventListener("focusin",this.#l),this.div.removeEventListener("focusout",this.#c),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#n?.remove(),this.#n=null,this.#r=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#y(),this.#a.classList.remove("hidden"))}select(){this.makeResizable(),this.div?.classList.add("selectedEditor")}unselect(){this.#a?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(Y,X){}disableEditing(){this.#n&&(this.#n.hidden=!0)}enableEditing(){this.#n&&(this.#n.hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return this.#f}set isEditing(Y){this.#f=Y,this.parent&&(Y?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(Y,X){this.#i=!0;const Z=Y/X,{style:le}=this.div;le.aspectRatio=Z,le.height="auto"}static get MIN_SIZE(){return 16}}s.AnnotationEditor=V;class W extends V{constructor(Y){super(Y),this.annotationElementId=Y.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.KeyboardManager=s.CommandManager=s.ColorManager=s.AnnotationEditorUIManager=void 0,s.bindEvents=j,s.opacityToHex=V;var x=l(1),w=l(6);function j(oe,re,J){for(const ue of J)re.addEventListener(ue,oe[ue].bind(oe))}function V(oe){return Math.round(Math.min(255,Math.max(1,255*oe))).toString(16).padStart(2,"0")}class W{#e=0;getId(){return`${x.AnnotationEditorPrefix}${this.#e++}`}}class U{#e=(0,x.getUuid)();#t=0;#n=null;static get _isSVGFittingCanvas(){const re='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',ue=new OffscreenCanvas(1,3).getContext("2d"),me=new Image;me.src=re;const fe=me.decode().then(()=>(ue.drawImage(me,0,0,1,1,0,0,1,3),new Uint32Array(ue.getImageData(0,0,1,1).data.buffer)[0]===0));return(0,x.shadow)(this,"_isSVGFittingCanvas",fe)}async#r(re,J){this.#n||=new Map;let ue=this.#n.get(re);if(ue===null)return null;if(ue?.bitmap)return ue.refCounter+=1,ue;try{ue||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let me;if(typeof J=="string"){ue.url=J;const fe=await fetch(J);if(!fe.ok)throw new Error(fe.statusText);me=await fe.blob()}else me=ue.file=J;if(me.type==="image/svg+xml"){const fe=U._isSVGFittingCanvas,xe=new FileReader,Te=new Image,ge=new Promise((Pe,Se)=>{Te.onload=()=>{ue.bitmap=Te,ue.isSvg=!0,Pe()},xe.onload=async()=>{const Re=ue.svgUrl=xe.result;Te.src=await fe?`${Re}#svgView(preserveAspectRatio(none))`:Re},Te.onerror=xe.onerror=Se});xe.readAsDataURL(me),await ge}else ue.bitmap=await createImageBitmap(me);ue.refCounter=1}catch(me){console.error(me),ue=null}return this.#n.set(re,ue),ue&&this.#n.set(ue.id,ue),ue}async getFromFile(re){const{lastModified:J,name:ue,size:me,type:fe}=re;return this.#r(`${J}_${ue}_${me}_${fe}`,re)}async getFromUrl(re){return this.#r(re,re)}async getFromId(re){this.#n||=new Map;const J=this.#n.get(re);return J?J.bitmap?(J.refCounter+=1,J):J.file?this.getFromFile(J.file):this.getFromUrl(J.url):null}getSvgUrl(re){const J=this.#n.get(re);return J?.isSvg?J.svgUrl:null}deleteId(re){this.#n||=new Map;const J=this.#n.get(re);J&&(J.refCounter-=1,J.refCounter===0&&(J.bitmap=null))}isValidId(re){return re.startsWith(`image_${this.#e}_`)}}class Y{#e=[];#t=!1;#n;#r=-1;constructor(re=128){this.#n=re}add({cmd:re,undo:J,mustExec:ue,type:me=NaN,overwriteIfSameType:fe=!1,keepUndo:xe=!1}){if(ue&&re(),this.#t)return;const Te={cmd:re,undo:J,type:me};if(this.#r===-1){this.#e.length>0&&(this.#e.length=0),this.#r=0,this.#e.push(Te);return}if(fe&&this.#e[this.#r].type===me){xe&&(Te.undo=this.#e[this.#r].undo),this.#e[this.#r]=Te;return}const ge=this.#r+1;ge===this.#n?this.#e.splice(0,1):(this.#r=ge,ge<this.#e.length&&this.#e.splice(ge)),this.#e.push(Te)}undo(){this.#r!==-1&&(this.#t=!0,this.#e[this.#r].undo(),this.#t=!1,this.#r-=1)}redo(){this.#r<this.#e.length-1&&(this.#r+=1,this.#t=!0,this.#e[this.#r].cmd(),this.#t=!1)}hasSomethingToUndo(){return this.#r!==-1}hasSomethingToRedo(){return this.#r<this.#e.length-1}destroy(){this.#e=null}}s.CommandManager=Y;class X{constructor(re){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:J}=x.FeatureTest.platform;for(const[ue,me,fe={}]of re)for(const xe of ue){const Te=xe.startsWith("mac+");J&&Te?(this.callbacks.set(xe.slice(4),{callback:me,options:fe}),this.allKeys.add(xe.split("+").at(-1))):!J&&!Te&&(this.callbacks.set(xe,{callback:me,options:fe}),this.allKeys.add(xe.split("+").at(-1)))}}#e(re){re.altKey&&this.buffer.push("alt"),re.ctrlKey&&this.buffer.push("ctrl"),re.metaKey&&this.buffer.push("meta"),re.shiftKey&&this.buffer.push("shift"),this.buffer.push(re.key);const J=this.buffer.join("+");return this.buffer.length=0,J}exec(re,J){if(!this.allKeys.has(J.key))return;const ue=this.callbacks.get(this.#e(J));if(!ue)return;const{callback:me,options:{bubbles:fe=!1,args:xe=[],checker:Te=null}}=ue;Te&&!Te(re,J)||(me.bind(re,...xe)(),fe||(J.stopPropagation(),J.preventDefault()))}}s.KeyboardManager=X;class Z{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const re=new Map([["CanvasText",null],["Canvas",null]]);return(0,w.getColorValues)(re),(0,x.shadow)(this,"_colors",re)}convert(re){const J=(0,w.getRGB)(re);if(!window.matchMedia("(forced-colors: active)").matches)return J;for(const[ue,me]of this._colors)if(me.every((fe,xe)=>fe===J[xe]))return Z._colorsMapping.get(ue);return J}getHexCode(re){const J=this._colors.get(re);return J?x.Util.makeHexColor(...J):re}}s.ColorManager=Z;class le{#e=null;#t=new Map;#n=new Map;#r=null;#s=null;#i=new Y;#a=0;#l=new Set;#c=null;#o=null;#f=new Set;#d=null;#p=new W;#h=!1;#v=!1;#g=null;#m=x.AnnotationEditorType.NONE;#u=new Set;#y=null;#C=this.blur.bind(this);#T=this.focus.bind(this);#_=this.copy.bind(this);#$=this.cut.bind(this);#O=this.paste.bind(this);#I=this.keydown.bind(this);#N=this.onEditingAction.bind(this);#b=this.onPageChanging.bind(this);#M=this.onScaleChanging.bind(this);#k=this.onRotationChanging.bind(this);#R={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1};#x=[0,0];#E=null;#P=null;#L=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const re=le.prototype,J=fe=>{const{activeElement:xe}=document;return xe&&fe.#P.contains(xe)&&fe.hasSomethingToControl()},ue=this.TRANSLATE_SMALL,me=this.TRANSLATE_BIG;return(0,x.shadow)(this,"_keyboardManager",new X([[["ctrl+a","mac+meta+a"],re.selectAll],[["ctrl+z","mac+meta+z"],re.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],re.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],re.delete],[["Escape","mac+Escape"],re.unselectAll],[["ArrowLeft","mac+ArrowLeft"],re.translateSelectedEditors,{args:[-ue,0],checker:J}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],re.translateSelectedEditors,{args:[-me,0],checker:J}],[["ArrowRight","mac+ArrowRight"],re.translateSelectedEditors,{args:[ue,0],checker:J}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],re.translateSelectedEditors,{args:[me,0],checker:J}],[["ArrowUp","mac+ArrowUp"],re.translateSelectedEditors,{args:[0,-ue],checker:J}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],re.translateSelectedEditors,{args:[0,-me],checker:J}],[["ArrowDown","mac+ArrowDown"],re.translateSelectedEditors,{args:[0,ue],checker:J}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],re.translateSelectedEditors,{args:[0,me],checker:J}]]))}constructor(re,J,ue,me,fe,xe){this.#P=re,this.#L=J,this.#r=ue,this._eventBus=me,this._eventBus._on("editingaction",this.#N),this._eventBus._on("pagechanging",this.#b),this._eventBus._on("scalechanging",this.#M),this._eventBus._on("rotationchanging",this.#k),this.#s=fe.annotationStorage,this.#d=fe.filterFactory,this.#y=xe,this.viewParameters={realScale:w.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){this.#A(),this.#B(),this._eventBus._off("editingaction",this.#N),this._eventBus._off("pagechanging",this.#b),this._eventBus._off("scalechanging",this.#M),this._eventBus._off("rotationchanging",this.#k);for(const re of this.#n.values())re.destroy();this.#n.clear(),this.#t.clear(),this.#f.clear(),this.#e=null,this.#u.clear(),this.#i.destroy(),this.#r.destroy()}get hcmFilter(){return(0,x.shadow)(this,"hcmFilter",this.#y?this.#d.addHCMFilter(this.#y.foreground,this.#y.background):"none")}get direction(){return(0,x.shadow)(this,"direction",getComputedStyle(this.#P).direction)}editAltText(re){this.#r?.editAltText(this,re)}onPageChanging({pageNumber:re}){this.#a=re-1}focusMainContainer(){this.#P.focus()}findParent(re,J){for(const ue of this.#n.values()){const{x:me,y:fe,width:xe,height:Te}=ue.div.getBoundingClientRect();if(re>=me&&re<=me+xe&&J>=fe&&J<=fe+Te)return ue}return null}disableUserSelect(re=!1){this.#L.classList.toggle("noUserSelect",re)}addShouldRescale(re){this.#f.add(re)}removeShouldRescale(re){this.#f.delete(re)}onScaleChanging({scale:re}){this.commitOrRemove(),this.viewParameters.realScale=re*w.PixelsPerInch.PDF_TO_CSS_UNITS;for(const J of this.#f)J.onScaleChanging()}onRotationChanging({pagesRotation:re}){this.commitOrRemove(),this.viewParameters.rotation=re}addToAnnotationStorage(re){!re.isEmpty()&&this.#s&&!this.#s.has(re.id)&&this.#s.setValue(re.id,re)}#F(){window.addEventListener("focus",this.#T),window.addEventListener("blur",this.#C)}#B(){window.removeEventListener("focus",this.#T),window.removeEventListener("blur",this.#C)}blur(){if(!this.hasSelection)return;const{activeElement:re}=document;for(const J of this.#u)if(J.div.contains(re)){this.#g=[J,re],J._focusEventsAllowed=!1;break}}focus(){if(!this.#g)return;const[re,J]=this.#g;this.#g=null,J.addEventListener("focusin",()=>{re._focusEventsAllowed=!0},{once:!0}),J.focus()}#j(){window.addEventListener("keydown",this.#I,{capture:!0})}#A(){window.removeEventListener("keydown",this.#I,{capture:!0})}#D(){document.addEventListener("copy",this.#_),document.addEventListener("cut",this.#$),document.addEventListener("paste",this.#O)}#S(){document.removeEventListener("copy",this.#_),document.removeEventListener("cut",this.#$),document.removeEventListener("paste",this.#O)}addEditListeners(){this.#j(),this.#D()}removeEditListeners(){this.#A(),this.#S()}copy(re){if(re.preventDefault(),this.#e?.commitOrRemove(),!this.hasSelection)return;const J=[];for(const ue of this.#u){const me=ue.serialize(!0);me&&J.push(me)}J.length!==0&&re.clipboardData.setData("application/pdfjs",JSON.stringify(J))}cut(re){this.copy(re),this.delete()}paste(re){re.preventDefault();const{clipboardData:J}=re;for(const fe of J.items)for(const xe of this.#o)if(xe.isHandlingMimeForPasting(fe.type)){xe.paste(fe,this.currentLayer);return}let ue=J.getData("application/pdfjs");if(!ue)return;try{ue=JSON.parse(ue)}catch(fe){(0,x.warn)(`paste: "${fe.message}".`);return}if(!Array.isArray(ue))return;this.unselectAll();const me=this.currentLayer;try{const fe=[];for(const ge of ue){const Pe=me.deserialize(ge);if(!Pe)return;fe.push(Pe)}const xe=()=>{for(const ge of fe)this.#H(ge);this.#W(fe)},Te=()=>{for(const ge of fe)ge.remove()};this.addCommands({cmd:xe,undo:Te,mustExec:!0})}catch(fe){(0,x.warn)(`paste: "${fe.message}".`)}}keydown(re){this.getActive()?.shouldGetKeyboardEvents()||le._keyboardManager.exec(this,re)}onEditingAction(re){["undo","redo","delete","selectAll"].includes(re.name)&&this[re.name]()}#w(re){Object.entries(re).some(([ue,me])=>this.#R[ue]!==me)&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#R,re)})}#z(re){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:re})}setEditingState(re){re?(this.#F(),this.#j(),this.#D(),this.#w({isEditing:this.#m!==x.AnnotationEditorType.NONE,isEmpty:this.#V(),hasSomethingToUndo:this.#i.hasSomethingToUndo(),hasSomethingToRedo:this.#i.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#B(),this.#A(),this.#S(),this.#w({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(re){if(!this.#o){this.#o=re;for(const J of this.#o)this.#z(J.defaultPropertiesToUpdate)}}getId(){return this.#p.getId()}get currentLayer(){return this.#n.get(this.#a)}getLayer(re){return this.#n.get(re)}get currentPageIndex(){return this.#a}addLayer(re){this.#n.set(re.pageIndex,re),this.#h?re.enable():re.disable()}removeLayer(re){this.#n.delete(re.pageIndex)}updateMode(re,J=null){if(this.#m!==re){if(this.#m=re,re===x.AnnotationEditorType.NONE){this.setEditingState(!1),this.#Y();return}this.setEditingState(!0),this.#U(),this.unselectAll();for(const ue of this.#n.values())ue.updateMode(re);if(J){for(const ue of this.#t.values())if(ue.annotationElementId===J){this.setSelected(ue),ue.enterInEditMode();break}}}}updateToolbar(re){re!==this.#m&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:re})}updateParams(re,J){if(this.#o){if(re===x.AnnotationEditorParamsType.CREATE){this.currentLayer.addNewEditor(re);return}for(const ue of this.#u)ue.updateParams(re,J);for(const ue of this.#o)ue.updateDefaultParams(re,J)}}enableWaiting(re=!1){if(this.#v!==re){this.#v=re;for(const J of this.#n.values())re?J.disableClick():J.enableClick(),J.div.classList.toggle("waiting",re)}}#U(){if(!this.#h){this.#h=!0;for(const re of this.#n.values())re.enable()}}#Y(){if(this.unselectAll(),this.#h){this.#h=!1;for(const re of this.#n.values())re.disable()}}getEditors(re){const J=[];for(const ue of this.#t.values())ue.pageIndex===re&&J.push(ue);return J}getEditor(re){return this.#t.get(re)}addEditor(re){this.#t.set(re.id,re)}removeEditor(re){this.#t.delete(re.id),this.unselect(re),(!re.annotationElementId||!this.#l.has(re.annotationElementId))&&this.#s?.remove(re.id)}addDeletedAnnotationElement(re){this.#l.add(re.annotationElementId),re.deleted=!0}isDeletedAnnotationElement(re){return this.#l.has(re)}removeDeletedAnnotationElement(re){this.#l.delete(re.annotationElementId),re.deleted=!1}#H(re){const J=this.#n.get(re.pageIndex);J?J.addOrRebuild(re):this.addEditor(re)}setActiveEditor(re){this.#e!==re&&(this.#e=re,re&&this.#z(re.propertiesToUpdate))}toggleSelected(re){if(this.#u.has(re)){this.#u.delete(re),re.unselect(),this.#w({hasSelectedEditor:this.hasSelection});return}this.#u.add(re),re.select(),this.#z(re.propertiesToUpdate),this.#w({hasSelectedEditor:!0})}setSelected(re){for(const J of this.#u)J!==re&&J.unselect();this.#u.clear(),this.#u.add(re),re.select(),this.#z(re.propertiesToUpdate),this.#w({hasSelectedEditor:!0})}isSelected(re){return this.#u.has(re)}unselect(re){re.unselect(),this.#u.delete(re),this.#w({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#u.size!==0}undo(){this.#i.undo(),this.#w({hasSomethingToUndo:this.#i.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#V()})}redo(){this.#i.redo(),this.#w({hasSomethingToUndo:!0,hasSomethingToRedo:this.#i.hasSomethingToRedo(),isEmpty:this.#V()})}addCommands(re){this.#i.add(re),this.#w({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#V()})}#V(){if(this.#t.size===0)return!0;if(this.#t.size===1)for(const re of this.#t.values())return re.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const re=[...this.#u],J=()=>{for(const me of re)me.remove()},ue=()=>{for(const me of re)this.#H(me)};this.addCommands({cmd:J,undo:ue,mustExec:!0})}commitOrRemove(){this.#e?.commitOrRemove()}hasSomethingToControl(){return this.#e||this.hasSelection}#W(re){this.#u.clear();for(const J of re)J.isEmpty()||(this.#u.add(J),J.select());this.#w({hasSelectedEditor:!0})}selectAll(){for(const re of this.#u)re.commit();this.#W(this.#t.values())}unselectAll(){if(this.#e){this.#e.commitOrRemove();return}if(this.hasSelection){for(const re of this.#u)re.unselect();this.#u.clear(),this.#w({hasSelectedEditor:!1})}}translateSelectedEditors(re,J,ue=!1){if(ue||this.commitOrRemove(),!this.hasSelection)return;this.#x[0]+=re,this.#x[1]+=J;const[me,fe]=this.#x,xe=[...this.#u],Te=1e3;this.#E&&clearTimeout(this.#E),this.#E=setTimeout(()=>{this.#E=null,this.#x[0]=this.#x[1]=0,this.addCommands({cmd:()=>{for(const ge of xe)this.#t.has(ge.id)&&ge.translateInPage(me,fe)},undo:()=>{for(const ge of xe)this.#t.has(ge.id)&&ge.translateInPage(-me,-fe)},mustExec:!1})},Te);for(const ge of xe)ge.translateInPage(re,J)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#c=new Map;for(const re of this.#u)this.#c.set(re,{savedX:re.x,savedY:re.y,savedPageIndex:re.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#c)return!1;this.disableUserSelect(!1);const re=this.#c;this.#c=null;let J=!1;for(const[{x:me,y:fe,pageIndex:xe},Te]of re)Te.newX=me,Te.newY=fe,Te.newPageIndex=xe,J||=me!==Te.savedX||fe!==Te.savedY||xe!==Te.savedPageIndex;if(!J)return!1;const ue=(me,fe,xe,Te)=>{if(this.#t.has(me.id)){const ge=this.#n.get(Te);ge?me._setParentAndPosition(ge,fe,xe):(me.pageIndex=Te,me.x=fe,me.y=xe)}};return this.addCommands({cmd:()=>{for(const[me,{newX:fe,newY:xe,newPageIndex:Te}]of re)ue(me,fe,xe,Te)},undo:()=>{for(const[me,{savedX:fe,savedY:xe,savedPageIndex:Te}]of re)ue(me,fe,xe,Te)},mustExec:!0}),!0}dragSelectedEditors(re,J){if(this.#c)for(const ue of this.#c.keys())ue.drag(re,J)}rebuild(re){if(re.parent===null){const J=this.getLayer(re.pageIndex);J?(J.changeParent(re),J.addOrRebuild(re)):(this.addEditor(re),this.addToAnnotationStorage(re),re.rebuild())}else re.parent.addOrRebuild(re)}isActive(re){return this.#e===re}getActive(){return this.#e}getMode(){return this.#m}get imageManager(){return(0,x.shadow)(this,"imageManager",new U)}}s.AnnotationEditorUIManager=le},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.StatTimer=s.RenderingCancelledException=s.PixelsPerInch=s.PageViewport=s.PDFDateString=s.DOMStandardFontDataFactory=s.DOMSVGFactory=s.DOMFilterFactory=s.DOMCanvasFactory=s.DOMCMapReaderFactory=void 0,s.deprecated=Se,s.getColorValues=Be,s.getCurrentTransform=Fe,s.getCurrentTransformInverse=je,s.getFilenameFromUrl=me,s.getPdfFilenameFromUrl=fe,s.getRGB=_e,s.getXfaPageViewport=Le,s.isDataScheme=J,s.isPdfFile=ue,s.isValidFetchUrl=Te,s.loadScript=Pe,s.noContextMenu=ge,s.setLayerDimensions=ze;var x=l(7),w=l(1);const j="http://www.w3.org/2000/svg";class V{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}s.PixelsPerInch=V;class W extends x.BaseFilterFactory{#e;#t;#n;#r;#s;#i;#a;#l;#c;#o;#f=0;constructor({docId:Oe,ownerDocument:ke=globalThis.document}={}){super(),this.#n=Oe,this.#r=ke}get#d(){return this.#e||=new Map}get#p(){if(!this.#t){const Oe=this.#r.createElement("div"),{style:ke}=Oe;ke.visibility="hidden",ke.contain="strict",ke.width=ke.height=0,ke.position="absolute",ke.top=ke.left=0,ke.zIndex=-1;const Ee=this.#r.createElementNS(j,"svg");Ee.setAttribute("width",0),Ee.setAttribute("height",0),this.#t=this.#r.createElementNS(j,"defs"),Oe.append(Ee),Ee.append(this.#t),this.#r.body.append(Oe)}return this.#t}addFilter(Oe){if(!Oe)return"none";let ke=this.#d.get(Oe);if(ke)return ke;let Ee,Ae,Ve,Xe;if(Oe.length===1){const He=Oe[0],Ge=new Array(256);for(let rt=0;rt<256;rt++)Ge[rt]=He[rt]/255;Xe=Ee=Ae=Ve=Ge.join(",")}else{const[He,Ge,rt]=Oe,dt=new Array(256),vt=new Array(256),yt=new Array(256);for(let ut=0;ut<256;ut++)dt[ut]=He[ut]/255,vt[ut]=Ge[ut]/255,yt[ut]=rt[ut]/255;Ee=dt.join(","),Ae=vt.join(","),Ve=yt.join(","),Xe=`${Ee}${Ae}${Ve}`}if(ke=this.#d.get(Xe),ke)return this.#d.set(Oe,ke),ke;const nt=`g_${this.#n}_transfer_map_${this.#f++}`,tt=`url(#${nt})`;this.#d.set(Oe,tt),this.#d.set(Xe,tt);const Ye=this.#v(nt);return this.#m(Ee,Ae,Ve,Ye),tt}addHCMFilter(Oe,ke){const Ee=`${Oe}-${ke}`;if(this.#i===Ee)return this.#a;if(this.#i=Ee,this.#a="none",this.#s?.remove(),!Oe||!ke)return this.#a;const Ae=this.#u(Oe);Oe=w.Util.makeHexColor(...Ae);const Ve=this.#u(ke);if(ke=w.Util.makeHexColor(...Ve),this.#p.style.color="",Oe==="#000000"&&ke==="#ffffff"||Oe===ke)return this.#a;const Xe=new Array(256);for(let Ge=0;Ge<=255;Ge++){const rt=Ge/255;Xe[Ge]=rt<=.03928?rt/12.92:((rt+.055)/1.055)**2.4}const nt=Xe.join(","),tt=`g_${this.#n}_hcm_filter`,Ye=this.#l=this.#v(tt);this.#m(nt,nt,nt,Ye),this.#h(Ye);const He=(Ge,rt)=>{const dt=Ae[Ge]/255,vt=Ve[Ge]/255,yt=new Array(rt+1);for(let ut=0;ut<=rt;ut++)yt[ut]=dt+ut/rt*(vt-dt);return yt.join(",")};return this.#m(He(0,5),He(1,5),He(2,5),Ye),this.#a=`url(#${tt})`,this.#a}addHighlightHCMFilter(Oe,ke,Ee,Ae){const Ve=`${Oe}-${ke}-${Ee}-${Ae}`;if(this.#c===Ve)return this.#o;if(this.#c=Ve,this.#o="none",this.#l?.remove(),!Oe||!ke)return this.#o;const[Xe,nt]=[Oe,ke].map(this.#u.bind(this));let tt=Math.round(.2126*Xe[0]+.7152*Xe[1]+.0722*Xe[2]),Ye=Math.round(.2126*nt[0]+.7152*nt[1]+.0722*nt[2]),[He,Ge]=[Ee,Ae].map(this.#u.bind(this));Ye<tt&&([tt,Ye,He,Ge]=[Ye,tt,Ge,He]),this.#p.style.color="";const rt=(yt,ut,St)=>{const Nt=new Array(256),Bt=(Ye-tt)/St,zt=yt/255,jt=(ut-yt)/(255*St);let $t=0;for(let Dt=0;Dt<=St;Dt++){const Mt=Math.round(tt+Dt*Bt),Ot=zt+Dt*jt;for(let Vt=$t;Vt<=Mt;Vt++)Nt[Vt]=Ot;$t=Mt+1}for(let Dt=$t;Dt<256;Dt++)Nt[Dt]=Nt[$t-1];return Nt.join(",")},dt=`g_${this.#n}_hcm_highlight_filter`,vt=this.#l=this.#v(dt);return this.#h(vt),this.#m(rt(He[0],Ge[0],5),rt(He[1],Ge[1],5),rt(He[2],Ge[2],5),vt),this.#o=`url(#${dt})`,this.#o}destroy(Oe=!1){Oe&&(this.#a||this.#o)||(this.#t&&(this.#t.parentNode.parentNode.remove(),this.#t=null),this.#e&&(this.#e.clear(),this.#e=null),this.#f=0)}#h(Oe){const ke=this.#r.createElementNS(j,"feColorMatrix");ke.setAttribute("type","matrix"),ke.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),Oe.append(ke)}#v(Oe){const ke=this.#r.createElementNS(j,"filter");return ke.setAttribute("color-interpolation-filters","sRGB"),ke.setAttribute("id",Oe),this.#p.append(ke),ke}#g(Oe,ke,Ee){const Ae=this.#r.createElementNS(j,ke);Ae.setAttribute("type","discrete"),Ae.setAttribute("tableValues",Ee),Oe.append(Ae)}#m(Oe,ke,Ee,Ae){const Ve=this.#r.createElementNS(j,"feComponentTransfer");Ae.append(Ve),this.#g(Ve,"feFuncR",Oe),this.#g(Ve,"feFuncG",ke),this.#g(Ve,"feFuncB",Ee)}#u(Oe){return this.#p.style.color=Oe,_e(getComputedStyle(this.#p).getPropertyValue("color"))}}s.DOMFilterFactory=W;class U extends x.BaseCanvasFactory{constructor({ownerDocument:Oe=globalThis.document}={}){super(),this._document=Oe}_createCanvas(Oe,ke){const Ee=this._document.createElement("canvas");return Ee.width=Oe,Ee.height=ke,Ee}}s.DOMCanvasFactory=U;async function Y(We,Oe=!1){if(Te(We,document.baseURI)){const ke=await fetch(We);if(!ke.ok)throw new Error(ke.statusText);return Oe?new Uint8Array(await ke.arrayBuffer()):(0,w.stringToBytes)(await ke.text())}return new Promise((ke,Ee)=>{const Ae=new XMLHttpRequest;Ae.open("GET",We,!0),Oe&&(Ae.responseType="arraybuffer"),Ae.onreadystatechange=()=>{if(Ae.readyState===XMLHttpRequest.DONE){if(Ae.status===200||Ae.status===0){let Ve;if(Oe&&Ae.response?Ve=new Uint8Array(Ae.response):!Oe&&Ae.responseText&&(Ve=(0,w.stringToBytes)(Ae.responseText)),Ve){ke(Ve);return}}Ee(new Error(Ae.statusText))}},Ae.send(null)})}class X extends x.BaseCMapReaderFactory{_fetchData(Oe,ke){return Y(Oe,this.isCompressed).then(Ee=>({cMapData:Ee,compressionType:ke}))}}s.DOMCMapReaderFactory=X;class Z extends x.BaseStandardFontDataFactory{_fetchData(Oe){return Y(Oe,!0)}}s.DOMStandardFontDataFactory=Z;class le extends x.BaseSVGFactory{_createSVG(Oe){return document.createElementNS(j,Oe)}}s.DOMSVGFactory=le;class oe{constructor({viewBox:Oe,scale:ke,rotation:Ee,offsetX:Ae=0,offsetY:Ve=0,dontFlip:Xe=!1}){this.viewBox=Oe,this.scale=ke,this.rotation=Ee,this.offsetX=Ae,this.offsetY=Ve;const nt=(Oe[2]+Oe[0])/2,tt=(Oe[3]+Oe[1])/2;let Ye,He,Ge,rt;switch(Ee%=360,Ee<0&&(Ee+=360),Ee){case 180:Ye=-1,He=0,Ge=0,rt=1;break;case 90:Ye=0,He=1,Ge=1,rt=0;break;case 270:Ye=0,He=-1,Ge=-1,rt=0;break;case 0:Ye=1,He=0,Ge=0,rt=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}Xe&&(Ge=-Ge,rt=-rt);let dt,vt,yt,ut;Ye===0?(dt=Math.abs(tt-Oe[1])*ke+Ae,vt=Math.abs(nt-Oe[0])*ke+Ve,yt=(Oe[3]-Oe[1])*ke,ut=(Oe[2]-Oe[0])*ke):(dt=Math.abs(nt-Oe[0])*ke+Ae,vt=Math.abs(tt-Oe[1])*ke+Ve,yt=(Oe[2]-Oe[0])*ke,ut=(Oe[3]-Oe[1])*ke),this.transform=[Ye*ke,He*ke,Ge*ke,rt*ke,dt-Ye*ke*nt-Ge*ke*tt,vt-He*ke*nt-rt*ke*tt],this.width=yt,this.height=ut}get rawDims(){const{viewBox:Oe}=this;return(0,w.shadow)(this,"rawDims",{pageWidth:Oe[2]-Oe[0],pageHeight:Oe[3]-Oe[1],pageX:Oe[0],pageY:Oe[1]})}clone({scale:Oe=this.scale,rotation:ke=this.rotation,offsetX:Ee=this.offsetX,offsetY:Ae=this.offsetY,dontFlip:Ve=!1}={}){return new oe({viewBox:this.viewBox.slice(),scale:Oe,rotation:ke,offsetX:Ee,offsetY:Ae,dontFlip:Ve})}convertToViewportPoint(Oe,ke){return w.Util.applyTransform([Oe,ke],this.transform)}convertToViewportRectangle(Oe){const ke=w.Util.applyTransform([Oe[0],Oe[1]],this.transform),Ee=w.Util.applyTransform([Oe[2],Oe[3]],this.transform);return[ke[0],ke[1],Ee[0],Ee[1]]}convertToPdfPoint(Oe,ke){return w.Util.applyInverseTransform([Oe,ke],this.transform)}}s.PageViewport=oe;class re extends w.BaseException{constructor(Oe,ke=0){super(Oe,"RenderingCancelledException"),this.extraDelay=ke}}s.RenderingCancelledException=re;function J(We){const Oe=We.length;let ke=0;for(;ke<Oe&&We[ke].trim()==="";)ke++;return We.substring(ke,ke+5).toLowerCase()==="data:"}function ue(We){return typeof We=="string"&&/\.pdf$/i.test(We)}function me(We,Oe=!1){return Oe||([We]=We.split(/[#?]/,1)),We.substring(We.lastIndexOf("/")+1)}function fe(We,Oe="document.pdf"){if(typeof We!="string")return Oe;if(J(We))return(0,w.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),Oe;const ke=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,Ee=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,Ae=ke.exec(We);let Ve=Ee.exec(Ae[1])||Ee.exec(Ae[2])||Ee.exec(Ae[3]);if(Ve&&(Ve=Ve[0],Ve.includes("%")))try{Ve=Ee.exec(decodeURIComponent(Ve))[0]}catch{}return Ve||Oe}class xe{started=Object.create(null);times=[];time(Oe){Oe in this.started&&(0,w.warn)(`Timer is already running for ${Oe}`),this.started[Oe]=Date.now()}timeEnd(Oe){Oe in this.started||(0,w.warn)(`Timer has not been started for ${Oe}`),this.times.push({name:Oe,start:this.started[Oe],end:Date.now()}),delete this.started[Oe]}toString(){const Oe=[];let ke=0;for(const{name:Ee}of this.times)ke=Math.max(Ee.length,ke);for(const{name:Ee,start:Ae,end:Ve}of this.times)Oe.push(`${Ee.padEnd(ke)} ${Ve-Ae}ms
|
|
1480
|
+
100% {transform: translateY(0)}`,"sync");function SyncLoader({loading:o=!0,color:s="#000000",speedMultiplier:l=1,cssOverride:x={},size:w=15,margin:j=2,...V}){const W={display:"inherit",...x},U=Y=>({backgroundColor:s,width:cssValue(w),height:cssValue(w),margin:cssValue(j),borderRadius:"100%",display:"inline-block",animation:`${sync} ${.6/l}s ${Y*.07}s infinite ease-in-out`,animationFillMode:"both"});return o?jsxs("span",{style:W,...V,children:[jsx("span",{style:U(1)}),jsx("span",{style:U(2)}),jsx("span",{style:U(3)})]}):null}var Components=Object.freeze({__proto__:null,BarLoader,BeatLoader,CircleLoader,ClipLoader,ClockLoader,DotLoader,FadeLoader,GridLoader,MoonLoader,PuffLoader,PulseLoader,RingLoader,ScaleLoader,SyncLoader});function KdLoading({type:o="ClipLoader",color:s,...l}){const x=useTheme$1(),w=useMemo$1(()=>Components[o],[o]),j=s||l?.sx?.color||x.palette.primary.main,V=j?.includes(".")?j.split(".").reduce((W,U)=>W?.[U],x.palette):j;return jsx(KdStyledComponent,{Component:w,...l,color:V})}var _defs$1,_g$1;function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(o){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var x in l)Object.prototype.hasOwnProperty.call(l,x)&&(o[x]=l[x])}return o},_extends$2.apply(this,arguments)}var SvgIr=function(s){return React$1.createElement("svg",_extends$2({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},s),_defs$1||(_defs$1=React$1.createElement("defs",null,React$1.createElement("clipPath",{id:"ir_svg__a"},React$1.createElement("path",{fillOpacity:.7,d:"M-85.3 0h682.7v512H-85.3z"})))),_g$1||(_g$1=React$1.createElement("g",{fillRule:"evenodd",clipPath:"url(#ir_svg__a)",transform:"translate(80)scale(.9375)"},React$1.createElement("path",{fill:"#fff",d:"M-192 0h896v512h-896z"}),React$1.createElement("path",{fill:"#da0000",d:"M-192 343.8h896V512h-896z"}),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M-21.6 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M52.4 367.7v3.4H33.8v-3.4zm-34.6-7.9H21v11.3h-3.3z"}),React$1.createElement("path",{d:"M49.6 351H53v20h-3.4zm-8.4 0h3.3v20h-3.3zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M17.8 359.9H21V371h-3.3z"}),React$1.createElement("path",{d:"M17.8 359.9H21V371h-3.3z"}),React$1.createElement("path",{d:"M17.8 359.9H21V371h-3.3zm-39.3 0h3.3V371h-3.3zm28.8 0h3.4V371H7.3zm-14.3 0h3.4V371H-7z"}),React$1.createElement("path",{d:"M9.6 367.7v3.4H-5.5v-3.4zm1-8.7v3.4H1V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M-102.2 351h49v3.3h-49zm7.3 16.8h3.4v3.3H-95zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M-28.2 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M-31 351h3.4v20H-31zm-8.4 0h3.3v20h-3.3zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M-62.8 359.9h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M-62.8 359.9h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M-62.8 359.9h3.3V371h-3.3zm-39.3 0h3.3V371h-3.3zm28.8 0h3.3V371h-3.3zm-14.3 0h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M-71 367.7v3.4h-15v-3.4zm1-8.7v3.4h-9.6V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M58.3 351h49v3.3h-49zm7.3 16.8H69v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.3-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M132.3 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M129.5 351h3.4v20h-3.4zm-8.4 0h3.4v20H121zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M97.7 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M97.7 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M97.7 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M89.6 367.7v3.4H74.4v-3.4zm1-8.7v3.4H81V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M622.7 351h49v3.3h-49zm7.3 16.8h3.4v3.3H630zm41.9 0v3.3H662v-3.4zm5.3-16.8h3.3v20h-3.4z"}),React$1.createElement("path",{d:"M696.7 367.7v3.4H678v-3.4zm-34.6-7.9h3.4v11.3H662z"}),React$1.createElement("path",{d:"M694 351h3.3v20h-3.4zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M662 359.9h3.5V371H662z"}),React$1.createElement("path",{d:"M662 359.9h3.5V371H662z"}),React$1.createElement("path",{d:"M662 359.9h3.5V371H662zm-39.2 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M654 367.7v3.4h-15.2v-3.4zm1-8.7v3.4h-9.6V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M138.7 351h49.1v3.3h-49zm7.4 16.8h3.3v3.3h-3.3zm41.8 0v3.3h-9.8v-3.4zm5.3-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M212.8 367.7v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M210 351h3.4v20H210zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-17.9V359zm39.3 0v3.4h-17.9V359z"}),React$1.createElement("path",{d:"M178.1 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M178.1 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M178.1 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.2 0h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M170 367.7v3.4h-15.1v-3.4zm1-8.7v3.4h-9.6V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M219.5 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zM274 351h3.3v20H274z"}),React$1.createElement("path",{d:"M293.5 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M290.7 351h3.4v20h-3.4zm-8.4 0h3.4v20h-3.4zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M258.9 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M258.9 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M258.9 359.9h3.4V371h-3.4zm-39.3 0h3.3V371h-3.3zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371H234z"}),React$1.createElement("path",{d:"M250.8 367.7v3.4h-15.2v-3.4zm1-8.7v3.4H242V359z"})),React$1.createElement("path",{fill:"#239f40",d:"M-192 0h896v168.2h-896z"}),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M300.7 351h49v3.3h-49zm7.3 16.8h3.4v3.3H308zm41.9 0v3.3H340v-3.4zm5.3-16.8h3.3v20h-3.3z"}),React$1.createElement("path",{d:"M374.7 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3H340z"}),React$1.createElement("path",{d:"M372 351h3.3v20H372zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M340 359.9h3.5V371H340z"}),React$1.createElement("path",{d:"M340 359.9h3.5V371H340z"}),React$1.createElement("path",{d:"M340 359.9h3.5V371H340zm-39.2 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M332 367.7v3.4h-15.2v-3.4zm1-8.7v3.4h-9.6V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M381.4 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm42 0v3.3h-9.9v-3.4zm5.2-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M455.4 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M452.7 351h3.3v20h-3.3zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-17.9V359zm39.3 0v3.4h-17.9V359z"}),React$1.createElement("path",{d:"M420.8 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M420.8 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M420.8 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.3z"}),React$1.createElement("path",{d:"M412.7 367.7v3.4h-15.1v-3.4zm1-8.7v3.4H404V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M462.2 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M536.2 367.7v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M533.4 351h3.4v20h-3.4zm-8.4 0h3.3v20H525zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M501.6 359.9h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M501.6 359.9h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M501.6 359.9h3.3V371h-3.3zm-39.4 0h3.4V371h-3.4zm28.9 0h3.3V371h-3.3zm-14.3 0h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M493.4 367.7v3.4h-15.1v-3.4zm1-8.7v3.4h-9.6V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M543.4 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm41.9 0v3.3h-9.8v-3.4zm5.2-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M617.4 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M614.6 351h3.4v20h-3.4zm-8.4 0h3.3v20h-3.3zm-44.8 8v3.4h-18V359zm39.3 0v3.4h-18V359z"}),React$1.createElement("path",{d:"M582.8 359.9h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M582.8 359.9h3.3V371h-3.3z"}),React$1.createElement("path",{d:"M582.8 359.9h3.3V371h-3.3zm-39.3 0h3.3V371h-3.3zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371H558z"}),React$1.createElement("path",{d:"M574.6 367.7v3.4h-15.1v-3.4zm1-8.7v3.4H566V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M-183.8 351h49v3.3h-49zm7.3 16.8h3.4v3.3h-3.4zm42 0v3.3h-9.9v-3.4zm5.2-16.8h3.4v20h-3.4z"}),React$1.createElement("path",{d:"M-109.8 367.7v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M-112.5 351h3.3v20h-3.3zm-8.5 0h3.4v20h-3.4zm-44.8 8v3.4h-17.9V359zm39.3 0v3.4h-17.9V359z"}),React$1.createElement("path",{d:"M-144.4 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M-144.4 359.9h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M-144.4 359.9h3.4V371h-3.4zm-39.3 0h3.4V371h-3.4zm28.8 0h3.4V371h-3.4zm-14.3 0h3.4V371h-3.4z"}),React$1.createElement("path",{d:"M-152.5 367.7v3.4h-15.2v-3.4zm1-8.7v3.4h-9.6V359z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M-21.6 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M52.4 160.2v3.4H33.8v-3.4zm-34.6-7.9H21v11.3h-3.3z"}),React$1.createElement("path",{d:"M49.6 143.4H53v20.2h-3.4zm-8.4 0h3.3v20.2h-3.3zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M17.8 152.3H21v11.3h-3.3z"}),React$1.createElement("path",{d:"M17.8 152.3H21v11.3h-3.3z"}),React$1.createElement("path",{d:"M17.8 152.3H21v11.3h-3.3zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.4v11.3H7.3zm-14.3 0h3.4v11.3H-7z"}),React$1.createElement("path",{d:"M9.6 160.2v3.4H-5.5v-3.4zm1-8.7v3.3H1v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M-102.2 143.4h49v3.4h-49zm7.3 17h3.4v3.2H-95zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M-28.2 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M-31 143.4h3.4v20.2H-31zm-8.4 0h3.3v20.2h-3.3zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M-62.8 152.3h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M-62.8 152.3h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M-62.8 152.3h3.3v11.3h-3.3zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.3v11.3h-3.3zm-14.3 0h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M-71 160.2v3.4h-15v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M58.3 143.4h49v3.4h-49zm7.3 17H69v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.3-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M132.3 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M129.5 143.4h3.4v20.2h-3.4zm-8.4 0h3.4v20.2H121zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M97.7 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M97.7 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M97.7 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M89.6 160.2v3.4H74.4v-3.4zm1-8.7v3.3H81v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M622.7 143.4h49v3.4h-49zm7.3 17h3.4v3.2H630zm41.9-.2v3.4H662v-3.4zm5.3-16.8h3.3v20.2h-3.4z"}),React$1.createElement("path",{d:"M696.7 160.2v3.4H678v-3.4zm-34.6-7.9h3.4v11.3H662z"}),React$1.createElement("path",{d:"M694 143.4h3.3v20.2h-3.4zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M662 152.3h3.5v11.3H662z"}),React$1.createElement("path",{d:"M662 152.3h3.5v11.3H662z"}),React$1.createElement("path",{d:"M662 152.3h3.5v11.3H662zm-39.2 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M654 160.2v3.4h-15.2v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M138.7 143.4h49.1v3.4h-49zm7.4 17h3.3v3.2h-3.3zm41.8-.2v3.4h-9.8v-3.4zm5.3-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M212.8 160.2v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M210 143.4h3.4v20.2H210zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-17.9v-3.3zm39.3 0v3.4h-17.9v-3.3z"}),React$1.createElement("path",{d:"M178.1 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M178.1 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M178.1 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.2 0h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M170 160.2v3.4h-15.1v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M219.5 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.3-16.8h3.3v20.2H274z"}),React$1.createElement("path",{d:"M293.5 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M290.7 143.4h3.4v20.2h-3.4zm-8.4 0h3.4v20.2h-3.4zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M258.9 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M258.9 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M258.9 152.3h3.4v11.3h-3.4zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3H234z"}),React$1.createElement("path",{d:"M250.8 160.2v3.4h-15.2v-3.4zm1-8.7v3.3H242v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M300.7 143.4h49v3.4h-49zm7.3 17h3.4v3.2H308zm41.9-.2v3.4H340v-3.4zm5.3-16.8h3.3v20.2h-3.3z"}),React$1.createElement("path",{d:"M374.7 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3H340z"}),React$1.createElement("path",{d:"M372 143.4h3.3v20.2H372zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M340 152.3h3.5v11.3H340z"}),React$1.createElement("path",{d:"M340 152.3h3.5v11.3H340z"}),React$1.createElement("path",{d:"M340 152.3h3.5v11.3H340zm-39.2 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M332 160.2v3.4h-15.2v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M381.4 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm42-.2v3.4h-9.9v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M455.4 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M452.7 143.4h3.3v20.2h-3.3zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-17.9v-3.3zm39.3 0v3.4h-17.9v-3.3z"}),React$1.createElement("path",{d:"M420.8 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M420.8 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M420.8 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.3z"}),React$1.createElement("path",{d:"M412.7 160.2v3.4h-15.1v-3.4zm1-8.7v3.3H404v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M462.2 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M536.2 160.2v3.4h-18.6v-3.4zm-34.7-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M533.4 143.4h3.4v20.2h-3.4zm-8.4 0h3.3v20.2H525zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M501.6 152.3h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M501.6 152.3h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M501.6 152.3h3.3v11.3h-3.3zm-39.4 0h3.4v11.3h-3.4zm28.9 0h3.3v11.3h-3.3zm-14.3 0h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M493.4 160.2v3.4h-15.1v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M543.4 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm41.9-.2v3.4h-9.8v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M617.4 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M614.6 143.4h3.4v20.2h-3.4zm-8.4 0h3.3v20.2h-3.3zm-44.8 8v3.4h-18v-3.3zm39.3 0v3.4h-18v-3.3z"}),React$1.createElement("path",{d:"M582.8 152.3h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M582.8 152.3h3.3v11.3h-3.3z"}),React$1.createElement("path",{d:"M582.8 152.3h3.3v11.3h-3.3zm-39.3 0h3.3v11.3h-3.3zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3H558z"}),React$1.createElement("path",{d:"M574.6 160.2v3.4h-15.1v-3.4zm1-8.7v3.3H566v-3.3z"})),React$1.createElement("g",{fill:"#fff",strokeWidth:"1pt"},React$1.createElement("path",{d:"M-183.8 143.4h49v3.4h-49zm7.3 17h3.4v3.2h-3.4zm42-.2v3.4h-9.9v-3.4zm5.2-16.8h3.4v20.2h-3.4z"}),React$1.createElement("path",{d:"M-109.8 160.2v3.4h-18.6v-3.4zm-34.6-7.9h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M-112.5 143.4h3.3v20.2h-3.3zm-8.5 0h3.4v20.2h-3.4zm-44.8 8v3.4h-17.9v-3.3zm39.3 0v3.4h-17.9v-3.3z"}),React$1.createElement("path",{d:"M-144.4 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M-144.4 152.3h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M-144.4 152.3h3.4v11.3h-3.4zm-39.3 0h3.4v11.3h-3.4zm28.8 0h3.4v11.3h-3.4zm-14.3 0h3.4v11.3h-3.4z"}),React$1.createElement("path",{d:"M-152.5 160.2v3.4h-15.2v-3.4zm1-8.7v3.3h-9.6v-3.3z"})),React$1.createElement("path",{fill:"#d90000",d:"M-68.8 339.5h6V350h-6zm160.5 0h6V350h-6zm-283.7 0h6V350h-6zm81.5 0h6V350h-6zm80.9 0h6V350h-6zm40 0h6V350h-6zm40.9 0h6V350h-6zm80.4 0h6V350h-6zm203 0h6.1V350h-6zm-162.1 0h6V350h-6zm40 0h6V350h-6zm40.5 0h6V350h-6zm40.4 0h6V350h-6zm323.2 0h6V350h-6zm-242.7 0h6V350h-6zm40.8 0h6V350h-6zm41.3 0h6V350h-6zm38.8 0h6V350h-6zm41.3 0h6V350h-6zm40.4 0h6V350h-6zm119.7 0h6V350h-6zm-38.8 0h6V350h-6zm-808.9 0h6V350h-6z"}),React$1.createElement("path",{fill:"#239e3f",d:"M-68.8 162.6h6v10.5h-6zm160.5 0h6v10.5h-6zm-283.7 0h6v10.5h-6zm81.5 0h6v10.5h-6zm80.9 0h6v10.5h-6zm40 0h6v10.5h-6zm40.9 0h6v10.5h-6zm80.4 0h6v10.5h-6zm203 0h6.1v10.5h-6zm-162.1 0h6v10.5h-6zm40 0h6v10.5h-6zm40.5 0h6v10.5h-6zm40.4 0h6v10.5h-6zm323.2 0h6v10.5h-6zm-242.7 0h6v10.5h-6zm40.8 0h6v10.5h-6zm41.3 0h6v10.5h-6zm38.8 0h6v10.5h-6zm41.3 0h6v10.5h-6zm40.4 0h6v10.5h-6zm119.7 0h6v10.5h-6zm-38.8 0h6v10.5h-6zm-808.9 0h6v10.5h-6z"}),React$1.createElement("g",{fill:"#da0000"},React$1.createElement("path",{d:"M279.8 197.5c8.4 10.4 34.5 67.6-15.7 105.2-23.7 17.8-9 18.6-8.3 21.6 38-20.1 50.3-47.5 50-72-.2-24.4-13.2-46-26-54.8"}),React$1.createElement("path",{d:"M284.8 194.8a73.3 73.3 0 0 1 15.7 112.4c27.2-6 62-86.4-15.7-112.4m-57.6 0a73.3 73.3 0 0 0-15.6 112.4c-27.3-6-62-86.4 15.6-112.4"}),React$1.createElement("path",{d:"M232.2 197.5c-8.4 10.4-34.5 67.6 15.7 105.2 23.6 17.8 9 18.6 8.3 21.6-38-20.1-50.3-47.5-50-72 .2-24.4 13.2-46 26-54.8"}),React$1.createElement("path",{d:"M304.2 319.1c-14.9.2-33.6-2-47.5-9.3 2.3 4.5 4.2 7.3 6.5 11.7 13.2 1.3 31.5 2.8 41-2.4m-95 0c14.9.2 33.6-2 47.5-9.3-2.3 4.5-4.2 7.3-6.5 11.7-13.2 1.3-31.5 2.8-41-2.4m27.3-138.7c3 8 10.9 9.2 19.3 4.5 6.2 3.6 15.7 3.9 19-4.1 2.5 19.8-18.3 15-19 11.2-7.8 7.5-22.2 3.2-19.3-11.6"}),React$1.createElement("path",{d:"m256.4 331.6 7.8-9 1.1-120.1-9.3-8.2-9.3 7.8 1.9 121z"})))))},_path,_path2,_path3,_marker,_path4;function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(o){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var x in l)Object.prototype.hasOwnProperty.call(l,x)&&(o[x]=l[x])}return o},_extends$1.apply(this,arguments)}var SvgUs=function(s){return React$1.createElement("svg",_extends$1({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},s),_path||(_path=React$1.createElement("path",{fill:"#bd3d44",d:"M0 0h640v480H0"})),_path2||(_path2=React$1.createElement("path",{stroke:"#fff",strokeWidth:37,d:"M0 55.3h640M0 129h640M0 203h640M0 277h640M0 351h640M0 425h640"})),_path3||(_path3=React$1.createElement("path",{fill:"#192f5d",d:"M0 0h364.8v258.5H0"})),_marker||(_marker=React$1.createElement("marker",{id:"us_svg__a",markerHeight:30,markerWidth:30},React$1.createElement("path",{fill:"#fff",d:"m14 0 9 27L0 10h28L5 27z"}))),_path4||(_path4=React$1.createElement("path",{fill:"none",markerMid:"url(#us_svg__a)",d:"m0 0 16 11h61 61 61 61 60L47 37h61 61 60 61L16 63h61 61 61 61 60L47 89h61 61 60 61L16 115h61 61 61 61 60L47 141h61 61 60 61L16 166h61 61 61 61 60L47 192h61 61 60 61L16 218h61 61 61 61 60z"})))},_defs,_g;function _extends(){return _extends=Object.assign?Object.assign.bind():function(o){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var x in l)Object.prototype.hasOwnProperty.call(l,x)&&(o[x]=l[x])}return o},_extends.apply(this,arguments)}var SvgSa=function(s){return React$1.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 480"},s),_defs||(_defs=React$1.createElement("defs",null,React$1.createElement("clipPath",{id:"sa_svg__a"},React$1.createElement("path",{fillOpacity:.7,d:"M-85.3 0h682.6v512H-85.3z"})))),_g||(_g=React$1.createElement("g",{fillRule:"evenodd",clipPath:"url(#sa_svg__a)",transform:"translate(80)scale(.9375)"},React$1.createElement("path",{fill:"#165d31",d:"M-128 0h768v512h-768z"}),React$1.createElement("path",{fill:"#fff",d:"M65.5 145.1c-.8 12-2 33 8.3 35.2 12.3 1.2 5.5-20.8 10-24.8.8-2 2.3-2 2.4.5v18.7c0 6 4 7.8 7 9 3.2-.2 5.4 0 6.6 3l1.6 32.3s7.4 2.2 7.8-18.1c.3-12-2.4-21.9-.8-24.2 0-2.3 3-2.4 5-1.3 3.2 2.2 4.6 5 9.6 4 7.6-2.2 12.2-5.9 12.3-11.7a47 47 0 0 0-3.5-16.6c.4-1-1.4-3.7-1-4.7 1.3 2.2 3.4 2 3.8 0-1.3-4.2-3.3-8.3-6.5-10-2.7-2.4-6.7-2-8 3-.8 5.7 2 12.4 6.1 18 .9 2.1 2.1 5.7 1.6 8.9-2.2 1.3-4.4.7-6.3-1.2 0 0-6-4.5-6-5.6 1.6-10.2.3-11.4-.6-14.3-.6-3.9-2.5-5.2-4-7.8-1.5-1.6-3.5-1.6-4.5 0-2.7 4.6-1.4 14.5.5 19 1.4 4.1 3.5 6.7 2.5 6.7-.8 2.3-2.5 1.7-3.8-1a66.6 66.6 0 0 1-2.1-17.4c-.5-4.6-1.1-14.4-4.2-17-1.8-2.4-4.5-1.2-5.5 1a82.4 82.4 0 0 0 .3 13.4c2 7.4 2.7 14 3.7 21.5.3 10.1-5.8 4.4-5.5-.7a45 45 0 0 0-.3-19.4c-1-2.6-2.1-3.2-4.6-2.8-1.9 0-6.8 5.3-8.2 14.3 0 0-1.2 4.6-1.7 8.7-.7 4.6-3.7 8-5.9-.6-1.8-6.3-3-21.6-6-18z"}),React$1.createElement("path",{fill:"#fff",d:"m99 194.2-32 15.4c.3-7.3 15.1-20.4 25.3-20.5 6.5.1 4.9 2.5 6.6 5.1z"}),React$1.createElement("path",{fill:"#fff",d:"M93.3 204.2c-16.8 43.5 39.5 49.6 45.8 1.8.6-2 3-3.9 3.4-.7-1.3 43.3-43.6 46.2-50.8 32.6a41.9 41.9 0 0 1-2.5-14.6c-1-8.5-5.5-5.2-6.2 3.2-.7 4.7-.5 6-.5 10.5 2.2 34.2 56.7 19.5 65.6-8.7 4.7-15.6-.8-27.1 1.7-27.1 5.4 5.8 13 .8 14.7-1.2.7-1 2.5-1.7 3.7-.4 4.2 3 11.6 1.6 13.2-3.7.9-5.3 1.6-10.7 1.8-16.2-3.5 1-6 1.7-6.3 3.2l-.7 4.6c-.3 1.5-3.2 1.5-3.4-.4-1.3-6-6.7-6.7-10 2.5-2.1 1.8-6.1 2.2-6.5-.5.5-6.2-2-7-7-4.1l-4.8-36.2c2 0 4 1.5 5.9-.9-2-6.5-6.5-19.7-9-20.7-1.1-1.4-2.1-.5-3.7-.1-2.6.8-5 3-4.2 7.4 3 18.8 5 33.1 8.1 52 .5 2.1-1.3 5-3.7 4.7-4-2.7-5-8.2-12-8-5 0-10.6 5.5-11.3 10.7-.9 4.2-1.2 8.7 0 12.3 3.5 4.2 7.7 3.8 11.4 2.9 3-1.3 5.5-4.3 6.6-3.6.7.9.1 10.9-14.3 18.5-8.7 4-15.7 4.8-19.4-2.3-2.3-4.5.2-21.4-5.6-17.5"}),React$1.createElement("path",{fill:"#fff",d:"M165 160c3.3-1.2 19.3-19.6 19.3-19.6l-2.4-2c-.9-.7-.8-1.5 0-2.2 4-2.4 2.7-7.4.7-9.8a9.7 9.7 0 0 0-8.7.1c-2.8 2.7-3.4 7-1.2 9.6 2.1 1 4.2 3.2 2.8 4.4-6.6 7-24.5 19.1-22.4 19.5.4.6 11.5.6 11.8 0zm-97 65c-6 9.6-6.5 23.9-3.2 28.2 1.8 2 4.7 2.9 6.8 2.2 3.8-1.6 5.5-9.3 4.6-12-1.3-2-2.3-2.3-3.6-.7-2.6 5.4-3.7 1.7-4-1.3a70 70 0 0 1 .8-15.2c.7-4.2 0-3-1.4-1.2m257.1-15.3c-5.8-12.6-13.9-25-16.4-29.7a558 558 0 0 0-24.8-36c-6.2-7.4 10.2 3.1-2-11.7l-8.9-7.5c-2-1.4-6.8-4-7.6.2-.4 3.8-.2 5.8.4 8.9.5 2 3.5 5.5 5 7.5a565 565 0 0 1 53.8 86.5c2.6-1.3 2-16.1.5-18.2"}),React$1.createElement("path",{fill:"#fff",d:"M299.6 251.5c-1.2 1.3 2.8 6.8 8 6.8 8.6-1 16.2-5.8 23.2-18.6a33 33 0 0 0 5.3-14.2 317 317 0 0 0-5.8-72.4c-.3-2 0-4.4.2-5 .6-.7 2.5 0 3.5-1.7 1.5-1.5-4-14-7-18.7-1-2.2-1.5-3.6-3.3.2a27 27 0 0 0-3 13.6c4.1 28.5 5.4 53.4 8 81.9.3 2.8-.1 6.8-2 8.4a80.2 80.2 0 0 1-27.1 19.7m116.5-.1c-6.2 3.6-6.2 7.7-1.2 7.8 8.6-1 18.8-1.7 25.8-12.3a41 41 0 0 0 4.2-16 303 303 0 0 0-4.7-71.4c-.2-2-1.1-6.7-.8-7.3.6-1.4 3.4.1 4.4-1.5 1.4-1.5-7.3-12.7-10.4-17.5-1-2.2-1.4-3.6-3.3.2a22.3 22.3 0 0 0-1.8 13.6c4.6 31 8 54.2 8.7 81.6-.4 2.6-.5 4-1.7 7.3-2.7 3.4-5.7 7.8-8.5 9.9-2.8 2-8.8 4-10.7 5.6"}),React$1.createElement("path",{fill:"#fff",d:"M420.7 223.7c0-7.3.1-13.5-.1-19a34 34 0 0 0-3-13.5c-1.8-4.1-.7-7.4-1.6-11.8-.8-4.4-.6-11-1.8-16.1-.4-2-1.4-8.5-1.1-9.2.5-1.4 2.4 0 3.4-1.6 1.4-1.5-5-18-8.2-22.7-1.1-2.1-3.3-1.4-5.8 2-2.5 2.3-1.6 7.4-.6 12.3 6.1 32.3 10.8 61.6 9.8 92.3-.4 2.6 9-7.8 9-12.7m-45.7-40c-3.9-.2-12-7.7-14.4-12a8 8 0 0 1 .4-6.5c1.5-1 3.7-2 5.4-1 0 0 1.7 2.4 1.4 2.7 2 1 3 .5 3.2-.4.1-1.5-.6-2.4-.6-4 .9-4.6 6-5.3 8-2.4 1.4 1.8 2 5.5 2.1 8 0 1.3-2-.2-3.3 0-1.1.4-1.4 1.8-1.5 3-.2 3.3-.6 8.6-.7 12.5zm-71.8 48c1-9.8-.4-27.3-.5-33.1A477 477 0 0 0 299 154c-1.2-8.4 3.4.9 2.8-4-1.5-8.3-6.1-14-11.6-21.5-1.7-2.5-1.7-3-4.4.6-3 6.7-.4 11.4.4 16.7 3.9 17.2 6.2 33 7.3 48.7a393 393 0 0 1 .4 49c3 .1 7.6-4.7 9.3-11.8"}),React$1.createElement("path",{fill:"#fff",d:"M434 216c-6.9-11.6-17.2-24-20-28.7a658 658 0 0 0-29.2-37.8c-8.5-9 4-1.5-1.6-8.5-4.7-5.1-6-6.8-10.1-9.9-2-1.3-3.2-3.8-4 .5a83 83 0 0 0-.2 11.2c0 1.7 1.8 5 3.4 7 20.7 25.5 43.4 51.5 61.6 84.2 2.6-1.3 1.7-16 0-18z"}),React$1.createElement("path",{fill:"#165d31",d:"M122.6 194.7c-.5.9-1.6 2-1.2 3.1.7 1 1.4 1.3 2.6 1.3 1.1 0 2.7.3 3-.3.6-.7 1-2 .6-3.3-1.2-3-4.4-1.8-5-.8"}),React$1.createElement("path",{fill:"#fff",d:"M354.2 362.5c9.2.4 15.2.5 23.3 1.4l9.6-1c10.6-1 11 15.1 11 15.1 0 9.5-3.7 10-8.4 11-2.7.4-4-1.6-5.5-3.6a14 14 0 0 1-7 .4c-3.9-.2-7.7-.2-11.5-.5-4-.3-6.2.5-10.3.1-.8 1.3-2 3.1-4.4 2.6-2-.3-4.5-6-3.8-10.5 1.5-3.2 1-2.1 1-3.5-37.6-1-75.5-2.7-112.3-2.2-28.8.1-57.2 1.3-85.7 2.5-15.2-.2-26.8-2.6-34.8-14.3.8 0 38.8 2.1 49.9 1.4 20.5-.2 39.3-1.9 60.2-2.5 41.2.7 82.1.7 123.3 3.6-4-2.7-4-9 2-10.6.5-.4.8 3.1 1.7 3 4.9-.3 2.7 6.3 1.7 7.6M188.6 135.3c-6.2 17.8 3.6 37.4 10.4 35.5 5 2 8-7.4 10-17.6 1.5-2.9 2.5-3.2 3.2-1.7-.2 13.6 1 16.7 4.5 20.8 7.8 6 14.3.8 14.8.3l6-6.1c1.4-1.5 3.2-1.5 5.1-.3 1.9 1.7 1.6 4.6 5.6 6.6 3.4 1.4 10.5.4 12.2-2.5 2.2-3.9 2.8-5.2 3.8-6.6 1.6-2.1 4.3-1.2 4.3-.5-.3 1.2-1.9 2.3-.8 4.5 2 1.4 2.4.5 3.5.2 4-2 7-10.6 7-10.6.1-3.2-1.7-3-2.9-2.2l-3.1 2.1c-2 .3-5.7 1.6-7.6-1.3-1.9-3.4-1.9-8.3-3.3-11.8 0-.2-2.6-5.5-.2-5.8 1.2.2 3.7.9 4.1-1.2 1.2-2.1-2.6-8-5.3-11-2.3-2.5-5.5-2.8-8.6-.2-2.2 2-1.9 4.2-2.3 6.3a9.8 9.8 0 0 0 2 8.7c2.2 4.2 6.1 9.7 4.8 17.5 0 0-2.3 3.6-6.3 3.1-1.7-.3-4.4-1-5.8-11.8-1.1-8 .2-19.4-3.2-24.7-1.3-3.3-2.2-6.4-5.2-.9-.8 2.2-4.3 5.5-1.8 12.2a36 36 0 0 1 2 19c-1.5 2.2-1.8 2.9-3.7 5-2.6 3-5.5 2.2-7.7 1.1-2-1.3-3.6-2-4.6-6.5.2-7 .6-18.5-.7-20.9-1.9-3.8-5-2.4-6.3-1.2a47.7 47.7 0 0 0-11.5 23.5c-1.8 5.8-3.7 4.1-5 1.8-3.2-3-3.5-26.7-7.4-22.8"}),React$1.createElement("path",{fill:"#fff",d:"M207.4 174.1c2.9-2 1.6-3.4 5.8.8a72 72 0 0 1 9.2 31.3c-.2 2.6 1.6 4.2 2.5 3.6.4-6 15.1-14.4 28.6-15.6 2-.5 1-4.4 1.3-6.4-.8-7.5 4.2-14.3 11.2-14.8 9.6 1.4 12.8 6.5 13 14.2-1.1 15-16.7 17.5-25.4 18.7-1.3.5-1.9 1.1 0 1.8l36.6.2 1.9 1c.2 1-.6.2-2 2.6a29.5 29.5 0 0 0-3.7 11.5c-10.9 3.6-22.2 5-33.6 6.5-4 2-6 4.7-5.2 7.7 1.4 3.3 10.2 6.7 10.2 6.8 1.7 1 3.6 3.5-.5 8.6-17.8-.8-31.7-8.4-36.5-19.1-1.4-1.1-3 0-4 1.4-7 9-13.8 17-25.7 21.4-7 1.8-14.3-1.1-17.7-5.7-2.3-2.7-2.2-5.6-3-6.2-3.9 1.7-36.9 15.7-32.7 9.1 8-8.5 22-14.9 34.2-23.3.9-2.9 2.5-12.5 7.3-15.6.3 0-.7 5.6-.6 8 0 2-.2 2.7.2 2.2.9-.5 15.7-12.2 17-15.8 1.4-2 .3-7.2.3-7.4-2.8-7.2-6.7-7.8-8.1-11.4-1.3-4.7-.7-10.1 2-11.7 2.4-2.1 5.2-1.9 7.9.5 3 2.7 5.6 8 6.4 11.9-.5 1.5-4-1-5-.3a16 16 0 0 1 3.7 7.8c2 8.2 1.4 11.4-.6 16.7-6.6 13.9-15 18-22.4 23.2-.2 0-.3 3.5 2.4 5.4 1 1 4.9 1.5 9.4 0a54.5 54.5 0 0 0 22.3-23.3 51 51 0 0 0-2.4-22.2c-2.9-6.7-6.3-16.2-6.3-16.4-.1-4.2.2-5.6 2-7.7m-95.8-38.6c4.2 2 12.2 1.1 11.8-5.7l-.2-3.1c-.8-2-3.2-1.5-3.7.5-.2.7.3 1.8-.3 2.1-.4.4-1.7.2-1.7-1.7 0-.6-.4-1.2-.7-1.6-.2-.2-.4-.2-.9-.2-.6 0-.6.1-.9.6-.1.5-.3 1-.3 1.6 0 .7-.4.9-.8 1-.6 0-.5 0-1-.2-.2-.3-.5-.4-.5-1l-.3-1.6c-.2-.3-.6-.5-1-.6-2.3 0-2.5 2.7-2.3 3.7-.2.2-.3 4.9 2.8 6.2"}),React$1.createElement("path",{fill:"#fff",d:"M235.1 187.7c4.2 2 14.3.9 11.8-5.6l-.2-3.2c-.9-2-3.2-1.5-3.7.6-.2.6.3 1.7-.4 2-.3.4-1.7.2-1.6-1.6 0-.6-.4-1.3-.7-1.7-.3-.1-.4-.2-1-.2-.5 0-.5.2-.8.7-.2.5-.3 1-.3 1.6-.1.6-.4.8-.9 1-.5 0-.4 0-.8-.3-.3-.3-.6-.4-.6-.9l-.3-1.6c-.2-.3-.6-.5-1-.6-2.3 0-2.5 2.6-2.4 3.6-.1.2-.2 5 3 6.2zm72-21.6c4.2 2 12.1 1.1 11.8-5.6l-.2-3.2c-.9-2-3.2-1.5-3.7.5-.2.7.3 1.8-.4 2.2-.3.3-1.7.1-1.6-1.8 0-.6-.4-1.2-.7-1.6-.3-.2-.4-.2-1-.2-.5 0-.5.2-.8.7l-.3 1.5c-.1.7-.4 1-.9 1s-.4 0-.8-.2c-.3-.3-.6-.4-.6-.9s-.1-1.3-.3-1.7c-.2-.3-.6-.4-1-.5-2.3 0-2.5 2.6-2.4 3.6-.1.2-.2 4.9 3 6.2zm37.3 54.3c-7.3 8.3-4.1 22-2.4 25 2.4 4.8 4.3 7.9 9 10.3 4.3 3.1 7.7 1.2 9.5-1 4.3-4.5 4.4-16 6.4-18.2 1.4-4.2 5-3.5 6.7-1.6a16.5 16.5 0 0 0 6.2 5.3c4 3.5 8.8 4.2 13.6 1 3.2-1.9 5.3-4.2 7.2-8.9 2-5.6 1-31.6.5-47l-4.2-21.5c0-.2-.5-10.2-1-12.5 0-1-.3-1.3.7-1.2 1.1 1 1.2 1 2 1.3 1 .2 2-1.7 1.3-3.3l-10-18.6c-.8-.8-1.9-1.6-3.2.2a7.3 7.3 0 0 0-2.4 5.5c.3 4.4 1 8.9 1.3 13.3l4 22.6c1.3 16 1.6 29.2 2.9 45.3-.2 6.8-2.3 12.7-4.3 13.6 0 0-3 1.7-5-.2-1.5-.6-7.4-9.9-7.4-9.9-3-2.7-5-2-7.1 0-6 5.8-8.6 16.4-12.7 23.8-1 1.7-4 3-7.2-.1-8.2-11.3-3.4-27.3-4.4-23.2M309 126.7c3.8 1.5 6.4 9.2 5.6 13-.8 4.5-2.8 9.5-4.2 8.9-1.6-.6 1-4.6-.5-8.8-.8-2.8-6-7.8-5.4-9.2-1-3.1 2.2-4.5 4.5-4z"}),React$1.createElement("path",{fill:"#fff",d:"M356.6 225c.7-9.2-.6-14.8-.8-20.2s-6.1-46.6-7.3-50.6c-1.5-7.8 5.7-1 4.9-5.6-2.5-5.6-8.6-13.9-10.5-18.8-1.2-2-.7-4-3.3-.5a42.3 42.3 0 0 0-2.3 19.2c6.2 32.3 12.5 59.1 11.5 89.8 3 0 6.3-6.7 7.8-13.3m64.4-85.3c3.5 1.7 5.5 11.3 5.1 14-.7 5-2.5 10.4-3.8 9.7-1.5-.6.3-7.4-.4-9.5-.8-3-5.5-8.4-5-10-1-3.4 2-4.8 4.1-4.2m-255.7 67.9c3.3 1.3 5.3 8.3 5 10.3-.8 3.7-2.5 7.7-3.8 7.1-1.3-.4.3-5.4-.3-7-.3-3.7-4.9-5.7-4.8-7.3-.8-3 2-3.5 4-3.1z"}),React$1.createElement("path",{fill:"#165d31",d:"M244.9 218.2c4.2.2 6.3 3.6 2.4 5-4 1.3-7.7 2.4-7.8 8 1.5 8-2 5.2-4 4.2-2.4-1.8-9.2-6-10.2-15-.1-2.1 1.6-4 4.3-4 4 1.1 10 1.2 15.3 1.8"}),React$1.createElement("path",{fill:"#fff",d:"M77.4 124.4c4.8 1.4 5.1 8.6 4.8 10.7-.7 3.8-2.4 7.9-3.6 7.4-1.4-.5 0-5.7-.7-7.3-.7-2.2-4.8-6.4-4.4-7.6-.9-2.5 2-3.7 3.9-3.2m95.9 33.6c-3.8 2-5.2 8-2.9 11.6 2.2 3 5.6 1.9 6 1.9 3.7.4 5.9-6.9 5.9-6.9s.1-2-4.2 1.9c-1.9.3-2-.4-2.5-1.4a9 9 0 0 1 .5-5.7c.7-1.8-.7-2.6-2.8-1.4m28-36.4c-2 1.3-5.7 5.2-5.8 9.6-.1 2.5-.6 2.5 1 4 1.3 1.8 2.4 1.7 4.8.4a5.1 5.1 0 0 0 2.3-3.4c.6-2.8-3 1.4-3.4-1.8-.8-3 1.5-4.2 3.7-7 0-2 0-3.3-2.7-1.8zm22.4 4a59.5 59.5 0 0 0-1.6 11.1c-.6 2.8 3 4 4.5.4 2.4-6.5 2.4-9.3 2.6-12-.7-4.3-3.6-4.2-5.5.5m142 72.3c.4-.5 20-14.4 20-14.4 2-.7 1.5 7.2.6 7.1a77.8 77.8 0 0 1-20.7 14.3c-1 .7-1.9-5.3 0-7zm17.7-.2c3.5 1.7 4.9 11.8 4.5 14.5 0 5.4-3.3 9.6-4.7 9-1.4-.7.2-6.7-.5-8.8-.8-3-3.7-8.5-3.2-10.1-1-3.4 1.8-5.2 4-4.6zm-116 43.4a26 26 0 0 1 5.6-4.9c2-1 3.8.8 3.7.7.3 2-1.2 3.7-.7 6.3.4 1 .7 2.2 2.6 1.8 3.1-2.5 6-2.7 9-2.8 2.5.1 2.6 4.2 1 4.2-5.7 1.2-8.2 2.8-12.3 4.3-2 1.2-3.6-.3-3.6-.4s-1.1-1.1-.4-3.7c.2-2-.6-3.2-2.4-3-1.2.8-2.4 1.2-3-.3-.3-1-.4-1.6.5-2.2m136.6 5.4c.8 1 1.4 2-.1 3.8l-3.7 3.2c-.6 1-1 2.8 1 3.3 3.6 1 12-4.5 12-4.6 1.4-1 1-3 .8-3-.8-.9-2.6-.3-3.8-.5-.6 0-2.5-.2-1.6-2a11.4 11.4 0 0 0 1.6-2.9c.5-1.2 0-2-2-2.7-2.1-.4-3-.2-5.3 0-1.2.2-1.6.8-1.9 2.3.1 2.3 1.5 2.2 3 3z"}),React$1.createElement("path",{fill:"#165d31",d:"M268.1 189.7c-.5 1-2.3 1-4 0s-2.7-2.6-2.1-3.5 2.3-.9 4 0 2.6 2.6 2.1 3.5m-89-53.6c-1 .3-2.4-.6-3-2s-.3-2.6.7-2.9 2.3.7 3 2 .3 2.7-.8 3zM355.2 375c9.4.4 18.2 0 27.5.5 1.7 1.5.5 5-.6 4.8l-7.8-.3c-.1-3-7.7-2.5-7.5.1-4.1.5-7.8-.1-12-.3-1.2-1.5-1-4.2.4-4.8"}))))};const KdLanguageChange=({defaultValue:o,...s})=>{const[l,x]=useState(o??"fa"),w={fa:"\u0641\u0627\u0631\u0633\u06CC",en:"English",ar:"\u0627\u0644\u0639\u0631\u0628\u06CC\u0629"},j=W=>{switch(W){case"fa":return jsx(SvgIr,{className:"KdLanguageChange-country-flag"});case"ar":return jsx(SvgSa,{className:"KdLanguageChange-country-flag"});case"en":return jsx(SvgUs,{className:"KdLanguageChange-country-flag"});default:return jsx(SvgIr,{className:"KdLanguageChange-country-flag"})}},V=W=>{x(W),s?.onChange(W)};return jsx($0520064cdfc1bd2d$export$be92b6f5f03c0fe9,{className:"KdLanguageChange-MenubarRoot",dir:"rtl",...s,children:jsxs($0520064cdfc1bd2d$export$d9b273488cd8ce6f,{children:[jsxs($0520064cdfc1bd2d$export$41fb9f06171c75f4,{className:"KdLanguageChange-MenubarTrigger",children:[j(l),w[l]]}),jsx($0520064cdfc1bd2d$export$602eac185826482c,{children:jsx($0520064cdfc1bd2d$export$7c6e2c02157bb7d2,{align:"start",side:"bottom",sideOffset:10,className:"KdLanguageChange-MenubarContent",children:Object.keys(w).map((W,U)=>jsxs("div",{className:"KdLanguageChange-MenubarItem",onClick:()=>V(W),children:[j(W),w[W]]},U))})})]})})},StyledImage$1=styled$1("img")(),KdCaptcha=({pathProp:o,randomNumber:s,...l})=>jsx(StyledImage$1,{...l,alt:"CAPTCHA",src:`${o.APIURL}${captchaPath}${s}`});function KdDrawer({isOpen:o,onClose:s,...l}){return jsx(Drawer$1,{...l,open:o,onClose:s})}const StyledSpan=styled$1("span")(),KdTooltip=({title:o="",arrow:s,children:l,placement:x,enterDelay:w,leaveDelay:j,...V})=>jsx(Tooltip$1,{title:o,TransitionComponent:Zoom$1,enterDelay:w,leaveDelay:j,arrow:s,placement:x,children:jsx(StyledSpan,{...V,children:l})}),StyledImage=styled$1("img")(),StyledDiv=styled$1("div")();function FullScreenDialog({children:o,open:s}){return jsx(Dialog$1,{open:s,fullScreen:!0,children:jsx(DialogContent$1,{sx:{padding:"0px"},children:o})})}function KdFileViewer({src:o,modal:s=!1,basePath:l,pathProp:x,...w}){const[j,V]=useState({fileType:"",extention:""}),[W,U]=useState(!1);useEffect(()=>{(async()=>{if(o&&x?.APIURL){const re=(await fetchFilesProperty(x.APIURL,[o])??[]).find(ue=>ue.guid===o)?.fileName,J=re&&re?.split(".").pop();V({extention:J,fileType:Object.keys(fileExtension).find(ue=>fileExtension[ue].includes(J))??""})}})()},[o]);const Y=le=>le==="small"?l?.basePathThumbnail?l?.basePathThumbnail+o:o:l?.basePathStream?l?.basePathStream+o:o;if(!o||!j?.extention)return jsx(StyledDiv,{sx:{width:"100px",height:"100px",...w?.style,...w?.sx},children:jsx(FiFileText,{style:{color:"gray",height:"100%",width:"100%"}})});function X(){if(j.fileType==="text"&&j.extention==="pdf")return jsx(KdpaPdfViewer,{handleClose:()=>U(!1),fileUrl:Y("large")})}const Z=X();if(s===!0)return jsxs(Fragment$1,{children:[jsx(StyledImage,{...w,src:Y("small"),onClick:()=>Z&&U(!0)}),Z&&jsx(FullScreenDialog,{open:W,children:Z})]});if(Z){if(Z)return jsx(StyledDiv,{...w,children:Z})}else jsx(StyledImage,{...w,src:Y("small")})}const createUploadUrl=(o,s,l,x,w)=>{const j={IMG:"create/image",TEXT:"create/text",VIDEO:"create/video",COMPRESS:"create/compress",FONT:"create/font"};return o?{url:j.IMG,type:"IMG"}:s?{url:j.TEXT,type:"TEXT"}:l?{url:j.VIDEO,type:"VIDEO"}:x?{url:j.COMPRESS,type:"COMPRESS"}:w?{url:j.FONT,type:"FONT"}:{url:"create",type:void 0}};function KdpaUseFileUploadHook({APIURL:o=window?.env?.REACT_APP_APIURL??void 0,sessionId:s=localStorage.getItem("sessionId")??"",fileSizeLimit:l=2,fileCountLimit:x=20,validUploadType:w=["IMG","TEXT","VIDEO","COMPRESS","FONT"],multiple:j=!0,onError:V,onWarning:W}){const[U,Y]=useState([]),X=useRef(0),[Z,le]=useState([]),re={"Accept-Language":localStorage.getItem("i18nextLng")||""},J=xe=>{Y(Te=>{const ge=Te.filter(Pe=>Pe.session!==xe);return X.current=ge.length,ge})},ue=(xe,Te,ge)=>{xe&&(console.error(Te,"err"),V?.(Te??"\u0639\u0645\u0644\u06CC\u0627\u062A \u0628\u0627 \u062E\u0637\u0627 \u0645\u0648\u0627\u062C\u0647 \u0634\u062F")),le(Pe=>Pe.filter(Se=>Se.file!==ge))},me=(xe,Te)=>{if(xe.status===502||xe.status===503){ue(!0,"\u062E\u0637\u0627\u06CC\u06CC \u062F\u0631 \u0627\u0631\u062A\u0628\u0627\u0637 \u0628\u0627 \u0645\u06CC\u06A9\u0631\u0648\u0633\u0631\u0648\u06CC\u0633 \u0622\u067E\u0644\u0648\u062F \u0631\u062E \u062F\u0627\u062F\u0647 \u0627\u0633\u062A!",Te);return}else if(xe.status!==200){ue(!0,null,Te);return}else try{return xe.json()}catch{ue(!0,null,Te)}};function fe(xe,Te){if(!o)V?.("Not exist APIURL"),console.error("Not exist APIURL");else try{const ge=xe.target.files||[];if(!j&&ge.length>1){V?.("\u062D\u062F\u0627\u06A9\u062B\u0631 1 \u0641\u0627\u06CC\u0644 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F.");return}if(j&&ge.length+X.current>x){V?.(`\u062D\u062F\u0627\u06A9\u062B\u0631 ${x} \u0641\u0627\u06CC\u0644 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F.`);return}for(let Pe=0;Pe<ge.length;Pe++){const Se=ge[Pe];if(Se.size===0){V?.("\u0634\u0645\u0627 \u0646\u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0641\u0627\u06CC\u0644 \u062E\u0627\u0644\u06CC \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F");return}const Re=Se.size/1024/1024,De=Se.name,Le=De.lastIndexOf(".")+1,_e=De.substr(Le,De.length).toLowerCase(),Be=Te?!!Te?.image&&!!(Te?.image==="ALL"?fileExtension.image:Te?.image)?.find(Ae=>Ae===_e):!!w?.find(Ae=>Ae==="IMG")&&!!fileExtension?.image?.find(Ae=>Ae===_e),Fe=Te?!!Te?.text&&!!(Te?.text==="ALL"?fileExtension.text:Te?.text)?.find(Ae=>Ae===_e):!!w?.find(Ae=>Ae==="TEXT")&&!!fileExtension?.text?.find(Ae=>Ae===_e),je=Te?!!Te?.video&&!!(Te?.video==="ALL"?fileExtension.video:Te?.video)?.find(Ae=>Ae===_e):!!w?.find(Ae=>Ae==="VIDEO")&&!!fileExtension?.video?.find(Ae=>Ae===_e),ze=Te?!!Te?.compress&&!!(Te?.compress==="ALL"?fileExtension.compress:Te?.compress)?.find(Ae=>Ae===_e):!!w?.find(Ae=>Ae==="COMPRESS")&&!!fileExtension?.compress?.find(Ae=>Ae===_e),We=Te?!!Te?.font&&!!(Te?.font==="ALL"?fileExtension.font:Te?.font)?.find(Ae=>Ae===_e):!!w?.find(Ae=>Ae==="FONT")&&!!fileExtension?.font?.find(Ae=>Ae===_e),{url:Oe,type:ke}=createUploadUrl(Be,Fe,je,ze,We),Ee=`${o}${serviceName.upload}${pathServicesUpload.pathFileUpload}${Oe}`;if(Re>l)V?.(`\u062D\u062F\u0627\u06A9\u062B\u0631 \u062D\u062C\u0645 \u0622\u067E\u0644\u0648\u062F ${l} \u0645\u06AF\u0627\u0628\u0627\u06CC\u062A \u0645\u06CC\u200C\u0628\u0627\u0634\u062F.`);else if(ke){const Ae={file:Se,progress:0,type:ke};le(He=>j?[...He,Ae]:[Ae]);const Ve=512*1024,Xe=new FormData;Xe.append("chunkSize",String(Ve)),Xe.append("totalSize",String(Se.size)),Xe.append("fileName",Se.name);const nt=Math.ceil(Se.size/Ve),tt=[];for(let He=1;He<=nt;He++)tt.push(He);fetch(Ee,{method:"POST",headers:re,body:Xe,credentials:"include"}).then(async He=>{const Ge=await me(He,Se);if(Ge)if(showMessageActions(Ge?.subStatuses??[],V,W),Ge?.statusCode===200){let rt=0;if(Ge?.data?.sessionId?.length>0){let dt=1,vt=!1;for(let yt=0;yt<Se.size;yt+=Ve,dt++)if(!vt){const ut=Se.slice(yt,yt+Ve),St=new FormData;St.append("data",ut);const Nt={method:"PUT",headers:{...re,sessionId:s},body:St,credentials:"include"};await fetch(`${o}${serviceName.upload}${pathServicesUpload.pathForUploadCunk}${Ge?.data?.sessionId}?chunkNumber=${dt}`,Nt).then(async Bt=>{const zt=await me(Bt,Se);if(!zt){vt=!0;return}if(showMessageActions(zt?.subStatuses??[],V,W),zt?.statusCode!==200){vt=!0;return}rt=rt+ut.size;const jt=Math.round(rt/Se.size*100);le($t=>$t.map(Dt=>Dt.file===Se?{...Dt,progress:jt,session:Ge?.data?.sessionId}:Dt))})}if(vt)ue(!1,null,Se);else{const yt={method:"GET",headers:{...re,sessionId:s},credentials:"include"};await fetch(`${o}${serviceName.upload}${pathServicesUpload.pathForGetFile}${Ge?.data?.sessionId}`,yt).then(async ut=>{const St=await me(ut,Se);if(St&&(showMessageActions(St?.subStatuses??[],V,W),le(Nt=>Nt.filter(Bt=>Bt.session!==Ge?.data?.sessionId)),St?.statusCode===200)){const Nt={session:Ge?.data?.sessionId,concluded:St?.data?.concluded,progress:100,fileURL:`${o}${serviceName.upload}${St?.data?.fileLink}`,fileName:De??"",type:ke};Y(Bt=>(j?X.current=Bt.length+1:X.current=1,j?[...Bt,Nt]:[Nt]))}})}}else ue(!0,`err in ${Oe} service`,Se)}else ue(!1,null,Se)})}else V?.("\u0644\u0637\u0641\u0627 \u0641\u0631\u0645\u062A \u0645\u0646\u0627\u0633\u0628 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F.")}}catch(ge){console.error("Error",ge)}}return{APIURL:o,uploadingFiles:Z,files:U,removeFile:J,handleFileChange:fe,fileExtension}}var lib$h={exports:{}},core_min={},pdf={exports:{}},_nodeResolve_empty={},_nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty}),require$$5=getAugmentedNamespace(_nodeResolve_empty$1),hasRequiredPdf;function requirePdf(){return hasRequiredPdf||(hasRequiredPdf=1,function(module,exports){(function(s,l){module.exports=s.pdfjsLib=l()})(globalThis,()=>(()=>{var __webpack_modules__=[,(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.VerbosityLevel=s.Util=s.UnknownErrorException=s.UnexpectedResponseException=s.TextRenderingMode=s.RenderingIntentFlag=s.PromiseCapability=s.PermissionFlag=s.PasswordResponses=s.PasswordException=s.PageActionEventType=s.OPS=s.MissingPDFException=s.MAX_IMAGE_SIZE_TO_CACHE=s.LINE_FACTOR=s.LINE_DESCENT_FACTOR=s.InvalidPDFException=s.ImageKind=s.IDENTITY_MATRIX=s.FormatError=s.FeatureTest=s.FONT_IDENTITY_MATRIX=s.DocumentActionEventType=s.CMapCompressionType=s.BaseException=s.BASELINE_FACTOR=s.AnnotationType=s.AnnotationReplyType=s.AnnotationPrefix=s.AnnotationMode=s.AnnotationFlag=s.AnnotationFieldFlag=s.AnnotationEditorType=s.AnnotationEditorPrefix=s.AnnotationEditorParamsType=s.AnnotationBorderStyleType=s.AnnotationActionEventType=s.AbortException=void 0,s.assert=Ee,s.bytesToString=yt,s.createValidAbsoluteUrl=Ve,s.getModificationDate=Ln,s.getUuid=qn,s.getVerbosityLevel=ze,s.info=We,s.isArrayBuffer=En,s.isArrayEqual=Sn,s.isNodeJS=void 0,s.normalizeUnicode=zn,s.objectFromMap=Bt,s.objectSize=Nt,s.setVerbosityLevel=je,s.shadow=Xe,s.string32=St,s.stringToBytes=ut,s.stringToPDFString=Vt,s.stringToUTF8String=Tn,s.unreachable=ke,s.utf8StringToString=Zt,s.warn=Oe;const l=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");s.isNodeJS=l;const x=[1,0,0,1,0,0];s.IDENTITY_MATRIX=x;const w=[.001,0,0,.001,0,0];s.FONT_IDENTITY_MATRIX=w;const j=1e7;s.MAX_IMAGE_SIZE_TO_CACHE=j;const V=1.35;s.LINE_FACTOR=V;const W=.35;s.LINE_DESCENT_FACTOR=W;const U=W/V;s.BASELINE_FACTOR=U;const Y={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};s.RenderingIntentFlag=Y;const X={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};s.AnnotationMode=X;const Z="pdfjs_internal_editor_";s.AnnotationEditorPrefix=Z;const le={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};s.AnnotationEditorType=le;const oe={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};s.AnnotationEditorParamsType=oe;const re={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};s.PermissionFlag=re;const J={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};s.TextRenderingMode=J;const ue={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};s.ImageKind=ue;const me={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};s.AnnotationType=me;const fe={GROUP:"Group",REPLY:"R"};s.AnnotationReplyType=fe;const xe={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};s.AnnotationFlag=xe;const Te={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};s.AnnotationFieldFlag=Te;const ge={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};s.AnnotationBorderStyleType=ge;const Pe={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};s.AnnotationActionEventType=Pe;const Se={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};s.DocumentActionEventType=Se;const Re={O:"PageOpen",C:"PageClose"};s.PageActionEventType=Re;const De={ERRORS:0,WARNINGS:1,INFOS:5};s.VerbosityLevel=De;const Le={NONE:0,BINARY:1};s.CMapCompressionType=Le;const _e={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};s.OPS=_e;const Be={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};s.PasswordResponses=Be;let Fe=De.WARNINGS;function je(xn){Number.isInteger(xn)&&(Fe=xn)}function ze(){return Fe}function We(xn){Fe>=De.INFOS&&console.log(`Info: ${xn}`)}function Oe(xn){Fe>=De.WARNINGS&&console.log(`Warning: ${xn}`)}function ke(xn){throw new Error(xn)}function Ee(xn,Yt){xn||ke(Yt)}function Ae(xn){switch(xn?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Ve(xn,Yt=null,Xt=null){if(!xn)return null;try{if(Xt&&typeof xn=="string"&&(Xt.addDefaultProtocol&&xn.startsWith("www.")&&xn.match(/\./g)?.length>=2&&(xn=`http://${xn}`),Xt.tryConvertEncoding))try{xn=Tn(xn)}catch{}const In=Yt?new URL(xn,Yt):new URL(xn);if(Ae(In))return In}catch{}return null}function Xe(xn,Yt,Xt,In=!1){return Object.defineProperty(xn,Yt,{value:Xt,enumerable:!In,configurable:!0,writable:!1}),Xt}const nt=function(){function Yt(Xt,In){this.constructor===Yt&&ke("Cannot initialize BaseException."),this.message=Xt,this.name=In}return Yt.prototype=new Error,Yt.constructor=Yt,Yt}();s.BaseException=nt;class tt extends nt{constructor(Yt,Xt){super(Yt,"PasswordException"),this.code=Xt}}s.PasswordException=tt;class Ye extends nt{constructor(Yt,Xt){super(Yt,"UnknownErrorException"),this.details=Xt}}s.UnknownErrorException=Ye;class He extends nt{constructor(Yt){super(Yt,"InvalidPDFException")}}s.InvalidPDFException=He;class Ge extends nt{constructor(Yt){super(Yt,"MissingPDFException")}}s.MissingPDFException=Ge;class rt extends nt{constructor(Yt,Xt){super(Yt,"UnexpectedResponseException"),this.status=Xt}}s.UnexpectedResponseException=rt;class dt extends nt{constructor(Yt){super(Yt,"FormatError")}}s.FormatError=dt;class vt extends nt{constructor(Yt){super(Yt,"AbortException")}}s.AbortException=vt;function yt(xn){(typeof xn!="object"||xn?.length===void 0)&&ke("Invalid argument for bytesToString");const Yt=xn.length,Xt=8192;if(Yt<Xt)return String.fromCharCode.apply(null,xn);const In=[];for(let Jn=0;Jn<Yt;Jn+=Xt){const vr=Math.min(Jn+Xt,Yt),wr=xn.subarray(Jn,vr);In.push(String.fromCharCode.apply(null,wr))}return In.join("")}function ut(xn){typeof xn!="string"&&ke("Invalid argument for stringToBytes");const Yt=xn.length,Xt=new Uint8Array(Yt);for(let In=0;In<Yt;++In)Xt[In]=xn.charCodeAt(In)&255;return Xt}function St(xn){return String.fromCharCode(xn>>24&255,xn>>16&255,xn>>8&255,xn&255)}function Nt(xn){return Object.keys(xn).length}function Bt(xn){const Yt=Object.create(null);for(const[Xt,In]of xn)Yt[Xt]=In;return Yt}function zt(){const xn=new Uint8Array(4);return xn[0]=1,new Uint32Array(xn.buffer,0,1)[0]===1}function jt(){try{return new Function(""),!0}catch{return!1}}class $t{static get isLittleEndian(){return Xe(this,"isLittleEndian",zt())}static get isEvalSupported(){return Xe(this,"isEvalSupported",jt())}static get isOffscreenCanvasSupported(){return Xe(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?Xe(this,"platform",{isWin:!1,isMac:!1}):Xe(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){return Xe(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}s.FeatureTest=$t;const Dt=[...Array(256).keys()].map(xn=>xn.toString(16).padStart(2,"0"));class Mt{static makeHexColor(Yt,Xt,In){return`#${Dt[Yt]}${Dt[Xt]}${Dt[In]}`}static scaleMinMax(Yt,Xt){let In;Yt[0]?(Yt[0]<0&&(In=Xt[0],Xt[0]=Xt[1],Xt[1]=In),Xt[0]*=Yt[0],Xt[1]*=Yt[0],Yt[3]<0&&(In=Xt[2],Xt[2]=Xt[3],Xt[3]=In),Xt[2]*=Yt[3],Xt[3]*=Yt[3]):(In=Xt[0],Xt[0]=Xt[2],Xt[2]=In,In=Xt[1],Xt[1]=Xt[3],Xt[3]=In,Yt[1]<0&&(In=Xt[2],Xt[2]=Xt[3],Xt[3]=In),Xt[2]*=Yt[1],Xt[3]*=Yt[1],Yt[2]<0&&(In=Xt[0],Xt[0]=Xt[1],Xt[1]=In),Xt[0]*=Yt[2],Xt[1]*=Yt[2]),Xt[0]+=Yt[4],Xt[1]+=Yt[4],Xt[2]+=Yt[5],Xt[3]+=Yt[5]}static transform(Yt,Xt){return[Yt[0]*Xt[0]+Yt[2]*Xt[1],Yt[1]*Xt[0]+Yt[3]*Xt[1],Yt[0]*Xt[2]+Yt[2]*Xt[3],Yt[1]*Xt[2]+Yt[3]*Xt[3],Yt[0]*Xt[4]+Yt[2]*Xt[5]+Yt[4],Yt[1]*Xt[4]+Yt[3]*Xt[5]+Yt[5]]}static applyTransform(Yt,Xt){const In=Yt[0]*Xt[0]+Yt[1]*Xt[2]+Xt[4],Jn=Yt[0]*Xt[1]+Yt[1]*Xt[3]+Xt[5];return[In,Jn]}static applyInverseTransform(Yt,Xt){const In=Xt[0]*Xt[3]-Xt[1]*Xt[2],Jn=(Yt[0]*Xt[3]-Yt[1]*Xt[2]+Xt[2]*Xt[5]-Xt[4]*Xt[3])/In,vr=(-Yt[0]*Xt[1]+Yt[1]*Xt[0]+Xt[4]*Xt[1]-Xt[5]*Xt[0])/In;return[Jn,vr]}static getAxialAlignedBoundingBox(Yt,Xt){const In=this.applyTransform(Yt,Xt),Jn=this.applyTransform(Yt.slice(2,4),Xt),vr=this.applyTransform([Yt[0],Yt[3]],Xt),wr=this.applyTransform([Yt[2],Yt[1]],Xt);return[Math.min(In[0],Jn[0],vr[0],wr[0]),Math.min(In[1],Jn[1],vr[1],wr[1]),Math.max(In[0],Jn[0],vr[0],wr[0]),Math.max(In[1],Jn[1],vr[1],wr[1])]}static inverseTransform(Yt){const Xt=Yt[0]*Yt[3]-Yt[1]*Yt[2];return[Yt[3]/Xt,-Yt[1]/Xt,-Yt[2]/Xt,Yt[0]/Xt,(Yt[2]*Yt[5]-Yt[4]*Yt[3])/Xt,(Yt[4]*Yt[1]-Yt[5]*Yt[0])/Xt]}static singularValueDecompose2dScale(Yt){const Xt=[Yt[0],Yt[2],Yt[1],Yt[3]],In=Yt[0]*Xt[0]+Yt[1]*Xt[2],Jn=Yt[0]*Xt[1]+Yt[1]*Xt[3],vr=Yt[2]*Xt[0]+Yt[3]*Xt[2],wr=Yt[2]*Xt[1]+Yt[3]*Xt[3],Dr=(In+wr)/2,Fr=Math.sqrt((In+wr)**2-4*(In*wr-vr*Jn))/2,Gr=Dr+Fr||1,_n=Dr-Fr||1;return[Math.sqrt(Gr),Math.sqrt(_n)]}static normalizeRect(Yt){const Xt=Yt.slice(0);return Yt[0]>Yt[2]&&(Xt[0]=Yt[2],Xt[2]=Yt[0]),Yt[1]>Yt[3]&&(Xt[1]=Yt[3],Xt[3]=Yt[1]),Xt}static intersect(Yt,Xt){const In=Math.max(Math.min(Yt[0],Yt[2]),Math.min(Xt[0],Xt[2])),Jn=Math.min(Math.max(Yt[0],Yt[2]),Math.max(Xt[0],Xt[2]));if(In>Jn)return null;const vr=Math.max(Math.min(Yt[1],Yt[3]),Math.min(Xt[1],Xt[3])),wr=Math.min(Math.max(Yt[1],Yt[3]),Math.max(Xt[1],Xt[3]));return vr>wr?null:[In,vr,Jn,wr]}static bezierBoundingBox(Yt,Xt,In,Jn,vr,wr,Dr,Fr){const Gr=[],_n=[[],[]];let qt,Wn,An,Zn,kr,lr,wn,dn;for(let dr=0;dr<2;++dr){if(dr===0?(Wn=6*Yt-12*In+6*vr,qt=-3*Yt+9*In-9*vr+3*Dr,An=3*In-3*Yt):(Wn=6*Xt-12*Jn+6*wr,qt=-3*Xt+9*Jn-9*wr+3*Fr,An=3*Jn-3*Xt),Math.abs(qt)<1e-12){if(Math.abs(Wn)<1e-12)continue;Zn=-An/Wn,0<Zn&&Zn<1&&Gr.push(Zn);continue}wn=Wn*Wn-4*An*qt,dn=Math.sqrt(wn),!(wn<0)&&(kr=(-Wn+dn)/(2*qt),0<kr&&kr<1&&Gr.push(kr),lr=(-Wn-dn)/(2*qt),0<lr&&lr<1&&Gr.push(lr))}let On=Gr.length,Yn;const er=On;for(;On--;)Zn=Gr[On],Yn=1-Zn,_n[0][On]=Yn*Yn*Yn*Yt+3*Yn*Yn*Zn*In+3*Yn*Zn*Zn*vr+Zn*Zn*Zn*Dr,_n[1][On]=Yn*Yn*Yn*Xt+3*Yn*Yn*Zn*Jn+3*Yn*Zn*Zn*wr+Zn*Zn*Zn*Fr;return _n[0][er]=Yt,_n[1][er]=Xt,_n[0][er+1]=Dr,_n[1][er+1]=Fr,_n[0].length=_n[1].length=er+2,[Math.min(..._n[0]),Math.min(..._n[1]),Math.max(..._n[0]),Math.max(..._n[1])]}}s.Util=Mt;const Ot=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function Vt(xn){if(xn[0]>="\xEF"){let Xt;if(xn[0]==="\xFE"&&xn[1]==="\xFF"?Xt="utf-16be":xn[0]==="\xFF"&&xn[1]==="\xFE"?Xt="utf-16le":xn[0]==="\xEF"&&xn[1]==="\xBB"&&xn[2]==="\xBF"&&(Xt="utf-8"),Xt)try{const In=new TextDecoder(Xt,{fatal:!0}),Jn=ut(xn);return In.decode(Jn)}catch(In){Oe(`stringToPDFString: "${In}".`)}}const Yt=[];for(let Xt=0,In=xn.length;Xt<In;Xt++){const Jn=Ot[xn.charCodeAt(Xt)];Yt.push(Jn?String.fromCharCode(Jn):xn.charAt(Xt))}return Yt.join("")}function Tn(xn){return decodeURIComponent(escape(xn))}function Zt(xn){return unescape(encodeURIComponent(xn))}function En(xn){return typeof xn=="object"&&xn?.byteLength!==void 0}function Sn(xn,Yt){if(xn.length!==Yt.length)return!1;for(let Xt=0,In=xn.length;Xt<In;Xt++)if(xn[Xt]!==Yt[Xt])return!1;return!0}function Ln(xn=new Date){return[xn.getUTCFullYear().toString(),(xn.getUTCMonth()+1).toString().padStart(2,"0"),xn.getUTCDate().toString().padStart(2,"0"),xn.getUTCHours().toString().padStart(2,"0"),xn.getUTCMinutes().toString().padStart(2,"0"),xn.getUTCSeconds().toString().padStart(2,"0")].join("")}class vn{#e=!1;constructor(){this.promise=new Promise((Yt,Xt)=>{this.resolve=In=>{this.#e=!0,Yt(In)},this.reject=In=>{this.#e=!0,Xt(In)}})}get settled(){return this.#e}}s.PromiseCapability=vn;let fn=null,Dn=null;function zn(xn){return fn||(fn=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,Dn=new Map([["\uFB05","\u017Ft"]])),xn.replaceAll(fn,(Yt,Xt,In)=>Xt?Xt.normalize("NFKC"):Dn.get(In))}function qn(){if(typeof crypto<"u"&&typeof crypto?.randomUUID=="function")return crypto.randomUUID();const xn=new Uint8Array(32);if(typeof crypto<"u"&&typeof crypto?.getRandomValues=="function")crypto.getRandomValues(xn);else for(let Yt=0;Yt<32;Yt++)xn[Yt]=Math.floor(Math.random()*255);return yt(xn)}const Bn="pdfjs_internal_id_";s.AnnotationPrefix=Bn},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;function getDocument(o){if(typeof o=="string"||o instanceof URL?o={url:o}:(0,_util.isArrayBuffer)(o)&&(o={data:o}),typeof o!="object")throw new Error("Invalid parameter in getDocument, need parameter object.");if(!o.url&&!o.data&&!o.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const s=new PDFDocumentLoadingTask,{docId:l}=s,x=o.url?getUrlProp(o.url):null,w=o.data?getDataProp(o.data):null,j=o.httpHeaders||null,V=o.withCredentials===!0,W=o.password??null,U=o.range instanceof PDFDataRangeTransport?o.range:null,Y=Number.isInteger(o.rangeChunkSize)&&o.rangeChunkSize>0?o.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let X=o.worker instanceof PDFWorker?o.worker:null;const Z=o.verbosity,le=typeof o.docBaseUrl=="string"&&!(0,_display_utils.isDataScheme)(o.docBaseUrl)?o.docBaseUrl:null,oe=typeof o.cMapUrl=="string"?o.cMapUrl:null,re=o.cMapPacked!==!1,J=o.CMapReaderFactory||DefaultCMapReaderFactory,ue=typeof o.standardFontDataUrl=="string"?o.standardFontDataUrl:null,me=o.StandardFontDataFactory||DefaultStandardFontDataFactory,fe=o.stopAtErrors!==!0,xe=Number.isInteger(o.maxImageSize)&&o.maxImageSize>-1?o.maxImageSize:-1,Te=o.isEvalSupported!==!1,ge=typeof o.isOffscreenCanvasSupported=="boolean"?o.isOffscreenCanvasSupported:!_util.isNodeJS,Pe=Number.isInteger(o.canvasMaxAreaInBytes)?o.canvasMaxAreaInBytes:-1,Se=typeof o.disableFontFace=="boolean"?o.disableFontFace:_util.isNodeJS,Re=o.fontExtraProperties===!0,De=o.enableXfa===!0,Le=o.ownerDocument||globalThis.document,_e=o.disableRange===!0,Be=o.disableStream===!0,Fe=o.disableAutoFetch===!0,je=o.pdfBug===!0,ze=U?U.length:o.length??NaN,We=typeof o.useSystemFonts=="boolean"?o.useSystemFonts:!_util.isNodeJS&&!Se,Oe=typeof o.useWorkerFetch=="boolean"?o.useWorkerFetch:J===_display_utils.DOMCMapReaderFactory&&me===_display_utils.DOMStandardFontDataFactory&&oe&&ue&&(0,_display_utils.isValidFetchUrl)(oe,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(ue,document.baseURI),ke=o.canvasFactory||new DefaultCanvasFactory({ownerDocument:Le}),Ee=o.filterFactory||new DefaultFilterFactory({docId:l,ownerDocument:Le}),Ae=null;(0,_util.setVerbosityLevel)(Z);const Ve={canvasFactory:ke,filterFactory:Ee};if(Oe||(Ve.cMapReaderFactory=new J({baseUrl:oe,isCompressed:re}),Ve.standardFontDataFactory=new me({baseUrl:ue})),!X){const tt={verbosity:Z,port:_worker_options.GlobalWorkerOptions.workerPort};X=tt.port?PDFWorker.fromPort(tt):new PDFWorker(tt),s._worker=X}const Xe={docId:l,apiVersion:"3.11.174",data:w,password:W,disableAutoFetch:Fe,rangeChunkSize:Y,length:ze,docBaseUrl:le,enableXfa:De,evaluatorOptions:{maxImageSize:xe,disableFontFace:Se,ignoreErrors:fe,isEvalSupported:Te,isOffscreenCanvasSupported:ge,canvasMaxAreaInBytes:Pe,fontExtraProperties:Re,useSystemFonts:We,cMapUrl:Oe?oe:null,standardFontDataUrl:Oe?ue:null}},nt={ignoreErrors:fe,isEvalSupported:Te,disableFontFace:Se,fontExtraProperties:Re,enableXfa:De,ownerDocument:Le,disableAutoFetch:Fe,pdfBug:je,styleElement:Ae};return X.promise.then(function(){if(s.destroyed)throw new Error("Loading aborted");const tt=_fetchDocument(X,Xe),Ye=new Promise(function(He){let Ge;U?Ge=new _transport_stream.PDFDataTransportStream({length:ze,initialData:U.initialData,progressiveDone:U.progressiveDone,contentDispositionFilename:U.contentDispositionFilename,disableRange:_e,disableStream:Be},U):w||(Ge=(dt=>_util.isNodeJS?new _displayNode_stream.PDFNodeStream(dt):(0,_display_utils.isValidFetchUrl)(dt.url)?new _displayFetch_stream.PDFFetchStream(dt):new _displayNetwork.PDFNetworkStream(dt))({url:x,length:ze,httpHeaders:j,withCredentials:V,rangeChunkSize:Y,disableRange:_e,disableStream:Be})),He(Ge)});return Promise.all([tt,Ye]).then(function([He,Ge]){if(s.destroyed)throw new Error("Loading aborted");const rt=new _message_handler.MessageHandler(l,He,X.port),dt=new WorkerTransport(rt,s,Ge,nt,Ve);s._transport=dt,rt.send("Ready",null)})}).catch(s._capability.reject),s}async function _fetchDocument(o,s){if(o.destroyed)throw new Error("Worker was destroyed");const l=await o.messageHandler.sendWithPromise("GetDocRequest",s,s.data?[s.data.buffer]:null);if(o.destroyed)throw new Error("Worker was destroyed");return l}function getUrlProp(o){if(o instanceof URL)return o.href;try{return new URL(o,window.location).href}catch{if(_util.isNodeJS&&typeof o=="string")return o}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(o){if(_util.isNodeJS&&typeof Buffer<"u"&&o instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength)return o;if(typeof o=="string")return(0,_util.stringToBytes)(o);if(typeof o=="object"&&!isNaN(o?.length)||(0,_util.isArrayBuffer)(o))return new Uint8Array(o);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}class PDFDocumentLoadingTask{static#e=0;constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId=`d${PDFDocumentLoadingTask.#e++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(s){throw this._worker?.port&&delete this._worker._pendingDestroy,s}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(s,l,x=!1,w=null){this.length=s,this.initialData=l,this.progressiveDone=x,this.contentDispositionFilename=w,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(s){this._rangeListeners.push(s)}addProgressListener(s){this._progressListeners.push(s)}addProgressiveReadListener(s){this._progressiveReadListeners.push(s)}addProgressiveDoneListener(s){this._progressiveDoneListeners.push(s)}onDataRange(s,l){for(const x of this._rangeListeners)x(s,l)}onDataProgress(s,l){this._readyCapability.promise.then(()=>{for(const x of this._progressListeners)x(s,l)})}onDataProgressiveRead(s){this._readyCapability.promise.then(()=>{for(const l of this._progressiveReadListeners)l(s)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const s of this._progressiveDoneListeners)s()})}transportReady(){this._readyCapability.resolve()}requestDataRange(s,l){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(s,l){this._pdfInfo=s,this._transport=l,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then(x=>{if(!x)return x;const w=[];for(const j in x)w.push(...x[j]);return w}))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(s){return this._transport.getPage(s)}getPageIndex(s){return this._transport.getPageIndex(s)}getDestinations(){return this._transport.getDestinations()}getDestination(s){return this._transport.getDestination(s)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(s=!1){return this._transport.startCleanup(s||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{#e=null;#t=!1;constructor(s,l,x,w=!1){this._pageIndex=s,this._pageInfo=l,this._transport=x,this._stats=w?new _display_utils.StatTimer:null,this._pdfBug=w,this.commonObjs=x.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:s,rotation:l=this.rotate,offsetX:x=0,offsetY:w=0,dontFlip:j=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:s,rotation:l,offsetX:x,offsetY:w,dontFlip:j})}getAnnotations({intent:s="display"}={}){const l=this._transport.getRenderingIntent(s);return this._transport.getAnnotations(this._pageIndex,l.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:s,viewport:l,intent:x="display",annotationMode:w=_util.AnnotationMode.ENABLE,transform:j=null,background:V=null,optionalContentConfigPromise:W=null,annotationCanvasMap:U=null,pageColors:Y=null,printAnnotationStorage:X=null}){this._stats?.time("Overall");const Z=this._transport.getRenderingIntent(x,w,X);this.#t=!1,this.#r(),W||(W=this._transport.getOptionalContentConfig());let le=this._intentStates.get(Z.cacheKey);le||(le=Object.create(null),this._intentStates.set(Z.cacheKey,le)),le.streamReaderCancelTimeout&&(clearTimeout(le.streamReaderCancelTimeout),le.streamReaderCancelTimeout=null);const oe=!!(Z.renderingIntent&_util.RenderingIntentFlag.PRINT);le.displayReadyCapability||(le.displayReadyCapability=new _util.PromiseCapability,le.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(Z));const re=me=>{le.renderTasks.delete(J),(this._maybeCleanupAfterRender||oe)&&(this.#t=!0),this.#n(!oe),me?(J.capability.reject(me),this._abortOperatorList({intentState:le,reason:me instanceof Error?me:new Error(me)})):J.capability.resolve(),this._stats?.timeEnd("Rendering"),this._stats?.timeEnd("Overall")},J=new InternalRenderTask({callback:re,params:{canvasContext:s,viewport:l,transform:j,background:V},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:U,operatorList:le.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!oe,pdfBug:this._pdfBug,pageColors:Y});(le.renderTasks||=new Set).add(J);const ue=J.task;return Promise.all([le.displayReadyCapability.promise,W]).then(([me,fe])=>{if(this.destroyed){re();return}this._stats?.time("Rendering"),J.initializeGraphics({transparency:me,optionalContentConfig:fe}),J.operatorListChanged()}).catch(re),ue}getOperatorList({intent:s="display",annotationMode:l=_util.AnnotationMode.ENABLE,printAnnotationStorage:x=null}={}){function w(){V.operatorList.lastChunk&&(V.opListReadCapability.resolve(V.operatorList),V.renderTasks.delete(W))}const j=this._transport.getRenderingIntent(s,l,x,!0);let V=this._intentStates.get(j.cacheKey);V||(V=Object.create(null),this._intentStates.set(j.cacheKey,V));let W;return V.opListReadCapability||(W=Object.create(null),W.operatorListChanged=w,V.opListReadCapability=new _util.PromiseCapability,(V.renderTasks||=new Set).add(W),V.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(j)),V.opListReadCapability.promise}streamTextContent({includeMarkedContent:s=!1,disableNormalization:l=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:s===!0,disableNormalization:l===!0},{highWaterMark:100,size(w){return w.items.length}})}getTextContent(s={}){if(this._transport._htmlForXfa)return this.getXfa().then(x=>_xfa_text.XfaText.textContent(x));const l=this.streamTextContent(s);return new Promise(function(x,w){function j(){V.read().then(function({value:U,done:Y}){if(Y){x(W);return}Object.assign(W.styles,U.styles),W.items.push(...U.items),j()},w)}const V=l.getReader(),W={items:[],styles:Object.create(null)};j()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const s=[];for(const l of this._intentStates.values())if(this._abortOperatorList({intentState:l,reason:new Error("Page was destroyed."),force:!0}),!l.opListReadCapability)for(const x of l.renderTasks)s.push(x.completed),x.cancel();return this.objs.clear(),this.#t=!1,this.#r(),Promise.all(s)}cleanup(s=!1){this.#t=!0;const l=this.#n(!1);return s&&l&&(this._stats&&=new _display_utils.StatTimer),l}#n(s=!1){if(this.#r(),!this.#t||this.destroyed)return!1;if(s)return this.#e=setTimeout(()=>{this.#e=null,this.#n(!1)},DELAYED_CLEANUP_TIMEOUT),!1;for(const{renderTasks:l,operatorList:x}of this._intentStates.values())if(l.size>0||!x.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#t=!1,!0}#r(){this.#e&&(clearTimeout(this.#e),this.#e=null)}_startRenderPage(s,l){const x=this._intentStates.get(l);x&&(this._stats?.timeEnd("Page Request"),x.displayReadyCapability?.resolve(s))}_renderPageChunk(s,l){for(let x=0,w=s.length;x<w;x++)l.operatorList.fnArray.push(s.fnArray[x]),l.operatorList.argsArray.push(s.argsArray[x]);l.operatorList.lastChunk=s.lastChunk,l.operatorList.separateAnnots=s.separateAnnots;for(const x of l.renderTasks)x.operatorListChanged();s.lastChunk&&this.#n(!0)}_pumpOperatorList({renderingIntent:s,cacheKey:l,annotationStorageSerializable:x}){const{map:w,transfers:j}=x,W=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:s,cacheKey:l,annotationStorage:w},j).getReader(),U=this._intentStates.get(l);U.streamReader=W;const Y=()=>{W.read().then(({value:X,done:Z})=>{if(Z){U.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(X,U),Y())},X=>{if(U.streamReader=null,!this._transport.destroyed){if(U.operatorList){U.operatorList.lastChunk=!0;for(const Z of U.renderTasks)Z.operatorListChanged();this.#n(!0)}if(U.displayReadyCapability)U.displayReadyCapability.reject(X);else if(U.opListReadCapability)U.opListReadCapability.reject(X);else throw X}})};Y()}_abortOperatorList({intentState:s,reason:l,force:x=!1}){if(s.streamReader){if(s.streamReaderCancelTimeout&&(clearTimeout(s.streamReaderCancelTimeout),s.streamReaderCancelTimeout=null),!x){if(s.renderTasks.size>0)return;if(l instanceof _display_utils.RenderingCancelledException){let w=RENDERING_CANCELLED_TIMEOUT;l.extraDelay>0&&l.extraDelay<1e3&&(w+=l.extraDelay),s.streamReaderCancelTimeout=setTimeout(()=>{s.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:s,reason:l,force:!0})},w);return}}if(s.streamReader.cancel(new _util.AbortException(l.message)).catch(()=>{}),s.streamReader=null,!this._transport.destroyed){for(const[w,j]of this._intentStates)if(j===s){this._intentStates.delete(w);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{#e=new Set;#t=Promise.resolve();postMessage(s,l){const x={data:structuredClone(s,l?{transfer:l}:null)};this.#t.then(()=>{for(const w of this.#e)w.call(this,x)})}addEventListener(s,l){this.#e.add(l)}removeEventListener(s,l){this.#e.delete(l)}terminate(){this.#e.clear()}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_util.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){const o=document?.currentScript?.src;o&&(PDFWorkerUtil.fallbackWorkerSrc=o.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(o,s){let l;try{if(l=new URL(o),!l.origin||l.origin==="null")return!1}catch{return!1}const x=new URL(s,l);return l.origin===x.origin},PDFWorkerUtil.createCDNWrapper=function(o){const s=`importScripts("${o}");`;return URL.createObjectURL(new Blob([s]))}}class PDFWorker{static#workerPorts;constructor({name:o=null,port:s=null,verbosity:l=(0,_util.getVerbosityLevel)()}={}){if(this.name=o,this.destroyed=!1,this.verbosity=l,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,s){if(PDFWorker.#workerPorts?.has(s))throw new Error("Cannot use more than one PDFWorker per port.");(PDFWorker.#workerPorts||=new WeakMap).set(s,this),this._initializeFromPort(s);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(o){this._port=o,this._messageHandler=new _message_handler.MessageHandler("main","worker",o),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:o}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,o)||(o=PDFWorkerUtil.createCDNWrapper(new URL(o,window.location).href));const s=new Worker(o),l=new _message_handler.MessageHandler("main","worker",s),x=()=>{s.removeEventListener("error",w),l.destroy(),s.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},w=()=>{this._webWorker||x()};s.addEventListener("error",w),l.on("test",V=>{if(s.removeEventListener("error",w),this.destroyed){x();return}V?(this._messageHandler=l,this._port=s,this._webWorker=s,this._readyCapability.resolve(),l.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),l.destroy(),s.terminate())}),l.on("ready",V=>{if(s.removeEventListener("error",w),this.destroyed){x();return}try{j()}catch{this._setupFakeWorker()}});const j=()=>{const V=new Uint8Array;l.send("test",V,[V.buffer])};j();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(o=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const s=new LoopbackPort;this._port=s;const l=`fake${PDFWorkerUtil.fakeWorkerId++}`,x=new _message_handler.MessageHandler(l+"_worker",l,s);o.setup(x,s);const w=new _message_handler.MessageHandler(l,l+"_worker",s);this._messageHandler=w,this._readyCapability.resolve(),w.send("configure",{verbosity:this.verbosity})}).catch(o=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${o.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#workerPorts?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(o){if(!o?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const s=this.#workerPorts?.get(o.port);if(s){if(s._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return s}return new PDFWorker(o)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS&&typeof commonjsRequire=="function"){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker;class WorkerTransport{#e=new Map;#t=new Map;#n=new Map;#r=null;constructor(s,l,x,w,j){this.messageHandler=s,this.loadingTask=l,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:w.ownerDocument,styleElement:w.styleElement}),this._params=w,this.canvasFactory=j.canvasFactory,this.filterFactory=j.filterFactory,this.cMapReaderFactory=j.cMapReaderFactory,this.standardFontDataFactory=j.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=x,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}#s(s,l=null){const x=this.#e.get(s);if(x)return x;const w=this.messageHandler.sendWithPromise(s,l);return this.#e.set(s,w),w}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(s,l=_util.AnnotationMode.ENABLE,x=null,w=!1){let j=_util.RenderingIntentFlag.DISPLAY,V=_annotation_storage.SerializableEmpty;switch(s){case"any":j=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":j=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${s}`)}switch(l){case _util.AnnotationMode.DISABLE:j+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:j+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:j+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,V=(j&_util.RenderingIntentFlag.PRINT&&x instanceof _annotation_storage.PrintAnnotationStorage?x:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${l}`)}return w&&(j+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:j,cacheKey:`${j}_${V.hash}`,annotationStorageSerializable:V}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,this.#r?.reject(new Error("Worker was destroyed during onPassword callback"));const s=[];for(const x of this.#t.values())s.push(x._destroy());this.#t.clear(),this.#n.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const l=this.messageHandler.sendWithPromise("Terminate",null);return s.push(l),Promise.all(s).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),this._networkStream?.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:s,loadingTask:l}=this;s.on("GetReader",(x,w)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=j=>{this._lastProgress={loaded:j.loaded,total:j.total}},w.onPull=()=>{this._fullReader.read().then(function({value:j,done:V}){if(V){w.close();return}(0,_util.assert)(j instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),w.enqueue(new Uint8Array(j),1,[j])}).catch(j=>{w.error(j)})},w.onCancel=j=>{this._fullReader.cancel(j),w.ready.catch(V=>{if(!this.destroyed)throw V})}}),s.on("ReaderHeadersReady",x=>{const w=new _util.PromiseCapability,j=this._fullReader;return j.headersReady.then(()=>{(!j.isStreamingSupported||!j.isRangeSupported)&&(this._lastProgress&&l.onProgress?.(this._lastProgress),j.onProgress=V=>{l.onProgress?.({loaded:V.loaded,total:V.total})}),w.resolve({isStreamingSupported:j.isStreamingSupported,isRangeSupported:j.isRangeSupported,contentLength:j.contentLength})},w.reject),w.promise}),s.on("GetRangeReader",(x,w)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const j=this._networkStream.getRangeReader(x.begin,x.end);if(!j){w.close();return}w.onPull=()=>{j.read().then(function({value:V,done:W}){if(W){w.close();return}(0,_util.assert)(V instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),w.enqueue(new Uint8Array(V),1,[V])}).catch(V=>{w.error(V)})},w.onCancel=V=>{j.cancel(V),w.ready.catch(W=>{if(!this.destroyed)throw W})}}),s.on("GetDoc",({pdfInfo:x})=>{this._numPages=x.numPages,this._htmlForXfa=x.htmlForXfa,delete x.htmlForXfa,l._capability.resolve(new PDFDocumentProxy(x,this))}),s.on("DocException",function(x){let w;switch(x.name){case"PasswordException":w=new _util.PasswordException(x.message,x.code);break;case"InvalidPDFException":w=new _util.InvalidPDFException(x.message);break;case"MissingPDFException":w=new _util.MissingPDFException(x.message);break;case"UnexpectedResponseException":w=new _util.UnexpectedResponseException(x.message,x.status);break;case"UnknownErrorException":w=new _util.UnknownErrorException(x.message,x.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}l._capability.reject(w)}),s.on("PasswordRequest",x=>{if(this.#r=new _util.PromiseCapability,l.onPassword){const w=j=>{j instanceof Error?this.#r.reject(j):this.#r.resolve({password:j})};try{l.onPassword(w,x.code)}catch(j){this.#r.reject(j)}}else this.#r.reject(new _util.PasswordException(x.message,x.code));return this.#r.promise}),s.on("DataLoaded",x=>{l.onProgress?.({loaded:x.length,total:x.length}),this.downloadInfoCapability.resolve(x)}),s.on("StartRenderPage",x=>{if(this.destroyed)return;this.#t.get(x.pageIndex)._startRenderPage(x.transparency,x.cacheKey)}),s.on("commonobj",([x,w,j])=>{if(!this.destroyed&&!this.commonObjs.has(x))switch(w){case"Font":const V=this._params;if("error"in j){const Y=j.error;(0,_util.warn)(`Error during font loading: ${Y}`),this.commonObjs.resolve(x,Y);break}const W=V.pdfBug&&globalThis.FontInspector?.enabled?(Y,X)=>globalThis.FontInspector.fontAdded(Y,X):null,U=new _font_loader.FontFaceObject(j,{isEvalSupported:V.isEvalSupported,disableFontFace:V.disableFontFace,ignoreErrors:V.ignoreErrors,inspectFont:W});this.fontLoader.bind(U).catch(Y=>s.sendWithPromise("FontFallback",{id:x})).finally(()=>{!V.fontExtraProperties&&U.data&&(U.data=null),this.commonObjs.resolve(x,U)});break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(x,j);break;default:throw new Error(`Got unknown common object type ${w}`)}}),s.on("obj",([x,w,j,V])=>{if(this.destroyed)return;const W=this.#t.get(w);if(!W.objs.has(x))switch(j){case"Image":if(W.objs.resolve(x,V),V){let U;if(V.bitmap){const{width:Y,height:X}=V;U=Y*X*4}else U=V.data?.length||0;U>_util.MAX_IMAGE_SIZE_TO_CACHE&&(W._maybeCleanupAfterRender=!0)}break;case"Pattern":W.objs.resolve(x,V);break;default:throw new Error(`Got unknown object type ${j}`)}}),s.on("DocProgress",x=>{this.destroyed||l.onProgress?.({loaded:x.loaded,total:x.total})}),s.on("FetchBuiltInCMap",x=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(x):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),s.on("FetchStandardFontData",x=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(x):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:s,transfers:l}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:s,filename:this._fullReader?.filename??null},l).finally(()=>{this.annotationStorage.resetModified()})}getPage(s){if(!Number.isInteger(s)||s<=0||s>this._numPages)return Promise.reject(new Error("Invalid page request."));const l=s-1,x=this.#n.get(l);if(x)return x;const w=this.messageHandler.sendWithPromise("GetPage",{pageIndex:l}).then(j=>{if(this.destroyed)throw new Error("Transport destroyed");const V=new PDFPageProxy(l,j,this,this._params.pdfBug);return this.#t.set(l,V),V});return this.#n.set(l,w),w}getPageIndex(s){return typeof s!="object"||s===null||!Number.isInteger(s.num)||s.num<0||!Number.isInteger(s.gen)||s.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:s.num,gen:s.gen})}getAnnotations(s,l){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:s,intent:l})}getFieldObjects(){return this.#s("GetFieldObjects")}hasJSActions(){return this.#s("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(s){return typeof s!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:s})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#s("GetDocJSActions")}getPageJSActions(s){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:s})}getStructTree(s){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:s})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(s=>new _optional_content_config.OptionalContentConfig(s))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const s="GetMetadata",l=this.#e.get(s);if(l)return l;const x=this.messageHandler.sendWithPromise(s,null).then(w=>({info:w[0],metadata:w[1]?new _metadata.Metadata(w[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(s,x),x}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(s=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const l of this.#t.values())if(!l.cleanup())throw new Error(`startCleanup: Page ${l.pageNumber} is currently rendering.`);this.commonObjs.clear(),s||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:s,enableXfa:l}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:s,enableXfa:l})}}class PDFObjects{#e=Object.create(null);#t(s){return this.#e[s]||={capability:new _util.PromiseCapability,data:null}}get(s,l=null){if(l){const w=this.#t(s);return w.capability.promise.then(()=>l(w.data)),null}const x=this.#e[s];if(!x?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${s}.`);return x.data}has(s){return this.#e[s]?.capability.settled||!1}resolve(s,l=null){const x=this.#t(s);x.data=l,x.capability.resolve()}clear(){for(const s in this.#e){const{data:l}=this.#e[s];l?.bitmap?.close()}this.#e=Object.create(null)}}class RenderTask{#e=null;constructor(s){this.#e=s,this.onContinue=null}get promise(){return this.#e.capability.promise}cancel(s=0){this.#e.cancel(null,s)}get separateAnnots(){const{separateAnnots:s}=this.#e.operatorList;if(!s)return!1;const{annotationCanvasMap:l}=this.#e;return s.form||s.canvas&&l?.size>0}}exports.RenderTask=RenderTask;class InternalRenderTask{static#e=new WeakSet;constructor({callback:s,params:l,objs:x,commonObjs:w,annotationCanvasMap:j,operatorList:V,pageIndex:W,canvasFactory:U,filterFactory:Y,useRequestAnimationFrame:X=!1,pdfBug:Z=!1,pageColors:le=null}){this.callback=s,this.params=l,this.objs=x,this.commonObjs=w,this.annotationCanvasMap=j,this.operatorListIdx=null,this.operatorList=V,this._pageIndex=W,this.canvasFactory=U,this.filterFactory=Y,this._pdfBug=Z,this.pageColors=le,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=X===!0&&typeof window<"u",this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=l.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:s=!1,optionalContentConfig:l}){if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");InternalRenderTask.#e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:x,viewport:w,transform:j,background:V}=this.params;this.gfx=new _canvas.CanvasGraphics(x,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:l},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:j,viewport:w,transparency:s,background:V}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(s=null,l=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),InternalRenderTask.#e.delete(this._canvas),this.callback(s||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,l))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),InternalRenderTask.#e.delete(this._canvas),this.callback())))}}const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SerializableEmpty=s.PrintAnnotationStorage=s.AnnotationStorage=void 0;var x=l(1),w=l(4),j=l(8);const V=Object.freeze({map:null,hash:"",transfers:void 0});s.SerializableEmpty=V;class W{#e=!1;#t=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(X,Z){const le=this.#t.get(X);return le===void 0?Z:Object.assign(Z,le)}getRawValue(X){return this.#t.get(X)}remove(X){if(this.#t.delete(X),this.#t.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const Z of this.#t.values())if(Z instanceof w.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(X,Z){const le=this.#t.get(X);let oe=!1;if(le!==void 0)for(const[re,J]of Object.entries(Z))le[re]!==J&&(oe=!0,le[re]=J);else oe=!0,this.#t.set(X,Z);oe&&this.#n(),Z instanceof w.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(Z.constructor._type)}has(X){return this.#t.has(X)}getAll(){return this.#t.size>0?(0,x.objectFromMap)(this.#t):null}setAll(X){for(const[Z,le]of Object.entries(X))this.setValue(Z,le)}get size(){return this.#t.size}#n(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new U(this)}get serializable(){if(this.#t.size===0)return V;const X=new Map,Z=new j.MurmurHash3_64,le=[],oe=Object.create(null);let re=!1;for(const[J,ue]of this.#t){const me=ue instanceof w.AnnotationEditor?ue.serialize(!1,oe):ue;me&&(X.set(J,me),Z.update(`${J}:${JSON.stringify(me)}`),re||=!!me.bitmap)}if(re)for(const J of X.values())J.bitmap&&le.push(J.bitmap);return X.size>0?{map:X,hash:Z.hexdigest(),transfers:le}:V}}s.AnnotationStorage=W;class U extends W{#e;constructor(X){super();const{map:Z,hash:le,transfers:oe}=X.serializable,re=structuredClone(Z,oe?{transfer:oe}:null);this.#e={map:re,hash:le,transfers:oe}}get print(){(0,x.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}}s.PrintAnnotationStorage=U},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.AnnotationEditor=void 0;var x=l(5),w=l(1),j=l(6);class V{#e="";#t=!1;#n=null;#r=null;#s=null;#i=!1;#a=null;#l=this.focusin.bind(this);#c=this.focusout.bind(this);#o=!1;#f=!1;#d=!1;_initialOptions=Object.create(null);_uiManager=null;_focusEventsAllowed=!0;_l10nPromise=null;#p=!1;#h=V._zIndex++;static _borderLineWidth=-1;static _colorManager=new x.ColorManager;static _zIndex=1;static SMALL_EDITOR_SIZE=0;constructor(Y){this.constructor===V&&(0,w.unreachable)("Cannot initialize AnnotationEditor."),this.parent=Y.parent,this.id=Y.id,this.width=this.height=null,this.pageIndex=Y.parent.pageIndex,this.name=Y.name,this.div=null,this._uiManager=Y.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=Y.isCentered,this._structTreeParentId=null;const{rotation:X,rawDims:{pageWidth:Z,pageHeight:le,pageX:oe,pageY:re}}=this.parent.viewport;this.rotation=X,this.pageRotation=(360+X-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[Z,le],this.pageTranslation=[oe,re];const[J,ue]=this.parentDimensions;this.x=Y.x/J,this.y=Y.y/ue,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,w.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(Y){const X=new W({id:Y.parent.getNextId(),parent:Y.parent,uiManager:Y._uiManager});X.annotationElementId=Y.annotationElementId,X.deleted=!0,X._uiManager.addToAnnotationStorage(X)}static initialize(Y,X=null){if(V._l10nPromise||=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map(le=>[le,Y.get(le)])),X?.strings)for(const le of X.strings)V._l10nPromise.set(le,Y.get(le));if(V._borderLineWidth!==-1)return;const Z=getComputedStyle(document.documentElement);V._borderLineWidth=parseFloat(Z.getPropertyValue("--outline-width"))||0}static updateDefaultParams(Y,X){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(Y){return!1}static paste(Y,X){(0,w.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#p}set _isDraggable(Y){this.#p=Y,this.div?.classList.toggle("draggable",Y)}center(){const[Y,X]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*X/(Y*2),this.y+=this.width*Y/(X*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*X/(Y*2),this.y-=this.width*Y/(X*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(Y){this._uiManager.addCommands(Y)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#h}setParent(Y){Y!==null&&(this.pageIndex=Y.pageIndex,this.pageDimensions=Y.pageDimensions),this.parent=Y}focusin(Y){this._focusEventsAllowed&&(this.#o?this.#o=!1:this.parent.setSelected(this))}focusout(Y){!this._focusEventsAllowed||!this.isAttachedToDOM||Y.relatedTarget?.closest(`#${this.id}`)||(Y.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(Y,X,Z,le){const[oe,re]=this.parentDimensions;[Z,le]=this.screenToPageTranslation(Z,le),this.x=(Y+Z)/oe,this.y=(X+le)/re,this.fixAndSetPosition()}#v([Y,X],Z,le){[Z,le]=this.screenToPageTranslation(Z,le),this.x+=Z/Y,this.y+=le/X,this.fixAndSetPosition()}translate(Y,X){this.#v(this.parentDimensions,Y,X)}translateInPage(Y,X){this.#v(this.pageDimensions,Y,X),this.div.scrollIntoView({block:"nearest"})}drag(Y,X){const[Z,le]=this.parentDimensions;if(this.x+=Y/Z,this.y+=X/le,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:me,y:fe}=this.div.getBoundingClientRect();this.parent.findNewParent(this,me,fe)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:oe,y:re}=this;const[J,ue]=this.#g();oe+=J,re+=ue,this.div.style.left=`${(100*oe).toFixed(2)}%`,this.div.style.top=`${(100*re).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}#g(){const[Y,X]=this.parentDimensions,{_borderLineWidth:Z}=V,le=Z/Y,oe=Z/X;switch(this.rotation){case 90:return[-le,oe];case 180:return[le,oe];case 270:return[le,-oe];default:return[-le,-oe]}}fixAndSetPosition(){const[Y,X]=this.pageDimensions;let{x:Z,y:le,width:oe,height:re}=this;switch(oe*=Y,re*=X,Z*=Y,le*=X,this.rotation){case 0:Z=Math.max(0,Math.min(Y-oe,Z)),le=Math.max(0,Math.min(X-re,le));break;case 90:Z=Math.max(0,Math.min(Y-re,Z)),le=Math.min(X,Math.max(oe,le));break;case 180:Z=Math.min(Y,Math.max(oe,Z)),le=Math.min(X,Math.max(re,le));break;case 270:Z=Math.min(Y,Math.max(re,Z)),le=Math.max(0,Math.min(X-oe,le));break}this.x=Z/=Y,this.y=le/=X;const[J,ue]=this.#g();Z+=J,le+=ue;const{style:me}=this.div;me.left=`${(100*Z).toFixed(2)}%`,me.top=`${(100*le).toFixed(2)}%`,this.moveInDOM()}static#m(Y,X,Z){switch(Z){case 90:return[X,-Y];case 180:return[-Y,-X];case 270:return[-X,Y];default:return[Y,X]}}screenToPageTranslation(Y,X){return V.#m(Y,X,this.parentRotation)}pageTranslationToScreen(Y,X){return V.#m(Y,X,360-this.parentRotation)}#u(Y){switch(Y){case 90:{const[X,Z]=this.pageDimensions;return[0,-X/Z,Z/X,0]}case 180:return[-1,0,0,-1];case 270:{const[X,Z]=this.pageDimensions;return[0,X/Z,-Z/X,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:Y,pageDimensions:[X,Z]}=this,le=X*Y,oe=Z*Y;return w.FeatureTest.isCSSRoundSupported?[Math.round(le),Math.round(oe)]:[le,oe]}setDims(Y,X){const[Z,le]=this.parentDimensions;this.div.style.width=`${(100*Y/Z).toFixed(2)}%`,this.#i||(this.div.style.height=`${(100*X/le).toFixed(2)}%`),this.#n?.classList.toggle("small",Y<V.SMALL_EDITOR_SIZE||X<V.SMALL_EDITOR_SIZE)}fixDims(){const{style:Y}=this.div,{height:X,width:Z}=Y,le=Z.endsWith("%"),oe=!this.#i&&X.endsWith("%");if(le&&oe)return;const[re,J]=this.parentDimensions;le||(Y.width=`${(100*parseFloat(Z)/re).toFixed(2)}%`),!this.#i&&!oe&&(Y.height=`${(100*parseFloat(X)/J).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#y(){if(this.#a)return;this.#a=document.createElement("div"),this.#a.classList.add("resizers");const Y=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||Y.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const X of Y){const Z=document.createElement("div");this.#a.append(Z),Z.classList.add("resizer",X),Z.addEventListener("pointerdown",this.#C.bind(this,X)),Z.addEventListener("contextmenu",j.noContextMenu)}this.div.prepend(this.#a)}#C(Y,X){X.preventDefault();const{isMac:Z}=w.FeatureTest.platform;if(X.button!==0||X.ctrlKey&&Z)return;const le=this.#T.bind(this,Y),oe=this._isDraggable;this._isDraggable=!1;const re={passive:!0,capture:!0};window.addEventListener("pointermove",le,re);const J=this.x,ue=this.y,me=this.width,fe=this.height,xe=this.parent.div.style.cursor,Te=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(X.target).cursor;const ge=()=>{this._isDraggable=oe,window.removeEventListener("pointerup",ge),window.removeEventListener("blur",ge),window.removeEventListener("pointermove",le,re),this.parent.div.style.cursor=xe,this.div.style.cursor=Te;const Pe=this.x,Se=this.y,Re=this.width,De=this.height;Pe===J&&Se===ue&&Re===me&&De===fe||this.addCommands({cmd:()=>{this.width=Re,this.height=De,this.x=Pe,this.y=Se;const[Le,_e]=this.parentDimensions;this.setDims(Le*Re,_e*De),this.fixAndSetPosition()},undo:()=>{this.width=me,this.height=fe,this.x=J,this.y=ue;const[Le,_e]=this.parentDimensions;this.setDims(Le*me,_e*fe),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",ge),window.addEventListener("blur",ge)}#T(Y,X){const[Z,le]=this.parentDimensions,oe=this.x,re=this.y,J=this.width,ue=this.height,me=V.MIN_SIZE/Z,fe=V.MIN_SIZE/le,xe=Ye=>Math.round(Ye*1e4)/1e4,Te=this.#u(this.rotation),ge=(Ye,He)=>[Te[0]*Ye+Te[2]*He,Te[1]*Ye+Te[3]*He],Pe=this.#u(360-this.rotation),Se=(Ye,He)=>[Pe[0]*Ye+Pe[2]*He,Pe[1]*Ye+Pe[3]*He];let Re,De,Le=!1,_e=!1;switch(Y){case"topLeft":Le=!0,Re=(Ye,He)=>[0,0],De=(Ye,He)=>[Ye,He];break;case"topMiddle":Re=(Ye,He)=>[Ye/2,0],De=(Ye,He)=>[Ye/2,He];break;case"topRight":Le=!0,Re=(Ye,He)=>[Ye,0],De=(Ye,He)=>[0,He];break;case"middleRight":_e=!0,Re=(Ye,He)=>[Ye,He/2],De=(Ye,He)=>[0,He/2];break;case"bottomRight":Le=!0,Re=(Ye,He)=>[Ye,He],De=(Ye,He)=>[0,0];break;case"bottomMiddle":Re=(Ye,He)=>[Ye/2,He],De=(Ye,He)=>[Ye/2,0];break;case"bottomLeft":Le=!0,Re=(Ye,He)=>[0,He],De=(Ye,He)=>[Ye,0];break;case"middleLeft":_e=!0,Re=(Ye,He)=>[0,He/2],De=(Ye,He)=>[Ye,He/2];break}const Be=Re(J,ue),Fe=De(J,ue);let je=ge(...Fe);const ze=xe(oe+je[0]),We=xe(re+je[1]);let Oe=1,ke=1,[Ee,Ae]=this.screenToPageTranslation(X.movementX,X.movementY);if([Ee,Ae]=Se(Ee/Z,Ae/le),Le){const Ye=Math.hypot(J,ue);Oe=ke=Math.max(Math.min(Math.hypot(Fe[0]-Be[0]-Ee,Fe[1]-Be[1]-Ae)/Ye,1/J,1/ue),me/J,fe/ue)}else _e?Oe=Math.max(me,Math.min(1,Math.abs(Fe[0]-Be[0]-Ee)))/J:ke=Math.max(fe,Math.min(1,Math.abs(Fe[1]-Be[1]-Ae)))/ue;const Ve=xe(J*Oe),Xe=xe(ue*ke);je=ge(...De(Ve,Xe));const nt=ze-je[0],tt=We-je[1];this.width=Ve,this.height=Xe,this.x=nt,this.y=tt,this.setDims(Z*Ve,le*Xe),this.fixAndSetPosition()}async addAltTextButton(){if(this.#n)return;const Y=this.#n=document.createElement("button");Y.className="altText";const X=await V._l10nPromise.get("editor_alt_text_button_label");Y.textContent=X,Y.setAttribute("aria-label",X),Y.tabIndex="0",Y.addEventListener("contextmenu",j.noContextMenu),Y.addEventListener("pointerdown",Z=>Z.stopPropagation()),Y.addEventListener("click",Z=>{Z.preventDefault(),this._uiManager.editAltText(this)},{capture:!0}),Y.addEventListener("keydown",Z=>{Z.target===Y&&Z.key==="Enter"&&(Z.preventDefault(),this._uiManager.editAltText(this))}),this.#_(),this.div.append(Y),V.SMALL_EDITOR_SIZE||(V.SMALL_EDITOR_SIZE=Math.min(128,Math.round(Y.getBoundingClientRect().width*1.4)))}async#_(){const Y=this.#n;if(!Y)return;if(!this.#e&&!this.#t){Y.classList.remove("done"),this.#r?.remove();return}V._l10nPromise.get("editor_alt_text_edit_button_label").then(Z=>{Y.setAttribute("aria-label",Z)});let X=this.#r;if(!X){this.#r=X=document.createElement("span"),X.className="tooltip",X.setAttribute("role","tooltip");const Z=X.id=`alt-text-tooltip-${this.id}`;Y.setAttribute("aria-describedby",Z);const le=100;Y.addEventListener("mouseenter",()=>{this.#s=setTimeout(()=>{this.#s=null,this.#r.classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})},le)}),Y.addEventListener("mouseleave",()=>{clearTimeout(this.#s),this.#s=null,this.#r?.classList.remove("show")})}Y.classList.add("done"),X.innerText=this.#t?await V._l10nPromise.get("editor_alt_text_decorative_tooltip"):this.#e,X.parentNode||Y.append(X)}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:this.#e,decorative:this.#t}}set altTextData({altText:Y,decorative:X}){this.#e===Y&&this.#t===X||(this.#e=Y,this.#t=X,this.#_())}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",this.#l),this.div.addEventListener("focusout",this.#c);const[Y,X]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*X/Y).toFixed(2)}%`,this.div.style.maxHeight=`${(100*Y/X).toFixed(2)}%`);const[Z,le]=this.getInitialTranslation();return this.translate(Z,le),(0,x.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(Y){const{isMac:X}=w.FeatureTest.platform;if(Y.button!==0||Y.ctrlKey&&X){Y.preventDefault();return}this.#o=!0,this.#$(Y)}#$(Y){if(!this._isDraggable)return;const X=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let Z,le;X&&(Z={passive:!0,capture:!0},le=re=>{const[J,ue]=this.screenToPageTranslation(re.movementX,re.movementY);this._uiManager.dragSelectedEditors(J,ue)},window.addEventListener("pointermove",le,Z));const oe=()=>{if(window.removeEventListener("pointerup",oe),window.removeEventListener("blur",oe),X&&window.removeEventListener("pointermove",le,Z),this.#o=!1,!this._uiManager.endDragSession()){const{isMac:re}=w.FeatureTest.platform;Y.ctrlKey&&!re||Y.shiftKey||Y.metaKey&&re?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",oe),window.addEventListener("blur",oe)}moveInDOM(){this.parent?.moveEditorInDOM(this)}_setParentAndPosition(Y,X,Z){Y.changeParent(this),this.x=X,this.y=Z,this.fixAndSetPosition()}getRect(Y,X){const Z=this.parentScale,[le,oe]=this.pageDimensions,[re,J]=this.pageTranslation,ue=Y/Z,me=X/Z,fe=this.x*le,xe=this.y*oe,Te=this.width*le,ge=this.height*oe;switch(this.rotation){case 0:return[fe+ue+re,oe-xe-me-ge+J,fe+ue+Te+re,oe-xe-me+J];case 90:return[fe+me+re,oe-xe+ue+J,fe+me+ge+re,oe-xe+ue+Te+J];case 180:return[fe-ue-Te+re,oe-xe+me+J,fe-ue+re,oe-xe+me+ge+J];case 270:return[fe-me-ge+re,oe-xe-ue-Te+J,fe-me+re,oe-xe-ue+J];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(Y,X){const[Z,le,oe,re]=Y,J=oe-Z,ue=re-le;switch(this.rotation){case 0:return[Z,X-re,J,ue];case 90:return[Z,X-le,ue,J];case 180:return[oe,X-le,J,ue];case 270:return[oe,X-re,ue,J];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#d=!0}disableEditMode(){this.#d=!1}isInEditMode(){return this.#d}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#l),this.div?.addEventListener("focusout",this.#c)}serialize(Y=!1,X=null){(0,w.unreachable)("An editor must be serializable")}static deserialize(Y,X,Z){const le=new this.prototype.constructor({parent:X,id:X.getNextId(),uiManager:Z});le.rotation=Y.rotation;const[oe,re]=le.pageDimensions,[J,ue,me,fe]=le.getRectInCurrentCoords(Y.rect,re);return le.x=J/oe,le.y=ue/re,le.width=me/oe,le.height=fe/re,le}remove(){this.div.removeEventListener("focusin",this.#l),this.div.removeEventListener("focusout",this.#c),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#n?.remove(),this.#n=null,this.#r=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#y(),this.#a.classList.remove("hidden"))}select(){this.makeResizable(),this.div?.classList.add("selectedEditor")}unselect(){this.#a?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(Y,X){}disableEditing(){this.#n&&(this.#n.hidden=!0)}enableEditing(){this.#n&&(this.#n.hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return this.#f}set isEditing(Y){this.#f=Y,this.parent&&(Y?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(Y,X){this.#i=!0;const Z=Y/X,{style:le}=this.div;le.aspectRatio=Z,le.height="auto"}static get MIN_SIZE(){return 16}}s.AnnotationEditor=V;class W extends V{constructor(Y){super(Y),this.annotationElementId=Y.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.KeyboardManager=s.CommandManager=s.ColorManager=s.AnnotationEditorUIManager=void 0,s.bindEvents=j,s.opacityToHex=V;var x=l(1),w=l(6);function j(oe,re,J){for(const ue of J)re.addEventListener(ue,oe[ue].bind(oe))}function V(oe){return Math.round(Math.min(255,Math.max(1,255*oe))).toString(16).padStart(2,"0")}class W{#e=0;getId(){return`${x.AnnotationEditorPrefix}${this.#e++}`}}class U{#e=(0,x.getUuid)();#t=0;#n=null;static get _isSVGFittingCanvas(){const re='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',ue=new OffscreenCanvas(1,3).getContext("2d"),me=new Image;me.src=re;const fe=me.decode().then(()=>(ue.drawImage(me,0,0,1,1,0,0,1,3),new Uint32Array(ue.getImageData(0,0,1,1).data.buffer)[0]===0));return(0,x.shadow)(this,"_isSVGFittingCanvas",fe)}async#r(re,J){this.#n||=new Map;let ue=this.#n.get(re);if(ue===null)return null;if(ue?.bitmap)return ue.refCounter+=1,ue;try{ue||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let me;if(typeof J=="string"){ue.url=J;const fe=await fetch(J);if(!fe.ok)throw new Error(fe.statusText);me=await fe.blob()}else me=ue.file=J;if(me.type==="image/svg+xml"){const fe=U._isSVGFittingCanvas,xe=new FileReader,Te=new Image,ge=new Promise((Pe,Se)=>{Te.onload=()=>{ue.bitmap=Te,ue.isSvg=!0,Pe()},xe.onload=async()=>{const Re=ue.svgUrl=xe.result;Te.src=await fe?`${Re}#svgView(preserveAspectRatio(none))`:Re},Te.onerror=xe.onerror=Se});xe.readAsDataURL(me),await ge}else ue.bitmap=await createImageBitmap(me);ue.refCounter=1}catch(me){console.error(me),ue=null}return this.#n.set(re,ue),ue&&this.#n.set(ue.id,ue),ue}async getFromFile(re){const{lastModified:J,name:ue,size:me,type:fe}=re;return this.#r(`${J}_${ue}_${me}_${fe}`,re)}async getFromUrl(re){return this.#r(re,re)}async getFromId(re){this.#n||=new Map;const J=this.#n.get(re);return J?J.bitmap?(J.refCounter+=1,J):J.file?this.getFromFile(J.file):this.getFromUrl(J.url):null}getSvgUrl(re){const J=this.#n.get(re);return J?.isSvg?J.svgUrl:null}deleteId(re){this.#n||=new Map;const J=this.#n.get(re);J&&(J.refCounter-=1,J.refCounter===0&&(J.bitmap=null))}isValidId(re){return re.startsWith(`image_${this.#e}_`)}}class Y{#e=[];#t=!1;#n;#r=-1;constructor(re=128){this.#n=re}add({cmd:re,undo:J,mustExec:ue,type:me=NaN,overwriteIfSameType:fe=!1,keepUndo:xe=!1}){if(ue&&re(),this.#t)return;const Te={cmd:re,undo:J,type:me};if(this.#r===-1){this.#e.length>0&&(this.#e.length=0),this.#r=0,this.#e.push(Te);return}if(fe&&this.#e[this.#r].type===me){xe&&(Te.undo=this.#e[this.#r].undo),this.#e[this.#r]=Te;return}const ge=this.#r+1;ge===this.#n?this.#e.splice(0,1):(this.#r=ge,ge<this.#e.length&&this.#e.splice(ge)),this.#e.push(Te)}undo(){this.#r!==-1&&(this.#t=!0,this.#e[this.#r].undo(),this.#t=!1,this.#r-=1)}redo(){this.#r<this.#e.length-1&&(this.#r+=1,this.#t=!0,this.#e[this.#r].cmd(),this.#t=!1)}hasSomethingToUndo(){return this.#r!==-1}hasSomethingToRedo(){return this.#r<this.#e.length-1}destroy(){this.#e=null}}s.CommandManager=Y;class X{constructor(re){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:J}=x.FeatureTest.platform;for(const[ue,me,fe={}]of re)for(const xe of ue){const Te=xe.startsWith("mac+");J&&Te?(this.callbacks.set(xe.slice(4),{callback:me,options:fe}),this.allKeys.add(xe.split("+").at(-1))):!J&&!Te&&(this.callbacks.set(xe,{callback:me,options:fe}),this.allKeys.add(xe.split("+").at(-1)))}}#e(re){re.altKey&&this.buffer.push("alt"),re.ctrlKey&&this.buffer.push("ctrl"),re.metaKey&&this.buffer.push("meta"),re.shiftKey&&this.buffer.push("shift"),this.buffer.push(re.key);const J=this.buffer.join("+");return this.buffer.length=0,J}exec(re,J){if(!this.allKeys.has(J.key))return;const ue=this.callbacks.get(this.#e(J));if(!ue)return;const{callback:me,options:{bubbles:fe=!1,args:xe=[],checker:Te=null}}=ue;Te&&!Te(re,J)||(me.bind(re,...xe)(),fe||(J.stopPropagation(),J.preventDefault()))}}s.KeyboardManager=X;class Z{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const re=new Map([["CanvasText",null],["Canvas",null]]);return(0,w.getColorValues)(re),(0,x.shadow)(this,"_colors",re)}convert(re){const J=(0,w.getRGB)(re);if(!window.matchMedia("(forced-colors: active)").matches)return J;for(const[ue,me]of this._colors)if(me.every((fe,xe)=>fe===J[xe]))return Z._colorsMapping.get(ue);return J}getHexCode(re){const J=this._colors.get(re);return J?x.Util.makeHexColor(...J):re}}s.ColorManager=Z;class le{#e=null;#t=new Map;#n=new Map;#r=null;#s=null;#i=new Y;#a=0;#l=new Set;#c=null;#o=null;#f=new Set;#d=null;#p=new W;#h=!1;#v=!1;#g=null;#m=x.AnnotationEditorType.NONE;#u=new Set;#y=null;#C=this.blur.bind(this);#T=this.focus.bind(this);#_=this.copy.bind(this);#$=this.cut.bind(this);#O=this.paste.bind(this);#I=this.keydown.bind(this);#N=this.onEditingAction.bind(this);#b=this.onPageChanging.bind(this);#M=this.onScaleChanging.bind(this);#k=this.onRotationChanging.bind(this);#R={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1};#x=[0,0];#E=null;#P=null;#L=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const re=le.prototype,J=fe=>{const{activeElement:xe}=document;return xe&&fe.#P.contains(xe)&&fe.hasSomethingToControl()},ue=this.TRANSLATE_SMALL,me=this.TRANSLATE_BIG;return(0,x.shadow)(this,"_keyboardManager",new X([[["ctrl+a","mac+meta+a"],re.selectAll],[["ctrl+z","mac+meta+z"],re.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],re.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],re.delete],[["Escape","mac+Escape"],re.unselectAll],[["ArrowLeft","mac+ArrowLeft"],re.translateSelectedEditors,{args:[-ue,0],checker:J}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],re.translateSelectedEditors,{args:[-me,0],checker:J}],[["ArrowRight","mac+ArrowRight"],re.translateSelectedEditors,{args:[ue,0],checker:J}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],re.translateSelectedEditors,{args:[me,0],checker:J}],[["ArrowUp","mac+ArrowUp"],re.translateSelectedEditors,{args:[0,-ue],checker:J}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],re.translateSelectedEditors,{args:[0,-me],checker:J}],[["ArrowDown","mac+ArrowDown"],re.translateSelectedEditors,{args:[0,ue],checker:J}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],re.translateSelectedEditors,{args:[0,me],checker:J}]]))}constructor(re,J,ue,me,fe,xe){this.#P=re,this.#L=J,this.#r=ue,this._eventBus=me,this._eventBus._on("editingaction",this.#N),this._eventBus._on("pagechanging",this.#b),this._eventBus._on("scalechanging",this.#M),this._eventBus._on("rotationchanging",this.#k),this.#s=fe.annotationStorage,this.#d=fe.filterFactory,this.#y=xe,this.viewParameters={realScale:w.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){this.#A(),this.#B(),this._eventBus._off("editingaction",this.#N),this._eventBus._off("pagechanging",this.#b),this._eventBus._off("scalechanging",this.#M),this._eventBus._off("rotationchanging",this.#k);for(const re of this.#n.values())re.destroy();this.#n.clear(),this.#t.clear(),this.#f.clear(),this.#e=null,this.#u.clear(),this.#i.destroy(),this.#r.destroy()}get hcmFilter(){return(0,x.shadow)(this,"hcmFilter",this.#y?this.#d.addHCMFilter(this.#y.foreground,this.#y.background):"none")}get direction(){return(0,x.shadow)(this,"direction",getComputedStyle(this.#P).direction)}editAltText(re){this.#r?.editAltText(this,re)}onPageChanging({pageNumber:re}){this.#a=re-1}focusMainContainer(){this.#P.focus()}findParent(re,J){for(const ue of this.#n.values()){const{x:me,y:fe,width:xe,height:Te}=ue.div.getBoundingClientRect();if(re>=me&&re<=me+xe&&J>=fe&&J<=fe+Te)return ue}return null}disableUserSelect(re=!1){this.#L.classList.toggle("noUserSelect",re)}addShouldRescale(re){this.#f.add(re)}removeShouldRescale(re){this.#f.delete(re)}onScaleChanging({scale:re}){this.commitOrRemove(),this.viewParameters.realScale=re*w.PixelsPerInch.PDF_TO_CSS_UNITS;for(const J of this.#f)J.onScaleChanging()}onRotationChanging({pagesRotation:re}){this.commitOrRemove(),this.viewParameters.rotation=re}addToAnnotationStorage(re){!re.isEmpty()&&this.#s&&!this.#s.has(re.id)&&this.#s.setValue(re.id,re)}#F(){window.addEventListener("focus",this.#T),window.addEventListener("blur",this.#C)}#B(){window.removeEventListener("focus",this.#T),window.removeEventListener("blur",this.#C)}blur(){if(!this.hasSelection)return;const{activeElement:re}=document;for(const J of this.#u)if(J.div.contains(re)){this.#g=[J,re],J._focusEventsAllowed=!1;break}}focus(){if(!this.#g)return;const[re,J]=this.#g;this.#g=null,J.addEventListener("focusin",()=>{re._focusEventsAllowed=!0},{once:!0}),J.focus()}#j(){window.addEventListener("keydown",this.#I,{capture:!0})}#A(){window.removeEventListener("keydown",this.#I,{capture:!0})}#D(){document.addEventListener("copy",this.#_),document.addEventListener("cut",this.#$),document.addEventListener("paste",this.#O)}#S(){document.removeEventListener("copy",this.#_),document.removeEventListener("cut",this.#$),document.removeEventListener("paste",this.#O)}addEditListeners(){this.#j(),this.#D()}removeEditListeners(){this.#A(),this.#S()}copy(re){if(re.preventDefault(),this.#e?.commitOrRemove(),!this.hasSelection)return;const J=[];for(const ue of this.#u){const me=ue.serialize(!0);me&&J.push(me)}J.length!==0&&re.clipboardData.setData("application/pdfjs",JSON.stringify(J))}cut(re){this.copy(re),this.delete()}paste(re){re.preventDefault();const{clipboardData:J}=re;for(const fe of J.items)for(const xe of this.#o)if(xe.isHandlingMimeForPasting(fe.type)){xe.paste(fe,this.currentLayer);return}let ue=J.getData("application/pdfjs");if(!ue)return;try{ue=JSON.parse(ue)}catch(fe){(0,x.warn)(`paste: "${fe.message}".`);return}if(!Array.isArray(ue))return;this.unselectAll();const me=this.currentLayer;try{const fe=[];for(const ge of ue){const Pe=me.deserialize(ge);if(!Pe)return;fe.push(Pe)}const xe=()=>{for(const ge of fe)this.#H(ge);this.#W(fe)},Te=()=>{for(const ge of fe)ge.remove()};this.addCommands({cmd:xe,undo:Te,mustExec:!0})}catch(fe){(0,x.warn)(`paste: "${fe.message}".`)}}keydown(re){this.getActive()?.shouldGetKeyboardEvents()||le._keyboardManager.exec(this,re)}onEditingAction(re){["undo","redo","delete","selectAll"].includes(re.name)&&this[re.name]()}#w(re){Object.entries(re).some(([ue,me])=>this.#R[ue]!==me)&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#R,re)})}#z(re){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:re})}setEditingState(re){re?(this.#F(),this.#j(),this.#D(),this.#w({isEditing:this.#m!==x.AnnotationEditorType.NONE,isEmpty:this.#V(),hasSomethingToUndo:this.#i.hasSomethingToUndo(),hasSomethingToRedo:this.#i.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#B(),this.#A(),this.#S(),this.#w({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(re){if(!this.#o){this.#o=re;for(const J of this.#o)this.#z(J.defaultPropertiesToUpdate)}}getId(){return this.#p.getId()}get currentLayer(){return this.#n.get(this.#a)}getLayer(re){return this.#n.get(re)}get currentPageIndex(){return this.#a}addLayer(re){this.#n.set(re.pageIndex,re),this.#h?re.enable():re.disable()}removeLayer(re){this.#n.delete(re.pageIndex)}updateMode(re,J=null){if(this.#m!==re){if(this.#m=re,re===x.AnnotationEditorType.NONE){this.setEditingState(!1),this.#Y();return}this.setEditingState(!0),this.#U(),this.unselectAll();for(const ue of this.#n.values())ue.updateMode(re);if(J){for(const ue of this.#t.values())if(ue.annotationElementId===J){this.setSelected(ue),ue.enterInEditMode();break}}}}updateToolbar(re){re!==this.#m&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:re})}updateParams(re,J){if(this.#o){if(re===x.AnnotationEditorParamsType.CREATE){this.currentLayer.addNewEditor(re);return}for(const ue of this.#u)ue.updateParams(re,J);for(const ue of this.#o)ue.updateDefaultParams(re,J)}}enableWaiting(re=!1){if(this.#v!==re){this.#v=re;for(const J of this.#n.values())re?J.disableClick():J.enableClick(),J.div.classList.toggle("waiting",re)}}#U(){if(!this.#h){this.#h=!0;for(const re of this.#n.values())re.enable()}}#Y(){if(this.unselectAll(),this.#h){this.#h=!1;for(const re of this.#n.values())re.disable()}}getEditors(re){const J=[];for(const ue of this.#t.values())ue.pageIndex===re&&J.push(ue);return J}getEditor(re){return this.#t.get(re)}addEditor(re){this.#t.set(re.id,re)}removeEditor(re){this.#t.delete(re.id),this.unselect(re),(!re.annotationElementId||!this.#l.has(re.annotationElementId))&&this.#s?.remove(re.id)}addDeletedAnnotationElement(re){this.#l.add(re.annotationElementId),re.deleted=!0}isDeletedAnnotationElement(re){return this.#l.has(re)}removeDeletedAnnotationElement(re){this.#l.delete(re.annotationElementId),re.deleted=!1}#H(re){const J=this.#n.get(re.pageIndex);J?J.addOrRebuild(re):this.addEditor(re)}setActiveEditor(re){this.#e!==re&&(this.#e=re,re&&this.#z(re.propertiesToUpdate))}toggleSelected(re){if(this.#u.has(re)){this.#u.delete(re),re.unselect(),this.#w({hasSelectedEditor:this.hasSelection});return}this.#u.add(re),re.select(),this.#z(re.propertiesToUpdate),this.#w({hasSelectedEditor:!0})}setSelected(re){for(const J of this.#u)J!==re&&J.unselect();this.#u.clear(),this.#u.add(re),re.select(),this.#z(re.propertiesToUpdate),this.#w({hasSelectedEditor:!0})}isSelected(re){return this.#u.has(re)}unselect(re){re.unselect(),this.#u.delete(re),this.#w({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#u.size!==0}undo(){this.#i.undo(),this.#w({hasSomethingToUndo:this.#i.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#V()})}redo(){this.#i.redo(),this.#w({hasSomethingToUndo:!0,hasSomethingToRedo:this.#i.hasSomethingToRedo(),isEmpty:this.#V()})}addCommands(re){this.#i.add(re),this.#w({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#V()})}#V(){if(this.#t.size===0)return!0;if(this.#t.size===1)for(const re of this.#t.values())return re.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const re=[...this.#u],J=()=>{for(const me of re)me.remove()},ue=()=>{for(const me of re)this.#H(me)};this.addCommands({cmd:J,undo:ue,mustExec:!0})}commitOrRemove(){this.#e?.commitOrRemove()}hasSomethingToControl(){return this.#e||this.hasSelection}#W(re){this.#u.clear();for(const J of re)J.isEmpty()||(this.#u.add(J),J.select());this.#w({hasSelectedEditor:!0})}selectAll(){for(const re of this.#u)re.commit();this.#W(this.#t.values())}unselectAll(){if(this.#e){this.#e.commitOrRemove();return}if(this.hasSelection){for(const re of this.#u)re.unselect();this.#u.clear(),this.#w({hasSelectedEditor:!1})}}translateSelectedEditors(re,J,ue=!1){if(ue||this.commitOrRemove(),!this.hasSelection)return;this.#x[0]+=re,this.#x[1]+=J;const[me,fe]=this.#x,xe=[...this.#u],Te=1e3;this.#E&&clearTimeout(this.#E),this.#E=setTimeout(()=>{this.#E=null,this.#x[0]=this.#x[1]=0,this.addCommands({cmd:()=>{for(const ge of xe)this.#t.has(ge.id)&&ge.translateInPage(me,fe)},undo:()=>{for(const ge of xe)this.#t.has(ge.id)&&ge.translateInPage(-me,-fe)},mustExec:!1})},Te);for(const ge of xe)ge.translateInPage(re,J)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#c=new Map;for(const re of this.#u)this.#c.set(re,{savedX:re.x,savedY:re.y,savedPageIndex:re.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#c)return!1;this.disableUserSelect(!1);const re=this.#c;this.#c=null;let J=!1;for(const[{x:me,y:fe,pageIndex:xe},Te]of re)Te.newX=me,Te.newY=fe,Te.newPageIndex=xe,J||=me!==Te.savedX||fe!==Te.savedY||xe!==Te.savedPageIndex;if(!J)return!1;const ue=(me,fe,xe,Te)=>{if(this.#t.has(me.id)){const ge=this.#n.get(Te);ge?me._setParentAndPosition(ge,fe,xe):(me.pageIndex=Te,me.x=fe,me.y=xe)}};return this.addCommands({cmd:()=>{for(const[me,{newX:fe,newY:xe,newPageIndex:Te}]of re)ue(me,fe,xe,Te)},undo:()=>{for(const[me,{savedX:fe,savedY:xe,savedPageIndex:Te}]of re)ue(me,fe,xe,Te)},mustExec:!0}),!0}dragSelectedEditors(re,J){if(this.#c)for(const ue of this.#c.keys())ue.drag(re,J)}rebuild(re){if(re.parent===null){const J=this.getLayer(re.pageIndex);J?(J.changeParent(re),J.addOrRebuild(re)):(this.addEditor(re),this.addToAnnotationStorage(re),re.rebuild())}else re.parent.addOrRebuild(re)}isActive(re){return this.#e===re}getActive(){return this.#e}getMode(){return this.#m}get imageManager(){return(0,x.shadow)(this,"imageManager",new U)}}s.AnnotationEditorUIManager=le},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.StatTimer=s.RenderingCancelledException=s.PixelsPerInch=s.PageViewport=s.PDFDateString=s.DOMStandardFontDataFactory=s.DOMSVGFactory=s.DOMFilterFactory=s.DOMCanvasFactory=s.DOMCMapReaderFactory=void 0,s.deprecated=Se,s.getColorValues=Be,s.getCurrentTransform=Fe,s.getCurrentTransformInverse=je,s.getFilenameFromUrl=me,s.getPdfFilenameFromUrl=fe,s.getRGB=_e,s.getXfaPageViewport=Le,s.isDataScheme=J,s.isPdfFile=ue,s.isValidFetchUrl=Te,s.loadScript=Pe,s.noContextMenu=ge,s.setLayerDimensions=ze;var x=l(7),w=l(1);const j="http://www.w3.org/2000/svg";class V{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}s.PixelsPerInch=V;class W extends x.BaseFilterFactory{#e;#t;#n;#r;#s;#i;#a;#l;#c;#o;#f=0;constructor({docId:Oe,ownerDocument:ke=globalThis.document}={}){super(),this.#n=Oe,this.#r=ke}get#d(){return this.#e||=new Map}get#p(){if(!this.#t){const Oe=this.#r.createElement("div"),{style:ke}=Oe;ke.visibility="hidden",ke.contain="strict",ke.width=ke.height=0,ke.position="absolute",ke.top=ke.left=0,ke.zIndex=-1;const Ee=this.#r.createElementNS(j,"svg");Ee.setAttribute("width",0),Ee.setAttribute("height",0),this.#t=this.#r.createElementNS(j,"defs"),Oe.append(Ee),Ee.append(this.#t),this.#r.body.append(Oe)}return this.#t}addFilter(Oe){if(!Oe)return"none";let ke=this.#d.get(Oe);if(ke)return ke;let Ee,Ae,Ve,Xe;if(Oe.length===1){const He=Oe[0],Ge=new Array(256);for(let rt=0;rt<256;rt++)Ge[rt]=He[rt]/255;Xe=Ee=Ae=Ve=Ge.join(",")}else{const[He,Ge,rt]=Oe,dt=new Array(256),vt=new Array(256),yt=new Array(256);for(let ut=0;ut<256;ut++)dt[ut]=He[ut]/255,vt[ut]=Ge[ut]/255,yt[ut]=rt[ut]/255;Ee=dt.join(","),Ae=vt.join(","),Ve=yt.join(","),Xe=`${Ee}${Ae}${Ve}`}if(ke=this.#d.get(Xe),ke)return this.#d.set(Oe,ke),ke;const nt=`g_${this.#n}_transfer_map_${this.#f++}`,tt=`url(#${nt})`;this.#d.set(Oe,tt),this.#d.set(Xe,tt);const Ye=this.#v(nt);return this.#m(Ee,Ae,Ve,Ye),tt}addHCMFilter(Oe,ke){const Ee=`${Oe}-${ke}`;if(this.#i===Ee)return this.#a;if(this.#i=Ee,this.#a="none",this.#s?.remove(),!Oe||!ke)return this.#a;const Ae=this.#u(Oe);Oe=w.Util.makeHexColor(...Ae);const Ve=this.#u(ke);if(ke=w.Util.makeHexColor(...Ve),this.#p.style.color="",Oe==="#000000"&&ke==="#ffffff"||Oe===ke)return this.#a;const Xe=new Array(256);for(let Ge=0;Ge<=255;Ge++){const rt=Ge/255;Xe[Ge]=rt<=.03928?rt/12.92:((rt+.055)/1.055)**2.4}const nt=Xe.join(","),tt=`g_${this.#n}_hcm_filter`,Ye=this.#l=this.#v(tt);this.#m(nt,nt,nt,Ye),this.#h(Ye);const He=(Ge,rt)=>{const dt=Ae[Ge]/255,vt=Ve[Ge]/255,yt=new Array(rt+1);for(let ut=0;ut<=rt;ut++)yt[ut]=dt+ut/rt*(vt-dt);return yt.join(",")};return this.#m(He(0,5),He(1,5),He(2,5),Ye),this.#a=`url(#${tt})`,this.#a}addHighlightHCMFilter(Oe,ke,Ee,Ae){const Ve=`${Oe}-${ke}-${Ee}-${Ae}`;if(this.#c===Ve)return this.#o;if(this.#c=Ve,this.#o="none",this.#l?.remove(),!Oe||!ke)return this.#o;const[Xe,nt]=[Oe,ke].map(this.#u.bind(this));let tt=Math.round(.2126*Xe[0]+.7152*Xe[1]+.0722*Xe[2]),Ye=Math.round(.2126*nt[0]+.7152*nt[1]+.0722*nt[2]),[He,Ge]=[Ee,Ae].map(this.#u.bind(this));Ye<tt&&([tt,Ye,He,Ge]=[Ye,tt,Ge,He]),this.#p.style.color="";const rt=(yt,ut,St)=>{const Nt=new Array(256),Bt=(Ye-tt)/St,zt=yt/255,jt=(ut-yt)/(255*St);let $t=0;for(let Dt=0;Dt<=St;Dt++){const Mt=Math.round(tt+Dt*Bt),Ot=zt+Dt*jt;for(let Vt=$t;Vt<=Mt;Vt++)Nt[Vt]=Ot;$t=Mt+1}for(let Dt=$t;Dt<256;Dt++)Nt[Dt]=Nt[$t-1];return Nt.join(",")},dt=`g_${this.#n}_hcm_highlight_filter`,vt=this.#l=this.#v(dt);return this.#h(vt),this.#m(rt(He[0],Ge[0],5),rt(He[1],Ge[1],5),rt(He[2],Ge[2],5),vt),this.#o=`url(#${dt})`,this.#o}destroy(Oe=!1){Oe&&(this.#a||this.#o)||(this.#t&&(this.#t.parentNode.parentNode.remove(),this.#t=null),this.#e&&(this.#e.clear(),this.#e=null),this.#f=0)}#h(Oe){const ke=this.#r.createElementNS(j,"feColorMatrix");ke.setAttribute("type","matrix"),ke.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),Oe.append(ke)}#v(Oe){const ke=this.#r.createElementNS(j,"filter");return ke.setAttribute("color-interpolation-filters","sRGB"),ke.setAttribute("id",Oe),this.#p.append(ke),ke}#g(Oe,ke,Ee){const Ae=this.#r.createElementNS(j,ke);Ae.setAttribute("type","discrete"),Ae.setAttribute("tableValues",Ee),Oe.append(Ae)}#m(Oe,ke,Ee,Ae){const Ve=this.#r.createElementNS(j,"feComponentTransfer");Ae.append(Ve),this.#g(Ve,"feFuncR",Oe),this.#g(Ve,"feFuncG",ke),this.#g(Ve,"feFuncB",Ee)}#u(Oe){return this.#p.style.color=Oe,_e(getComputedStyle(this.#p).getPropertyValue("color"))}}s.DOMFilterFactory=W;class U extends x.BaseCanvasFactory{constructor({ownerDocument:Oe=globalThis.document}={}){super(),this._document=Oe}_createCanvas(Oe,ke){const Ee=this._document.createElement("canvas");return Ee.width=Oe,Ee.height=ke,Ee}}s.DOMCanvasFactory=U;async function Y(We,Oe=!1){if(Te(We,document.baseURI)){const ke=await fetch(We);if(!ke.ok)throw new Error(ke.statusText);return Oe?new Uint8Array(await ke.arrayBuffer()):(0,w.stringToBytes)(await ke.text())}return new Promise((ke,Ee)=>{const Ae=new XMLHttpRequest;Ae.open("GET",We,!0),Oe&&(Ae.responseType="arraybuffer"),Ae.onreadystatechange=()=>{if(Ae.readyState===XMLHttpRequest.DONE){if(Ae.status===200||Ae.status===0){let Ve;if(Oe&&Ae.response?Ve=new Uint8Array(Ae.response):!Oe&&Ae.responseText&&(Ve=(0,w.stringToBytes)(Ae.responseText)),Ve){ke(Ve);return}}Ee(new Error(Ae.statusText))}},Ae.send(null)})}class X extends x.BaseCMapReaderFactory{_fetchData(Oe,ke){return Y(Oe,this.isCompressed).then(Ee=>({cMapData:Ee,compressionType:ke}))}}s.DOMCMapReaderFactory=X;class Z extends x.BaseStandardFontDataFactory{_fetchData(Oe){return Y(Oe,!0)}}s.DOMStandardFontDataFactory=Z;class le extends x.BaseSVGFactory{_createSVG(Oe){return document.createElementNS(j,Oe)}}s.DOMSVGFactory=le;class oe{constructor({viewBox:Oe,scale:ke,rotation:Ee,offsetX:Ae=0,offsetY:Ve=0,dontFlip:Xe=!1}){this.viewBox=Oe,this.scale=ke,this.rotation=Ee,this.offsetX=Ae,this.offsetY=Ve;const nt=(Oe[2]+Oe[0])/2,tt=(Oe[3]+Oe[1])/2;let Ye,He,Ge,rt;switch(Ee%=360,Ee<0&&(Ee+=360),Ee){case 180:Ye=-1,He=0,Ge=0,rt=1;break;case 90:Ye=0,He=1,Ge=1,rt=0;break;case 270:Ye=0,He=-1,Ge=-1,rt=0;break;case 0:Ye=1,He=0,Ge=0,rt=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}Xe&&(Ge=-Ge,rt=-rt);let dt,vt,yt,ut;Ye===0?(dt=Math.abs(tt-Oe[1])*ke+Ae,vt=Math.abs(nt-Oe[0])*ke+Ve,yt=(Oe[3]-Oe[1])*ke,ut=(Oe[2]-Oe[0])*ke):(dt=Math.abs(nt-Oe[0])*ke+Ae,vt=Math.abs(tt-Oe[1])*ke+Ve,yt=(Oe[2]-Oe[0])*ke,ut=(Oe[3]-Oe[1])*ke),this.transform=[Ye*ke,He*ke,Ge*ke,rt*ke,dt-Ye*ke*nt-Ge*ke*tt,vt-He*ke*nt-rt*ke*tt],this.width=yt,this.height=ut}get rawDims(){const{viewBox:Oe}=this;return(0,w.shadow)(this,"rawDims",{pageWidth:Oe[2]-Oe[0],pageHeight:Oe[3]-Oe[1],pageX:Oe[0],pageY:Oe[1]})}clone({scale:Oe=this.scale,rotation:ke=this.rotation,offsetX:Ee=this.offsetX,offsetY:Ae=this.offsetY,dontFlip:Ve=!1}={}){return new oe({viewBox:this.viewBox.slice(),scale:Oe,rotation:ke,offsetX:Ee,offsetY:Ae,dontFlip:Ve})}convertToViewportPoint(Oe,ke){return w.Util.applyTransform([Oe,ke],this.transform)}convertToViewportRectangle(Oe){const ke=w.Util.applyTransform([Oe[0],Oe[1]],this.transform),Ee=w.Util.applyTransform([Oe[2],Oe[3]],this.transform);return[ke[0],ke[1],Ee[0],Ee[1]]}convertToPdfPoint(Oe,ke){return w.Util.applyInverseTransform([Oe,ke],this.transform)}}s.PageViewport=oe;class re extends w.BaseException{constructor(Oe,ke=0){super(Oe,"RenderingCancelledException"),this.extraDelay=ke}}s.RenderingCancelledException=re;function J(We){const Oe=We.length;let ke=0;for(;ke<Oe&&We[ke].trim()==="";)ke++;return We.substring(ke,ke+5).toLowerCase()==="data:"}function ue(We){return typeof We=="string"&&/\.pdf$/i.test(We)}function me(We,Oe=!1){return Oe||([We]=We.split(/[#?]/,1)),We.substring(We.lastIndexOf("/")+1)}function fe(We,Oe="document.pdf"){if(typeof We!="string")return Oe;if(J(We))return(0,w.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),Oe;const ke=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,Ee=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,Ae=ke.exec(We);let Ve=Ee.exec(Ae[1])||Ee.exec(Ae[2])||Ee.exec(Ae[3]);if(Ve&&(Ve=Ve[0],Ve.includes("%")))try{Ve=Ee.exec(decodeURIComponent(Ve))[0]}catch{}return Ve||Oe}class xe{started=Object.create(null);times=[];time(Oe){Oe in this.started&&(0,w.warn)(`Timer is already running for ${Oe}`),this.started[Oe]=Date.now()}timeEnd(Oe){Oe in this.started||(0,w.warn)(`Timer has not been started for ${Oe}`),this.times.push({name:Oe,start:this.started[Oe],end:Date.now()}),delete this.started[Oe]}toString(){const Oe=[];let ke=0;for(const{name:Ee}of this.times)ke=Math.max(Ee.length,ke);for(const{name:Ee,start:Ae,end:Ve}of this.times)Oe.push(`${Ee.padEnd(ke)} ${Ve-Ae}ms
|
|
1481
1481
|
`);return Oe.join("")}}s.StatTimer=xe;function Te(We,Oe){try{const{protocol:ke}=Oe?new URL(We,Oe):new URL(We);return ke==="http:"||ke==="https:"}catch{return!1}}function ge(We){We.preventDefault()}function Pe(We,Oe=!1){return new Promise((ke,Ee)=>{const Ae=document.createElement("script");Ae.src=We,Ae.onload=function(Ve){Oe&&Ae.remove(),ke(Ve)},Ae.onerror=function(){Ee(new Error(`Cannot load script at: ${Ae.src}`))},(document.head||document.documentElement).append(Ae)})}function Se(We){console.log("Deprecated API usage: "+We)}let Re;class De{static toDateObject(Oe){if(!Oe||typeof Oe!="string")return null;Re||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const ke=Re.exec(Oe);if(!ke)return null;const Ee=parseInt(ke[1],10);let Ae=parseInt(ke[2],10);Ae=Ae>=1&&Ae<=12?Ae-1:0;let Ve=parseInt(ke[3],10);Ve=Ve>=1&&Ve<=31?Ve:1;let Xe=parseInt(ke[4],10);Xe=Xe>=0&&Xe<=23?Xe:0;let nt=parseInt(ke[5],10);nt=nt>=0&&nt<=59?nt:0;let tt=parseInt(ke[6],10);tt=tt>=0&&tt<=59?tt:0;const Ye=ke[7]||"Z";let He=parseInt(ke[8],10);He=He>=0&&He<=23?He:0;let Ge=parseInt(ke[9],10)||0;return Ge=Ge>=0&&Ge<=59?Ge:0,Ye==="-"?(Xe+=He,nt+=Ge):Ye==="+"&&(Xe-=He,nt-=Ge),new Date(Date.UTC(Ee,Ae,Ve,Xe,nt,tt))}}s.PDFDateString=De;function Le(We,{scale:Oe=1,rotation:ke=0}){const{width:Ee,height:Ae}=We.attributes.style,Ve=[0,0,parseInt(Ee),parseInt(Ae)];return new oe({viewBox:Ve,scale:Oe,rotation:ke})}function _e(We){if(We.startsWith("#")){const Oe=parseInt(We.slice(1),16);return[(Oe&16711680)>>16,(Oe&65280)>>8,Oe&255]}return We.startsWith("rgb(")?We.slice(4,-1).split(",").map(Oe=>parseInt(Oe)):We.startsWith("rgba(")?We.slice(5,-1).split(",").map(Oe=>parseInt(Oe)).slice(0,3):((0,w.warn)(`Not a valid color format: "${We}"`),[0,0,0])}function Be(We){const Oe=document.createElement("span");Oe.style.visibility="hidden",document.body.append(Oe);for(const ke of We.keys()){Oe.style.color=ke;const Ee=window.getComputedStyle(Oe).color;We.set(ke,_e(Ee))}Oe.remove()}function Fe(We){const{a:Oe,b:ke,c:Ee,d:Ae,e:Ve,f:Xe}=We.getTransform();return[Oe,ke,Ee,Ae,Ve,Xe]}function je(We){const{a:Oe,b:ke,c:Ee,d:Ae,e:Ve,f:Xe}=We.getTransform().invertSelf();return[Oe,ke,Ee,Ae,Ve,Xe]}function ze(We,Oe,ke=!1,Ee=!0){if(Oe instanceof oe){const{pageWidth:Ae,pageHeight:Ve}=Oe.rawDims,{style:Xe}=We,nt=w.FeatureTest.isCSSRoundSupported,tt=`var(--scale-factor) * ${Ae}px`,Ye=`var(--scale-factor) * ${Ve}px`,He=nt?`round(${tt}, 1px)`:`calc(${tt})`,Ge=nt?`round(${Ye}, 1px)`:`calc(${Ye})`;!ke||Oe.rotation%180===0?(Xe.width=He,Xe.height=Ge):(Xe.width=Ge,Xe.height=He)}Ee&&We.setAttribute("data-main-rotation",Oe.rotation)}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BaseStandardFontDataFactory=s.BaseSVGFactory=s.BaseFilterFactory=s.BaseCanvasFactory=s.BaseCMapReaderFactory=void 0;var x=l(1);class w{constructor(){this.constructor===w&&(0,x.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(X){return"none"}addHCMFilter(X,Z){return"none"}addHighlightHCMFilter(X,Z,le,oe){return"none"}destroy(X=!1){}}s.BaseFilterFactory=w;class j{constructor(){this.constructor===j&&(0,x.unreachable)("Cannot initialize BaseCanvasFactory.")}create(X,Z){if(X<=0||Z<=0)throw new Error("Invalid canvas size");const le=this._createCanvas(X,Z);return{canvas:le,context:le.getContext("2d")}}reset(X,Z,le){if(!X.canvas)throw new Error("Canvas is not specified");if(Z<=0||le<=0)throw new Error("Invalid canvas size");X.canvas.width=Z,X.canvas.height=le}destroy(X){if(!X.canvas)throw new Error("Canvas is not specified");X.canvas.width=0,X.canvas.height=0,X.canvas=null,X.context=null}_createCanvas(X,Z){(0,x.unreachable)("Abstract method `_createCanvas` called.")}}s.BaseCanvasFactory=j;class V{constructor({baseUrl:X=null,isCompressed:Z=!0}){this.constructor===V&&(0,x.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=X,this.isCompressed=Z}async fetch({name:X}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!X)throw new Error("CMap name must be specified.");const Z=this.baseUrl+X+(this.isCompressed?".bcmap":""),le=this.isCompressed?x.CMapCompressionType.BINARY:x.CMapCompressionType.NONE;return this._fetchData(Z,le).catch(oe=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${Z}`)})}_fetchData(X,Z){(0,x.unreachable)("Abstract method `_fetchData` called.")}}s.BaseCMapReaderFactory=V;class W{constructor({baseUrl:X=null}){this.constructor===W&&(0,x.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=X}async fetch({filename:X}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!X)throw new Error("Font filename must be specified.");const Z=`${this.baseUrl}${X}`;return this._fetchData(Z).catch(le=>{throw new Error(`Unable to load font data at: ${Z}`)})}_fetchData(X){(0,x.unreachable)("Abstract method `_fetchData` called.")}}s.BaseStandardFontDataFactory=W;class U{constructor(){this.constructor===U&&(0,x.unreachable)("Cannot initialize BaseSVGFactory.")}create(X,Z,le=!1){if(X<=0||Z<=0)throw new Error("Invalid SVG dimensions");const oe=this._createSVG("svg:svg");return oe.setAttribute("version","1.1"),le||(oe.setAttribute("width",`${X}px`),oe.setAttribute("height",`${Z}px`)),oe.setAttribute("preserveAspectRatio","none"),oe.setAttribute("viewBox",`0 0 ${X} ${Z}`),oe}createElement(X){if(typeof X!="string")throw new Error("Invalid SVG element type");return this._createSVG(X)}_createSVG(X){(0,x.unreachable)("Abstract method `_createSVG` called.")}}s.BaseSVGFactory=U},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MurmurHash3_64=void 0;var x=l(1);const w=3285377520,j=4294901760,V=65535;class W{constructor(Y){this.h1=Y?Y&4294967295:w,this.h2=Y?Y&4294967295:w}update(Y){let X,Z;if(typeof Y=="string"){X=new Uint8Array(Y.length*2),Z=0;for(let Se=0,Re=Y.length;Se<Re;Se++){const De=Y.charCodeAt(Se);De<=255?X[Z++]=De:(X[Z++]=De>>>8,X[Z++]=De&255)}}else if((0,x.isArrayBuffer)(Y))X=Y.slice(),Z=X.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const le=Z>>2,oe=Z-le*4,re=new Uint32Array(X.buffer,0,le);let J=0,ue=0,me=this.h1,fe=this.h2;const xe=3432918353,Te=461845907,ge=xe&V,Pe=Te&V;for(let Se=0;Se<le;Se++)Se&1?(J=re[Se],J=J*xe&j|J*ge&V,J=J<<15|J>>>17,J=J*Te&j|J*Pe&V,me^=J,me=me<<13|me>>>19,me=me*5+3864292196):(ue=re[Se],ue=ue*xe&j|ue*ge&V,ue=ue<<15|ue>>>17,ue=ue*Te&j|ue*Pe&V,fe^=ue,fe=fe<<13|fe>>>19,fe=fe*5+3864292196);switch(J=0,oe){case 3:J^=X[le*4+2]<<16;case 2:J^=X[le*4+1]<<8;case 1:J^=X[le*4],J=J*xe&j|J*ge&V,J=J<<15|J>>>17,J=J*Te&j|J*Pe&V,le&1?me^=J:fe^=J}this.h1=me,this.h2=fe}hexdigest(){let Y=this.h1,X=this.h2;return Y^=X>>>1,Y=Y*3981806797&j|Y*36045&V,X=X*4283543511&j|((X<<16|Y>>>16)*2950163797&j)>>>16,Y^=X>>>1,Y=Y*444984403&j|Y*60499&V,X=X*3301882366&j|((X<<16|Y>>>16)*3120437893&j)>>>16,Y^=X>>>1,(Y>>>0).toString(16).padStart(8,"0")+(X>>>0).toString(16).padStart(8,"0")}}s.MurmurHash3_64=W},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.FontLoader=s.FontFaceObject=void 0;var x=l(1);class w{#e=new Set;constructor({ownerDocument:W=globalThis.document,styleElement:U=null}){this._document=W,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(W){this.nativeFontFaces.add(W),this._document.fonts.add(W)}removeNativeFontFace(W){this.nativeFontFaces.delete(W),this._document.fonts.delete(W)}insertRule(W){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const U=this.styleElement.sheet;U.insertRule(W,U.cssRules.length)}clear(){for(const W of this.nativeFontFaces)this._document.fonts.delete(W);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(W){if(!(!W||this.#e.has(W.loadedName))){if((0,x.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:U,src:Y,style:X}=W,Z=new FontFace(U,Y,X);this.addNativeFontFace(Z);try{await Z.load(),this.#e.add(U)}catch{(0,x.warn)(`Cannot load system font: ${W.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(Z)}return}(0,x.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(W){if(W.attached||W.missingFile&&!W.systemFontInfo)return;if(W.attached=!0,W.systemFontInfo){await this.loadSystemFont(W.systemFontInfo);return}if(this.isFontLoadingAPISupported){const Y=W.createNativeFontFace();if(Y){this.addNativeFontFace(Y);try{await Y.loaded}catch(X){throw(0,x.warn)(`Failed to load font '${Y.family}': '${X}'.`),W.disableFontFace=!0,X}}return}const U=W.createFontFaceRule();if(U){if(this.insertRule(U),this.isSyncFontLoadingSupported)return;await new Promise(Y=>{const X=this._queueLoadingCallback(Y);this._prepareFontLoadEvent(W,X)})}}get isFontLoadingAPISupported(){const W=!!this._document?.fonts;return(0,x.shadow)(this,"isFontLoadingAPISupported",W)}get isSyncFontLoadingSupported(){let W=!1;return(x.isNodeJS||typeof navigator<"u"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(W=!0),(0,x.shadow)(this,"isSyncFontLoadingSupported",W)}_queueLoadingCallback(W){function U(){for((0,x.assert)(!X.done,"completeRequest() cannot be called twice."),X.done=!0;Y.length>0&&Y[0].done;){const Z=Y.shift();setTimeout(Z.callback,0)}}const{loadingRequests:Y}=this,X={done:!1,complete:U,callback:W};return Y.push(X),X}get _loadTestFont(){const W=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,x.shadow)(this,"_loadTestFont",W)}_prepareFontLoadEvent(W,U){function Y(Le,_e){return Le.charCodeAt(_e)<<24|Le.charCodeAt(_e+1)<<16|Le.charCodeAt(_e+2)<<8|Le.charCodeAt(_e+3)&255}function X(Le,_e,Be,Fe){const je=Le.substring(0,_e),ze=Le.substring(_e+Be);return je+Fe+ze}let Z,le;const oe=this._document.createElement("canvas");oe.width=1,oe.height=1;const re=oe.getContext("2d");let J=0;function ue(Le,_e){if(++J>30){(0,x.warn)("Load test font never loaded."),_e();return}if(re.font="30px "+Le,re.fillText(".",0,20),re.getImageData(0,0,1,1).data[3]>0){_e();return}setTimeout(ue.bind(null,Le,_e))}const me=`lt${Date.now()}${this.loadTestFontId++}`;let fe=this._loadTestFont;fe=X(fe,976,me.length,me);const Te=16,ge=1482184792;let Pe=Y(fe,Te);for(Z=0,le=me.length-3;Z<le;Z+=4)Pe=Pe-ge+Y(me,Z)|0;Z<me.length&&(Pe=Pe-ge+Y(me+"XXX",Z)|0),fe=X(fe,Te,4,(0,x.string32)(Pe));const Se=`url(data:font/opentype;base64,${btoa(fe)});`,Re=`@font-face {font-family:"${me}";src:${Se}}`;this.insertRule(Re);const De=this._document.createElement("div");De.style.visibility="hidden",De.style.width=De.style.height="10px",De.style.position="absolute",De.style.top=De.style.left="0px";for(const Le of[W.loadedName,me]){const _e=this._document.createElement("span");_e.textContent="Hi",_e.style.fontFamily=Le,De.append(_e)}this._document.body.append(De),ue(me,()=>{De.remove(),U.complete()})}}s.FontLoader=w;class j{constructor(W,{isEvalSupported:U=!0,disableFontFace:Y=!1,ignoreErrors:X=!1,inspectFont:Z=null}){this.compiledGlyphs=Object.create(null);for(const le in W)this[le]=W[le];this.isEvalSupported=U!==!1,this.disableFontFace=Y===!0,this.ignoreErrors=X===!0,this._inspectFont=Z}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let W;if(!this.cssFontInfo)W=new FontFace(this.loadedName,this.data,{});else{const U={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(U.style=`oblique ${this.cssFontInfo.italicAngle}deg`),W=new FontFace(this.cssFontInfo.fontFamily,this.data,U)}return this._inspectFont?.(this),W}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const W=(0,x.bytesToString)(this.data),U=`url(data:${this.mimetype};base64,${btoa(W)});`;let Y;if(!this.cssFontInfo)Y=`@font-face {font-family:"${this.loadedName}";src:${U}}`;else{let X=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(X+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),Y=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${X}src:${U}}`}return this._inspectFont?.(this,U),Y}getPathGenerator(W,U){if(this.compiledGlyphs[U]!==void 0)return this.compiledGlyphs[U];let Y;try{Y=W.get(this.loadedName+"_path_"+U)}catch(X){if(!this.ignoreErrors)throw X;return(0,x.warn)(`getPathGenerator - ignoring character: "${X}".`),this.compiledGlyphs[U]=function(Z,le){}}if(this.isEvalSupported&&x.FeatureTest.isEvalSupported){const X=[];for(const Z of Y){const le=Z.args!==void 0?Z.args.join(","):"";X.push("c.",Z.cmd,"(",le,`);
|
|
1482
1482
|
`)}return this.compiledGlyphs[U]=new Function("c","size",X.join(""))}return this.compiledGlyphs[U]=function(X,Z){for(const le of Y)le.cmd==="scale"&&(le.args=[Z,-Z]),X[le.cmd].apply(X,le.args)}}}s.FontFaceObject=j},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.NodeStandardFontDataFactory=s.NodeFilterFactory=s.NodeCanvasFactory=s.NodeCMapReaderFactory=void 0;var x=l(7);l(1);const w=function(Y){return new Promise((X,Z)=>{require$$5.readFile(Y,(oe,re)=>{if(oe||!re){Z(new Error(oe));return}X(new Uint8Array(re))})})};class j extends x.BaseFilterFactory{}s.NodeFilterFactory=j;class V extends x.BaseCanvasFactory{_createCanvas(X,Z){return require$$5.createCanvas(X,Z)}}s.NodeCanvasFactory=V;class W extends x.BaseCMapReaderFactory{_fetchData(X,Z){return w(X).then(le=>({cMapData:le,compressionType:Z}))}}s.NodeCMapReaderFactory=W;class U extends x.BaseStandardFontDataFactory{_fetchData(X){return w(X)}}s.NodeStandardFontDataFactory=U},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CanvasGraphics=void 0;var x=l(1),w=l(6),j=l(12),V=l(13);const W=16,U=100,Y=4096,X=15,Z=10,le=1e3,oe=16;function re(ke,Ee){if(ke._removeMirroring)throw new Error("Context is already forwarding operations.");ke.__originalSave=ke.save,ke.__originalRestore=ke.restore,ke.__originalRotate=ke.rotate,ke.__originalScale=ke.scale,ke.__originalTranslate=ke.translate,ke.__originalTransform=ke.transform,ke.__originalSetTransform=ke.setTransform,ke.__originalResetTransform=ke.resetTransform,ke.__originalClip=ke.clip,ke.__originalMoveTo=ke.moveTo,ke.__originalLineTo=ke.lineTo,ke.__originalBezierCurveTo=ke.bezierCurveTo,ke.__originalRect=ke.rect,ke.__originalClosePath=ke.closePath,ke.__originalBeginPath=ke.beginPath,ke._removeMirroring=()=>{ke.save=ke.__originalSave,ke.restore=ke.__originalRestore,ke.rotate=ke.__originalRotate,ke.scale=ke.__originalScale,ke.translate=ke.__originalTranslate,ke.transform=ke.__originalTransform,ke.setTransform=ke.__originalSetTransform,ke.resetTransform=ke.__originalResetTransform,ke.clip=ke.__originalClip,ke.moveTo=ke.__originalMoveTo,ke.lineTo=ke.__originalLineTo,ke.bezierCurveTo=ke.__originalBezierCurveTo,ke.rect=ke.__originalRect,ke.closePath=ke.__originalClosePath,ke.beginPath=ke.__originalBeginPath,delete ke._removeMirroring},ke.save=function(){Ee.save(),this.__originalSave()},ke.restore=function(){Ee.restore(),this.__originalRestore()},ke.translate=function(Ve,Xe){Ee.translate(Ve,Xe),this.__originalTranslate(Ve,Xe)},ke.scale=function(Ve,Xe){Ee.scale(Ve,Xe),this.__originalScale(Ve,Xe)},ke.transform=function(Ve,Xe,nt,tt,Ye,He){Ee.transform(Ve,Xe,nt,tt,Ye,He),this.__originalTransform(Ve,Xe,nt,tt,Ye,He)},ke.setTransform=function(Ve,Xe,nt,tt,Ye,He){Ee.setTransform(Ve,Xe,nt,tt,Ye,He),this.__originalSetTransform(Ve,Xe,nt,tt,Ye,He)},ke.resetTransform=function(){Ee.resetTransform(),this.__originalResetTransform()},ke.rotate=function(Ve){Ee.rotate(Ve),this.__originalRotate(Ve)},ke.clip=function(Ve){Ee.clip(Ve),this.__originalClip(Ve)},ke.moveTo=function(Ae,Ve){Ee.moveTo(Ae,Ve),this.__originalMoveTo(Ae,Ve)},ke.lineTo=function(Ae,Ve){Ee.lineTo(Ae,Ve),this.__originalLineTo(Ae,Ve)},ke.bezierCurveTo=function(Ae,Ve,Xe,nt,tt,Ye){Ee.bezierCurveTo(Ae,Ve,Xe,nt,tt,Ye),this.__originalBezierCurveTo(Ae,Ve,Xe,nt,tt,Ye)},ke.rect=function(Ae,Ve,Xe,nt){Ee.rect(Ae,Ve,Xe,nt),this.__originalRect(Ae,Ve,Xe,nt)},ke.closePath=function(){Ee.closePath(),this.__originalClosePath()},ke.beginPath=function(){Ee.beginPath(),this.__originalBeginPath()}}class J{constructor(Ee){this.canvasFactory=Ee,this.cache=Object.create(null)}getCanvas(Ee,Ae,Ve){let Xe;return this.cache[Ee]!==void 0?(Xe=this.cache[Ee],this.canvasFactory.reset(Xe,Ae,Ve)):(Xe=this.canvasFactory.create(Ae,Ve),this.cache[Ee]=Xe),Xe}delete(Ee){delete this.cache[Ee]}clear(){for(const Ee in this.cache){const Ae=this.cache[Ee];this.canvasFactory.destroy(Ae),delete this.cache[Ee]}}}function ue(ke,Ee,Ae,Ve,Xe,nt,tt,Ye,He,Ge){const[rt,dt,vt,yt,ut,St]=(0,w.getCurrentTransform)(ke);if(dt===0&&vt===0){const zt=tt*rt+ut,jt=Math.round(zt),$t=Ye*yt+St,Dt=Math.round($t),Mt=(tt+He)*rt+ut,Ot=Math.abs(Math.round(Mt)-jt)||1,Vt=(Ye+Ge)*yt+St,Tn=Math.abs(Math.round(Vt)-Dt)||1;return ke.setTransform(Math.sign(rt),0,0,Math.sign(yt),jt,Dt),ke.drawImage(Ee,Ae,Ve,Xe,nt,0,0,Ot,Tn),ke.setTransform(rt,dt,vt,yt,ut,St),[Ot,Tn]}if(rt===0&&yt===0){const zt=Ye*vt+ut,jt=Math.round(zt),$t=tt*dt+St,Dt=Math.round($t),Mt=(Ye+Ge)*vt+ut,Ot=Math.abs(Math.round(Mt)-jt)||1,Vt=(tt+He)*dt+St,Tn=Math.abs(Math.round(Vt)-Dt)||1;return ke.setTransform(0,Math.sign(dt),Math.sign(vt),0,jt,Dt),ke.drawImage(Ee,Ae,Ve,Xe,nt,0,0,Tn,Ot),ke.setTransform(rt,dt,vt,yt,ut,St),[Tn,Ot]}ke.drawImage(Ee,Ae,Ve,Xe,nt,tt,Ye,He,Ge);const Nt=Math.hypot(rt,dt),Bt=Math.hypot(vt,yt);return[Nt*He,Bt*Ge]}function me(ke){const{width:Ee,height:Ae}=ke;if(Ee>le||Ae>le)return null;const Ve=1e3,Xe=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),nt=Ee+1;let tt=new Uint8Array(nt*(Ae+1)),Ye,He,Ge;const rt=Ee+7&-8;let dt=new Uint8Array(rt*Ae),vt=0;for(const Bt of ke.data){let zt=128;for(;zt>0;)dt[vt++]=Bt&zt?0:255,zt>>=1}let yt=0;for(vt=0,dt[vt]!==0&&(tt[0]=1,++yt),He=1;He<Ee;He++)dt[vt]!==dt[vt+1]&&(tt[He]=dt[vt]?2:1,++yt),vt++;for(dt[vt]!==0&&(tt[He]=2,++yt),Ye=1;Ye<Ae;Ye++){vt=Ye*rt,Ge=Ye*nt,dt[vt-rt]!==dt[vt]&&(tt[Ge]=dt[vt]?1:8,++yt);let Bt=(dt[vt]?4:0)+(dt[vt-rt]?8:0);for(He=1;He<Ee;He++)Bt=(Bt>>2)+(dt[vt+1]?4:0)+(dt[vt-rt+1]?8:0),Xe[Bt]&&(tt[Ge+He]=Xe[Bt],++yt),vt++;if(dt[vt-rt]!==dt[vt]&&(tt[Ge+He]=dt[vt]?2:4,++yt),yt>Ve)return null}for(vt=rt*(Ae-1),Ge=Ye*nt,dt[vt]!==0&&(tt[Ge]=8,++yt),He=1;He<Ee;He++)dt[vt]!==dt[vt+1]&&(tt[Ge+He]=dt[vt]?4:8,++yt),vt++;if(dt[vt]!==0&&(tt[Ge+He]=4,++yt),yt>Ve)return null;const ut=new Int32Array([0,nt,-1,0,-nt,0,0,0,1]),St=new Path2D;for(Ye=0;yt&&Ye<=Ae;Ye++){let Bt=Ye*nt;const zt=Bt+Ee;for(;Bt<zt&&!tt[Bt];)Bt++;if(Bt===zt)continue;St.moveTo(Bt%nt,Ye);const jt=Bt;let $t=tt[Bt];do{const Dt=ut[$t];do Bt+=Dt;while(!tt[Bt]);const Mt=tt[Bt];Mt!==5&&Mt!==10?($t=Mt,tt[Bt]=0):($t=Mt&51*$t>>4,tt[Bt]&=$t>>2|$t<<2),St.lineTo(Bt%nt,Bt/nt|0),tt[Bt]||--yt}while(jt!==Bt);--Ye}return dt=null,tt=null,function(Bt){Bt.save(),Bt.scale(1/Ee,-1/Ae),Bt.translate(0,-Ae),Bt.fill(St),Bt.beginPath(),Bt.restore()}}class fe{constructor(Ee,Ae){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=x.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=x.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=x.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,Ee,Ae])}clone(){const Ee=Object.create(this);return Ee.clipBox=this.clipBox.slice(),Ee}setCurrentPoint(Ee,Ae){this.x=Ee,this.y=Ae}updatePathMinMax(Ee,Ae,Ve){[Ae,Ve]=x.Util.applyTransform([Ae,Ve],Ee),this.minX=Math.min(this.minX,Ae),this.minY=Math.min(this.minY,Ve),this.maxX=Math.max(this.maxX,Ae),this.maxY=Math.max(this.maxY,Ve)}updateRectMinMax(Ee,Ae){const Ve=x.Util.applyTransform(Ae,Ee),Xe=x.Util.applyTransform(Ae.slice(2),Ee);this.minX=Math.min(this.minX,Ve[0],Xe[0]),this.minY=Math.min(this.minY,Ve[1],Xe[1]),this.maxX=Math.max(this.maxX,Ve[0],Xe[0]),this.maxY=Math.max(this.maxY,Ve[1],Xe[1])}updateScalingPathMinMax(Ee,Ae){x.Util.scaleMinMax(Ee,Ae),this.minX=Math.min(this.minX,Ae[0]),this.maxX=Math.max(this.maxX,Ae[1]),this.minY=Math.min(this.minY,Ae[2]),this.maxY=Math.max(this.maxY,Ae[3])}updateCurvePathMinMax(Ee,Ae,Ve,Xe,nt,tt,Ye,He,Ge,rt){const dt=x.Util.bezierBoundingBox(Ae,Ve,Xe,nt,tt,Ye,He,Ge);if(rt){rt[0]=Math.min(rt[0],dt[0],dt[2]),rt[1]=Math.max(rt[1],dt[0],dt[2]),rt[2]=Math.min(rt[2],dt[1],dt[3]),rt[3]=Math.max(rt[3],dt[1],dt[3]);return}this.updateRectMinMax(Ee,dt)}getPathBoundingBox(Ee=j.PathType.FILL,Ae=null){const Ve=[this.minX,this.minY,this.maxX,this.maxY];if(Ee===j.PathType.STROKE){Ae||(0,x.unreachable)("Stroke bounding box must include transform.");const Xe=x.Util.singularValueDecompose2dScale(Ae),nt=Xe[0]*this.lineWidth/2,tt=Xe[1]*this.lineWidth/2;Ve[0]-=nt,Ve[1]-=tt,Ve[2]+=nt,Ve[3]+=tt}return Ve}updateClipFromPath(){const Ee=x.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(Ee||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(Ee){this.clipBox=Ee,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(Ee=j.PathType.FILL,Ae=null){return x.Util.intersect(this.clipBox,this.getPathBoundingBox(Ee,Ae))}}function xe(ke,Ee){if(typeof ImageData<"u"&&Ee instanceof ImageData){ke.putImageData(Ee,0,0);return}const Ae=Ee.height,Ve=Ee.width,Xe=Ae%oe,nt=(Ae-Xe)/oe,tt=Xe===0?nt:nt+1,Ye=ke.createImageData(Ve,oe);let He=0,Ge;const rt=Ee.data,dt=Ye.data;let vt,yt,ut,St;if(Ee.kind===x.ImageKind.GRAYSCALE_1BPP){const Nt=rt.byteLength,Bt=new Uint32Array(dt.buffer,0,dt.byteLength>>2),zt=Bt.length,jt=Ve+7>>3,$t=4294967295,Dt=x.FeatureTest.isLittleEndian?4278190080:255;for(vt=0;vt<tt;vt++){for(ut=vt<nt?oe:Xe,Ge=0,yt=0;yt<ut;yt++){const Mt=Nt-He;let Ot=0;const Vt=Mt>jt?Ve:Mt*8-7,Tn=Vt&-8;let Zt=0,En=0;for(;Ot<Tn;Ot+=8)En=rt[He++],Bt[Ge++]=En&128?$t:Dt,Bt[Ge++]=En&64?$t:Dt,Bt[Ge++]=En&32?$t:Dt,Bt[Ge++]=En&16?$t:Dt,Bt[Ge++]=En&8?$t:Dt,Bt[Ge++]=En&4?$t:Dt,Bt[Ge++]=En&2?$t:Dt,Bt[Ge++]=En&1?$t:Dt;for(;Ot<Vt;Ot++)Zt===0&&(En=rt[He++],Zt=128),Bt[Ge++]=En&Zt?$t:Dt,Zt>>=1}for(;Ge<zt;)Bt[Ge++]=0;ke.putImageData(Ye,0,vt*oe)}}else if(Ee.kind===x.ImageKind.RGBA_32BPP){for(yt=0,St=Ve*oe*4,vt=0;vt<nt;vt++)dt.set(rt.subarray(He,He+St)),He+=St,ke.putImageData(Ye,0,yt),yt+=oe;vt<tt&&(St=Ve*Xe*4,dt.set(rt.subarray(He,He+St)),ke.putImageData(Ye,0,yt))}else if(Ee.kind===x.ImageKind.RGB_24BPP)for(ut=oe,St=Ve*ut,vt=0;vt<tt;vt++){for(vt>=nt&&(ut=Xe,St=Ve*ut),Ge=0,yt=St;yt--;)dt[Ge++]=rt[He++],dt[Ge++]=rt[He++],dt[Ge++]=rt[He++],dt[Ge++]=255;ke.putImageData(Ye,0,vt*oe)}else throw new Error(`bad image kind: ${Ee.kind}`)}function Te(ke,Ee){if(Ee.bitmap){ke.drawImage(Ee.bitmap,0,0);return}const Ae=Ee.height,Ve=Ee.width,Xe=Ae%oe,nt=(Ae-Xe)/oe,tt=Xe===0?nt:nt+1,Ye=ke.createImageData(Ve,oe);let He=0;const Ge=Ee.data,rt=Ye.data;for(let dt=0;dt<tt;dt++){const vt=dt<nt?oe:Xe;({srcPos:He}=(0,V.convertBlackAndWhiteToRGBA)({src:Ge,srcPos:He,dest:rt,width:Ve,height:vt,nonBlackColor:0})),ke.putImageData(Ye,0,dt*oe)}}function ge(ke,Ee){const Ae=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const Ve of Ae)ke[Ve]!==void 0&&(Ee[Ve]=ke[Ve]);ke.setLineDash!==void 0&&(Ee.setLineDash(ke.getLineDash()),Ee.lineDashOffset=ke.lineDashOffset)}function Pe(ke){if(ke.strokeStyle=ke.fillStyle="#000000",ke.fillRule="nonzero",ke.globalAlpha=1,ke.lineWidth=1,ke.lineCap="butt",ke.lineJoin="miter",ke.miterLimit=10,ke.globalCompositeOperation="source-over",ke.font="10px sans-serif",ke.setLineDash!==void 0&&(ke.setLineDash([]),ke.lineDashOffset=0),!x.isNodeJS){const{filter:Ee}=ke;Ee!=="none"&&Ee!==""&&(ke.filter="none")}}function Se(ke,Ee,Ae,Ve){const Xe=ke.length;for(let nt=3;nt<Xe;nt+=4){const tt=ke[nt];if(tt===0)ke[nt-3]=Ee,ke[nt-2]=Ae,ke[nt-1]=Ve;else if(tt<255){const Ye=255-tt;ke[nt-3]=ke[nt-3]*tt+Ee*Ye>>8,ke[nt-2]=ke[nt-2]*tt+Ae*Ye>>8,ke[nt-1]=ke[nt-1]*tt+Ve*Ye>>8}}}function Re(ke,Ee,Ae){const Ve=ke.length,Xe=1/255;for(let nt=3;nt<Ve;nt+=4){const tt=Ae?Ae[ke[nt]]:ke[nt];Ee[nt]=Ee[nt]*tt*Xe|0}}function De(ke,Ee,Ae){const Ve=ke.length;for(let Xe=3;Xe<Ve;Xe+=4){const nt=ke[Xe-3]*77+ke[Xe-2]*152+ke[Xe-1]*28;Ee[Xe]=Ae?Ee[Xe]*Ae[nt>>8]>>8:Ee[Xe]*nt>>16}}function Le(ke,Ee,Ae,Ve,Xe,nt,tt,Ye,He,Ge,rt){const dt=!!nt,vt=dt?nt[0]:0,yt=dt?nt[1]:0,ut=dt?nt[2]:0,St=Xe==="Luminosity"?De:Re,Bt=Math.min(Ve,Math.ceil(1048576/Ae));for(let zt=0;zt<Ve;zt+=Bt){const jt=Math.min(Bt,Ve-zt),$t=ke.getImageData(Ye-Ge,zt+(He-rt),Ae,jt),Dt=Ee.getImageData(Ye,zt+He,Ae,jt);dt&&Se($t.data,vt,yt,ut),St($t.data,Dt.data,tt),Ee.putImageData(Dt,Ye,zt+He)}}function _e(ke,Ee,Ae,Ve){const Xe=Ve[0],nt=Ve[1],tt=Ve[2]-Xe,Ye=Ve[3]-nt;tt===0||Ye===0||(Le(Ee.context,Ae,tt,Ye,Ee.subtype,Ee.backdrop,Ee.transferMap,Xe,nt,Ee.offsetX,Ee.offsetY),ke.save(),ke.globalAlpha=1,ke.globalCompositeOperation="source-over",ke.setTransform(1,0,0,1,0,0),ke.drawImage(Ae.canvas,0,0),ke.restore())}function Be(ke,Ee){const Ae=x.Util.singularValueDecompose2dScale(ke);Ae[0]=Math.fround(Ae[0]),Ae[1]=Math.fround(Ae[1]);const Ve=Math.fround((globalThis.devicePixelRatio||1)*w.PixelsPerInch.PDF_TO_CSS_UNITS);return Ee!==void 0?Ee:Ae[0]<=Ve||Ae[1]<=Ve}const Fe=["butt","round","square"],je=["miter","round","bevel"],ze={},We={};class Oe{constructor(Ee,Ae,Ve,Xe,nt,{optionalContentConfig:tt,markedContentStack:Ye=null},He,Ge){this.ctx=Ee,this.current=new fe(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=Ae,this.objs=Ve,this.canvasFactory=Xe,this.filterFactory=nt,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=Ye||[],this.optionalContentConfig=tt,this.cachedCanvases=new J(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=He,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=Ge,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(Ee,Ae=null){return typeof Ee=="string"?Ee.startsWith("g_")?this.commonObjs.get(Ee):this.objs.get(Ee):Ae}beginDrawing({transform:Ee,viewport:Ae,transparency:Ve=!1,background:Xe=null}){const nt=this.ctx.canvas.width,tt=this.ctx.canvas.height,Ye=this.ctx.fillStyle;if(this.ctx.fillStyle=Xe||"#ffffff",this.ctx.fillRect(0,0,nt,tt),this.ctx.fillStyle=Ye,Ve){const He=this.cachedCanvases.getCanvas("transparent",nt,tt);this.compositeCtx=this.ctx,this.transparentCanvas=He.canvas,this.ctx=He.context,this.ctx.save(),this.ctx.transform(...(0,w.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),Pe(this.ctx),Ee&&(this.ctx.transform(...Ee),this.outputScaleX=Ee[0],this.outputScaleY=Ee[0]),this.ctx.transform(...Ae.transform),this.viewportScale=Ae.scale,this.baseTransform=(0,w.getCurrentTransform)(this.ctx)}executeOperatorList(Ee,Ae,Ve,Xe){const nt=Ee.argsArray,tt=Ee.fnArray;let Ye=Ae||0;const He=nt.length;if(He===Ye)return Ye;const Ge=He-Ye>Z&&typeof Ve=="function",rt=Ge?Date.now()+X:0;let dt=0;const vt=this.commonObjs,yt=this.objs;let ut;for(;;){if(Xe!==void 0&&Ye===Xe.nextBreakPoint)return Xe.breakIt(Ye,Ve),Ye;if(ut=tt[Ye],ut!==x.OPS.dependency)this[ut].apply(this,nt[Ye]);else for(const St of nt[Ye]){const Nt=St.startsWith("g_")?vt:yt;if(!Nt.has(St))return Nt.get(St,Ve),Ye}if(Ye++,Ye===He)return Ye;if(Ge&&++dt>Z){if(Date.now()>rt)return Ve(),Ye;dt=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const Ee of this._cachedBitmapsMap.values()){for(const Ae of Ee.values())typeof HTMLCanvasElement<"u"&&Ae instanceof HTMLCanvasElement&&(Ae.width=Ae.height=0);Ee.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){const Ee=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(Ee!=="none"){const Ae=this.ctx.filter;this.ctx.filter=Ee,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=Ae}}}_scaleImage(Ee,Ae){const Ve=Ee.width,Xe=Ee.height;let nt=Math.max(Math.hypot(Ae[0],Ae[1]),1),tt=Math.max(Math.hypot(Ae[2],Ae[3]),1),Ye=Ve,He=Xe,Ge="prescale1",rt,dt;for(;nt>2&&Ye>1||tt>2&&He>1;){let vt=Ye,yt=He;nt>2&&Ye>1&&(vt=Ye>=16384?Math.floor(Ye/2)-1||1:Math.ceil(Ye/2),nt/=Ye/vt),tt>2&&He>1&&(yt=He>=16384?Math.floor(He/2)-1||1:Math.ceil(He)/2,tt/=He/yt),rt=this.cachedCanvases.getCanvas(Ge,vt,yt),dt=rt.context,dt.clearRect(0,0,vt,yt),dt.drawImage(Ee,0,0,Ye,He,0,0,vt,yt),Ee=rt.canvas,Ye=vt,He=yt,Ge=Ge==="prescale1"?"prescale2":"prescale1"}return{img:Ee,paintWidth:Ye,paintHeight:He}}_createMaskCanvas(Ee){const Ae=this.ctx,{width:Ve,height:Xe}=Ee,nt=this.current.fillColor,tt=this.current.patternFill,Ye=(0,w.getCurrentTransform)(Ae);let He,Ge,rt,dt;if((Ee.bitmap||Ee.data)&&Ee.count>1){const Ot=Ee.bitmap||Ee.data.buffer;Ge=JSON.stringify(tt?Ye:[Ye.slice(0,4),nt]),He=this._cachedBitmapsMap.get(Ot),He||(He=new Map,this._cachedBitmapsMap.set(Ot,He));const Vt=He.get(Ge);if(Vt&&!tt){const Tn=Math.round(Math.min(Ye[0],Ye[2])+Ye[4]),Zt=Math.round(Math.min(Ye[1],Ye[3])+Ye[5]);return{canvas:Vt,offsetX:Tn,offsetY:Zt}}rt=Vt}rt||(dt=this.cachedCanvases.getCanvas("maskCanvas",Ve,Xe),Te(dt.context,Ee));let vt=x.Util.transform(Ye,[1/Ve,0,0,-1/Xe,0,0]);vt=x.Util.transform(vt,[1,0,0,1,0,-Xe]);const yt=x.Util.applyTransform([0,0],vt),ut=x.Util.applyTransform([Ve,Xe],vt),St=x.Util.normalizeRect([yt[0],yt[1],ut[0],ut[1]]),Nt=Math.round(St[2]-St[0])||1,Bt=Math.round(St[3]-St[1])||1,zt=this.cachedCanvases.getCanvas("fillCanvas",Nt,Bt),jt=zt.context,$t=Math.min(yt[0],ut[0]),Dt=Math.min(yt[1],ut[1]);jt.translate(-$t,-Dt),jt.transform(...vt),rt||(rt=this._scaleImage(dt.canvas,(0,w.getCurrentTransformInverse)(jt)),rt=rt.img,He&&tt&&He.set(Ge,rt)),jt.imageSmoothingEnabled=Be((0,w.getCurrentTransform)(jt),Ee.interpolate),ue(jt,rt,0,0,rt.width,rt.height,0,0,Ve,Xe),jt.globalCompositeOperation="source-in";const Mt=x.Util.transform((0,w.getCurrentTransformInverse)(jt),[1,0,0,1,-$t,-Dt]);return jt.fillStyle=tt?nt.getPattern(Ae,this,Mt,j.PathType.FILL):nt,jt.fillRect(0,0,Ve,Xe),He&&!tt&&(this.cachedCanvases.delete("fillCanvas"),He.set(Ge,zt.canvas)),{canvas:zt.canvas,offsetX:Math.round($t),offsetY:Math.round(Dt)}}setLineWidth(Ee){Ee!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=Ee,this.ctx.lineWidth=Ee}setLineCap(Ee){this.ctx.lineCap=Fe[Ee]}setLineJoin(Ee){this.ctx.lineJoin=je[Ee]}setMiterLimit(Ee){this.ctx.miterLimit=Ee}setDash(Ee,Ae){const Ve=this.ctx;Ve.setLineDash!==void 0&&(Ve.setLineDash(Ee),Ve.lineDashOffset=Ae)}setRenderingIntent(Ee){}setFlatness(Ee){}setGState(Ee){for(const[Ae,Ve]of Ee)switch(Ae){case"LW":this.setLineWidth(Ve);break;case"LC":this.setLineCap(Ve);break;case"LJ":this.setLineJoin(Ve);break;case"ML":this.setMiterLimit(Ve);break;case"D":this.setDash(Ve[0],Ve[1]);break;case"RI":this.setRenderingIntent(Ve);break;case"FL":this.setFlatness(Ve);break;case"Font":this.setFont(Ve[0],Ve[1]);break;case"CA":this.current.strokeAlpha=Ve;break;case"ca":this.current.fillAlpha=Ve,this.ctx.globalAlpha=Ve;break;case"BM":this.ctx.globalCompositeOperation=Ve;break;case"SMask":this.current.activeSMask=Ve?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(Ve);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const Ee=this.inSMaskMode;this.current.activeSMask&&!Ee?this.beginSMaskMode():!this.current.activeSMask&&Ee&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const Ee=this.ctx.canvas.width,Ae=this.ctx.canvas.height,Ve="smaskGroupAt"+this.groupLevel,Xe=this.cachedCanvases.getCanvas(Ve,Ee,Ae);this.suspendedCtx=this.ctx,this.ctx=Xe.context;const nt=this.ctx;nt.setTransform(...(0,w.getCurrentTransform)(this.suspendedCtx)),ge(this.suspendedCtx,nt),re(nt,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),ge(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(Ee){if(!this.current.activeSMask)return;Ee?(Ee[0]=Math.floor(Ee[0]),Ee[1]=Math.floor(Ee[1]),Ee[2]=Math.ceil(Ee[2]),Ee[3]=Math.ceil(Ee[3])):Ee=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const Ae=this.current.activeSMask,Ve=this.suspendedCtx;_e(Ve,Ae,this.ctx,Ee),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(ge(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const Ee=this.current;this.stateStack.push(Ee),this.current=Ee.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),ge(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(Ee,Ae,Ve,Xe,nt,tt){this.ctx.transform(Ee,Ae,Ve,Xe,nt,tt),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(Ee,Ae,Ve){const Xe=this.ctx,nt=this.current;let tt=nt.x,Ye=nt.y,He,Ge;const rt=(0,w.getCurrentTransform)(Xe),dt=rt[0]===0&&rt[3]===0||rt[1]===0&&rt[2]===0,vt=dt?Ve.slice(0):null;for(let yt=0,ut=0,St=Ee.length;yt<St;yt++)switch(Ee[yt]|0){case x.OPS.rectangle:tt=Ae[ut++],Ye=Ae[ut++];const Nt=Ae[ut++],Bt=Ae[ut++],zt=tt+Nt,jt=Ye+Bt;Xe.moveTo(tt,Ye),Nt===0||Bt===0?Xe.lineTo(zt,jt):(Xe.lineTo(zt,Ye),Xe.lineTo(zt,jt),Xe.lineTo(tt,jt)),dt||nt.updateRectMinMax(rt,[tt,Ye,zt,jt]),Xe.closePath();break;case x.OPS.moveTo:tt=Ae[ut++],Ye=Ae[ut++],Xe.moveTo(tt,Ye),dt||nt.updatePathMinMax(rt,tt,Ye);break;case x.OPS.lineTo:tt=Ae[ut++],Ye=Ae[ut++],Xe.lineTo(tt,Ye),dt||nt.updatePathMinMax(rt,tt,Ye);break;case x.OPS.curveTo:He=tt,Ge=Ye,tt=Ae[ut+4],Ye=Ae[ut+5],Xe.bezierCurveTo(Ae[ut],Ae[ut+1],Ae[ut+2],Ae[ut+3],tt,Ye),nt.updateCurvePathMinMax(rt,He,Ge,Ae[ut],Ae[ut+1],Ae[ut+2],Ae[ut+3],tt,Ye,vt),ut+=6;break;case x.OPS.curveTo2:He=tt,Ge=Ye,Xe.bezierCurveTo(tt,Ye,Ae[ut],Ae[ut+1],Ae[ut+2],Ae[ut+3]),nt.updateCurvePathMinMax(rt,He,Ge,tt,Ye,Ae[ut],Ae[ut+1],Ae[ut+2],Ae[ut+3],vt),tt=Ae[ut+2],Ye=Ae[ut+3],ut+=4;break;case x.OPS.curveTo3:He=tt,Ge=Ye,tt=Ae[ut+2],Ye=Ae[ut+3],Xe.bezierCurveTo(Ae[ut],Ae[ut+1],tt,Ye,tt,Ye),nt.updateCurvePathMinMax(rt,He,Ge,Ae[ut],Ae[ut+1],tt,Ye,tt,Ye,vt),ut+=4;break;case x.OPS.closePath:Xe.closePath();break}dt&&nt.updateScalingPathMinMax(rt,vt),nt.setCurrentPoint(tt,Ye)}closePath(){this.ctx.closePath()}stroke(Ee=!0){const Ae=this.ctx,Ve=this.current.strokeColor;Ae.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof Ve=="object"&&Ve?.getPattern?(Ae.save(),Ae.strokeStyle=Ve.getPattern(Ae,this,(0,w.getCurrentTransformInverse)(Ae),j.PathType.STROKE),this.rescaleAndStroke(!1),Ae.restore()):this.rescaleAndStroke(!0)),Ee&&this.consumePath(this.current.getClippedPathBoundingBox()),Ae.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(Ee=!0){const Ae=this.ctx,Ve=this.current.fillColor,Xe=this.current.patternFill;let nt=!1;Xe&&(Ae.save(),Ae.fillStyle=Ve.getPattern(Ae,this,(0,w.getCurrentTransformInverse)(Ae),j.PathType.FILL),nt=!0);const tt=this.current.getClippedPathBoundingBox();this.contentVisible&&tt!==null&&(this.pendingEOFill?(Ae.fill("evenodd"),this.pendingEOFill=!1):Ae.fill()),nt&&Ae.restore(),Ee&&this.consumePath(tt)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=ze}eoClip(){this.pendingClip=We}beginText(){this.current.textMatrix=x.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const Ee=this.pendingTextPaths,Ae=this.ctx;if(Ee===void 0){Ae.beginPath();return}Ae.save(),Ae.beginPath();for(const Ve of Ee)Ae.setTransform(...Ve.transform),Ae.translate(Ve.x,Ve.y),Ve.addToPath(Ae,Ve.fontSize);Ae.restore(),Ae.clip(),Ae.beginPath(),delete this.pendingTextPaths}setCharSpacing(Ee){this.current.charSpacing=Ee}setWordSpacing(Ee){this.current.wordSpacing=Ee}setHScale(Ee){this.current.textHScale=Ee/100}setLeading(Ee){this.current.leading=-Ee}setFont(Ee,Ae){const Ve=this.commonObjs.get(Ee),Xe=this.current;if(!Ve)throw new Error(`Can't find font for ${Ee}`);if(Xe.fontMatrix=Ve.fontMatrix||x.FONT_IDENTITY_MATRIX,(Xe.fontMatrix[0]===0||Xe.fontMatrix[3]===0)&&(0,x.warn)("Invalid font matrix for font "+Ee),Ae<0?(Ae=-Ae,Xe.fontDirection=-1):Xe.fontDirection=1,this.current.font=Ve,this.current.fontSize=Ae,Ve.isType3Font)return;const nt=Ve.loadedName||"sans-serif",tt=Ve.systemFontInfo?.css||`"${nt}", ${Ve.fallbackName}`;let Ye="normal";Ve.black?Ye="900":Ve.bold&&(Ye="bold");const He=Ve.italic?"italic":"normal";let Ge=Ae;Ae<W?Ge=W:Ae>U&&(Ge=U),this.current.fontSizeScale=Ae/Ge,this.ctx.font=`${He} ${Ye} ${Ge}px ${tt}`}setTextRenderingMode(Ee){this.current.textRenderingMode=Ee}setTextRise(Ee){this.current.textRise=Ee}moveText(Ee,Ae){this.current.x=this.current.lineX+=Ee,this.current.y=this.current.lineY+=Ae}setLeadingMoveText(Ee,Ae){this.setLeading(-Ae),this.moveText(Ee,Ae)}setTextMatrix(Ee,Ae,Ve,Xe,nt,tt){this.current.textMatrix=[Ee,Ae,Ve,Xe,nt,tt],this.current.textMatrixScale=Math.hypot(Ee,Ae),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(Ee,Ae,Ve,Xe){const nt=this.ctx,tt=this.current,Ye=tt.font,He=tt.textRenderingMode,Ge=tt.fontSize/tt.fontSizeScale,rt=He&x.TextRenderingMode.FILL_STROKE_MASK,dt=!!(He&x.TextRenderingMode.ADD_TO_PATH_FLAG),vt=tt.patternFill&&!Ye.missingFile;let yt;(Ye.disableFontFace||dt||vt)&&(yt=Ye.getPathGenerator(this.commonObjs,Ee)),Ye.disableFontFace||vt?(nt.save(),nt.translate(Ae,Ve),nt.beginPath(),yt(nt,Ge),Xe&&nt.setTransform(...Xe),(rt===x.TextRenderingMode.FILL||rt===x.TextRenderingMode.FILL_STROKE)&&nt.fill(),(rt===x.TextRenderingMode.STROKE||rt===x.TextRenderingMode.FILL_STROKE)&&nt.stroke(),nt.restore()):((rt===x.TextRenderingMode.FILL||rt===x.TextRenderingMode.FILL_STROKE)&&nt.fillText(Ee,Ae,Ve),(rt===x.TextRenderingMode.STROKE||rt===x.TextRenderingMode.FILL_STROKE)&&nt.strokeText(Ee,Ae,Ve)),dt&&(this.pendingTextPaths||=[]).push({transform:(0,w.getCurrentTransform)(nt),x:Ae,y:Ve,fontSize:Ge,addToPath:yt})}get isFontSubpixelAAEnabled(){const{context:Ee}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);Ee.scale(1.5,1),Ee.fillText("I",0,10);const Ae=Ee.getImageData(0,0,10,10).data;let Ve=!1;for(let Xe=3;Xe<Ae.length;Xe+=4)if(Ae[Xe]>0&&Ae[Xe]<255){Ve=!0;break}return(0,x.shadow)(this,"isFontSubpixelAAEnabled",Ve)}showText(Ee){const Ae=this.current,Ve=Ae.font;if(Ve.isType3Font)return this.showType3Text(Ee);const Xe=Ae.fontSize;if(Xe===0)return;const nt=this.ctx,tt=Ae.fontSizeScale,Ye=Ae.charSpacing,He=Ae.wordSpacing,Ge=Ae.fontDirection,rt=Ae.textHScale*Ge,dt=Ee.length,vt=Ve.vertical,yt=vt?1:-1,ut=Ve.defaultVMetrics,St=Xe*Ae.fontMatrix[0],Nt=Ae.textRenderingMode===x.TextRenderingMode.FILL&&!Ve.disableFontFace&&!Ae.patternFill;nt.save(),nt.transform(...Ae.textMatrix),nt.translate(Ae.x,Ae.y+Ae.textRise),Ge>0?nt.scale(rt,-1):nt.scale(rt,1);let Bt;if(Ae.patternFill){nt.save();const Mt=Ae.fillColor.getPattern(nt,this,(0,w.getCurrentTransformInverse)(nt),j.PathType.FILL);Bt=(0,w.getCurrentTransform)(nt),nt.restore(),nt.fillStyle=Mt}let zt=Ae.lineWidth;const jt=Ae.textMatrixScale;if(jt===0||zt===0){const Mt=Ae.textRenderingMode&x.TextRenderingMode.FILL_STROKE_MASK;(Mt===x.TextRenderingMode.STROKE||Mt===x.TextRenderingMode.FILL_STROKE)&&(zt=this.getSinglePixelWidth())}else zt/=jt;if(tt!==1&&(nt.scale(tt,tt),zt/=tt),nt.lineWidth=zt,Ve.isInvalidPDFjsFont){const Mt=[];let Ot=0;for(const Vt of Ee)Mt.push(Vt.unicode),Ot+=Vt.width;nt.fillText(Mt.join(""),0,0),Ae.x+=Ot*St*rt,nt.restore(),this.compose();return}let $t=0,Dt;for(Dt=0;Dt<dt;++Dt){const Mt=Ee[Dt];if(typeof Mt=="number"){$t+=yt*Mt*Xe/1e3;continue}let Ot=!1;const Vt=(Mt.isSpace?He:0)+Ye,Tn=Mt.fontChar,Zt=Mt.accent;let En,Sn,Ln=Mt.width;if(vt){const fn=Mt.vmetric||ut,Dn=-(Mt.vmetric?fn[1]:Ln*.5)*St,zn=fn[2]*St;Ln=fn?-fn[0]:Ln,En=Dn/tt,Sn=($t+zn)/tt}else En=$t/tt,Sn=0;if(Ve.remeasure&&Ln>0){const fn=nt.measureText(Tn).width*1e3/Xe*tt;if(Ln<fn&&this.isFontSubpixelAAEnabled){const Dn=Ln/fn;Ot=!0,nt.save(),nt.scale(Dn,1),En/=Dn}else Ln!==fn&&(En+=(Ln-fn)/2e3*Xe/tt)}if(this.contentVisible&&(Mt.isInFont||Ve.missingFile)){if(Nt&&!Zt)nt.fillText(Tn,En,Sn);else if(this.paintChar(Tn,En,Sn,Bt),Zt){const fn=En+Xe*Zt.offset.x/tt,Dn=Sn-Xe*Zt.offset.y/tt;this.paintChar(Zt.fontChar,fn,Dn,Bt)}}const vn=vt?Ln*St-Vt*Ge:Ln*St+Vt*Ge;$t+=vn,Ot&&nt.restore()}vt?Ae.y-=$t:Ae.x+=$t*rt,nt.restore(),this.compose()}showType3Text(Ee){const Ae=this.ctx,Ve=this.current,Xe=Ve.font,nt=Ve.fontSize,tt=Ve.fontDirection,Ye=Xe.vertical?1:-1,He=Ve.charSpacing,Ge=Ve.wordSpacing,rt=Ve.textHScale*tt,dt=Ve.fontMatrix||x.FONT_IDENTITY_MATRIX,vt=Ee.length,yt=Ve.textRenderingMode===x.TextRenderingMode.INVISIBLE;let ut,St,Nt,Bt;if(!(yt||nt===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,Ae.save(),Ae.transform(...Ve.textMatrix),Ae.translate(Ve.x,Ve.y),Ae.scale(rt,tt),ut=0;ut<vt;++ut){if(St=Ee[ut],typeof St=="number"){Bt=Ye*St*nt/1e3,this.ctx.translate(Bt,0),Ve.x+=Bt*rt;continue}const zt=(St.isSpace?Ge:0)+He,jt=Xe.charProcOperatorList[St.operatorListId];if(!jt){(0,x.warn)(`Type3 character "${St.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=St,this.save(),Ae.scale(nt,nt),Ae.transform(...dt),this.executeOperatorList(jt),this.restore()),Nt=x.Util.applyTransform([St.width,0],dt)[0]*nt+zt,Ae.translate(Nt,0),Ve.x+=Nt*rt}Ae.restore(),this.processingType3=null}}setCharWidth(Ee,Ae){}setCharWidthAndBounds(Ee,Ae,Ve,Xe,nt,tt){this.ctx.rect(Ve,Xe,nt-Ve,tt-Xe),this.ctx.clip(),this.endPath()}getColorN_Pattern(Ee){let Ae;if(Ee[0]==="TilingPattern"){const Ve=Ee[1],Xe=this.baseTransform||(0,w.getCurrentTransform)(this.ctx),nt={createCanvasGraphics:tt=>new Oe(tt,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};Ae=new j.TilingPattern(Ee,Ve,this.ctx,nt,Xe)}else Ae=this._getPattern(Ee[1],Ee[2]);return Ae}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(Ee,Ae,Ve){const Xe=x.Util.makeHexColor(Ee,Ae,Ve);this.ctx.strokeStyle=Xe,this.current.strokeColor=Xe}setFillRGBColor(Ee,Ae,Ve){const Xe=x.Util.makeHexColor(Ee,Ae,Ve);this.ctx.fillStyle=Xe,this.current.fillColor=Xe,this.current.patternFill=!1}_getPattern(Ee,Ae=null){let Ve;return this.cachedPatterns.has(Ee)?Ve=this.cachedPatterns.get(Ee):(Ve=(0,j.getShadingPattern)(this.getObject(Ee)),this.cachedPatterns.set(Ee,Ve)),Ae&&(Ve.matrix=Ae),Ve}shadingFill(Ee){if(!this.contentVisible)return;const Ae=this.ctx;this.save();const Ve=this._getPattern(Ee);Ae.fillStyle=Ve.getPattern(Ae,this,(0,w.getCurrentTransformInverse)(Ae),j.PathType.SHADING);const Xe=(0,w.getCurrentTransformInverse)(Ae);if(Xe){const{width:nt,height:tt}=Ae.canvas,[Ye,He,Ge,rt]=x.Util.getAxialAlignedBoundingBox([0,0,nt,tt],Xe);this.ctx.fillRect(Ye,He,Ge-Ye,rt-He)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,x.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,x.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(Ee,Ae){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(Ee)&&Ee.length===6&&this.transform(...Ee),this.baseTransform=(0,w.getCurrentTransform)(this.ctx),Ae)){const Ve=Ae[2]-Ae[0],Xe=Ae[3]-Ae[1];this.ctx.rect(Ae[0],Ae[1],Ve,Xe),this.current.updateRectMinMax((0,w.getCurrentTransform)(this.ctx),Ae),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(Ee){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const Ae=this.ctx;Ee.isolated||(0,x.info)("TODO: Support non-isolated groups."),Ee.knockout&&(0,x.warn)("Knockout groups not supported.");const Ve=(0,w.getCurrentTransform)(Ae);if(Ee.matrix&&Ae.transform(...Ee.matrix),!Ee.bbox)throw new Error("Bounding box is required.");let Xe=x.Util.getAxialAlignedBoundingBox(Ee.bbox,(0,w.getCurrentTransform)(Ae));const nt=[0,0,Ae.canvas.width,Ae.canvas.height];Xe=x.Util.intersect(Xe,nt)||[0,0,0,0];const tt=Math.floor(Xe[0]),Ye=Math.floor(Xe[1]);let He=Math.max(Math.ceil(Xe[2])-tt,1),Ge=Math.max(Math.ceil(Xe[3])-Ye,1),rt=1,dt=1;He>Y&&(rt=He/Y,He=Y),Ge>Y&&(dt=Ge/Y,Ge=Y),this.current.startNewPathAndClipBox([0,0,He,Ge]);let vt="groupAt"+this.groupLevel;Ee.smask&&(vt+="_smask_"+this.smaskCounter++%2);const yt=this.cachedCanvases.getCanvas(vt,He,Ge),ut=yt.context;ut.scale(1/rt,1/dt),ut.translate(-tt,-Ye),ut.transform(...Ve),Ee.smask?this.smaskStack.push({canvas:yt.canvas,context:ut,offsetX:tt,offsetY:Ye,scaleX:rt,scaleY:dt,subtype:Ee.smask.subtype,backdrop:Ee.smask.backdrop,transferMap:Ee.smask.transferMap||null,startTransformInverse:null}):(Ae.setTransform(1,0,0,1,0,0),Ae.translate(tt,Ye),Ae.scale(rt,dt),Ae.save()),ge(Ae,ut),this.ctx=ut,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(Ae),this.groupLevel++}endGroup(Ee){if(!this.contentVisible)return;this.groupLevel--;const Ae=this.ctx,Ve=this.groupStack.pop();if(this.ctx=Ve,this.ctx.imageSmoothingEnabled=!1,Ee.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const Xe=(0,w.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...Xe);const nt=x.Util.getAxialAlignedBoundingBox([0,0,Ae.canvas.width,Ae.canvas.height],Xe);this.ctx.drawImage(Ae.canvas,0,0),this.ctx.restore(),this.compose(nt)}}beginAnnotation(Ee,Ae,Ve,Xe,nt){if(this.#e(),Pe(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(Ae)&&Ae.length===4){const tt=Ae[2]-Ae[0],Ye=Ae[3]-Ae[1];if(nt&&this.annotationCanvasMap){Ve=Ve.slice(),Ve[4]-=Ae[0],Ve[5]-=Ae[1],Ae=Ae.slice(),Ae[0]=Ae[1]=0,Ae[2]=tt,Ae[3]=Ye;const[He,Ge]=x.Util.singularValueDecompose2dScale((0,w.getCurrentTransform)(this.ctx)),{viewportScale:rt}=this,dt=Math.ceil(tt*this.outputScaleX*rt),vt=Math.ceil(Ye*this.outputScaleY*rt);this.annotationCanvas=this.canvasFactory.create(dt,vt);const{canvas:yt,context:ut}=this.annotationCanvas;this.annotationCanvasMap.set(Ee,yt),this.annotationCanvas.savedCtx=this.ctx,this.ctx=ut,this.ctx.save(),this.ctx.setTransform(He,0,0,-Ge,0,Ye*Ge),Pe(this.ctx)}else Pe(this.ctx),this.ctx.rect(Ae[0],Ae[1],tt,Ye),this.ctx.clip(),this.endPath()}this.current=new fe(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...Ve),this.transform(...Xe)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(Ee){if(!this.contentVisible)return;const Ae=Ee.count;Ee=this.getObject(Ee.data,Ee),Ee.count=Ae;const Ve=this.ctx,Xe=this.processingType3;if(Xe&&(Xe.compiled===void 0&&(Xe.compiled=me(Ee)),Xe.compiled)){Xe.compiled(Ve);return}const nt=this._createMaskCanvas(Ee),tt=nt.canvas;Ve.save(),Ve.setTransform(1,0,0,1,0,0),Ve.drawImage(tt,nt.offsetX,nt.offsetY),Ve.restore(),this.compose()}paintImageMaskXObjectRepeat(Ee,Ae,Ve=0,Xe=0,nt,tt){if(!this.contentVisible)return;Ee=this.getObject(Ee.data,Ee);const Ye=this.ctx;Ye.save();const He=(0,w.getCurrentTransform)(Ye);Ye.transform(Ae,Ve,Xe,nt,0,0);const Ge=this._createMaskCanvas(Ee);Ye.setTransform(1,0,0,1,Ge.offsetX-He[4],Ge.offsetY-He[5]);for(let rt=0,dt=tt.length;rt<dt;rt+=2){const vt=x.Util.transform(He,[Ae,Ve,Xe,nt,tt[rt],tt[rt+1]]),[yt,ut]=x.Util.applyTransform([0,0],vt);Ye.drawImage(Ge.canvas,yt,ut)}Ye.restore(),this.compose()}paintImageMaskXObjectGroup(Ee){if(!this.contentVisible)return;const Ae=this.ctx,Ve=this.current.fillColor,Xe=this.current.patternFill;for(const nt of Ee){const{data:tt,width:Ye,height:He,transform:Ge}=nt,rt=this.cachedCanvases.getCanvas("maskCanvas",Ye,He),dt=rt.context;dt.save();const vt=this.getObject(tt,nt);Te(dt,vt),dt.globalCompositeOperation="source-in",dt.fillStyle=Xe?Ve.getPattern(dt,this,(0,w.getCurrentTransformInverse)(Ae),j.PathType.FILL):Ve,dt.fillRect(0,0,Ye,He),dt.restore(),Ae.save(),Ae.transform(...Ge),Ae.scale(1,-1),ue(Ae,rt.canvas,0,0,Ye,He,0,-1,1,1),Ae.restore()}this.compose()}paintImageXObject(Ee){if(!this.contentVisible)return;const Ae=this.getObject(Ee);if(!Ae){(0,x.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(Ae)}paintImageXObjectRepeat(Ee,Ae,Ve,Xe){if(!this.contentVisible)return;const nt=this.getObject(Ee);if(!nt){(0,x.warn)("Dependent image isn't ready yet");return}const tt=nt.width,Ye=nt.height,He=[];for(let Ge=0,rt=Xe.length;Ge<rt;Ge+=2)He.push({transform:[Ae,0,0,Ve,Xe[Ge],Xe[Ge+1]],x:0,y:0,w:tt,h:Ye});this.paintInlineImageXObjectGroup(nt,He)}applyTransferMapsToCanvas(Ee){return this.current.transferMaps!=="none"&&(Ee.filter=this.current.transferMaps,Ee.drawImage(Ee.canvas,0,0),Ee.filter="none"),Ee.canvas}applyTransferMapsToBitmap(Ee){if(this.current.transferMaps==="none")return Ee.bitmap;const{bitmap:Ae,width:Ve,height:Xe}=Ee,nt=this.cachedCanvases.getCanvas("inlineImage",Ve,Xe),tt=nt.context;return tt.filter=this.current.transferMaps,tt.drawImage(Ae,0,0),tt.filter="none",nt.canvas}paintInlineImageXObject(Ee){if(!this.contentVisible)return;const Ae=Ee.width,Ve=Ee.height,Xe=this.ctx;if(this.save(),!x.isNodeJS){const{filter:Ye}=Xe;Ye!=="none"&&Ye!==""&&(Xe.filter="none")}Xe.scale(1/Ae,-1/Ve);let nt;if(Ee.bitmap)nt=this.applyTransferMapsToBitmap(Ee);else if(typeof HTMLElement=="function"&&Ee instanceof HTMLElement||!Ee.data)nt=Ee;else{const He=this.cachedCanvases.getCanvas("inlineImage",Ae,Ve).context;xe(He,Ee),nt=this.applyTransferMapsToCanvas(He)}const tt=this._scaleImage(nt,(0,w.getCurrentTransformInverse)(Xe));Xe.imageSmoothingEnabled=Be((0,w.getCurrentTransform)(Xe),Ee.interpolate),ue(Xe,tt.img,0,0,tt.paintWidth,tt.paintHeight,0,-Ve,Ae,Ve),this.compose(),this.restore()}paintInlineImageXObjectGroup(Ee,Ae){if(!this.contentVisible)return;const Ve=this.ctx;let Xe;if(Ee.bitmap)Xe=Ee.bitmap;else{const nt=Ee.width,tt=Ee.height,He=this.cachedCanvases.getCanvas("inlineImage",nt,tt).context;xe(He,Ee),Xe=this.applyTransferMapsToCanvas(He)}for(const nt of Ae)Ve.save(),Ve.transform(...nt.transform),Ve.scale(1,-1),ue(Ve,Xe,nt.x,nt.y,nt.w,nt.h,0,-1,1,1),Ve.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(Ee){}markPointProps(Ee,Ae){}beginMarkedContent(Ee){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(Ee,Ae){Ee==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(Ae)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(Ee){const Ae=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(Ee);const Ve=this.ctx;this.pendingClip&&(Ae||(this.pendingClip===We?Ve.clip("evenodd"):Ve.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),Ve.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const Ee=(0,w.getCurrentTransform)(this.ctx);if(Ee[1]===0&&Ee[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(Ee[0]),Math.abs(Ee[3]));else{const Ae=Math.abs(Ee[0]*Ee[3]-Ee[2]*Ee[1]),Ve=Math.hypot(Ee[0],Ee[2]),Xe=Math.hypot(Ee[1],Ee[3]);this._cachedGetSinglePixelWidth=Math.max(Ve,Xe)/Ae}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:Ee}=this.current,{a:Ae,b:Ve,c:Xe,d:nt}=this.ctx.getTransform();let tt,Ye;if(Ve===0&&Xe===0){const He=Math.abs(Ae),Ge=Math.abs(nt);if(He===Ge)if(Ee===0)tt=Ye=1/He;else{const rt=He*Ee;tt=Ye=rt<1?1/rt:1}else if(Ee===0)tt=1/He,Ye=1/Ge;else{const rt=He*Ee,dt=Ge*Ee;tt=rt<1?1/rt:1,Ye=dt<1?1/dt:1}}else{const He=Math.abs(Ae*nt-Ve*Xe),Ge=Math.hypot(Ae,Ve),rt=Math.hypot(Xe,nt);if(Ee===0)tt=rt/He,Ye=Ge/He;else{const dt=Ee*He;tt=rt>dt?rt/dt:1,Ye=Ge>dt?Ge/dt:1}}this._cachedScaleForStroking[0]=tt,this._cachedScaleForStroking[1]=Ye}return this._cachedScaleForStroking}rescaleAndStroke(Ee){const{ctx:Ae}=this,{lineWidth:Ve}=this.current,[Xe,nt]=this.getScaleForStroking();if(Ae.lineWidth=Ve||1,Xe===1&&nt===1){Ae.stroke();return}const tt=Ae.getLineDash();if(Ee&&Ae.save(),Ae.scale(Xe,nt),tt.length>0){const Ye=Math.max(Xe,nt);Ae.setLineDash(tt.map(He=>He/Ye)),Ae.lineDashOffset/=Ye}Ae.stroke(),Ee&&Ae.restore()}isContentVisible(){for(let Ee=this.markedContentStack.length-1;Ee>=0;Ee--)if(!this.markedContentStack[Ee].visible)return!1;return!0}}s.CanvasGraphics=Oe;for(const ke in x.OPS)Oe.prototype[ke]!==void 0&&(Oe.prototype[x.OPS[ke]]=Oe.prototype[ke])},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TilingPattern=s.PathType=void 0,s.getShadingPattern=oe;var x=l(1),w=l(6);const j={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};s.PathType=j;function V(ue,me){if(!me)return;const fe=me[2]-me[0],xe=me[3]-me[1],Te=new Path2D;Te.rect(me[0],me[1],fe,xe),ue.clip(Te)}class W{constructor(){this.constructor===W&&(0,x.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,x.unreachable)("Abstract method `getPattern` called.")}}class U extends W{constructor(me){super(),this._type=me[1],this._bbox=me[2],this._colorStops=me[3],this._p0=me[4],this._p1=me[5],this._r0=me[6],this._r1=me[7],this.matrix=null}_createGradient(me){let fe;this._type==="axial"?fe=me.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(fe=me.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const xe of this._colorStops)fe.addColorStop(xe[0],xe[1]);return fe}getPattern(me,fe,xe,Te){let ge;if(Te===j.STROKE||Te===j.FILL){const Pe=fe.current.getClippedPathBoundingBox(Te,(0,w.getCurrentTransform)(me))||[0,0,0,0],Se=Math.ceil(Pe[2]-Pe[0])||1,Re=Math.ceil(Pe[3]-Pe[1])||1,De=fe.cachedCanvases.getCanvas("pattern",Se,Re,!0),Le=De.context;Le.clearRect(0,0,Le.canvas.width,Le.canvas.height),Le.beginPath(),Le.rect(0,0,Le.canvas.width,Le.canvas.height),Le.translate(-Pe[0],-Pe[1]),xe=x.Util.transform(xe,[1,0,0,1,Pe[0],Pe[1]]),Le.transform(...fe.baseTransform),this.matrix&&Le.transform(...this.matrix),V(Le,this._bbox),Le.fillStyle=this._createGradient(Le),Le.fill(),ge=me.createPattern(De.canvas,"no-repeat");const _e=new DOMMatrix(xe);ge.setTransform(_e)}else V(me,this._bbox),ge=this._createGradient(me);return ge}}function Y(ue,me,fe,xe,Te,ge,Pe,Se){const Re=me.coords,De=me.colors,Le=ue.data,_e=ue.width*4;let Be;Re[fe+1]>Re[xe+1]&&(Be=fe,fe=xe,xe=Be,Be=ge,ge=Pe,Pe=Be),Re[xe+1]>Re[Te+1]&&(Be=xe,xe=Te,Te=Be,Be=Pe,Pe=Se,Se=Be),Re[fe+1]>Re[xe+1]&&(Be=fe,fe=xe,xe=Be,Be=ge,ge=Pe,Pe=Be);const Fe=(Re[fe]+me.offsetX)*me.scaleX,je=(Re[fe+1]+me.offsetY)*me.scaleY,ze=(Re[xe]+me.offsetX)*me.scaleX,We=(Re[xe+1]+me.offsetY)*me.scaleY,Oe=(Re[Te]+me.offsetX)*me.scaleX,ke=(Re[Te+1]+me.offsetY)*me.scaleY;if(je>=ke)return;const Ee=De[ge],Ae=De[ge+1],Ve=De[ge+2],Xe=De[Pe],nt=De[Pe+1],tt=De[Pe+2],Ye=De[Se],He=De[Se+1],Ge=De[Se+2],rt=Math.round(je),dt=Math.round(ke);let vt,yt,ut,St,Nt,Bt,zt,jt;for(let $t=rt;$t<=dt;$t++){if($t<We){const Tn=$t<je?0:(je-$t)/(je-We);vt=Fe-(Fe-ze)*Tn,yt=Ee-(Ee-Xe)*Tn,ut=Ae-(Ae-nt)*Tn,St=Ve-(Ve-tt)*Tn}else{let Tn;$t>ke?Tn=1:We===ke?Tn=0:Tn=(We-$t)/(We-ke),vt=ze-(ze-Oe)*Tn,yt=Xe-(Xe-Ye)*Tn,ut=nt-(nt-He)*Tn,St=tt-(tt-Ge)*Tn}let Dt;$t<je?Dt=0:$t>ke?Dt=1:Dt=(je-$t)/(je-ke),Nt=Fe-(Fe-Oe)*Dt,Bt=Ee-(Ee-Ye)*Dt,zt=Ae-(Ae-He)*Dt,jt=Ve-(Ve-Ge)*Dt;const Mt=Math.round(Math.min(vt,Nt)),Ot=Math.round(Math.max(vt,Nt));let Vt=_e*$t+Mt*4;for(let Tn=Mt;Tn<=Ot;Tn++)Dt=(vt-Tn)/(vt-Nt),Dt<0?Dt=0:Dt>1&&(Dt=1),Le[Vt++]=yt-(yt-Bt)*Dt|0,Le[Vt++]=ut-(ut-zt)*Dt|0,Le[Vt++]=St-(St-jt)*Dt|0,Le[Vt++]=255}}function X(ue,me,fe){const xe=me.coords,Te=me.colors;let ge,Pe;switch(me.type){case"lattice":const Se=me.verticesPerRow,Re=Math.floor(xe.length/Se)-1,De=Se-1;for(ge=0;ge<Re;ge++){let Le=ge*Se;for(let _e=0;_e<De;_e++,Le++)Y(ue,fe,xe[Le],xe[Le+1],xe[Le+Se],Te[Le],Te[Le+1],Te[Le+Se]),Y(ue,fe,xe[Le+Se+1],xe[Le+1],xe[Le+Se],Te[Le+Se+1],Te[Le+1],Te[Le+Se])}break;case"triangles":for(ge=0,Pe=xe.length;ge<Pe;ge+=3)Y(ue,fe,xe[ge],xe[ge+1],xe[ge+2],Te[ge],Te[ge+1],Te[ge+2]);break;default:throw new Error("illegal figure")}}class Z extends W{constructor(me){super(),this._coords=me[2],this._colors=me[3],this._figures=me[4],this._bounds=me[5],this._bbox=me[7],this._background=me[8],this.matrix=null}_createMeshCanvas(me,fe,xe){const Se=Math.floor(this._bounds[0]),Re=Math.floor(this._bounds[1]),De=Math.ceil(this._bounds[2])-Se,Le=Math.ceil(this._bounds[3])-Re,_e=Math.min(Math.ceil(Math.abs(De*me[0]*1.1)),3e3),Be=Math.min(Math.ceil(Math.abs(Le*me[1]*1.1)),3e3),Fe=De/_e,je=Le/Be,ze={coords:this._coords,colors:this._colors,offsetX:-Se,offsetY:-Re,scaleX:1/Fe,scaleY:1/je},We=_e+2*2,Oe=Be+2*2,ke=xe.getCanvas("mesh",We,Oe,!1),Ee=ke.context,Ae=Ee.createImageData(_e,Be);if(fe){const Xe=Ae.data;for(let nt=0,tt=Xe.length;nt<tt;nt+=4)Xe[nt]=fe[0],Xe[nt+1]=fe[1],Xe[nt+2]=fe[2],Xe[nt+3]=255}for(const Xe of this._figures)X(Ae,Xe,ze);return Ee.putImageData(Ae,2,2),{canvas:ke.canvas,offsetX:Se-2*Fe,offsetY:Re-2*je,scaleX:Fe,scaleY:je}}getPattern(me,fe,xe,Te){V(me,this._bbox);let ge;if(Te===j.SHADING)ge=x.Util.singularValueDecompose2dScale((0,w.getCurrentTransform)(me));else if(ge=x.Util.singularValueDecompose2dScale(fe.baseTransform),this.matrix){const Se=x.Util.singularValueDecompose2dScale(this.matrix);ge=[ge[0]*Se[0],ge[1]*Se[1]]}const Pe=this._createMeshCanvas(ge,Te===j.SHADING?null:this._background,fe.cachedCanvases);return Te!==j.SHADING&&(me.setTransform(...fe.baseTransform),this.matrix&&me.transform(...this.matrix)),me.translate(Pe.offsetX,Pe.offsetY),me.scale(Pe.scaleX,Pe.scaleY),me.createPattern(Pe.canvas,"no-repeat")}}class le extends W{getPattern(){return"hotpink"}}function oe(ue){switch(ue[0]){case"RadialAxial":return new U(ue);case"Mesh":return new Z(ue);case"Dummy":return new le}throw new Error(`Unknown IR type: ${ue[0]}`)}const re={COLORED:1,UNCOLORED:2};class J{static MAX_PATTERN_SIZE=3e3;constructor(me,fe,xe,Te,ge){this.operatorList=me[2],this.matrix=me[3]||[1,0,0,1,0,0],this.bbox=me[4],this.xstep=me[5],this.ystep=me[6],this.paintType=me[7],this.tilingType=me[8],this.color=fe,this.ctx=xe,this.canvasGraphicsFactory=Te,this.baseTransform=ge}createPatternCanvas(me){const fe=this.operatorList,xe=this.bbox,Te=this.xstep,ge=this.ystep,Pe=this.paintType,Se=this.tilingType,Re=this.color,De=this.canvasGraphicsFactory;(0,x.info)("TilingType: "+Se);const Le=xe[0],_e=xe[1],Be=xe[2],Fe=xe[3],je=x.Util.singularValueDecompose2dScale(this.matrix),ze=x.Util.singularValueDecompose2dScale(this.baseTransform),We=[je[0]*ze[0],je[1]*ze[1]],Oe=this.getSizeAndScale(Te,this.ctx.canvas.width,We[0]),ke=this.getSizeAndScale(ge,this.ctx.canvas.height,We[1]),Ee=me.cachedCanvases.getCanvas("pattern",Oe.size,ke.size,!0),Ae=Ee.context,Ve=De.createCanvasGraphics(Ae);Ve.groupLevel=me.groupLevel,this.setFillAndStrokeStyleToContext(Ve,Pe,Re);let Xe=Le,nt=_e,tt=Be,Ye=Fe;return Le<0&&(Xe=0,tt+=Math.abs(Le)),_e<0&&(nt=0,Ye+=Math.abs(_e)),Ae.translate(-(Oe.scale*Xe),-(ke.scale*nt)),Ve.transform(Oe.scale,0,0,ke.scale,0,0),Ae.save(),this.clipBbox(Ve,Xe,nt,tt,Ye),Ve.baseTransform=(0,w.getCurrentTransform)(Ve.ctx),Ve.executeOperatorList(fe),Ve.endDrawing(),{canvas:Ee.canvas,scaleX:Oe.scale,scaleY:ke.scale,offsetX:Xe,offsetY:nt}}getSizeAndScale(me,fe,xe){me=Math.abs(me);const Te=Math.max(J.MAX_PATTERN_SIZE,fe);let ge=Math.ceil(me*xe);return ge>=Te?ge=Te:xe=ge/me,{scale:xe,size:ge}}clipBbox(me,fe,xe,Te,ge){const Pe=Te-fe,Se=ge-xe;me.ctx.rect(fe,xe,Pe,Se),me.current.updateRectMinMax((0,w.getCurrentTransform)(me.ctx),[fe,xe,Te,ge]),me.clip(),me.endPath()}setFillAndStrokeStyleToContext(me,fe,xe){const Te=me.ctx,ge=me.current;switch(fe){case re.COLORED:const Pe=this.ctx;Te.fillStyle=Pe.fillStyle,Te.strokeStyle=Pe.strokeStyle,ge.fillColor=Pe.fillStyle,ge.strokeColor=Pe.strokeStyle;break;case re.UNCOLORED:const Se=x.Util.makeHexColor(xe[0],xe[1],xe[2]);Te.fillStyle=Se,Te.strokeStyle=Se,ge.fillColor=Se,ge.strokeColor=Se;break;default:throw new x.FormatError(`Unsupported paint type: ${fe}`)}}getPattern(me,fe,xe,Te){let ge=xe;Te!==j.SHADING&&(ge=x.Util.transform(ge,fe.baseTransform),this.matrix&&(ge=x.Util.transform(ge,this.matrix)));const Pe=this.createPatternCanvas(fe);let Se=new DOMMatrix(ge);Se=Se.translate(Pe.offsetX,Pe.offsetY),Se=Se.scale(1/Pe.scaleX,1/Pe.scaleY);const Re=me.createPattern(Pe.canvas,"repeat");return Re.setTransform(Se),Re}}s.TilingPattern=J},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.convertBlackAndWhiteToRGBA=j,s.convertToRGBA=w,s.grayToRGBA=W;var x=l(1);function w(U){switch(U.kind){case x.ImageKind.GRAYSCALE_1BPP:return j(U);case x.ImageKind.RGB_24BPP:return V(U)}return null}function j({src:U,srcPos:Y=0,dest:X,width:Z,height:le,nonBlackColor:oe=4294967295,inverseDecode:re=!1}){const J=x.FeatureTest.isLittleEndian?4278190080:255,[ue,me]=re?[oe,J]:[J,oe],fe=Z>>3,xe=Z&7,Te=U.length;X=new Uint32Array(X.buffer);let ge=0;for(let Pe=0;Pe<le;Pe++){for(const Re=Y+fe;Y<Re;Y++){const De=Y<Te?U[Y]:255;X[ge++]=De&128?me:ue,X[ge++]=De&64?me:ue,X[ge++]=De&32?me:ue,X[ge++]=De&16?me:ue,X[ge++]=De&8?me:ue,X[ge++]=De&4?me:ue,X[ge++]=De&2?me:ue,X[ge++]=De&1?me:ue}if(xe===0)continue;const Se=Y<Te?U[Y++]:255;for(let Re=0;Re<xe;Re++)X[ge++]=Se&1<<7-Re?me:ue}return{srcPos:Y,destPos:ge}}function V({src:U,srcPos:Y=0,dest:X,destPos:Z=0,width:le,height:oe}){let re=0;const J=U.length>>2,ue=new Uint32Array(U.buffer,Y,J);if(x.FeatureTest.isLittleEndian){for(;re<J-2;re+=3,Z+=4){const me=ue[re],fe=ue[re+1],xe=ue[re+2];X[Z]=me|4278190080,X[Z+1]=me>>>24|fe<<8|4278190080,X[Z+2]=fe>>>16|xe<<16|4278190080,X[Z+3]=xe>>>8|4278190080}for(let me=re*4,fe=U.length;me<fe;me+=3)X[Z++]=U[me]|U[me+1]<<8|U[me+2]<<16|4278190080}else{for(;re<J-2;re+=3,Z+=4){const me=ue[re],fe=ue[re+1],xe=ue[re+2];X[Z]=me|255,X[Z+1]=me<<24|fe>>>8|255,X[Z+2]=fe<<16|xe>>>16|255,X[Z+3]=xe<<8|255}for(let me=re*4,fe=U.length;me<fe;me+=3)X[Z++]=U[me]<<24|U[me+1]<<16|U[me+2]<<8|255}return{srcPos:Y,destPos:Z}}function W(U,Y){if(x.FeatureTest.isLittleEndian)for(let X=0,Z=U.length;X<Z;X++)Y[X]=U[X]*65793|4278190080;else for(let X=0,Z=U.length;X<Z;X++)Y[X]=U[X]*16843008|255}},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.GlobalWorkerOptions=void 0;const l=Object.create(null);s.GlobalWorkerOptions=l,l.workerPort=null,l.workerSrc=""},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MessageHandler=void 0;var x=l(1);const w={UNKNOWN:0,DATA:1,ERROR:2},j={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function V(U){switch(U instanceof Error||typeof U=="object"&&U!==null||(0,x.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),U.name){case"AbortException":return new x.AbortException(U.message);case"MissingPDFException":return new x.MissingPDFException(U.message);case"PasswordException":return new x.PasswordException(U.message,U.code);case"UnexpectedResponseException":return new x.UnexpectedResponseException(U.message,U.status);case"UnknownErrorException":return new x.UnknownErrorException(U.message,U.details);default:return new x.UnknownErrorException(U.message,U.toString())}}class W{constructor(Y,X,Z){this.sourceName=Y,this.targetName=X,this.comObj=Z,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=le=>{const oe=le.data;if(oe.targetName!==this.sourceName)return;if(oe.stream){this.#t(oe);return}if(oe.callback){const J=oe.callbackId,ue=this.callbackCapabilities[J];if(!ue)throw new Error(`Cannot resolve callback ${J}`);if(delete this.callbackCapabilities[J],oe.callback===w.DATA)ue.resolve(oe.data);else if(oe.callback===w.ERROR)ue.reject(V(oe.reason));else throw new Error("Unexpected callback case");return}const re=this.actionHandler[oe.action];if(!re)throw new Error(`Unknown action from worker: ${oe.action}`);if(oe.callbackId){const J=this.sourceName,ue=oe.sourceName;new Promise(function(me){me(re(oe.data))}).then(function(me){Z.postMessage({sourceName:J,targetName:ue,callback:w.DATA,callbackId:oe.callbackId,data:me})},function(me){Z.postMessage({sourceName:J,targetName:ue,callback:w.ERROR,callbackId:oe.callbackId,reason:V(me)})});return}if(oe.streamId){this.#e(oe);return}re(oe.data)},Z.addEventListener("message",this._onComObjOnMessage)}on(Y,X){const Z=this.actionHandler;if(Z[Y])throw new Error(`There is already an actionName called "${Y}"`);Z[Y]=X}send(Y,X,Z){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:Y,data:X},Z)}sendWithPromise(Y,X,Z){const le=this.callbackId++,oe=new x.PromiseCapability;this.callbackCapabilities[le]=oe;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:Y,callbackId:le,data:X},Z)}catch(re){oe.reject(re)}return oe.promise}sendWithStream(Y,X,Z,le){const oe=this.streamId++,re=this.sourceName,J=this.targetName,ue=this.comObj;return new ReadableStream({start:me=>{const fe=new x.PromiseCapability;return this.streamControllers[oe]={controller:me,startCall:fe,pullCall:null,cancelCall:null,isClosed:!1},ue.postMessage({sourceName:re,targetName:J,action:Y,streamId:oe,data:X,desiredSize:me.desiredSize},le),fe.promise},pull:me=>{const fe=new x.PromiseCapability;return this.streamControllers[oe].pullCall=fe,ue.postMessage({sourceName:re,targetName:J,stream:j.PULL,streamId:oe,desiredSize:me.desiredSize}),fe.promise},cancel:me=>{(0,x.assert)(me instanceof Error,"cancel must have a valid reason");const fe=new x.PromiseCapability;return this.streamControllers[oe].cancelCall=fe,this.streamControllers[oe].isClosed=!0,ue.postMessage({sourceName:re,targetName:J,stream:j.CANCEL,streamId:oe,reason:V(me)}),fe.promise}},Z)}#e(Y){const X=Y.streamId,Z=this.sourceName,le=Y.sourceName,oe=this.comObj,re=this,J=this.actionHandler[Y.action],ue={enqueue(me,fe=1,xe){if(this.isCancelled)return;const Te=this.desiredSize;this.desiredSize-=fe,Te>0&&this.desiredSize<=0&&(this.sinkCapability=new x.PromiseCapability,this.ready=this.sinkCapability.promise),oe.postMessage({sourceName:Z,targetName:le,stream:j.ENQUEUE,streamId:X,chunk:me},xe)},close(){this.isCancelled||(this.isCancelled=!0,oe.postMessage({sourceName:Z,targetName:le,stream:j.CLOSE,streamId:X}),delete re.streamSinks[X])},error(me){(0,x.assert)(me instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,oe.postMessage({sourceName:Z,targetName:le,stream:j.ERROR,streamId:X,reason:V(me)}))},sinkCapability:new x.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:Y.desiredSize,ready:null};ue.sinkCapability.resolve(),ue.ready=ue.sinkCapability.promise,this.streamSinks[X]=ue,new Promise(function(me){me(J(Y.data,ue))}).then(function(){oe.postMessage({sourceName:Z,targetName:le,stream:j.START_COMPLETE,streamId:X,success:!0})},function(me){oe.postMessage({sourceName:Z,targetName:le,stream:j.START_COMPLETE,streamId:X,reason:V(me)})})}#t(Y){const X=Y.streamId,Z=this.sourceName,le=Y.sourceName,oe=this.comObj,re=this.streamControllers[X],J=this.streamSinks[X];switch(Y.stream){case j.START_COMPLETE:Y.success?re.startCall.resolve():re.startCall.reject(V(Y.reason));break;case j.PULL_COMPLETE:Y.success?re.pullCall.resolve():re.pullCall.reject(V(Y.reason));break;case j.PULL:if(!J){oe.postMessage({sourceName:Z,targetName:le,stream:j.PULL_COMPLETE,streamId:X,success:!0});break}J.desiredSize<=0&&Y.desiredSize>0&&J.sinkCapability.resolve(),J.desiredSize=Y.desiredSize,new Promise(function(ue){ue(J.onPull?.())}).then(function(){oe.postMessage({sourceName:Z,targetName:le,stream:j.PULL_COMPLETE,streamId:X,success:!0})},function(ue){oe.postMessage({sourceName:Z,targetName:le,stream:j.PULL_COMPLETE,streamId:X,reason:V(ue)})});break;case j.ENQUEUE:if((0,x.assert)(re,"enqueue should have stream controller"),re.isClosed)break;re.controller.enqueue(Y.chunk);break;case j.CLOSE:if((0,x.assert)(re,"close should have stream controller"),re.isClosed)break;re.isClosed=!0,re.controller.close(),this.#n(re,X);break;case j.ERROR:(0,x.assert)(re,"error should have stream controller"),re.controller.error(V(Y.reason)),this.#n(re,X);break;case j.CANCEL_COMPLETE:Y.success?re.cancelCall.resolve():re.cancelCall.reject(V(Y.reason)),this.#n(re,X);break;case j.CANCEL:if(!J)break;new Promise(function(ue){ue(J.onCancel?.(V(Y.reason)))}).then(function(){oe.postMessage({sourceName:Z,targetName:le,stream:j.CANCEL_COMPLETE,streamId:X,success:!0})},function(ue){oe.postMessage({sourceName:Z,targetName:le,stream:j.CANCEL_COMPLETE,streamId:X,reason:V(ue)})}),J.sinkCapability.reject(V(Y.reason)),J.isCancelled=!0,delete this.streamSinks[X];break;default:throw new Error("Unexpected stream case")}}async#n(Y,X){await Promise.allSettled([Y.startCall?.promise,Y.pullCall?.promise,Y.cancelCall?.promise]),delete this.streamControllers[X]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}s.MessageHandler=W},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Metadata=void 0;var x=l(1);class w{#e;#t;constructor({parsedData:V,rawData:W}){this.#e=V,this.#t=W}getRaw(){return this.#t}get(V){return this.#e.get(V)??null}getAll(){return(0,x.objectFromMap)(this.#e)}has(V){return this.#e.has(V)}}s.Metadata=w},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.OptionalContentConfig=void 0;var x=l(1),w=l(8);const j=Symbol("INTERNAL");class V{#e=!0;constructor(Y,X){this.name=Y,this.intent=X}get visible(){return this.#e}_setVisible(Y,X){Y!==j&&(0,x.unreachable)("Internal method `_setVisible` called."),this.#e=X}}class W{#e=null;#t=new Map;#n=null;#r=null;constructor(Y){if(this.name=null,this.creator=null,Y!==null){this.name=Y.name,this.creator=Y.creator,this.#r=Y.order;for(const X of Y.groups)this.#t.set(X.id,new V(X.name,X.intent));if(Y.baseState==="OFF")for(const X of this.#t.values())X._setVisible(j,!1);for(const X of Y.on)this.#t.get(X)._setVisible(j,!0);for(const X of Y.off)this.#t.get(X)._setVisible(j,!1);this.#n=this.getHash()}}#s(Y){const X=Y.length;if(X<2)return!0;const Z=Y[0];for(let le=1;le<X;le++){const oe=Y[le];let re;if(Array.isArray(oe))re=this.#s(oe);else if(this.#t.has(oe))re=this.#t.get(oe).visible;else return(0,x.warn)(`Optional content group not found: ${oe}`),!0;switch(Z){case"And":if(!re)return!1;break;case"Or":if(re)return!0;break;case"Not":return!re;default:return!0}}return Z==="And"}isVisible(Y){if(this.#t.size===0)return!0;if(!Y)return(0,x.warn)("Optional content group not defined."),!0;if(Y.type==="OCG")return this.#t.has(Y.id)?this.#t.get(Y.id).visible:((0,x.warn)(`Optional content group not found: ${Y.id}`),!0);if(Y.type==="OCMD"){if(Y.expression)return this.#s(Y.expression);if(!Y.policy||Y.policy==="AnyOn"){for(const X of Y.ids){if(!this.#t.has(X))return(0,x.warn)(`Optional content group not found: ${X}`),!0;if(this.#t.get(X).visible)return!0}return!1}else if(Y.policy==="AllOn"){for(const X of Y.ids){if(!this.#t.has(X))return(0,x.warn)(`Optional content group not found: ${X}`),!0;if(!this.#t.get(X).visible)return!1}return!0}else if(Y.policy==="AnyOff"){for(const X of Y.ids){if(!this.#t.has(X))return(0,x.warn)(`Optional content group not found: ${X}`),!0;if(!this.#t.get(X).visible)return!0}return!1}else if(Y.policy==="AllOff"){for(const X of Y.ids){if(!this.#t.has(X))return(0,x.warn)(`Optional content group not found: ${X}`),!0;if(this.#t.get(X).visible)return!1}return!0}return(0,x.warn)(`Unknown optional content policy ${Y.policy}.`),!0}return(0,x.warn)(`Unknown group type ${Y.type}.`),!0}setVisibility(Y,X=!0){if(!this.#t.has(Y)){(0,x.warn)(`Optional content group not found: ${Y}`);return}this.#t.get(Y)._setVisible(j,!!X),this.#e=null}get hasInitialVisibility(){return this.#n===null||this.getHash()===this.#n}getOrder(){return this.#t.size?this.#r?this.#r.slice():[...this.#t.keys()]:null}getGroups(){return this.#t.size>0?(0,x.objectFromMap)(this.#t):null}getGroup(Y){return this.#t.get(Y)||null}getHash(){if(this.#e!==null)return this.#e;const Y=new w.MurmurHash3_64;for(const[X,Z]of this.#t)Y.update(`${X}:${Z.visible}`);return this.#e=Y.hexdigest()}}s.OptionalContentConfig=W},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFDataTransportStream=void 0;var x=l(1),w=l(6);class j{constructor({length:Y,initialData:X,progressiveDone:Z=!1,contentDispositionFilename:le=null,disableRange:oe=!1,disableStream:re=!1},J){if((0,x.assert)(J,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=Z,this._contentDispositionFilename=le,X?.length>0){const ue=X instanceof Uint8Array&&X.byteLength===X.buffer.byteLength?X.buffer:new Uint8Array(X).buffer;this._queuedChunks.push(ue)}this._pdfDataRangeTransport=J,this._isStreamingSupported=!re,this._isRangeSupported=!oe,this._contentLength=Y,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((ue,me)=>{this._onReceiveData({begin:ue,chunk:me})}),this._pdfDataRangeTransport.addProgressListener((ue,me)=>{this._onProgress({loaded:ue,total:me})}),this._pdfDataRangeTransport.addProgressiveReadListener(ue=>{this._onReceiveData({chunk:ue})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData({begin:Y,chunk:X}){const Z=X instanceof Uint8Array&&X.byteLength===X.buffer.byteLength?X.buffer:new Uint8Array(X).buffer;if(Y===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(Z):this._queuedChunks.push(Z);else{const le=this._rangeReaders.some(function(oe){return oe._begin!==Y?!1:(oe._enqueue(Z),!0)});(0,x.assert)(le,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(Y){Y.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:Y.loaded}):this._fullRequestReader?.onProgress?.({loaded:Y.loaded,total:Y.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(Y){const X=this._rangeReaders.indexOf(Y);X>=0&&this._rangeReaders.splice(X,1)}getFullReader(){(0,x.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const Y=this._queuedChunks;return this._queuedChunks=null,new V(this,Y,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(Y,X){if(X<=this._progressiveDataLength)return null;const Z=new W(this,Y,X);return this._pdfDataRangeTransport.requestDataRange(Y,X),this._rangeReaders.push(Z),Z}cancelAllRequests(Y){this._fullRequestReader?.cancel(Y);for(const X of this._rangeReaders.slice(0))X.cancel(Y);this._pdfDataRangeTransport.abort()}}s.PDFDataTransportStream=j;class V{constructor(Y,X,Z=!1,le=null){this._stream=Y,this._done=Z||!1,this._filename=(0,w.isPdfFile)(le)?le:null,this._queuedChunks=X||[],this._loaded=0;for(const oe of this._queuedChunks)this._loaded+=oe.byteLength;this._requests=[],this._headersReady=Promise.resolve(),Y._fullRequestReader=this,this.onProgress=null}_enqueue(Y){this._done||(this._requests.length>0?this._requests.shift().resolve({value:Y,done:!1}):this._queuedChunks.push(Y),this._loaded+=Y.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const Y=new x.PromiseCapability;return this._requests.push(Y),Y.promise}cancel(Y){this._done=!0;for(const X of this._requests)X.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class W{constructor(Y,X,Z){this._stream=Y,this._begin=X,this._end=Z,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(Y){if(!this._done){if(this._requests.length===0)this._queuedChunk=Y;else{this._requests.shift().resolve({value:Y,done:!1});for(const Z of this._requests)Z.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const X=this._queuedChunk;return this._queuedChunk=null,{value:X,done:!1}}if(this._done)return{value:void 0,done:!0};const Y=new x.PromiseCapability;return this._requests.push(Y),Y.promise}cancel(Y){this._done=!0;for(const X of this._requests)X.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFFetchStream=void 0;var x=l(1),w=l(20);function j(Z,le,oe){return{method:"GET",headers:Z,signal:oe.signal,mode:"cors",credentials:le?"include":"same-origin",redirect:"follow"}}function V(Z){const le=new Headers;for(const oe in Z){const re=Z[oe];re!==void 0&&le.append(oe,re)}return le}function W(Z){return Z instanceof Uint8Array?Z.buffer:Z instanceof ArrayBuffer?Z:((0,x.warn)(`getArrayBuffer - unexpected data format: ${Z}`),new Uint8Array(Z).buffer)}class U{constructor(le){this.source=le,this.isHttp=/^https?:/i.test(le.url),this.httpHeaders=this.isHttp&&le.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,x.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new Y(this),this._fullRequestReader}getRangeReader(le,oe){if(oe<=this._progressiveDataLength)return null;const re=new X(this,le,oe);return this._rangeRequestReaders.push(re),re}cancelAllRequests(le){this._fullRequestReader?.cancel(le);for(const oe of this._rangeRequestReaders.slice(0))oe.cancel(le)}}s.PDFFetchStream=U;class Y{constructor(le){this._stream=le,this._reader=null,this._loaded=0,this._filename=null;const oe=le.source;this._withCredentials=oe.withCredentials||!1,this._contentLength=oe.length,this._headersCapability=new x.PromiseCapability,this._disableRange=oe.disableRange||!1,this._rangeChunkSize=oe.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!oe.disableStream,this._isRangeSupported=!oe.disableRange,this._headers=V(this._stream.httpHeaders);const re=oe.url;fetch(re,j(this._headers,this._withCredentials,this._abortController)).then(J=>{if(!(0,w.validateResponseStatus)(J.status))throw(0,w.createResponseStatusError)(J.status,re);this._reader=J.body.getReader(),this._headersCapability.resolve();const ue=xe=>J.headers.get(xe),{allowRangeRequests:me,suggestedLength:fe}=(0,w.validateRangeRequestCapabilities)({getResponseHeader:ue,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=me,this._contentLength=fe||this._contentLength,this._filename=(0,w.extractFilenameFromHeader)(ue),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new x.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:le,done:oe}=await this._reader.read();return oe?{value:le,done:oe}:(this._loaded+=le.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:W(le),done:!1})}cancel(le){this._reader?.cancel(le),this._abortController.abort()}}class X{constructor(le,oe,re){this._stream=le,this._reader=null,this._loaded=0;const J=le.source;this._withCredentials=J.withCredentials||!1,this._readCapability=new x.PromiseCapability,this._isStreamingSupported=!J.disableStream,this._abortController=new AbortController,this._headers=V(this._stream.httpHeaders),this._headers.append("Range",`bytes=${oe}-${re-1}`);const ue=J.url;fetch(ue,j(this._headers,this._withCredentials,this._abortController)).then(me=>{if(!(0,w.validateResponseStatus)(me.status))throw(0,w.createResponseStatusError)(me.status,ue);this._readCapability.resolve(),this._reader=me.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:le,done:oe}=await this._reader.read();return oe?{value:le,done:oe}:(this._loaded+=le.byteLength,this.onProgress?.({loaded:this._loaded}),{value:W(le),done:!1})}cancel(le){this._reader?.cancel(le),this._abortController.abort()}}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.createResponseStatusError=U,s.extractFilenameFromHeader=W,s.validateRangeRequestCapabilities=V,s.validateResponseStatus=Y;var x=l(1),w=l(21),j=l(6);function V({getResponseHeader:X,isHttp:Z,rangeChunkSize:le,disableRange:oe}){const re={allowRangeRequests:!1,suggestedLength:void 0},J=parseInt(X("Content-Length"),10);return!Number.isInteger(J)||(re.suggestedLength=J,J<=2*le)||oe||!Z||X("Accept-Ranges")!=="bytes"||(X("Content-Encoding")||"identity")!=="identity"||(re.allowRangeRequests=!0),re}function W(X){const Z=X("Content-Disposition");if(Z){let le=(0,w.getFilenameFromContentDispositionHeader)(Z);if(le.includes("%"))try{le=decodeURIComponent(le)}catch{}if((0,j.isPdfFile)(le))return le}return null}function U(X,Z){return X===404||X===0&&Z.startsWith("file:")?new x.MissingPDFException('Missing PDF "'+Z+'".'):new x.UnexpectedResponseException(`Unexpected server response (${X}) while retrieving PDF "${Z}".`,X)}function Y(X){return X===200||X===206}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.getFilenameFromContentDispositionHeader=w;var x=l(1);function w(j){let V=!0,W=U("filename\\*","i").exec(j);if(W){W=W[1];let J=le(W);return J=unescape(J),J=oe(J),J=re(J),X(J)}if(W=Z(j),W){const J=re(W);return X(J)}if(W=U("filename","i").exec(j),W){W=W[1];let J=le(W);return J=re(J),X(J)}function U(J,ue){return new RegExp("(?:^|;)\\s*"+J+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',ue)}function Y(J,ue){if(J){if(!/^[\x00-\xFF]+$/.test(ue))return ue;try{const me=new TextDecoder(J,{fatal:!0}),fe=(0,x.stringToBytes)(ue);ue=me.decode(fe),V=!1}catch{}}return ue}function X(J){return V&&/[\x80-\xff]/.test(J)&&(J=Y("utf-8",J),V&&(J=Y("iso-8859-1",J))),J}function Z(J){const ue=[];let me;const fe=U("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(me=fe.exec(J))!==null;){let[,Te,ge,Pe]=me;if(Te=parseInt(Te,10),Te in ue){if(Te===0)break;continue}ue[Te]=[ge,Pe]}const xe=[];for(let Te=0;Te<ue.length&&Te in ue;++Te){let[ge,Pe]=ue[Te];Pe=le(Pe),ge&&(Pe=unescape(Pe),Te===0&&(Pe=oe(Pe))),xe.push(Pe)}return xe.join("")}function le(J){if(J.startsWith('"')){const ue=J.slice(1).split('\\"');for(let me=0;me<ue.length;++me){const fe=ue[me].indexOf('"');fe!==-1&&(ue[me]=ue[me].slice(0,fe),ue.length=me+1),ue[me]=ue[me].replaceAll(/\\(.)/g,"$1")}J=ue.join('"')}return J}function oe(J){const ue=J.indexOf("'");if(ue===-1)return J;const me=J.slice(0,ue),xe=J.slice(ue+1).replace(/^[^']*'/,"");return Y(me,xe)}function re(J){return!J.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(J)?J:J.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(ue,me,fe,xe){if(fe==="q"||fe==="Q")return xe=xe.replaceAll("_"," "),xe=xe.replaceAll(/=([0-9a-fA-F]{2})/g,function(Te,ge){return String.fromCharCode(parseInt(ge,16))}),Y(me,xe);try{xe=atob(xe)}catch{}return Y(me,xe)})}return""}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFNetworkStream=void 0;var x=l(1),w=l(20);const j=200,V=206;function W(le){const oe=le.response;return typeof oe!="string"?oe:(0,x.stringToBytes)(oe).buffer}class U{constructor(oe,re={}){this.url=oe,this.isHttp=/^https?:/i.test(oe),this.httpHeaders=this.isHttp&&re.httpHeaders||Object.create(null),this.withCredentials=re.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(oe,re,J){const ue={begin:oe,end:re};for(const me in J)ue[me]=J[me];return this.request(ue)}requestFull(oe){return this.request(oe)}request(oe){const re=new XMLHttpRequest,J=this.currXhrId++,ue=this.pendingRequests[J]={xhr:re};re.open("GET",this.url),re.withCredentials=this.withCredentials;for(const me in this.httpHeaders){const fe=this.httpHeaders[me];fe!==void 0&&re.setRequestHeader(me,fe)}return this.isHttp&&"begin"in oe&&"end"in oe?(re.setRequestHeader("Range",`bytes=${oe.begin}-${oe.end-1}`),ue.expectedStatus=V):ue.expectedStatus=j,re.responseType="arraybuffer",oe.onError&&(re.onerror=function(me){oe.onError(re.status)}),re.onreadystatechange=this.onStateChange.bind(this,J),re.onprogress=this.onProgress.bind(this,J),ue.onHeadersReceived=oe.onHeadersReceived,ue.onDone=oe.onDone,ue.onError=oe.onError,ue.onProgress=oe.onProgress,re.send(null),J}onProgress(oe,re){const J=this.pendingRequests[oe];J&&J.onProgress?.(re)}onStateChange(oe,re){const J=this.pendingRequests[oe];if(!J)return;const ue=J.xhr;if(ue.readyState>=2&&J.onHeadersReceived&&(J.onHeadersReceived(),delete J.onHeadersReceived),ue.readyState!==4||!(oe in this.pendingRequests))return;if(delete this.pendingRequests[oe],ue.status===0&&this.isHttp){J.onError?.(ue.status);return}const me=ue.status||j;if(!(me===j&&J.expectedStatus===V)&&me!==J.expectedStatus){J.onError?.(ue.status);return}const xe=W(ue);if(me===V){const Te=ue.getResponseHeader("Content-Range"),ge=/bytes (\d+)-(\d+)\/(\d+)/.exec(Te);J.onDone({begin:parseInt(ge[1],10),chunk:xe})}else xe?J.onDone({begin:0,chunk:xe}):J.onError?.(ue.status)}getRequestXhr(oe){return this.pendingRequests[oe].xhr}isPendingRequest(oe){return oe in this.pendingRequests}abortRequest(oe){const re=this.pendingRequests[oe].xhr;delete this.pendingRequests[oe],re.abort()}}class Y{constructor(oe){this._source=oe,this._manager=new U(oe.url,{httpHeaders:oe.httpHeaders,withCredentials:oe.withCredentials}),this._rangeChunkSize=oe.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(oe){const re=this._rangeRequestReaders.indexOf(oe);re>=0&&this._rangeRequestReaders.splice(re,1)}getFullReader(){return(0,x.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new X(this._manager,this._source),this._fullRequestReader}getRangeReader(oe,re){const J=new Z(this._manager,oe,re);return J.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(J),J}cancelAllRequests(oe){this._fullRequestReader?.cancel(oe);for(const re of this._rangeRequestReaders.slice(0))re.cancel(oe)}}s.PDFNetworkStream=Y;class X{constructor(oe,re){this._manager=oe;const J={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=re.url,this._fullRequestId=oe.requestFull(J),this._headersReceivedCapability=new x.PromiseCapability,this._disableRange=re.disableRange||!1,this._contentLength=re.length,this._rangeChunkSize=re.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const oe=this._fullRequestId,re=this._manager.getRequestXhr(oe),J=fe=>re.getResponseHeader(fe),{allowRangeRequests:ue,suggestedLength:me}=(0,w.validateRangeRequestCapabilities)({getResponseHeader:J,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});ue&&(this._isRangeSupported=!0),this._contentLength=me||this._contentLength,this._filename=(0,w.extractFilenameFromHeader)(J),this._isRangeSupported&&this._manager.abortRequest(oe),this._headersReceivedCapability.resolve()}_onDone(oe){if(oe&&(this._requests.length>0?this._requests.shift().resolve({value:oe.chunk,done:!1}):this._cachedChunks.push(oe.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const re of this._requests)re.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(oe){this._storedError=(0,w.createResponseStatusError)(oe,this._url),this._headersReceivedCapability.reject(this._storedError);for(const re of this._requests)re.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(oe){this.onProgress?.({loaded:oe.loaded,total:oe.lengthComputable?oe.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const oe=new x.PromiseCapability;return this._requests.push(oe),oe.promise}cancel(oe){this._done=!0,this._headersReceivedCapability.reject(oe);for(const re of this._requests)re.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class Z{constructor(oe,re,J){this._manager=oe;const ue={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=oe.url,this._requestId=oe.requestRange(re,J,ue),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(oe){const re=oe.chunk;this._requests.length>0?this._requests.shift().resolve({value:re,done:!1}):this._queuedChunk=re,this._done=!0;for(const J of this._requests)J.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(oe){this._storedError=(0,w.createResponseStatusError)(oe,this._url);for(const re of this._requests)re.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(oe){this.isStreamingSupported||this.onProgress?.({loaded:oe.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const re=this._queuedChunk;return this._queuedChunk=null,{value:re,done:!1}}if(this._done)return{value:void 0,done:!0};const oe=new x.PromiseCapability;return this._requests.push(oe),oe.promise}cancel(oe){this._done=!0;for(const re of this._requests)re.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFNodeStream=void 0;var x=l(1),w=l(20);const j=/^file:\/\/\/[a-zA-Z]:\//;function V(J){const ue=require$$5,me=ue.parse(J);return me.protocol==="file:"||me.host?me:/^[a-z]:[/\\]/i.test(J)?ue.parse(`file:///${J}`):(me.host||(me.protocol="file:"),me)}class W{constructor(ue){this.source=ue,this.url=V(ue.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&ue.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,x.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new oe(this):new Z(this),this._fullRequestReader}getRangeReader(ue,me){if(me<=this._progressiveDataLength)return null;const fe=this.isFsUrl?new re(this,ue,me):new le(this,ue,me);return this._rangeRequestReaders.push(fe),fe}cancelAllRequests(ue){this._fullRequestReader?.cancel(ue);for(const me of this._rangeRequestReaders.slice(0))me.cancel(ue)}}s.PDFNodeStream=W;class U{constructor(ue){this._url=ue.url,this._done=!1,this._storedError=null,this.onProgress=null;const me=ue.source;this._contentLength=me.length,this._loaded=0,this._filename=null,this._disableRange=me.disableRange||!1,this._rangeChunkSize=me.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!me.disableStream,this._isRangeSupported=!me.disableRange,this._readableStream=null,this._readCapability=new x.PromiseCapability,this._headersCapability=new x.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const ue=this._readableStream.read();return ue===null?(this._readCapability=new x.PromiseCapability,this.read()):(this._loaded+=ue.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(ue).buffer,done:!1})}cancel(ue){if(!this._readableStream){this._error(ue);return}this._readableStream.destroy(ue)}_error(ue){this._storedError=ue,this._readCapability.resolve()}_setReadableStream(ue){this._readableStream=ue,ue.on("readable",()=>{this._readCapability.resolve()}),ue.on("end",()=>{ue.destroy(),this._done=!0,this._readCapability.resolve()}),ue.on("error",me=>{this._error(me)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new x.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class Y{constructor(ue){this._url=ue.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new x.PromiseCapability;const me=ue.source;this._isStreamingSupported=!me.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const ue=this._readableStream.read();return ue===null?(this._readCapability=new x.PromiseCapability,this.read()):(this._loaded+=ue.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(ue).buffer,done:!1})}cancel(ue){if(!this._readableStream){this._error(ue);return}this._readableStream.destroy(ue)}_error(ue){this._storedError=ue,this._readCapability.resolve()}_setReadableStream(ue){this._readableStream=ue,ue.on("readable",()=>{this._readCapability.resolve()}),ue.on("end",()=>{ue.destroy(),this._done=!0,this._readCapability.resolve()}),ue.on("error",me=>{this._error(me)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function X(J,ue){return{protocol:J.protocol,auth:J.auth,host:J.hostname,port:J.port,path:J.path,method:"GET",headers:ue}}class Z extends U{constructor(ue){super(ue);const me=fe=>{if(fe.statusCode===404){const Pe=new x.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=Pe,this._headersCapability.reject(Pe);return}this._headersCapability.resolve(),this._setReadableStream(fe);const xe=Pe=>this._readableStream.headers[Pe.toLowerCase()],{allowRangeRequests:Te,suggestedLength:ge}=(0,w.validateRangeRequestCapabilities)({getResponseHeader:xe,isHttp:ue.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=Te,this._contentLength=ge||this._contentLength,this._filename=(0,w.extractFilenameFromHeader)(xe)};if(this._request=null,this._url.protocol==="http:"){const fe=require$$5;this._request=fe.request(X(this._url,ue.httpHeaders),me)}else{const fe=require$$5;this._request=fe.request(X(this._url,ue.httpHeaders),me)}this._request.on("error",fe=>{this._storedError=fe,this._headersCapability.reject(fe)}),this._request.end()}}class le extends Y{constructor(ue,me,fe){super(ue),this._httpHeaders={};for(const Te in ue.httpHeaders){const ge=ue.httpHeaders[Te];ge!==void 0&&(this._httpHeaders[Te]=ge)}this._httpHeaders.Range=`bytes=${me}-${fe-1}`;const xe=Te=>{if(Te.statusCode===404){const ge=new x.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=ge;return}this._setReadableStream(Te)};if(this._request=null,this._url.protocol==="http:"){const Te=require$$5;this._request=Te.request(X(this._url,this._httpHeaders),xe)}else{const Te=require$$5;this._request=Te.request(X(this._url,this._httpHeaders),xe)}this._request.on("error",Te=>{this._storedError=Te}),this._request.end()}}class oe extends U{constructor(ue){super(ue);let me=decodeURIComponent(this._url.path);j.test(this._url.href)&&(me=me.replace(/^\//,""));const fe=require$$5;fe.lstat(me,(xe,Te)=>{if(xe){xe.code==="ENOENT"&&(xe=new x.MissingPDFException(`Missing PDF "${me}".`)),this._storedError=xe,this._headersCapability.reject(xe);return}this._contentLength=Te.size,this._setReadableStream(fe.createReadStream(me)),this._headersCapability.resolve()})}}class re extends Y{constructor(ue,me,fe){super(ue);let xe=decodeURIComponent(this._url.path);j.test(this._url.href)&&(xe=xe.replace(/^\//,""));const Te=require$$5;this._setReadableStream(Te.createReadStream(xe,{start:me,end:fe-1}))}}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SVGGraphics=void 0;var x=l(6),w=l(1);const j={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},V="http://www.w3.org/XML/1998/namespace",W="http://www.w3.org/1999/xlink",U=["butt","round","square"],Y=["miter","round","bevel"],X=function(Te,ge="",Pe=!1){if(URL.createObjectURL&&typeof Blob<"u"&&!Pe)return URL.createObjectURL(new Blob([Te],{type:ge}));const Se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let Re=`data:${ge};base64,`;for(let De=0,Le=Te.length;De<Le;De+=3){const _e=Te[De]&255,Be=Te[De+1]&255,Fe=Te[De+2]&255,je=_e>>2,ze=(_e&3)<<4|Be>>4,We=De+1<Le?(Be&15)<<2|Fe>>6:64,Oe=De+2<Le?Fe&63:64;Re+=Se[je]+Se[ze]+Se[We]+Se[Oe]}return Re},Z=function(){const Te=new Uint8Array([137,80,78,71,13,10,26,10]),ge=12,Pe=new Int32Array(256);for(let Fe=0;Fe<256;Fe++){let je=Fe;for(let ze=0;ze<8;ze++)je=je&1?3988292384^je>>1&2147483647:je>>1&2147483647;Pe[Fe]=je}function Se(Fe,je,ze){let We=-1;for(let Oe=je;Oe<ze;Oe++){const ke=(We^Fe[Oe])&255,Ee=Pe[ke];We=We>>>8^Ee}return We^-1}function Re(Fe,je,ze,We){let Oe=We;const ke=je.length;ze[Oe]=ke>>24&255,ze[Oe+1]=ke>>16&255,ze[Oe+2]=ke>>8&255,ze[Oe+3]=ke&255,Oe+=4,ze[Oe]=Fe.charCodeAt(0)&255,ze[Oe+1]=Fe.charCodeAt(1)&255,ze[Oe+2]=Fe.charCodeAt(2)&255,ze[Oe+3]=Fe.charCodeAt(3)&255,Oe+=4,ze.set(je,Oe),Oe+=je.length;const Ee=Se(ze,We+4,Oe);ze[Oe]=Ee>>24&255,ze[Oe+1]=Ee>>16&255,ze[Oe+2]=Ee>>8&255,ze[Oe+3]=Ee&255}function De(Fe,je,ze){let We=1,Oe=0;for(let ke=je;ke<ze;++ke)We=(We+(Fe[ke]&255))%65521,Oe=(Oe+We)%65521;return Oe<<16|We}function Le(Fe){if(!w.isNodeJS)return _e(Fe);try{const je=parseInt(process.versions.node)>=8?Fe:Buffer.from(Fe),ze=require$$5.deflateSync(je,{level:9});return ze instanceof Uint8Array?ze:new Uint8Array(ze)}catch(je){(0,w.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+je)}return _e(Fe)}function _e(Fe){let je=Fe.length;const ze=65535,We=Math.ceil(je/ze),Oe=new Uint8Array(2+je+We*5+4);let ke=0;Oe[ke++]=120,Oe[ke++]=156;let Ee=0;for(;je>ze;)Oe[ke++]=0,Oe[ke++]=255,Oe[ke++]=255,Oe[ke++]=0,Oe[ke++]=0,Oe.set(Fe.subarray(Ee,Ee+ze),ke),ke+=ze,Ee+=ze,je-=ze;Oe[ke++]=1,Oe[ke++]=je&255,Oe[ke++]=je>>8&255,Oe[ke++]=~je&65535&255,Oe[ke++]=(~je&65535)>>8&255,Oe.set(Fe.subarray(Ee),ke),ke+=Fe.length-Ee;const Ae=De(Fe,0,Fe.length);return Oe[ke++]=Ae>>24&255,Oe[ke++]=Ae>>16&255,Oe[ke++]=Ae>>8&255,Oe[ke++]=Ae&255,Oe}function Be(Fe,je,ze,We){const Oe=Fe.width,ke=Fe.height;let Ee,Ae,Ve;const Xe=Fe.data;switch(je){case w.ImageKind.GRAYSCALE_1BPP:Ae=0,Ee=1,Ve=Oe+7>>3;break;case w.ImageKind.RGB_24BPP:Ae=2,Ee=8,Ve=Oe*3;break;case w.ImageKind.RGBA_32BPP:Ae=6,Ee=8,Ve=Oe*4;break;default:throw new Error("invalid format")}const nt=new Uint8Array((1+Ve)*ke);let tt=0,Ye=0;for(let yt=0;yt<ke;++yt)nt[tt++]=0,nt.set(Xe.subarray(Ye,Ye+Ve),tt),Ye+=Ve,tt+=Ve;if(je===w.ImageKind.GRAYSCALE_1BPP&&We){tt=0;for(let yt=0;yt<ke;yt++){tt++;for(let ut=0;ut<Ve;ut++)nt[tt++]^=255}}const He=new Uint8Array([Oe>>24&255,Oe>>16&255,Oe>>8&255,Oe&255,ke>>24&255,ke>>16&255,ke>>8&255,ke&255,Ee,Ae,0,0,0]),Ge=Le(nt),rt=Te.length+ge*3+He.length+Ge.length,dt=new Uint8Array(rt);let vt=0;return dt.set(Te,vt),vt+=Te.length,Re("IHDR",He,dt,vt),vt+=ge+He.length,Re("IDATA",Ge,dt,vt),vt+=ge+Ge.length,Re("IEND",new Uint8Array(0),dt,vt),X(dt,"image/png",ze)}return function(je,ze,We){const Oe=je.kind===void 0?w.ImageKind.GRAYSCALE_1BPP:je.kind;return Be(je,Oe,ze,We)}}();class le{constructor(){this.fontSizeScale=1,this.fontWeight=j.fontWeight,this.fontSize=0,this.textMatrix=w.IDENTITY_MATRIX,this.fontMatrix=w.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=w.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=j.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(ge,Pe){this.x=ge,this.y=Pe}}function oe(Te){let ge=[];const Pe=[];for(const Se of Te){if(Se.fn==="save"){ge.push({fnId:92,fn:"group",items:[]}),Pe.push(ge),ge=ge.at(-1).items;continue}Se.fn==="restore"?ge=Pe.pop():ge.push(Se)}return ge}function re(Te){if(Number.isInteger(Te))return Te.toString();const ge=Te.toFixed(10);let Pe=ge.length-1;if(ge[Pe]!=="0")return ge;do Pe--;while(ge[Pe]==="0");return ge.substring(0,ge[Pe]==="."?Pe:Pe+1)}function J(Te){if(Te[4]===0&&Te[5]===0){if(Te[1]===0&&Te[2]===0)return Te[0]===1&&Te[3]===1?"":`scale(${re(Te[0])} ${re(Te[3])})`;if(Te[0]===Te[3]&&Te[1]===-Te[2]){const ge=Math.acos(Te[0])*180/Math.PI;return`rotate(${re(ge)})`}}else if(Te[0]===1&&Te[1]===0&&Te[2]===0&&Te[3]===1)return`translate(${re(Te[4])} ${re(Te[5])})`;return`matrix(${re(Te[0])} ${re(Te[1])} ${re(Te[2])} ${re(Te[3])} ${re(Te[4])} ${re(Te[5])})`}let ue=0,me=0,fe=0;class xe{constructor(ge,Pe,Se=!1){(0,x.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new x.DOMSVGFactory,this.current=new le,this.transformMatrix=w.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=ge,this.objs=Pe,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!Se,this._operatorIdMapping=[];for(const Re in w.OPS)this._operatorIdMapping[w.OPS[Re]]=Re}getObject(ge,Pe=null){return typeof ge=="string"?ge.startsWith("g_")?this.commonObjs.get(ge):this.objs.get(ge):Pe}save(){this.transformStack.push(this.transformMatrix);const ge=this.current;this.extraStack.push(ge),this.current=ge.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(ge){this.save(),this.executeOpTree(ge),this.restore()}loadDependencies(ge){const Pe=ge.fnArray,Se=ge.argsArray;for(let Re=0,De=Pe.length;Re<De;Re++)if(Pe[Re]===w.OPS.dependency)for(const Le of Se[Re]){const _e=Le.startsWith("g_")?this.commonObjs:this.objs,Be=new Promise(Fe=>{_e.get(Le,Fe)});this.current.dependencies.push(Be)}return Promise.all(this.current.dependencies)}transform(ge,Pe,Se,Re,De,Le){const _e=[ge,Pe,Se,Re,De,Le];this.transformMatrix=w.Util.transform(this.transformMatrix,_e),this.tgrp=null}getSVG(ge,Pe){this.viewport=Pe;const Se=this._initialize(Pe);return this.loadDependencies(ge).then(()=>(this.transformMatrix=w.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(ge)),Se))}convertOpList(ge){const Pe=this._operatorIdMapping,Se=ge.argsArray,Re=ge.fnArray,De=[];for(let Le=0,_e=Re.length;Le<_e;Le++){const Be=Re[Le];De.push({fnId:Be,fn:Pe[Be],args:Se[Le]})}return oe(De)}executeOpTree(ge){for(const Pe of ge){const Se=Pe.fn,Re=Pe.fnId,De=Pe.args;switch(Re|0){case w.OPS.beginText:this.beginText();break;case w.OPS.dependency:break;case w.OPS.setLeading:this.setLeading(De);break;case w.OPS.setLeadingMoveText:this.setLeadingMoveText(De[0],De[1]);break;case w.OPS.setFont:this.setFont(De);break;case w.OPS.showText:this.showText(De[0]);break;case w.OPS.showSpacedText:this.showText(De[0]);break;case w.OPS.endText:this.endText();break;case w.OPS.moveText:this.moveText(De[0],De[1]);break;case w.OPS.setCharSpacing:this.setCharSpacing(De[0]);break;case w.OPS.setWordSpacing:this.setWordSpacing(De[0]);break;case w.OPS.setHScale:this.setHScale(De[0]);break;case w.OPS.setTextMatrix:this.setTextMatrix(De[0],De[1],De[2],De[3],De[4],De[5]);break;case w.OPS.setTextRise:this.setTextRise(De[0]);break;case w.OPS.setTextRenderingMode:this.setTextRenderingMode(De[0]);break;case w.OPS.setLineWidth:this.setLineWidth(De[0]);break;case w.OPS.setLineJoin:this.setLineJoin(De[0]);break;case w.OPS.setLineCap:this.setLineCap(De[0]);break;case w.OPS.setMiterLimit:this.setMiterLimit(De[0]);break;case w.OPS.setFillRGBColor:this.setFillRGBColor(De[0],De[1],De[2]);break;case w.OPS.setStrokeRGBColor:this.setStrokeRGBColor(De[0],De[1],De[2]);break;case w.OPS.setStrokeColorN:this.setStrokeColorN(De);break;case w.OPS.setFillColorN:this.setFillColorN(De);break;case w.OPS.shadingFill:this.shadingFill(De[0]);break;case w.OPS.setDash:this.setDash(De[0],De[1]);break;case w.OPS.setRenderingIntent:this.setRenderingIntent(De[0]);break;case w.OPS.setFlatness:this.setFlatness(De[0]);break;case w.OPS.setGState:this.setGState(De[0]);break;case w.OPS.fill:this.fill();break;case w.OPS.eoFill:this.eoFill();break;case w.OPS.stroke:this.stroke();break;case w.OPS.fillStroke:this.fillStroke();break;case w.OPS.eoFillStroke:this.eoFillStroke();break;case w.OPS.clip:this.clip("nonzero");break;case w.OPS.eoClip:this.clip("evenodd");break;case w.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case w.OPS.paintImageXObject:this.paintImageXObject(De[0]);break;case w.OPS.paintInlineImageXObject:this.paintInlineImageXObject(De[0]);break;case w.OPS.paintImageMaskXObject:this.paintImageMaskXObject(De[0]);break;case w.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(De[0],De[1]);break;case w.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case w.OPS.closePath:this.closePath();break;case w.OPS.closeStroke:this.closeStroke();break;case w.OPS.closeFillStroke:this.closeFillStroke();break;case w.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case w.OPS.nextLine:this.nextLine();break;case w.OPS.transform:this.transform(De[0],De[1],De[2],De[3],De[4],De[5]);break;case w.OPS.constructPath:this.constructPath(De[0],De[1]);break;case w.OPS.endPath:this.endPath();break;case 92:this.group(Pe.items);break;default:(0,w.warn)(`Unimplemented operator ${Se}`);break}}}setWordSpacing(ge){this.current.wordSpacing=ge}setCharSpacing(ge){this.current.charSpacing=ge}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(ge,Pe,Se,Re,De,Le){const _e=this.current;_e.textMatrix=_e.lineMatrix=[ge,Pe,Se,Re,De,Le],_e.textMatrixScale=Math.hypot(ge,Pe),_e.x=_e.lineX=0,_e.y=_e.lineY=0,_e.xcoords=[],_e.ycoords=[],_e.tspan=this.svgFactory.createElement("svg:tspan"),_e.tspan.setAttributeNS(null,"font-family",_e.fontFamily),_e.tspan.setAttributeNS(null,"font-size",`${re(_e.fontSize)}px`),_e.tspan.setAttributeNS(null,"y",re(-_e.y)),_e.txtElement=this.svgFactory.createElement("svg:text"),_e.txtElement.append(_e.tspan)}beginText(){const ge=this.current;ge.x=ge.lineX=0,ge.y=ge.lineY=0,ge.textMatrix=w.IDENTITY_MATRIX,ge.lineMatrix=w.IDENTITY_MATRIX,ge.textMatrixScale=1,ge.tspan=this.svgFactory.createElement("svg:tspan"),ge.txtElement=this.svgFactory.createElement("svg:text"),ge.txtgrp=this.svgFactory.createElement("svg:g"),ge.xcoords=[],ge.ycoords=[]}moveText(ge,Pe){const Se=this.current;Se.x=Se.lineX+=ge,Se.y=Se.lineY+=Pe,Se.xcoords=[],Se.ycoords=[],Se.tspan=this.svgFactory.createElement("svg:tspan"),Se.tspan.setAttributeNS(null,"font-family",Se.fontFamily),Se.tspan.setAttributeNS(null,"font-size",`${re(Se.fontSize)}px`),Se.tspan.setAttributeNS(null,"y",re(-Se.y))}showText(ge){const Pe=this.current,Se=Pe.font,Re=Pe.fontSize;if(Re===0)return;const De=Pe.fontSizeScale,Le=Pe.charSpacing,_e=Pe.wordSpacing,Be=Pe.fontDirection,Fe=Pe.textHScale*Be,je=Se.vertical,ze=je?1:-1,We=Se.defaultVMetrics,Oe=Re*Pe.fontMatrix[0];let ke=0;for(const Ve of ge){if(Ve===null){ke+=Be*_e;continue}else if(typeof Ve=="number"){ke+=ze*Ve*Re/1e3;continue}const Xe=(Ve.isSpace?_e:0)+Le,nt=Ve.fontChar;let tt,Ye,He=Ve.width;if(je){let rt;const dt=Ve.vmetric||We;rt=Ve.vmetric?dt[1]:He*.5,rt=-rt*Oe;const vt=dt[2]*Oe;He=dt?-dt[0]:He,tt=rt/De,Ye=(ke+vt)/De}else tt=ke/De,Ye=0;(Ve.isInFont||Se.missingFile)&&(Pe.xcoords.push(Pe.x+tt),je&&Pe.ycoords.push(-Pe.y+Ye),Pe.tspan.textContent+=nt);const Ge=je?He*Oe-Xe*Be:He*Oe+Xe*Be;ke+=Ge}Pe.tspan.setAttributeNS(null,"x",Pe.xcoords.map(re).join(" ")),je?Pe.tspan.setAttributeNS(null,"y",Pe.ycoords.map(re).join(" ")):Pe.tspan.setAttributeNS(null,"y",re(-Pe.y)),je?Pe.y-=ke:Pe.x+=ke*Fe,Pe.tspan.setAttributeNS(null,"font-family",Pe.fontFamily),Pe.tspan.setAttributeNS(null,"font-size",`${re(Pe.fontSize)}px`),Pe.fontStyle!==j.fontStyle&&Pe.tspan.setAttributeNS(null,"font-style",Pe.fontStyle),Pe.fontWeight!==j.fontWeight&&Pe.tspan.setAttributeNS(null,"font-weight",Pe.fontWeight);const Ee=Pe.textRenderingMode&w.TextRenderingMode.FILL_STROKE_MASK;if(Ee===w.TextRenderingMode.FILL||Ee===w.TextRenderingMode.FILL_STROKE?(Pe.fillColor!==j.fillColor&&Pe.tspan.setAttributeNS(null,"fill",Pe.fillColor),Pe.fillAlpha<1&&Pe.tspan.setAttributeNS(null,"fill-opacity",Pe.fillAlpha)):Pe.textRenderingMode===w.TextRenderingMode.ADD_TO_PATH?Pe.tspan.setAttributeNS(null,"fill","transparent"):Pe.tspan.setAttributeNS(null,"fill","none"),Ee===w.TextRenderingMode.STROKE||Ee===w.TextRenderingMode.FILL_STROKE){const Ve=1/(Pe.textMatrixScale||1);this._setStrokeAttributes(Pe.tspan,Ve)}let Ae=Pe.textMatrix;Pe.textRise!==0&&(Ae=Ae.slice(),Ae[5]+=Pe.textRise),Pe.txtElement.setAttributeNS(null,"transform",`${J(Ae)} scale(${re(Fe)}, -1)`),Pe.txtElement.setAttributeNS(V,"xml:space","preserve"),Pe.txtElement.append(Pe.tspan),Pe.txtgrp.append(Pe.txtElement),this._ensureTransformGroup().append(Pe.txtElement)}setLeadingMoveText(ge,Pe){this.setLeading(-Pe),this.moveText(ge,Pe)}addFontStyle(ge){if(!ge.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const Pe=X(ge.data,ge.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${ge.loadedName}"; src: url(${Pe}); }
|
|
1483
1483
|
`}setFont(ge){const Pe=this.current,Se=this.commonObjs.get(ge[0]);let Re=ge[1];Pe.font=Se,this.embedFonts&&!Se.missingFile&&!this.embeddedFonts[Se.loadedName]&&(this.addFontStyle(Se),this.embeddedFonts[Se.loadedName]=Se),Pe.fontMatrix=Se.fontMatrix||w.FONT_IDENTITY_MATRIX;let De="normal";Se.black?De="900":Se.bold&&(De="bold");const Le=Se.italic?"italic":"normal";Re<0?(Re=-Re,Pe.fontDirection=-1):Pe.fontDirection=1,Pe.fontSize=Re,Pe.fontFamily=Se.loadedName,Pe.fontWeight=De,Pe.fontStyle=Le,Pe.tspan=this.svgFactory.createElement("svg:tspan"),Pe.tspan.setAttributeNS(null,"y",re(-Pe.y)),Pe.xcoords=[],Pe.ycoords=[]}endText(){const ge=this.current;ge.textRenderingMode&w.TextRenderingMode.ADD_TO_PATH_FLAG&&ge.txtElement?.hasChildNodes()&&(ge.element=ge.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(ge){ge>0&&(this.current.lineWidth=ge)}setLineCap(ge){this.current.lineCap=U[ge]}setLineJoin(ge){this.current.lineJoin=Y[ge]}setMiterLimit(ge){this.current.miterLimit=ge}setStrokeAlpha(ge){this.current.strokeAlpha=ge}setStrokeRGBColor(ge,Pe,Se){this.current.strokeColor=w.Util.makeHexColor(ge,Pe,Se)}setFillAlpha(ge){this.current.fillAlpha=ge}setFillRGBColor(ge,Pe,Se){this.current.fillColor=w.Util.makeHexColor(ge,Pe,Se),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(ge){this.current.strokeColor=this._makeColorN_Pattern(ge)}setFillColorN(ge){this.current.fillColor=this._makeColorN_Pattern(ge)}shadingFill(ge){const{width:Pe,height:Se}=this.viewport,Re=w.Util.inverseTransform(this.transformMatrix),[De,Le,_e,Be]=w.Util.getAxialAlignedBoundingBox([0,0,Pe,Se],Re),Fe=this.svgFactory.createElement("svg:rect");Fe.setAttributeNS(null,"x",De),Fe.setAttributeNS(null,"y",Le),Fe.setAttributeNS(null,"width",_e-De),Fe.setAttributeNS(null,"height",Be-Le),Fe.setAttributeNS(null,"fill",this._makeShadingPattern(ge)),this.current.fillAlpha<1&&Fe.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(Fe)}_makeColorN_Pattern(ge){return ge[0]==="TilingPattern"?this._makeTilingPattern(ge):this._makeShadingPattern(ge)}_makeTilingPattern(ge){const Pe=ge[1],Se=ge[2],Re=ge[3]||w.IDENTITY_MATRIX,[De,Le,_e,Be]=ge[4],Fe=ge[5],je=ge[6],ze=ge[7],We=`shading${fe++}`,[Oe,ke,Ee,Ae]=w.Util.normalizeRect([...w.Util.applyTransform([De,Le],Re),...w.Util.applyTransform([_e,Be],Re)]),[Ve,Xe]=w.Util.singularValueDecompose2dScale(Re),nt=Fe*Ve,tt=je*Xe,Ye=this.svgFactory.createElement("svg:pattern");Ye.setAttributeNS(null,"id",We),Ye.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Ye.setAttributeNS(null,"width",nt),Ye.setAttributeNS(null,"height",tt),Ye.setAttributeNS(null,"x",`${Oe}`),Ye.setAttributeNS(null,"y",`${ke}`);const He=this.svg,Ge=this.transformMatrix,rt=this.current.fillColor,dt=this.current.strokeColor,vt=this.svgFactory.create(Ee-Oe,Ae-ke);if(this.svg=vt,this.transformMatrix=Re,ze===2){const yt=w.Util.makeHexColor(...Pe);this.current.fillColor=yt,this.current.strokeColor=yt}return this.executeOpTree(this.convertOpList(Se)),this.svg=He,this.transformMatrix=Ge,this.current.fillColor=rt,this.current.strokeColor=dt,Ye.append(vt.childNodes[0]),this.defs.append(Ye),`url(#${We})`}_makeShadingPattern(ge){switch(typeof ge=="string"&&(ge=this.objs.get(ge)),ge[0]){case"RadialAxial":const Pe=`shading${fe++}`,Se=ge[3];let Re;switch(ge[1]){case"axial":const De=ge[4],Le=ge[5];Re=this.svgFactory.createElement("svg:linearGradient"),Re.setAttributeNS(null,"id",Pe),Re.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),Re.setAttributeNS(null,"x1",De[0]),Re.setAttributeNS(null,"y1",De[1]),Re.setAttributeNS(null,"x2",Le[0]),Re.setAttributeNS(null,"y2",Le[1]);break;case"radial":const _e=ge[4],Be=ge[5],Fe=ge[6],je=ge[7];Re=this.svgFactory.createElement("svg:radialGradient"),Re.setAttributeNS(null,"id",Pe),Re.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),Re.setAttributeNS(null,"cx",Be[0]),Re.setAttributeNS(null,"cy",Be[1]),Re.setAttributeNS(null,"r",je),Re.setAttributeNS(null,"fx",_e[0]),Re.setAttributeNS(null,"fy",_e[1]),Re.setAttributeNS(null,"fr",Fe);break;default:throw new Error(`Unknown RadialAxial type: ${ge[1]}`)}for(const De of Se){const Le=this.svgFactory.createElement("svg:stop");Le.setAttributeNS(null,"offset",De[0]),Le.setAttributeNS(null,"stop-color",De[1]),Re.append(Le)}return this.defs.append(Re),`url(#${Pe})`;case"Mesh":return(0,w.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${ge[0]}`)}}setDash(ge,Pe){this.current.dashArray=ge,this.current.dashPhase=Pe}constructPath(ge,Pe){const Se=this.current;let Re=Se.x,De=Se.y,Le=[],_e=0;for(const Be of ge)switch(Be|0){case w.OPS.rectangle:Re=Pe[_e++],De=Pe[_e++];const Fe=Pe[_e++],je=Pe[_e++],ze=Re+Fe,We=De+je;Le.push("M",re(Re),re(De),"L",re(ze),re(De),"L",re(ze),re(We),"L",re(Re),re(We),"Z");break;case w.OPS.moveTo:Re=Pe[_e++],De=Pe[_e++],Le.push("M",re(Re),re(De));break;case w.OPS.lineTo:Re=Pe[_e++],De=Pe[_e++],Le.push("L",re(Re),re(De));break;case w.OPS.curveTo:Re=Pe[_e+4],De=Pe[_e+5],Le.push("C",re(Pe[_e]),re(Pe[_e+1]),re(Pe[_e+2]),re(Pe[_e+3]),re(Re),re(De)),_e+=6;break;case w.OPS.curveTo2:Le.push("C",re(Re),re(De),re(Pe[_e]),re(Pe[_e+1]),re(Pe[_e+2]),re(Pe[_e+3])),Re=Pe[_e+2],De=Pe[_e+3],_e+=4;break;case w.OPS.curveTo3:Re=Pe[_e+2],De=Pe[_e+3],Le.push("C",re(Pe[_e]),re(Pe[_e+1]),re(Re),re(De),re(Re),re(De)),_e+=4;break;case w.OPS.closePath:Le.push("Z");break}Le=Le.join(" "),Se.path&&ge.length>0&&ge[0]!==w.OPS.rectangle&&ge[0]!==w.OPS.moveTo?Le=Se.path.getAttributeNS(null,"d")+Le:(Se.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(Se.path)),Se.path.setAttributeNS(null,"d",Le),Se.path.setAttributeNS(null,"fill","none"),Se.element=Se.path,Se.setCurrentPoint(Re,De)}endPath(){const ge=this.current;if(ge.path=null,!this.pendingClip)return;if(!ge.element){this.pendingClip=null;return}const Pe=`clippath${ue++}`,Se=this.svgFactory.createElement("svg:clipPath");Se.setAttributeNS(null,"id",Pe),Se.setAttributeNS(null,"transform",J(this.transformMatrix));const Re=ge.element.cloneNode(!0);if(this.pendingClip==="evenodd"?Re.setAttributeNS(null,"clip-rule","evenodd"):Re.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,Se.append(Re),this.defs.append(Se),ge.activeClipUrl){ge.clipGroup=null;for(const De of this.extraStack)De.clipGroup=null;Se.setAttributeNS(null,"clip-path",ge.activeClipUrl)}ge.activeClipUrl=`url(#${Pe})`,this.tgrp=null}clip(ge){this.pendingClip=ge}closePath(){const ge=this.current;if(ge.path){const Pe=`${ge.path.getAttributeNS(null,"d")}Z`;ge.path.setAttributeNS(null,"d",Pe)}}setLeading(ge){this.current.leading=-ge}setTextRise(ge){this.current.textRise=ge}setTextRenderingMode(ge){this.current.textRenderingMode=ge}setHScale(ge){this.current.textHScale=ge/100}setRenderingIntent(ge){}setFlatness(ge){}setGState(ge){for(const[Pe,Se]of ge)switch(Pe){case"LW":this.setLineWidth(Se);break;case"LC":this.setLineCap(Se);break;case"LJ":this.setLineJoin(Se);break;case"ML":this.setMiterLimit(Se);break;case"D":this.setDash(Se[0],Se[1]);break;case"RI":this.setRenderingIntent(Se);break;case"FL":this.setFlatness(Se);break;case"Font":this.setFont(Se);break;case"CA":this.setStrokeAlpha(Se);break;case"ca":this.setFillAlpha(Se);break;default:(0,w.warn)(`Unimplemented graphic state operator ${Pe}`);break}}fill(){const ge=this.current;ge.element&&(ge.element.setAttributeNS(null,"fill",ge.fillColor),ge.element.setAttributeNS(null,"fill-opacity",ge.fillAlpha),this.endPath())}stroke(){const ge=this.current;ge.element&&(this._setStrokeAttributes(ge.element),ge.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(ge,Pe=1){const Se=this.current;let Re=Se.dashArray;Pe!==1&&Re.length>0&&(Re=Re.map(function(De){return Pe*De})),ge.setAttributeNS(null,"stroke",Se.strokeColor),ge.setAttributeNS(null,"stroke-opacity",Se.strokeAlpha),ge.setAttributeNS(null,"stroke-miterlimit",re(Se.miterLimit)),ge.setAttributeNS(null,"stroke-linecap",Se.lineCap),ge.setAttributeNS(null,"stroke-linejoin",Se.lineJoin),ge.setAttributeNS(null,"stroke-width",re(Pe*Se.lineWidth)+"px"),ge.setAttributeNS(null,"stroke-dasharray",Re.map(re).join(" ")),ge.setAttributeNS(null,"stroke-dashoffset",re(Pe*Se.dashPhase)+"px")}eoFill(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const ge=this.svgFactory.createElement("svg:rect");ge.setAttributeNS(null,"x","0"),ge.setAttributeNS(null,"y","0"),ge.setAttributeNS(null,"width","1px"),ge.setAttributeNS(null,"height","1px"),ge.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(ge)}paintImageXObject(ge){const Pe=this.getObject(ge);if(!Pe){(0,w.warn)(`Dependent image with object ID ${ge} is not ready yet`);return}this.paintInlineImageXObject(Pe)}paintInlineImageXObject(ge,Pe){const Se=ge.width,Re=ge.height,De=Z(ge,this.forceDataSchema,!!Pe),Le=this.svgFactory.createElement("svg:rect");Le.setAttributeNS(null,"x","0"),Le.setAttributeNS(null,"y","0"),Le.setAttributeNS(null,"width",re(Se)),Le.setAttributeNS(null,"height",re(Re)),this.current.element=Le,this.clip("nonzero");const _e=this.svgFactory.createElement("svg:image");_e.setAttributeNS(W,"xlink:href",De),_e.setAttributeNS(null,"x","0"),_e.setAttributeNS(null,"y",re(-Re)),_e.setAttributeNS(null,"width",re(Se)+"px"),_e.setAttributeNS(null,"height",re(Re)+"px"),_e.setAttributeNS(null,"transform",`scale(${re(1/Se)} ${re(-1/Re)})`),Pe?Pe.append(_e):this._ensureTransformGroup().append(_e)}paintImageMaskXObject(ge){const Pe=this.getObject(ge.data,ge);if(Pe.bitmap){(0,w.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const Se=this.current,Re=Pe.width,De=Pe.height,Le=Se.fillColor;Se.maskId=`mask${me++}`;const _e=this.svgFactory.createElement("svg:mask");_e.setAttributeNS(null,"id",Se.maskId);const Be=this.svgFactory.createElement("svg:rect");Be.setAttributeNS(null,"x","0"),Be.setAttributeNS(null,"y","0"),Be.setAttributeNS(null,"width",re(Re)),Be.setAttributeNS(null,"height",re(De)),Be.setAttributeNS(null,"fill",Le),Be.setAttributeNS(null,"mask",`url(#${Se.maskId})`),this.defs.append(_e),this._ensureTransformGroup().append(Be),this.paintInlineImageXObject(Pe,_e)}paintFormXObjectBegin(ge,Pe){if(Array.isArray(ge)&&ge.length===6&&this.transform(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5]),Pe){const Se=Pe[2]-Pe[0],Re=Pe[3]-Pe[1],De=this.svgFactory.createElement("svg:rect");De.setAttributeNS(null,"x",Pe[0]),De.setAttributeNS(null,"y",Pe[1]),De.setAttributeNS(null,"width",re(Se)),De.setAttributeNS(null,"height",re(Re)),this.current.element=De,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(ge){const Pe=this.svgFactory.create(ge.width,ge.height),Se=this.svgFactory.createElement("svg:defs");Pe.append(Se),this.defs=Se;const Re=this.svgFactory.createElement("svg:g");return Re.setAttributeNS(null,"transform",J(ge.transform)),Pe.append(Re),this.svg=Re,Pe}_ensureClipGroup(){if(!this.current.clipGroup){const ge=this.svgFactory.createElement("svg:g");ge.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(ge),this.current.clipGroup=ge}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",J(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}s.SVGGraphics=xe},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.XfaText=void 0;class l{static textContent(w){const j=[],V={items:j,styles:Object.create(null)};function W(U){if(!U)return;let Y=null;const X=U.name;if(X==="#text")Y=U.value;else if(l.shouldBuildText(X))U?.attributes?.textContent?Y=U.attributes.textContent:U.value&&(Y=U.value);else return;if(Y!==null&&j.push({str:Y}),!!U.children)for(const Z of U.children)W(Z)}return W(w),V}static shouldBuildText(w){return!(w==="textarea"||w==="input"||w==="option"||w==="select")}}s.XfaText=l},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TextLayerRenderTask=void 0,s.renderTextLayer=J,s.updateTextLayer=ue;var x=l(1),w=l(6);const j=1e5,V=30,W=.8,U=new Map;function Y(me,fe){let xe;if(fe&&x.FeatureTest.isOffscreenCanvasSupported)xe=new OffscreenCanvas(me,me).getContext("2d",{alpha:!1});else{const Te=document.createElement("canvas");Te.width=Te.height=me,xe=Te.getContext("2d",{alpha:!1})}return xe}function X(me,fe){const xe=U.get(me);if(xe)return xe;const Te=Y(V,fe);Te.font=`${V}px ${me}`;const ge=Te.measureText("");let Pe=ge.fontBoundingBoxAscent,Se=Math.abs(ge.fontBoundingBoxDescent);if(Pe){const De=Pe/(Pe+Se);return U.set(me,De),Te.canvas.width=Te.canvas.height=0,De}Te.strokeStyle="red",Te.clearRect(0,0,V,V),Te.strokeText("g",0,0);let Re=Te.getImageData(0,0,V,V).data;Se=0;for(let De=Re.length-1-3;De>=0;De-=4)if(Re[De]>0){Se=Math.ceil(De/4/V);break}Te.clearRect(0,0,V,V),Te.strokeText("A",0,V),Re=Te.getImageData(0,0,V,V).data,Pe=0;for(let De=0,Le=Re.length;De<Le;De+=4)if(Re[De]>0){Pe=V-Math.floor(De/4/V);break}if(Te.canvas.width=Te.canvas.height=0,Pe){const De=Pe/(Pe+Se);return U.set(me,De),De}return U.set(me,W),W}function Z(me,fe,xe){const Te=document.createElement("span"),ge={angle:0,canvasWidth:0,hasText:fe.str!=="",hasEOL:fe.hasEOL,fontSize:0};me._textDivs.push(Te);const Pe=x.Util.transform(me._transform,fe.transform);let Se=Math.atan2(Pe[1],Pe[0]);const Re=xe[fe.fontName];Re.vertical&&(Se+=Math.PI/2);const De=Math.hypot(Pe[2],Pe[3]),Le=De*X(Re.fontFamily,me._isOffscreenCanvasSupported);let _e,Be;Se===0?(_e=Pe[4],Be=Pe[5]-Le):(_e=Pe[4]+Le*Math.sin(Se),Be=Pe[5]-Le*Math.cos(Se));const Fe="calc(var(--scale-factor)*",je=Te.style;me._container===me._rootContainer?(je.left=`${(100*_e/me._pageWidth).toFixed(2)}%`,je.top=`${(100*Be/me._pageHeight).toFixed(2)}%`):(je.left=`${Fe}${_e.toFixed(2)}px)`,je.top=`${Fe}${Be.toFixed(2)}px)`),je.fontSize=`${Fe}${De.toFixed(2)}px)`,je.fontFamily=Re.fontFamily,ge.fontSize=De,Te.setAttribute("role","presentation"),Te.textContent=fe.str,Te.dir=fe.dir,me._fontInspectorEnabled&&(Te.dataset.fontName=fe.fontName),Se!==0&&(ge.angle=Se*(180/Math.PI));let ze=!1;if(fe.str.length>1)ze=!0;else if(fe.str!==" "&&fe.transform[0]!==fe.transform[3]){const We=Math.abs(fe.transform[0]),Oe=Math.abs(fe.transform[3]);We!==Oe&&Math.max(We,Oe)/Math.min(We,Oe)>1.5&&(ze=!0)}ze&&(ge.canvasWidth=Re.vertical?fe.height:fe.width),me._textDivProperties.set(Te,ge),me._isReadableStream&&me._layoutText(Te)}function le(me){const{div:fe,scale:xe,properties:Te,ctx:ge,prevFontSize:Pe,prevFontFamily:Se}=me,{style:Re}=fe;let De="";if(Te.canvasWidth!==0&&Te.hasText){const{fontFamily:Le}=Re,{canvasWidth:_e,fontSize:Be}=Te;(Pe!==Be||Se!==Le)&&(ge.font=`${Be*xe}px ${Le}`,me.prevFontSize=Be,me.prevFontFamily=Le);const{width:Fe}=ge.measureText(fe.textContent);Fe>0&&(De=`scaleX(${_e*xe/Fe})`)}Te.angle!==0&&(De=`rotate(${Te.angle}deg) ${De}`),De.length>0&&(Re.transform=De)}function oe(me){if(me._canceled)return;const fe=me._textDivs,xe=me._capability;if(fe.length>j){xe.resolve();return}if(!me._isReadableStream)for(const ge of fe)me._layoutText(ge);xe.resolve()}class re{constructor({textContentSource:fe,container:xe,viewport:Te,textDivs:ge,textDivProperties:Pe,textContentItemsStr:Se,isOffscreenCanvasSupported:Re}){this._textContentSource=fe,this._isReadableStream=fe instanceof ReadableStream,this._container=this._rootContainer=xe,this._textDivs=ge||[],this._textContentItemsStr=Se||[],this._isOffscreenCanvasSupported=Re,this._fontInspectorEnabled=!!globalThis.FontInspector?.enabled,this._reader=null,this._textDivProperties=Pe||new WeakMap,this._canceled=!1,this._capability=new x.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:Te.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:Y(0,Re)};const{pageWidth:De,pageHeight:Le,pageX:_e,pageY:Be}=Te.rawDims;this._transform=[1,0,0,-1,-_e,Be+Le],this._pageWidth=De,this._pageHeight=Le,(0,w.setLayerDimensions)(xe,Te),this._capability.promise.finally(()=>{this._layoutTextParams=null}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new x.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._capability.reject(new x.AbortException("TextLayer task cancelled."))}_processItems(fe,xe){for(const Te of fe){if(Te.str===void 0){if(Te.type==="beginMarkedContentProps"||Te.type==="beginMarkedContent"){const ge=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),Te.id!==null&&this._container.setAttribute("id",`${Te.id}`),ge.append(this._container)}else Te.type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(Te.str),Z(this,Te,xe)}}_layoutText(fe){const xe=this._layoutTextParams.properties=this._textDivProperties.get(fe);if(this._layoutTextParams.div=fe,le(this._layoutTextParams),xe.hasText&&this._container.append(fe),xe.hasEOL){const Te=document.createElement("br");Te.setAttribute("role","presentation"),this._container.append(Te)}}_render(){const fe=new x.PromiseCapability;let xe=Object.create(null);if(this._isReadableStream){const Te=()=>{this._reader.read().then(({value:ge,done:Pe})=>{if(Pe){fe.resolve();return}Object.assign(xe,ge.styles),this._processItems(ge.items,xe),Te()},fe.reject)};this._reader=this._textContentSource.getReader(),Te()}else if(this._textContentSource){const{items:Te,styles:ge}=this._textContentSource;this._processItems(Te,ge),fe.resolve()}else throw new Error('No "textContentSource" parameter specified.');fe.promise.then(()=>{xe=null,oe(this)},this._capability.reject)}}s.TextLayerRenderTask=re;function J(me){!me.textContentSource&&(me.textContent||me.textContentStream)&&((0,w.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),me.textContentSource=me.textContent||me.textContentStream);const{container:fe,viewport:xe}=me,Te=getComputedStyle(fe),ge=Te.getPropertyValue("visibility"),Pe=parseFloat(Te.getPropertyValue("--scale-factor"));ge==="visible"&&(!Pe||Math.abs(Pe-xe.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");const Se=new re(me);return Se._render(),Se}function ue({container:me,viewport:fe,textDivs:xe,textDivProperties:Te,isOffscreenCanvasSupported:ge,mustRotate:Pe=!0,mustRescale:Se=!0}){if(Pe&&(0,w.setLayerDimensions)(me,{rotation:fe.rotation}),Se){const Re=Y(0,ge),Le={prevFontSize:null,prevFontFamily:null,div:null,scale:fe.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:Re};for(const _e of xe)Le.properties=Te.get(_e),Le.div=_e,le(Le)}}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.AnnotationEditorLayer=void 0;var x=l(1),w=l(4),j=l(28),V=l(33),W=l(6),U=l(34);class Y{#e;#t=!1;#n=null;#r=this.pointerup.bind(this);#s=this.pointerdown.bind(this);#i=new Map;#a=!1;#l=!1;#c=!1;#o;static _initialized=!1;constructor({uiManager:Z,pageIndex:le,div:oe,accessibilityManager:re,annotationLayer:J,viewport:ue,l10n:me}){const fe=[j.FreeTextEditor,V.InkEditor,U.StampEditor];if(!Y._initialized){Y._initialized=!0;for(const xe of fe)xe.initialize(me)}Z.registerEditorTypes(fe),this.#o=Z,this.pageIndex=le,this.div=oe,this.#e=re,this.#n=J,this.viewport=ue,this.#o.addLayer(this)}get isEmpty(){return this.#i.size===0}updateToolbar(Z){this.#o.updateToolbar(Z)}updateMode(Z=this.#o.getMode()){this.#h(),Z===x.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),Z!==x.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",Z===x.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",Z===x.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",Z===x.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(Z){if(!Z&&this.#o.getMode()!==x.AnnotationEditorType.INK)return;if(!Z){for(const oe of this.#i.values())if(oe.isEmpty()){oe.setInBackground();return}}this.#d({offsetX:0,offsetY:0},!1).setInBackground()}setEditingState(Z){this.#o.setEditingState(Z)}addCommands(Z){this.#o.addCommands(Z)}enable(){this.div.style.pointerEvents="auto";const Z=new Set;for(const oe of this.#i.values())oe.enableEditing(),oe.annotationElementId&&Z.add(oe.annotationElementId);if(!this.#n)return;const le=this.#n.getEditableAnnotations();for(const oe of le){if(oe.hide(),this.#o.isDeletedAnnotationElement(oe.data.id)||Z.has(oe.data.id))continue;const re=this.deserialize(oe);re&&(this.addOrRebuild(re),re.enableEditing())}}disable(){this.#c=!0,this.div.style.pointerEvents="none";const Z=new Set;for(const le of this.#i.values()){if(le.disableEditing(),!le.annotationElementId||le.serialize()!==null){Z.add(le.annotationElementId);continue}this.getEditableAnnotation(le.annotationElementId)?.show(),le.remove()}if(this.#n){const le=this.#n.getEditableAnnotations();for(const oe of le){const{id:re}=oe.data;Z.has(re)||this.#o.isDeletedAnnotationElement(re)||oe.show()}}this.#h(),this.isEmpty&&(this.div.hidden=!0),this.#c=!1}getEditableAnnotation(Z){return this.#n?.getEditableAnnotation(Z)||null}setActiveEditor(Z){this.#o.getActive()!==Z&&this.#o.setActiveEditor(Z)}enableClick(){this.div.addEventListener("pointerdown",this.#s),this.div.addEventListener("pointerup",this.#r)}disableClick(){this.div.removeEventListener("pointerdown",this.#s),this.div.removeEventListener("pointerup",this.#r)}attach(Z){this.#i.set(Z.id,Z);const{annotationElementId:le}=Z;le&&this.#o.isDeletedAnnotationElement(le)&&this.#o.removeDeletedAnnotationElement(Z)}detach(Z){this.#i.delete(Z.id),this.#e?.removePointerInTextLayer(Z.contentDiv),!this.#c&&Z.annotationElementId&&this.#o.addDeletedAnnotationElement(Z)}remove(Z){this.detach(Z),this.#o.removeEditor(Z),Z.div.contains(document.activeElement)&&setTimeout(()=>{this.#o.focusMainContainer()},0),Z.div.remove(),Z.isAttachedToDOM=!1,this.#l||this.addInkEditorIfNeeded(!1)}changeParent(Z){Z.parent!==this&&(Z.annotationElementId&&(this.#o.addDeletedAnnotationElement(Z.annotationElementId),w.AnnotationEditor.deleteAnnotationElement(Z),Z.annotationElementId=null),this.attach(Z),Z.parent?.detach(Z),Z.setParent(this),Z.div&&Z.isAttachedToDOM&&(Z.div.remove(),this.div.append(Z.div)))}add(Z){if(this.changeParent(Z),this.#o.addEditor(Z),this.attach(Z),!Z.isAttachedToDOM){const le=Z.render();this.div.append(le),Z.isAttachedToDOM=!0}Z.fixAndSetPosition(),Z.onceAdded(),this.#o.addToAnnotationStorage(Z)}moveEditorInDOM(Z){if(!Z.isAttachedToDOM)return;const{activeElement:le}=document;Z.div.contains(le)&&(Z._focusEventsAllowed=!1,setTimeout(()=>{Z.div.contains(document.activeElement)?Z._focusEventsAllowed=!0:(Z.div.addEventListener("focusin",()=>{Z._focusEventsAllowed=!0},{once:!0}),le.focus())},0)),Z._structTreeParentId=this.#e?.moveElementInDOM(this.div,Z.div,Z.contentDiv,!0)}addOrRebuild(Z){Z.needsToBeRebuilt()?Z.rebuild():this.add(Z)}addUndoableEditor(Z){const le=()=>Z._uiManager.rebuild(Z),oe=()=>{Z.remove()};this.addCommands({cmd:le,undo:oe,mustExec:!1})}getNextId(){return this.#o.getId()}#f(Z){switch(this.#o.getMode()){case x.AnnotationEditorType.FREETEXT:return new j.FreeTextEditor(Z);case x.AnnotationEditorType.INK:return new V.InkEditor(Z);case x.AnnotationEditorType.STAMP:return new U.StampEditor(Z)}return null}pasteEditor(Z,le){this.#o.updateToolbar(Z),this.#o.updateMode(Z);const{offsetX:oe,offsetY:re}=this.#p(),J=this.getNextId(),ue=this.#f({parent:this,id:J,x:oe,y:re,uiManager:this.#o,isCentered:!0,...le});ue&&this.add(ue)}deserialize(Z){switch(Z.annotationType??Z.annotationEditorType){case x.AnnotationEditorType.FREETEXT:return j.FreeTextEditor.deserialize(Z,this,this.#o);case x.AnnotationEditorType.INK:return V.InkEditor.deserialize(Z,this,this.#o);case x.AnnotationEditorType.STAMP:return U.StampEditor.deserialize(Z,this,this.#o)}return null}#d(Z,le){const oe=this.getNextId(),re=this.#f({parent:this,id:oe,x:Z.offsetX,y:Z.offsetY,uiManager:this.#o,isCentered:le});return re&&this.add(re),re}#p(){const{x:Z,y:le,width:oe,height:re}=this.div.getBoundingClientRect(),J=Math.max(0,Z),ue=Math.max(0,le),me=Math.min(window.innerWidth,Z+oe),fe=Math.min(window.innerHeight,le+re),xe=(J+me)/2-Z,Te=(ue+fe)/2-le,[ge,Pe]=this.viewport.rotation%180===0?[xe,Te]:[Te,xe];return{offsetX:ge,offsetY:Pe}}addNewEditor(){this.#d(this.#p(),!0)}setSelected(Z){this.#o.setSelected(Z)}toggleSelected(Z){this.#o.toggleSelected(Z)}isSelected(Z){return this.#o.isSelected(Z)}unselect(Z){this.#o.unselect(Z)}pointerup(Z){const{isMac:le}=x.FeatureTest.platform;if(!(Z.button!==0||Z.ctrlKey&&le)&&Z.target===this.div&&this.#a){if(this.#a=!1,!this.#t){this.#t=!0;return}if(this.#o.getMode()===x.AnnotationEditorType.STAMP){this.#o.unselectAll();return}this.#d(Z,!1)}}pointerdown(Z){if(this.#a){this.#a=!1;return}const{isMac:le}=x.FeatureTest.platform;if(Z.button!==0||Z.ctrlKey&&le||Z.target!==this.div)return;this.#a=!0;const oe=this.#o.getActive();this.#t=!oe||oe.isEmpty()}findNewParent(Z,le,oe){const re=this.#o.findParent(le,oe);return re===null||re===this?!1:(re.changeParent(Z),!0)}destroy(){this.#o.getActive()?.parent===this&&(this.#o.commitOrRemove(),this.#o.setActiveEditor(null));for(const Z of this.#i.values())this.#e?.removePointerInTextLayer(Z.contentDiv),Z.setParent(null),Z.isAttachedToDOM=!1,Z.div.remove();this.div=null,this.#i.clear(),this.#o.removeLayer(this)}#h(){this.#l=!0;for(const Z of this.#i.values())Z.isEmpty()&&Z.remove();this.#l=!1}render({viewport:Z}){this.viewport=Z,(0,W.setLayerDimensions)(this.div,Z);for(const le of this.#o.getEditors(this.pageIndex))this.add(le);this.updateMode()}update({viewport:Z}){this.#o.commitOrRemove(),this.viewport=Z,(0,W.setLayerDimensions)(this.div,{rotation:Z.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:Z,pageHeight:le}=this.viewport.rawDims;return[Z,le]}}s.AnnotationEditorLayer=Y},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.FreeTextEditor=void 0;var x=l(1),w=l(5),j=l(4),V=l(29);class W extends j.AnnotationEditor{#e=this.editorDivBlur.bind(this);#t=this.editorDivFocus.bind(this);#n=this.editorDivInput.bind(this);#r=this.editorDivKeydown.bind(this);#s;#i="";#a=`${this.id}-editor`;#l;#c=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){const Y=W.prototype,X=oe=>oe.isEmpty(),Z=w.AnnotationEditorUIManager.TRANSLATE_SMALL,le=w.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,x.shadow)(this,"_keyboardManager",new w.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],Y.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],Y.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],Y._translateEmpty,{args:[-Z,0],checker:X}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],Y._translateEmpty,{args:[-le,0],checker:X}],[["ArrowRight","mac+ArrowRight"],Y._translateEmpty,{args:[Z,0],checker:X}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],Y._translateEmpty,{args:[le,0],checker:X}],[["ArrowUp","mac+ArrowUp"],Y._translateEmpty,{args:[0,-Z],checker:X}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],Y._translateEmpty,{args:[0,-le],checker:X}],[["ArrowDown","mac+ArrowDown"],Y._translateEmpty,{args:[0,Z],checker:X}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],Y._translateEmpty,{args:[0,le],checker:X}]]))}static _type="freetext";constructor(Y){super({...Y,name:"freeTextEditor"}),this.#s=Y.color||W._defaultColor||j.AnnotationEditor._defaultLineColor,this.#l=Y.fontSize||W._defaultFontSize}static initialize(Y){j.AnnotationEditor.initialize(Y,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});const X=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(X.getPropertyValue("--freetext-padding"))}static updateDefaultParams(Y,X){switch(Y){case x.AnnotationEditorParamsType.FREETEXT_SIZE:W._defaultFontSize=X;break;case x.AnnotationEditorParamsType.FREETEXT_COLOR:W._defaultColor=X;break}}updateParams(Y,X){switch(Y){case x.AnnotationEditorParamsType.FREETEXT_SIZE:this.#o(X);break;case x.AnnotationEditorParamsType.FREETEXT_COLOR:this.#f(X);break}}static get defaultPropertiesToUpdate(){return[[x.AnnotationEditorParamsType.FREETEXT_SIZE,W._defaultFontSize],[x.AnnotationEditorParamsType.FREETEXT_COLOR,W._defaultColor||j.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[x.AnnotationEditorParamsType.FREETEXT_SIZE,this.#l],[x.AnnotationEditorParamsType.FREETEXT_COLOR,this.#s]]}#o(Y){const X=le=>{this.editorDiv.style.fontSize=`calc(${le}px * var(--scale-factor))`,this.translate(0,-(le-this.#l)*this.parentScale),this.#l=le,this.#p()},Z=this.#l;this.addCommands({cmd:()=>{X(Y)},undo:()=>{X(Z)},mustExec:!0,type:x.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#f(Y){const X=this.#s;this.addCommands({cmd:()=>{this.#s=this.editorDiv.style.color=Y},undo:()=>{this.#s=this.editorDiv.style.color=X},mustExec:!0,type:x.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(Y,X){this._uiManager.translateSelectedEditors(Y,X,!0)}getInitialTranslation(){const Y=this.parentScale;return[-W._internalPadding*Y,-(W._internalPadding+this.#l)*Y]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(x.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",this.#r),this.editorDiv.addEventListener("focus",this.#t),this.editorDiv.addEventListener("blur",this.#e),this.editorDiv.addEventListener("input",this.#n))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#a),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",this.#r),this.editorDiv.removeEventListener("focus",this.#t),this.editorDiv.removeEventListener("blur",this.#e),this.editorDiv.removeEventListener("input",this.#n),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(Y){this._focusEventsAllowed&&(super.focusin(Y),Y.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){if(this.width){this.#g();return}this.enableEditMode(),this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}#d(){const Y=this.editorDiv.getElementsByTagName("div");if(Y.length===0)return this.editorDiv.innerText;const X=[];for(const Z of Y)X.push(Z.innerText.replace(/\r\n?|\n/,""));return X.join(`
|