12345678910111213141516171819202122 |
- var Et=Object.defineProperty,Dt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var vt=Object.getOwnPropertySymbols;var bt=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable;var mt=(i,t,e)=>t in i?Et(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,yt=(i,t)=>{for(var e in t||(t={}))bt.call(t,e)&&mt(i,e,t[e]);if(vt)for(var e of vt(t))Tt.call(t,e)&&mt(i,e,t[e]);return i},Ct=(i,t)=>Dt(i,St(t));import{r as request}from"./index.a559d154.js";import{af as commonjsGlobal,ag as getDefaultExportFromCjs,d as defineComponent,E as ElMessage,c as createVNode,K as ElDialog,q as ElRow,v as ElCol,a as createTextVNode,k as ElButton,ah as ElUpload,x as ElImage}from"./vendor.af53403a.js";const uploadSection="_uploadSection_107z7_1",uploadClass="_uploadClass_107z7_11",previewImg="_previewImg_107z7_34",operation="_operation_107z7_44",myImages="_myImages_107z7_1";var styles={uploadSection,uploadClass,"avatar-upload-preview_range":"_avatar-upload-preview_range_107z7_19","avatar-upload-preview":"_avatar-upload-preview_107z7_19",previewImg,operation,"icon-rate":"_icon-rate_107z7_54","vue-cropper":"_vue-cropper_107z7_61","el-dialog":"_el-dialog_107z7_65","el-dialog__header":"_el-dialog__header_107z7_68","el-dialog__title":"_el-dialog__title_107z7_72","el-dialog__headerbtn":"_el-dialog__headerbtn_107z7_75","el-dialog__close":"_el-dialog__close_107z7_75","el-dialog__body":"_el-dialog__body_107z7_78",myImages},iconUpload="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA4CAMAAAB6xg5AAAAAAXNSR0IArs4c6QAAAsRQTFRFAAAAAP8AAP//AICAAP+AAP//AKqqVaqqVf+qAL+/QL+/M8yZKqqqKtWqJNu2IN+/HMaqM8yZM8yzLtGiLtG5Kr+qJMikML+fMM+vM8ymLMixKcKjKcKtKcytJ8SnJ86xMcSnL8aqLsitLMqwKsOqKcWtMMenMMevLsmqLcOtLcutLMWoK8aqKcilKcisMMisL8moLsSqLcysLMeuK8iqL8qsLcaqLMisK8moK8muMMqqL8usLMmsL8yqLsmrLcqpLcqtLcaqK8ipLcepK8apK8msLcerLMmqLMaoLMmrLsepLcWoLcapLMaqLsipLsisLsWqLMepLMeqLsirLcerLsarLsmrLceqLcqqLMisLsmqLserLcesLciqLcmrLcipLcisLcaqLMepLMesLMaqLsiqLsirLMirLMipLcerLcmrLciqLMepLseqLsmqLcipLcirLMepLcapLcepLMeqLMiqLsiqLsipLceqLcerLcipLsiqLsepLcepLceqLcirLMirLMeqLcerLcirLcepLcisLserLsiqLcerLceqLcirLMepLcerLciqLMeqLceqLciqLcirLceqLMepLseqLserLcaqLciqLceqLceqLceqLMiqLsiqLcirLceqLcepLceqLcaqLciqLsaqLMepLsiqLceqLcerLceqLciqLseqLcerLceqLceqLciqLceqLceqLciqLceqLcaqLcirLMeqLceqLceqLcerLciqLcepLceqLciqLMeqLMeqLceqLceqLcirLceqLciqLceqLMeqLMerLMaqLceqLcirLceqLceqLceqLceqLceqLMiqLMeqLceqLcepLceqLceqLMeqLMeqLcaqLceqLceqLceqLceqLMepLMeqLceqLcaqLceqLciqLcepLceqLcerLceqLMeqLMiqLciqLceqLcirLceqkeY/1AAAAOt0Uk5TAAEBAgICAwMDBAQFBgYHCAkKCgsLDA4QEBQXGRkZGhoaGxwdHh8gICEiIiMkJSUlJicoKSorLS4vLzAxNDw9Pj4/QURHR0lLTExNT1BRU1NUVldYW15eYGBiY2RlZmdra2xubm9vcHN0dnZ4ent7fX2AgoOEioqMjY6PkJGSk5SVlpqdnp+goqSlpqepqqyur7CxsrOztLS1tre4uLm6u7y9vb2+vr+/wMLExcrMzM3O0NLU1NXV1tfY2dnZ2tvb3N3e3t/g4OHj4+Tl5+jq6+zt7u7w8fLz8/T19vf39/j5+fr6+/z9/f3+/ne0wvQAAAMbSURBVEjHnZb5W0xRGMdfyVjSqMiSfUsGCZUoS4WyZkkiS6Hs+55s2RIp+74rW5aIsmUP2WWUBoWS6fwT7n3vzG3uzD1z79z3p3M+53w/zzxz3nOeC2BrheUVHfME5RVYSQh55krf0Hz2xkTL2jS3nWF9J2FrODU/vYSI14853IZ0nEXT8lFVhFozcEeGVYHTJ3qeFDeWFowk1ipcWrCVltUu9XWpZScpUH2g5O958HusCgZQ8jqmcTRRMVgPkaTgOHp0Iz5bz5WptRRBAkBEqejK066YDk5+W2nt3wsCN1p7nGDiTfcTidJAKG2pFKDJHak88Qc/2lIeQJpknsQB7BBfqQyDgdJ58kQNqtiDGelsFSJ5wA4z0ncFAmyWISDbVfQ+eEyPVRSXG4fnfKmCn+Lh16uHtGZWWw5akY/zqpzDqWlp86oF9vUNAtF4waTq32w/Pp/nqdWCOi5WBBucBB2uXlVlKahNF/yeanFJjI3MC2KsCSaKXLNxelw6AnAUBxPAmSqIN75OwxasWTjCuG05d60BZmIDdwFvmuCRA+IGi7XcO7asIfdU3MJpb1AxPVkSAbCEJhiLtEUmD7LaIxnK9QNzOn6hbgAeWorgdg0WutwwQdn4mMJVrifVOPG8TyiC+QhXCk8VWazhXsT5a4ISdIQmCGBZs+/Cc23Lwl5mO8UF5Y4sizTbO42Fdjo5glfI1psJtiC9K0eQiyzFTHAI6XU5gufIEs0ESUiz5Qh0NVk2y0ywCHd+liMg3VjWXS+EfVjYRtYpkCkIUwXsOLJweYLTCDt9NEFfeiDbJ0+gx06CfoU8+RqMxKdCnoCc5bDXBcP8sg8HDhCZAu4zgqn+8Weyzq8Lon56UAW6AJEXybdIvoC86WuR935JbBCQb6PM8iFaYpOA6Hd7mcQ7J/8jNgoI+ZMUwn29OA/eVia+xbqAdeSe2nMy5xd1XVIgVUZBmcK83sEgeKFQ8N74HycrFOzlz1ihYAx/zBcV5TPteEGrAgX5d+4mndbhms35mxrhR3rkpQob0n+vTK5rcd0cO/aUW+5qQfI/vbBmnVf4WssAAAAASUVORK5CYII=",index="";
- function ownKeys(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),e.push.apply(e,r)}return e}function _objectSpread2(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(e),!0).forEach(function(r){_defineProperty(i,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):ownKeys(Object(e)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(e,r))})}return i}function _typeof(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(t){return typeof t}:_typeof=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(i)}function _classCallCheck(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(i,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}function _createClass(i,t,e){return t&&_defineProperties(i.prototype,t),e&&_defineProperties(i,e),i}function _defineProperty(i,t,e){return t in i?Object.defineProperty(i,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[t]=e,i}function _toConsumableArray(i){return _arrayWithoutHoles(i)||_iterableToArray(i)||_unsupportedIterableToArray(i)||_nonIterableSpread()}function _arrayWithoutHoles(i){if(Array.isArray(i))return _arrayLikeToArray(i)}function _iterableToArray(i){if(typeof Symbol!="undefined"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function _unsupportedIterableToArray(i,t){if(!!i){if(typeof i=="string")return _arrayLikeToArray(i,t);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray(i,t)}}function _arrayLikeToArray(i,t){(t==null||t>i.length)&&(t=i.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=i[e];return r}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var IS_BROWSER=typeof window!="undefined"&&typeof window.document!="undefined",WINDOW=IS_BROWSER?window:{},IS_TOUCH_DEVICE=IS_BROWSER&&WINDOW.document.documentElement?"ontouchstart"in WINDOW.document.documentElement:!1,HAS_POINTER_EVENT=IS_BROWSER?"PointerEvent"in WINDOW:!1,NAMESPACE="cropper",ACTION_ALL="all",ACTION_CROP="crop",ACTION_MOVE="move",ACTION_ZOOM="zoom",ACTION_EAST="e",ACTION_WEST="w",ACTION_SOUTH="s",ACTION_NORTH="n",ACTION_NORTH_EAST="ne",ACTION_NORTH_WEST="nw",ACTION_SOUTH_EAST="se",ACTION_SOUTH_WEST="sw",CLASS_CROP="".concat(NAMESPACE,"-crop"),CLASS_DISABLED="".concat(NAMESPACE,"-disabled"),CLASS_HIDDEN="".concat(NAMESPACE,"-hidden"),CLASS_HIDE="".concat(NAMESPACE,"-hide"),CLASS_INVISIBLE="".concat(NAMESPACE,"-invisible"),CLASS_MODAL="".concat(NAMESPACE,"-modal"),CLASS_MOVE="".concat(NAMESPACE,"-move"),DATA_ACTION="".concat(NAMESPACE,"Action"),DATA_PREVIEW="".concat(NAMESPACE,"Preview"),DRAG_MODE_CROP="crop",DRAG_MODE_MOVE="move",DRAG_MODE_NONE="none",EVENT_CROP="crop",EVENT_CROP_END="cropend",EVENT_CROP_MOVE="cropmove",EVENT_CROP_START="cropstart",EVENT_DBLCLICK="dblclick",EVENT_TOUCH_START=IS_TOUCH_DEVICE?"touchstart":"mousedown",EVENT_TOUCH_MOVE=IS_TOUCH_DEVICE?"touchmove":"mousemove",EVENT_TOUCH_END=IS_TOUCH_DEVICE?"touchend touchcancel":"mouseup",EVENT_POINTER_DOWN=HAS_POINTER_EVENT?"pointerdown":EVENT_TOUCH_START,EVENT_POINTER_MOVE=HAS_POINTER_EVENT?"pointermove":EVENT_TOUCH_MOVE,EVENT_POINTER_UP=HAS_POINTER_EVENT?"pointerup pointercancel":EVENT_TOUCH_END,EVENT_READY="ready",EVENT_RESIZE="resize",EVENT_WHEEL="wheel",EVENT_ZOOM="zoom",MIME_TYPE_JPEG="image/jpeg",REGEXP_ACTIONS=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,REGEXP_DATA_URL=/^data:/,REGEXP_DATA_URL_JPEG=/^data:image\/jpeg;base64,/,REGEXP_TAG_NAME=/^img|canvas$/i,MIN_CONTAINER_WIDTH=200,MIN_CONTAINER_HEIGHT=100,DEFAULTS={viewMode:0,dragMode:DRAG_MODE_CROP,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:MIN_CONTAINER_WIDTH,minContainerHeight:MIN_CONTAINER_HEIGHT,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},TEMPLATE='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',isNaN=Number.isNaN||WINDOW.isNaN;function isNumber(i){return typeof i=="number"&&!isNaN(i)}var isPositiveNumber=function(t){return t>0&&t<1/0};function isUndefined(i){return typeof i=="undefined"}function isObject(i){return _typeof(i)==="object"&&i!==null}var hasOwnProperty=Object.prototype.hasOwnProperty;function isPlainObject(i){if(!isObject(i))return!1;try{var t=i.constructor,e=t.prototype;return t&&e&&hasOwnProperty.call(e,"isPrototypeOf")}catch{return!1}}function isFunction(i){return typeof i=="function"}var slice=Array.prototype.slice;function toArray(i){return Array.from?Array.from(i):slice.call(i)}function forEach(i,t){return i&&isFunction(t)&&(Array.isArray(i)||isNumber(i.length)?toArray(i).forEach(function(e,r){t.call(i,e,r,i)}):isObject(i)&&Object.keys(i).forEach(function(e){t.call(i,i[e],e,i)})),i}var assign=Object.assign||function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),l=1;l<e;l++)r[l-1]=arguments[l];return isObject(t)&&r.length>0&&r.forEach(function(o){isObject(o)&&Object.keys(o).forEach(function(a){t[a]=o[a]})}),t},REGEXP_DECIMALS=/\.\d*(?:0|9){12}\d*$/;function normalizeDecimalNumber(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return REGEXP_DECIMALS.test(i)?Math.round(i*t)/t:i}var REGEXP_SUFFIX=/^width|height|left|top|marginLeft|marginTop$/;function setStyle(i,t){var e=i.style;forEach(t,function(r,l){REGEXP_SUFFIX.test(l)&&isNumber(r)&&(r="".concat(r,"px")),e[l]=r})}function hasClass(i,t){return i.classList?i.classList.contains(t):i.className.indexOf(t)>-1}function addClass(i,t){if(!!t){if(isNumber(i.length)){forEach(i,function(r){addClass(r,t)});return}if(i.classList){i.classList.add(t);return}var e=i.className.trim();e?e.indexOf(t)<0&&(i.className="".concat(e," ").concat(t)):i.className=t}}function removeClass(i,t){if(!!t){if(isNumber(i.length)){forEach(i,function(e){removeClass(e,t)});return}if(i.classList){i.classList.remove(t);return}i.className.indexOf(t)>=0&&(i.className=i.className.replace(t,""))}}function toggleClass(i,t,e){if(!!t){if(isNumber(i.length)){forEach(i,function(r){toggleClass(r,t,e)});return}e?addClass(i,t):removeClass(i,t)}}var REGEXP_CAMEL_CASE=/([a-z\d])([A-Z])/g;function toParamCase(i){return i.replace(REGEXP_CAMEL_CASE,"$1-$2").toLowerCase()}function getData(i,t){return isObject(i[t])?i[t]:i.dataset?i.dataset[t]:i.getAttribute("data-".concat(toParamCase(t)))}function setData(i,t,e){isObject(e)?i[t]=e:i.dataset?i.dataset[t]=e:i.setAttribute("data-".concat(toParamCase(t)),e)}function removeData(i,t){if(isObject(i[t]))try{delete i[t]}catch{i[t]=void 0}else if(i.dataset)try{delete i.dataset[t]}catch{i.dataset[t]=void 0}else i.removeAttribute("data-".concat(toParamCase(t)))}var REGEXP_SPACES=/\s\s*/,onceSupported=function(){var i=!1;if(IS_BROWSER){var t=!1,e=function(){},r=Object.defineProperty({},"once",{get:function(){return i=!0,t},set:function(o){t=o}});WINDOW.addEventListener("test",e,r),WINDOW.removeEventListener("test",e,r)}return i}();function removeListener(i,t,e){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=e;t.trim().split(REGEXP_SPACES).forEach(function(o){if(!onceSupported){var a=i.listeners;a&&a[o]&&a[o][e]&&(l=a[o][e],delete a[o][e],Object.keys(a[o]).length===0&&delete a[o],Object.keys(a).length===0&&delete i.listeners)}i.removeEventListener(o,l,r)})}function addListener(i,t,e){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=e;t.trim().split(REGEXP_SPACES).forEach(function(o){if(r.once&&!onceSupported){var a=i.listeners,E=a===void 0?{}:a;l=function(){delete E[o][e],i.removeEventListener(o,l,r);for(var D=arguments.length,C=new Array(D),x=0;x<D;x++)C[x]=arguments[x];e.apply(i,C)},E[o]||(E[o]={}),E[o][e]&&i.removeEventListener(o,E[o][e],r),E[o][e]=l,i.listeners=E}i.addEventListener(o,l,r)})}function dispatchEvent(i,t,e){var r;return isFunction(Event)&&isFunction(CustomEvent)?r=new CustomEvent(t,{detail:e,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!0,e)),i.dispatchEvent(r)}function getOffset(i){var t=i.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var location$1=WINDOW.location,REGEXP_ORIGINS=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function isCrossOriginURL(i){var t=i.match(REGEXP_ORIGINS);return t!==null&&(t[1]!==location$1.protocol||t[2]!==location$1.hostname||t[3]!==location$1.port)}function addTimestamp(i){var t="timestamp=".concat(new Date().getTime());return i+(i.indexOf("?")===-1?"?":"&")+t}function getTransforms(i){var t=i.rotate,e=i.scaleX,r=i.scaleY,l=i.translateX,o=i.translateY,a=[];isNumber(l)&&l!==0&&a.push("translateX(".concat(l,"px)")),isNumber(o)&&o!==0&&a.push("translateY(".concat(o,"px)")),isNumber(t)&&t!==0&&a.push("rotate(".concat(t,"deg)")),isNumber(e)&&e!==1&&a.push("scaleX(".concat(e,")")),isNumber(r)&&r!==1&&a.push("scaleY(".concat(r,")"));var E=a.length?a.join(" "):"none";return{WebkitTransform:E,msTransform:E,transform:E}}function getMaxZoomRatio(i){var t=_objectSpread2({},i),e=0;return forEach(i,function(r,l){delete t[l],forEach(t,function(o){var a=Math.abs(r.startX-o.startX),E=Math.abs(r.startY-o.startY),w=Math.abs(r.endX-o.endX),D=Math.abs(r.endY-o.endY),C=Math.sqrt(a*a+E*E),x=Math.sqrt(w*w+D*D),O=(x-C)/C;Math.abs(O)>Math.abs(e)&&(e=O)})}),e}function getPointer(i,t){var e=i.pageX,r=i.pageY,l={endX:e,endY:r};return t?l:_objectSpread2({startX:e,startY:r},l)}function getPointersCenter(i){var t=0,e=0,r=0;return forEach(i,function(l){var o=l.startX,a=l.startY;t+=o,e+=a,r+=1}),t/=r,e/=r,{pageX:t,pageY:e}}function getAdjustedSizes(i){var t=i.aspectRatio,e=i.height,r=i.width,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",o=isPositiveNumber(r),a=isPositiveNumber(e);if(o&&a){var E=e*t;l==="contain"&&E>r||l==="cover"&&E<r?e=r/t:r=e*t}else o?e=r/t:a&&(r=e*t);return{width:r,height:e}}function getRotatedSizes(i){var t=i.width,e=i.height,r=i.degree;if(r=Math.abs(r)%180,r===90)return{width:e,height:t};var l=r%90*Math.PI/180,o=Math.sin(l),a=Math.cos(l),E=t*a+e*o,w=t*o+e*a;return r>90?{width:w,height:E}:{width:E,height:w}}function getSourceCanvas(i,t,e,r){var l=t.aspectRatio,o=t.naturalWidth,a=t.naturalHeight,E=t.rotate,w=E===void 0?0:E,D=t.scaleX,C=D===void 0?1:D,x=t.scaleY,O=x===void 0?1:x,H=e.aspectRatio,L=e.naturalWidth,M=e.naturalHeight,Y=r.fillColor,G=Y===void 0?"transparent":Y,re=r.imageSmoothingEnabled,I=re===void 0?!0:re,T=r.imageSmoothingQuality,A=T===void 0?"low":T,N=r.maxWidth,v=N===void 0?1/0:N,q=r.maxHeight,V=q===void 0?1/0:q,U=r.minWidth,K=U===void 0?0:U,B=r.minHeight,j=B===void 0?0:B,X=document.createElement("canvas"),W=X.getContext("2d"),J=getAdjustedSizes({aspectRatio:H,width:v,height:V}),se=getAdjustedSizes({aspectRatio:H,width:K,height:j},"cover"),ae=Math.min(J.width,Math.max(se.width,L)),oe=Math.min(J.height,Math.max(se.height,M)),ie=getAdjustedSizes({aspectRatio:l,width:v,height:V}),ce=getAdjustedSizes({aspectRatio:l,width:K,height:j},"cover"),le=Math.min(ie.width,Math.max(ce.width,o)),pe=Math.min(ie.height,Math.max(ce.height,a)),Z=[-le/2,-pe/2,le,pe];return X.width=normalizeDecimalNumber(ae),X.height=normalizeDecimalNumber(oe),W.fillStyle=G,W.fillRect(0,0,ae,oe),W.save(),W.translate(ae/2,oe/2),W.rotate(w*Math.PI/180),W.scale(C,O),W.imageSmoothingEnabled=I,W.imageSmoothingQuality=A,W.drawImage.apply(W,[i].concat(_toConsumableArray(Z.map(function(te){return Math.floor(normalizeDecimalNumber(te))})))),W.restore(),X}var fromCharCode=String.fromCharCode;function getStringFromCharCode(i,t,e){var r="";e+=t;for(var l=t;l<e;l+=1)r+=fromCharCode(i.getUint8(l));return r}var REGEXP_DATA_URL_HEAD=/^data:.*,/;function dataURLToArrayBuffer(i){var t=i.replace(REGEXP_DATA_URL_HEAD,""),e=atob(t),r=new ArrayBuffer(e.length),l=new Uint8Array(r);return forEach(l,function(o,a){l[a]=e.charCodeAt(a)}),r}function arrayBufferToDataURL(i,t){for(var e=[],r=8192,l=new Uint8Array(i);l.length>0;)e.push(fromCharCode.apply(null,toArray(l.subarray(0,r)))),l=l.subarray(r);return"data:".concat(t,";base64,").concat(btoa(e.join("")))}function resetAndGetOrientation(i){var t=new DataView(i),e;try{var r,l,o;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var a=t.byteLength,E=2;E+1<a;){if(t.getUint8(E)===255&&t.getUint8(E+1)===225){l=E;break}E+=1}if(l){var w=l+4,D=l+10;if(getStringFromCharCode(t,w,4)==="Exif"){var C=t.getUint16(D);if(r=C===18761,(r||C===19789)&&t.getUint16(D+2,r)===42){var x=t.getUint32(D+4,r);x>=8&&(o=D+x)}}}if(o){var O=t.getUint16(o,r),H,L;for(L=0;L<O;L+=1)if(H=o+L*12+2,t.getUint16(H,r)===274){H+=8,e=t.getUint16(H,r),t.setUint16(H,1,r);break}}}catch{e=1}return e}function parseOrientation(i){var t=0,e=1,r=1;switch(i){case 2:e=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,e=-1;break;case 8:t=-90;break}return{rotate:t,scaleX:e,scaleY:r}}var render={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,r=this.container,l=this.cropper,o=Number(e.minContainerWidth),a=Number(e.minContainerHeight);addClass(l,CLASS_HIDDEN),removeClass(t,CLASS_HIDDEN);var E={width:Math.max(r.offsetWidth,o>=0?o:MIN_CONTAINER_WIDTH),height:Math.max(r.offsetHeight,a>=0?a:MIN_CONTAINER_HEIGHT)};this.containerData=E,setStyle(l,{width:E.width,height:E.height}),addClass(t,CLASS_HIDDEN),removeClass(l,CLASS_HIDDEN)},initCanvas:function(){var t=this.containerData,e=this.imageData,r=this.options.viewMode,l=Math.abs(e.rotate)%180==90,o=l?e.naturalHeight:e.naturalWidth,a=l?e.naturalWidth:e.naturalHeight,E=o/a,w=t.width,D=t.height;t.height*E>t.width?r===3?w=t.height*E:D=t.width/E:r===3?D=t.width/E:w=t.height*E;var C={aspectRatio:E,naturalWidth:o,naturalHeight:a,width:w,height:D};this.canvasData=C,this.limited=r===1||r===2,this.limitCanvas(!0,!0),C.width=Math.min(Math.max(C.width,C.minWidth),C.maxWidth),C.height=Math.min(Math.max(C.height,C.minHeight),C.maxHeight),C.left=(t.width-C.width)/2,C.top=(t.height-C.height)/2,C.oldLeft=C.left,C.oldTop=C.top,this.initialCanvasData=assign({},C)},limitCanvas:function(t,e){var r=this.options,l=this.containerData,o=this.canvasData,a=this.cropBoxData,E=r.viewMode,w=o.aspectRatio,D=this.cropped&&a;if(t){var C=Number(r.minCanvasWidth)||0,x=Number(r.minCanvasHeight)||0;E>1?(C=Math.max(C,l.width),x=Math.max(x,l.height),E===3&&(x*w>C?C=x*w:x=C/w)):E>0&&(C?C=Math.max(C,D?a.width:0):x?x=Math.max(x,D?a.height:0):D&&(C=a.width,x=a.height,x*w>C?C=x*w:x=C/w));var O=getAdjustedSizes({aspectRatio:w,width:C,height:x});C=O.width,x=O.height,o.minWidth=C,o.minHeight=x,o.maxWidth=1/0,o.maxHeight=1/0}if(e)if(E>(D?0:1)){var H=l.width-o.width,L=l.height-o.height;o.minLeft=Math.min(0,H),o.minTop=Math.min(0,L),o.maxLeft=Math.max(0,H),o.maxTop=Math.max(0,L),D&&this.limited&&(o.minLeft=Math.min(a.left,a.left+(a.width-o.width)),o.minTop=Math.min(a.top,a.top+(a.height-o.height)),o.maxLeft=a.left,o.maxTop=a.top,E===2&&(o.width>=l.width&&(o.minLeft=Math.min(0,H),o.maxLeft=Math.max(0,H)),o.height>=l.height&&(o.minTop=Math.min(0,L),o.maxTop=Math.max(0,L))))}else o.minLeft=-o.width,o.minTop=-o.height,o.maxLeft=l.width,o.maxTop=l.height},renderCanvas:function(t,e){var r=this.canvasData,l=this.imageData;if(e){var o=getRotatedSizes({width:l.naturalWidth*Math.abs(l.scaleX||1),height:l.naturalHeight*Math.abs(l.scaleY||1),degree:l.rotate||0}),a=o.width,E=o.height,w=r.width*(a/r.naturalWidth),D=r.height*(E/r.naturalHeight);r.left-=(w-r.width)/2,r.top-=(D-r.height)/2,r.width=w,r.height=D,r.aspectRatio=a/E,r.naturalWidth=a,r.naturalHeight=E,this.limitCanvas(!0,!1)}(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCanvas(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,setStyle(this.canvas,assign({width:r.width,height:r.height},getTransforms({translateX:r.left,translateY:r.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,r=this.imageData,l=r.naturalWidth*(e.width/e.naturalWidth),o=r.naturalHeight*(e.height/e.naturalHeight);assign(r,{width:l,height:o,left:(e.width-l)/2,top:(e.height-o)/2}),setStyle(this.image,assign({width:r.width,height:r.height},getTransforms(assign({translateX:r.left,translateY:r.top},r)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,r=t.aspectRatio||t.initialAspectRatio,l=Number(t.autoCropArea)||.8,o={width:e.width,height:e.height};r&&(e.height*r>e.width?o.height=o.width/r:o.width=o.height*r),this.cropBoxData=o,this.limitCropBox(!0,!0),o.width=Math.min(Math.max(o.width,o.minWidth),o.maxWidth),o.height=Math.min(Math.max(o.height,o.minHeight),o.maxHeight),o.width=Math.max(o.minWidth,o.width*l),o.height=Math.max(o.minHeight,o.height*l),o.left=e.left+(e.width-o.width)/2,o.top=e.top+(e.height-o.height)/2,o.oldLeft=o.left,o.oldTop=o.top,this.initialCropBoxData=assign({},o)},limitCropBox:function(t,e){var r=this.options,l=this.containerData,o=this.canvasData,a=this.cropBoxData,E=this.limited,w=r.aspectRatio;if(t){var D=Number(r.minCropBoxWidth)||0,C=Number(r.minCropBoxHeight)||0,x=E?Math.min(l.width,o.width,o.width+o.left,l.width-o.left):l.width,O=E?Math.min(l.height,o.height,o.height+o.top,l.height-o.top):l.height;D=Math.min(D,l.width),C=Math.min(C,l.height),w&&(D&&C?C*w>D?C=D/w:D=C*w:D?C=D/w:C&&(D=C*w),O*w>x?O=x/w:x=O*w),a.minWidth=Math.min(D,x),a.minHeight=Math.min(C,O),a.maxWidth=x,a.maxHeight=O}e&&(E?(a.minLeft=Math.max(0,o.left),a.minTop=Math.max(0,o.top),a.maxLeft=Math.min(l.width,o.left+o.width)-a.width,a.maxTop=Math.min(l.height,o.top+o.height)-a.height):(a.minLeft=0,a.minTop=0,a.maxLeft=l.width-a.width,a.maxTop=l.height-a.height))},renderCropBox:function(){var t=this.options,e=this.containerData,r=this.cropBoxData;(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCropBox(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,t.movable&&t.cropBoxMovable&&setData(this.face,DATA_ACTION,r.width>=e.width&&r.height>=e.height?ACTION_MOVE:ACTION_ALL),setStyle(this.cropBox,assign({width:r.width,height:r.height},getTransforms({translateX:r.left,translateY:r.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),dispatchEvent(this.element,EVENT_CROP,this.getData())}},preview={initPreview:function(){var t=this.element,e=this.crossOrigin,r=this.options.preview,l=e?this.crossOriginUrl:this.url,o=t.alt||"The image to preview",a=document.createElement("img");if(e&&(a.crossOrigin=e),a.src=l,a.alt=o,this.viewBox.appendChild(a),this.viewBoxImage=a,!!r){var E=r;typeof r=="string"?E=t.ownerDocument.querySelectorAll(r):r.querySelector&&(E=[r]),this.previews=E,forEach(E,function(w){var D=document.createElement("img");setData(w,DATA_PREVIEW,{width:w.offsetWidth,height:w.offsetHeight,html:w.innerHTML}),e&&(D.crossOrigin=e),D.src=l,D.alt=o,D.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',w.innerHTML="",w.appendChild(D)})}},resetPreview:function(){forEach(this.previews,function(t){var e=getData(t,DATA_PREVIEW);setStyle(t,{width:e.width,height:e.height}),t.innerHTML=e.html,removeData(t,DATA_PREVIEW)})},preview:function(){var t=this.imageData,e=this.canvasData,r=this.cropBoxData,l=r.width,o=r.height,a=t.width,E=t.height,w=r.left-e.left-t.left,D=r.top-e.top-t.top;!this.cropped||this.disabled||(setStyle(this.viewBoxImage,assign({width:a,height:E},getTransforms(assign({translateX:-w,translateY:-D},t)))),forEach(this.previews,function(C){var x=getData(C,DATA_PREVIEW),O=x.width,H=x.height,L=O,M=H,Y=1;l&&(Y=O/l,M=o*Y),o&&M>H&&(Y=H/o,L=l*Y,M=H),setStyle(C,{width:L,height:M}),setStyle(C.getElementsByTagName("img")[0],assign({width:a*Y,height:E*Y},getTransforms(assign({translateX:-w*Y,translateY:-D*Y},t))))}))}},events={bind:function(){var t=this.element,e=this.options,r=this.cropper;isFunction(e.cropstart)&&addListener(t,EVENT_CROP_START,e.cropstart),isFunction(e.cropmove)&&addListener(t,EVENT_CROP_MOVE,e.cropmove),isFunction(e.cropend)&&addListener(t,EVENT_CROP_END,e.cropend),isFunction(e.crop)&&addListener(t,EVENT_CROP,e.crop),isFunction(e.zoom)&&addListener(t,EVENT_ZOOM,e.zoom),addListener(r,EVENT_POINTER_DOWN,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&addListener(r,EVENT_WHEEL,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&addListener(r,EVENT_DBLCLICK,this.onDblclick=this.dblclick.bind(this)),addListener(t.ownerDocument,EVENT_POINTER_MOVE,this.onCropMove=this.cropMove.bind(this)),addListener(t.ownerDocument,EVENT_POINTER_UP,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&addListener(window,EVENT_RESIZE,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,r=this.cropper;isFunction(e.cropstart)&&removeListener(t,EVENT_CROP_START,e.cropstart),isFunction(e.cropmove)&&removeListener(t,EVENT_CROP_MOVE,e.cropmove),isFunction(e.cropend)&&removeListener(t,EVENT_CROP_END,e.cropend),isFunction(e.crop)&&removeListener(t,EVENT_CROP,e.crop),isFunction(e.zoom)&&removeListener(t,EVENT_ZOOM,e.zoom),removeListener(r,EVENT_POINTER_DOWN,this.onCropStart),e.zoomable&&e.zoomOnWheel&&removeListener(r,EVENT_WHEEL,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&removeListener(r,EVENT_DBLCLICK,this.onDblclick),removeListener(t.ownerDocument,EVENT_POINTER_MOVE,this.onCropMove),removeListener(t.ownerDocument,EVENT_POINTER_UP,this.onCropEnd),e.responsive&&removeListener(window,EVENT_RESIZE,this.onResize)}},handlers={resize:function(){if(!this.disabled){var t=this.options,e=this.container,r=this.containerData,l=e.offsetWidth/r.width,o=e.offsetHeight/r.height,a=Math.abs(l-1)>Math.abs(o-1)?l:o;if(a!==1){var E,w;t.restore&&(E=this.getCanvasData(),w=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(forEach(E,function(D,C){E[C]=D*a})),this.setCropBoxData(forEach(w,function(D,C){w[C]=D*a})))}}},dblclick:function(){this.disabled||this.options.dragMode===DRAG_MODE_NONE||this.setDragMode(hasClass(this.dragBox,CLASS_CROP)?DRAG_MODE_MOVE:DRAG_MODE_CROP)},wheel:function(t){var e=this,r=Number(this.options.wheelZoomRatio)||.1,l=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50),t.deltaY?l=t.deltaY>0?1:-1:t.wheelDelta?l=-t.wheelDelta/120:t.detail&&(l=t.detail>0?1:-1),this.zoom(-l*r,t)))},cropStart:function(t){var e=t.buttons,r=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(isNumber(e)&&e!==1||isNumber(r)&&r!==0||t.ctrlKey))){var l=this.options,o=this.pointers,a;t.changedTouches?forEach(t.changedTouches,function(E){o[E.identifier]=getPointer(E)}):o[t.pointerId||0]=getPointer(t),Object.keys(o).length>1&&l.zoomable&&l.zoomOnTouch?a=ACTION_ZOOM:a=getData(t.target,DATA_ACTION),!!REGEXP_ACTIONS.test(a)&&dispatchEvent(this.element,EVENT_CROP_START,{originalEvent:t,action:a})!==!1&&(t.preventDefault(),this.action=a,this.cropping=!1,a===ACTION_CROP&&(this.cropping=!0,addClass(this.dragBox,CLASS_MODAL)))}},cropMove:function(t){var e=this.action;if(!(this.disabled||!e)){var r=this.pointers;t.preventDefault(),dispatchEvent(this.element,EVENT_CROP_MOVE,{originalEvent:t,action:e})!==!1&&(t.changedTouches?forEach(t.changedTouches,function(l){assign(r[l.identifier]||{},getPointer(l,!0))}):assign(r[t.pointerId||0]||{},getPointer(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,r=this.pointers;t.changedTouches?forEach(t.changedTouches,function(l){delete r[l.identifier]}):delete r[t.pointerId||0],!!e&&(t.preventDefault(),Object.keys(r).length||(this.action=""),this.cropping&&(this.cropping=!1,toggleClass(this.dragBox,CLASS_MODAL,this.cropped&&this.options.modal)),dispatchEvent(this.element,EVENT_CROP_END,{originalEvent:t,action:e}))}}},change={change:function(t){var e=this.options,r=this.canvasData,l=this.containerData,o=this.cropBoxData,a=this.pointers,E=this.action,w=e.aspectRatio,D=o.left,C=o.top,x=o.width,O=o.height,H=D+x,L=C+O,M=0,Y=0,G=l.width,re=l.height,I=!0,T;!w&&t.shiftKey&&(w=x&&O?x/O:1),this.limited&&(M=o.minLeft,Y=o.minTop,G=M+Math.min(l.width,r.width,r.left+r.width),re=Y+Math.min(l.height,r.height,r.top+r.height));var A=a[Object.keys(a)[0]],N={x:A.endX-A.startX,y:A.endY-A.startY},v=function(V){switch(V){case ACTION_EAST:H+N.x>G&&(N.x=G-H);break;case ACTION_WEST:D+N.x<M&&(N.x=M-D);break;case ACTION_NORTH:C+N.y<Y&&(N.y=Y-C);break;case ACTION_SOUTH:L+N.y>re&&(N.y=re-L);break}};switch(E){case ACTION_ALL:D+=N.x,C+=N.y;break;case ACTION_EAST:if(N.x>=0&&(H>=G||w&&(C<=Y||L>=re))){I=!1;break}v(ACTION_EAST),x+=N.x,x<0&&(E=ACTION_WEST,x=-x,D-=x),w&&(O=x/w,C+=(o.height-O)/2);break;case ACTION_NORTH:if(N.y<=0&&(C<=Y||w&&(D<=M||H>=G))){I=!1;break}v(ACTION_NORTH),O-=N.y,C+=N.y,O<0&&(E=ACTION_SOUTH,O=-O,C-=O),w&&(x=O*w,D+=(o.width-x)/2);break;case ACTION_WEST:if(N.x<=0&&(D<=M||w&&(C<=Y||L>=re))){I=!1;break}v(ACTION_WEST),x-=N.x,D+=N.x,x<0&&(E=ACTION_EAST,x=-x,D-=x),w&&(O=x/w,C+=(o.height-O)/2);break;case ACTION_SOUTH:if(N.y>=0&&(L>=re||w&&(D<=M||H>=G))){I=!1;break}v(ACTION_SOUTH),O+=N.y,O<0&&(E=ACTION_NORTH,O=-O,C-=O),w&&(x=O*w,D+=(o.width-x)/2);break;case ACTION_NORTH_EAST:if(w){if(N.y<=0&&(C<=Y||H>=G)){I=!1;break}v(ACTION_NORTH),O-=N.y,C+=N.y,x=O*w}else v(ACTION_NORTH),v(ACTION_EAST),N.x>=0?H<G?x+=N.x:N.y<=0&&C<=Y&&(I=!1):x+=N.x,N.y<=0?C>Y&&(O-=N.y,C+=N.y):(O-=N.y,C+=N.y);x<0&&O<0?(E=ACTION_SOUTH_WEST,O=-O,x=-x,C-=O,D-=x):x<0?(E=ACTION_NORTH_WEST,x=-x,D-=x):O<0&&(E=ACTION_SOUTH_EAST,O=-O,C-=O);break;case ACTION_NORTH_WEST:if(w){if(N.y<=0&&(C<=Y||D<=M)){I=!1;break}v(ACTION_NORTH),O-=N.y,C+=N.y,x=O*w,D+=o.width-x}else v(ACTION_NORTH),v(ACTION_WEST),N.x<=0?D>M?(x-=N.x,D+=N.x):N.y<=0&&C<=Y&&(I=!1):(x-=N.x,D+=N.x),N.y<=0?C>Y&&(O-=N.y,C+=N.y):(O-=N.y,C+=N.y);x<0&&O<0?(E=ACTION_SOUTH_EAST,O=-O,x=-x,C-=O,D-=x):x<0?(E=ACTION_NORTH_EAST,x=-x,D-=x):O<0&&(E=ACTION_SOUTH_WEST,O=-O,C-=O);break;case ACTION_SOUTH_WEST:if(w){if(N.x<=0&&(D<=M||L>=re)){I=!1;break}v(ACTION_WEST),x-=N.x,D+=N.x,O=x/w}else v(ACTION_SOUTH),v(ACTION_WEST),N.x<=0?D>M?(x-=N.x,D+=N.x):N.y>=0&&L>=re&&(I=!1):(x-=N.x,D+=N.x),N.y>=0?L<re&&(O+=N.y):O+=N.y;x<0&&O<0?(E=ACTION_NORTH_EAST,O=-O,x=-x,C-=O,D-=x):x<0?(E=ACTION_SOUTH_EAST,x=-x,D-=x):O<0&&(E=ACTION_NORTH_WEST,O=-O,C-=O);break;case ACTION_SOUTH_EAST:if(w){if(N.x>=0&&(H>=G||L>=re)){I=!1;break}v(ACTION_EAST),x+=N.x,O=x/w}else v(ACTION_SOUTH),v(ACTION_EAST),N.x>=0?H<G?x+=N.x:N.y>=0&&L>=re&&(I=!1):x+=N.x,N.y>=0?L<re&&(O+=N.y):O+=N.y;x<0&&O<0?(E=ACTION_NORTH_WEST,O=-O,x=-x,C-=O,D-=x):x<0?(E=ACTION_SOUTH_WEST,x=-x,D-=x):O<0&&(E=ACTION_NORTH_EAST,O=-O,C-=O);break;case ACTION_MOVE:this.move(N.x,N.y),I=!1;break;case ACTION_ZOOM:this.zoom(getMaxZoomRatio(a),t),I=!1;break;case ACTION_CROP:if(!N.x||!N.y){I=!1;break}T=getOffset(this.cropper),D=A.startX-T.left,C=A.startY-T.top,x=o.minWidth,O=o.minHeight,N.x>0?E=N.y>0?ACTION_SOUTH_EAST:ACTION_NORTH_EAST:N.x<0&&(D-=x,E=N.y>0?ACTION_SOUTH_WEST:ACTION_NORTH_WEST),N.y<0&&(C-=O),this.cropped||(removeClass(this.cropBox,CLASS_HIDDEN),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}I&&(o.width=x,o.height=O,o.left=D,o.top=C,this.action=E,this.renderCropBox()),forEach(a,function(q){q.startX=q.endX,q.startY=q.endY})}},methods={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&addClass(this.dragBox,CLASS_MODAL),removeClass(this.cropBox,CLASS_HIDDEN),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=assign({},this.initialImageData),this.canvasData=assign({},this.initialCanvasData),this.cropBoxData=assign({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(assign(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),removeClass(this.dragBox,CLASS_MODAL),addClass(this.cropBox,CLASS_HIDDEN)),this},replace:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,forEach(this.previews,function(r){r.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,removeClass(this.cropper,CLASS_DISABLED)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,addClass(this.cropper,CLASS_DISABLED)),this},destroy:function(){var t=this.element;return t[NAMESPACE]?(t[NAMESPACE]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.canvasData,l=r.left,o=r.top;return this.moveTo(isUndefined(t)?t:l+Number(t),isUndefined(e)?e:o+Number(e))},moveTo:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.canvasData,l=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(isNumber(t)&&(r.left=t,l=!0),isNumber(e)&&(r.top=e,l=!0),l&&this.renderCanvas(!0)),this},zoom:function(t,e){var r=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(r.width*t/r.naturalWidth,null,e)},zoomTo:function(t,e,r){var l=this.options,o=this.canvasData,a=o.width,E=o.height,w=o.naturalWidth,D=o.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&l.zoomable){var C=w*t,x=D*t;if(dispatchEvent(this.element,EVENT_ZOOM,{ratio:t,oldRatio:a/w,originalEvent:r})===!1)return this;if(r){var O=this.pointers,H=getOffset(this.cropper),L=O&&Object.keys(O).length?getPointersCenter(O):{pageX:r.pageX,pageY:r.pageY};o.left-=(C-a)*((L.pageX-H.left-o.left)/a),o.top-=(x-E)*((L.pageY-H.top-o.top)/E)}else isPlainObject(e)&&isNumber(e.x)&&isNumber(e.y)?(o.left-=(C-a)*((e.x-o.left)/a),o.top-=(x-E)*((e.y-o.top)/E)):(o.left-=(C-a)/2,o.top-=(x-E)/2);o.width=C,o.height=x,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),isNumber(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,isNumber(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(isNumber(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.imageData,l=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(isNumber(t)&&(r.scaleX=t,l=!0),isNumber(e)&&(r.scaleY=e,l=!0),l&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.options,r=this.imageData,l=this.canvasData,o=this.cropBoxData,a;if(this.ready&&this.cropped){a={x:o.left-l.left,y:o.top-l.top,width:o.width,height:o.height};var E=r.width/r.naturalWidth;if(forEach(a,function(C,x){a[x]=C/E}),t){var w=Math.round(a.y+a.height),D=Math.round(a.x+a.width);a.x=Math.round(a.x),a.y=Math.round(a.y),a.width=D-a.x,a.height=w-a.y}}else a={x:0,y:0,width:0,height:0};return e.rotatable&&(a.rotate=r.rotate||0),e.scalable&&(a.scaleX=r.scaleX||1,a.scaleY=r.scaleY||1),a},setData:function(t){var e=this.options,r=this.imageData,l=this.canvasData,o={};if(this.ready&&!this.disabled&&isPlainObject(t)){var a=!1;e.rotatable&&isNumber(t.rotate)&&t.rotate!==r.rotate&&(r.rotate=t.rotate,a=!0),e.scalable&&(isNumber(t.scaleX)&&t.scaleX!==r.scaleX&&(r.scaleX=t.scaleX,a=!0),isNumber(t.scaleY)&&t.scaleY!==r.scaleY&&(r.scaleY=t.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var E=r.width/r.naturalWidth;isNumber(t.x)&&(o.left=t.x*E+l.left),isNumber(t.y)&&(o.top=t.y*E+l.top),isNumber(t.width)&&(o.width=t.width*E),isNumber(t.height)&&(o.height=t.height*E),this.setCropBoxData(o)}return this},getContainerData:function(){return this.ready?assign({},this.containerData):{}},getImageData:function(){return this.sized?assign({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&forEach(["left","top","width","height","naturalWidth","naturalHeight"],function(r){e[r]=t[r]}),e},setCanvasData:function(t){var e=this.canvasData,r=e.aspectRatio;return this.ready&&!this.disabled&&isPlainObject(t)&&(isNumber(t.left)&&(e.left=t.left),isNumber(t.top)&&(e.top=t.top),isNumber(t.width)?(e.width=t.width,e.height=t.width/r):isNumber(t.height)&&(e.height=t.height,e.width=t.height*r),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,e;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(t){var e=this.cropBoxData,r=this.options.aspectRatio,l,o;return this.ready&&this.cropped&&!this.disabled&&isPlainObject(t)&&(isNumber(t.left)&&(e.left=t.left),isNumber(t.top)&&(e.top=t.top),isNumber(t.width)&&t.width!==e.width&&(l=!0,e.width=t.width),isNumber(t.height)&&t.height!==e.height&&(o=!0,e.height=t.height),r&&(l?e.height=e.width/r:o&&(e.width=e.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,r=getSourceCanvas(this.image,this.imageData,e,t);if(!this.cropped)return r;var l=this.getData(),o=l.x,a=l.y,E=l.width,w=l.height,D=r.width/Math.floor(e.naturalWidth);D!==1&&(o*=D,a*=D,E*=D,w*=D);var C=E/w,x=getAdjustedSizes({aspectRatio:C,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),O=getAdjustedSizes({aspectRatio:C,width:t.minWidth||0,height:t.minHeight||0},"cover"),H=getAdjustedSizes({aspectRatio:C,width:t.width||(D!==1?r.width:E),height:t.height||(D!==1?r.height:w)}),L=H.width,M=H.height;L=Math.min(x.width,Math.max(O.width,L)),M=Math.min(x.height,Math.max(O.height,M));var Y=document.createElement("canvas"),G=Y.getContext("2d");Y.width=normalizeDecimalNumber(L),Y.height=normalizeDecimalNumber(M),G.fillStyle=t.fillColor||"transparent",G.fillRect(0,0,L,M);var re=t.imageSmoothingEnabled,I=re===void 0?!0:re,T=t.imageSmoothingQuality;G.imageSmoothingEnabled=I,T&&(G.imageSmoothingQuality=T);var A=r.width,N=r.height,v=o,q=a,V,U,K,B,j,X;v<=-E||v>A?(v=0,V=0,K=0,j=0):v<=0?(K=-v,v=0,V=Math.min(A,E+v),j=V):v<=A&&(K=0,V=Math.min(E,A-v),j=V),V<=0||q<=-w||q>N?(q=0,U=0,B=0,X=0):q<=0?(B=-q,q=0,U=Math.min(N,w+q),X=U):q<=N&&(B=0,U=Math.min(w,N-q),X=U);var W=[v,q,V,U];if(j>0&&X>0){var J=L/E;W.push(K*J,B*J,j*J,X*J)}return G.drawImage.apply(G,[r].concat(_toConsumableArray(W.map(function(se){return Math.floor(normalizeDecimalNumber(se))})))),Y},setAspectRatio:function(t){var e=this.options;return!this.disabled&&!isUndefined(t)&&(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,r=this.dragBox,l=this.face;if(this.ready&&!this.disabled){var o=t===DRAG_MODE_CROP,a=e.movable&&t===DRAG_MODE_MOVE;t=o||a?t:DRAG_MODE_NONE,e.dragMode=t,setData(r,DATA_ACTION,t),toggleClass(r,CLASS_CROP,o),toggleClass(r,CLASS_MOVE,a),e.cropBoxMovable||(setData(l,DATA_ACTION,t),toggleClass(l,CLASS_CROP,o),toggleClass(l,CLASS_MOVE,a))}return this}},AnotherCropper=WINDOW.Cropper,Cropper$1=function(){function i(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_classCallCheck(this,i),!t||!REGEXP_TAG_NAME.test(t.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=assign({},DEFAULTS,isPlainObject(e)&&e),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return _createClass(i,[{key:"init",value:function(){var e=this.element,r=e.tagName.toLowerCase(),l;if(!e[NAMESPACE]){if(e[NAMESPACE]=this,r==="img"){if(this.isImg=!0,l=e.getAttribute("src")||"",this.originalUrl=l,!l)return;l=e.src}else r==="canvas"&&window.HTMLCanvasElement&&(l=e.toDataURL());this.load(l)}}},{key:"load",value:function(e){var r=this;if(!!e){this.url=e,this.imageData={};var l=this.element,o=this.options;if(!o.rotatable&&!o.scalable&&(o.checkOrientation=!1),!o.checkOrientation||!window.ArrayBuffer){this.clone();return}if(REGEXP_DATA_URL.test(e)){REGEXP_DATA_URL_JPEG.test(e)?this.read(dataURLToArrayBuffer(e)):this.clone();return}var a=new XMLHttpRequest,E=this.clone.bind(this);this.reloading=!0,this.xhr=a,a.onabort=E,a.onerror=E,a.ontimeout=E,a.onprogress=function(){a.getResponseHeader("content-type")!==MIME_TYPE_JPEG&&a.abort()},a.onload=function(){r.read(a.response)},a.onloadend=function(){r.reloading=!1,r.xhr=null},o.checkCrossOrigin&&isCrossOriginURL(e)&&l.crossOrigin&&(e=addTimestamp(e)),a.open("GET",e,!0),a.responseType="arraybuffer",a.withCredentials=l.crossOrigin==="use-credentials",a.send()}}},{key:"read",value:function(e){var r=this.options,l=this.imageData,o=resetAndGetOrientation(e),a=0,E=1,w=1;if(o>1){this.url=arrayBufferToDataURL(e,MIME_TYPE_JPEG);var D=parseOrientation(o);a=D.rotate,E=D.scaleX,w=D.scaleY}r.rotatable&&(l.rotate=a),r.scalable&&(l.scaleX=E,l.scaleY=w),this.clone()}},{key:"clone",value:function(){var e=this.element,r=this.url,l=e.crossOrigin,o=r;this.options.checkCrossOrigin&&isCrossOriginURL(r)&&(l||(l="anonymous"),o=addTimestamp(r)),this.crossOrigin=l,this.crossOriginUrl=o;var a=document.createElement("img");l&&(a.crossOrigin=l),a.src=o||r,a.alt=e.alt||"The image to crop",this.image=a,a.onload=this.start.bind(this),a.onerror=this.stop.bind(this),addClass(a,CLASS_HIDE),e.parentNode.insertBefore(a,e.nextSibling)}},{key:"start",value:function(){var e=this,r=this.image;r.onload=null,r.onerror=null,this.sizing=!0;var l=WINDOW.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(WINDOW.navigator.userAgent),o=function(D,C){assign(e.imageData,{naturalWidth:D,naturalHeight:C,aspectRatio:D/C}),e.initialImageData=assign({},e.imageData),e.sizing=!1,e.sized=!0,e.build()};if(r.naturalWidth&&!l){o(r.naturalWidth,r.naturalHeight);return}var a=document.createElement("img"),E=document.body||document.documentElement;this.sizingImage=a,a.onload=function(){o(a.width,a.height),l||E.removeChild(a)},a.src=r.src,l||(a.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",E.appendChild(a))}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var e=this.element,r=this.options,l=this.image,o=e.parentNode,a=document.createElement("div");a.innerHTML=TEMPLATE;var E=a.querySelector(".".concat(NAMESPACE,"-container")),w=E.querySelector(".".concat(NAMESPACE,"-canvas")),D=E.querySelector(".".concat(NAMESPACE,"-drag-box")),C=E.querySelector(".".concat(NAMESPACE,"-crop-box")),x=C.querySelector(".".concat(NAMESPACE,"-face"));this.container=o,this.cropper=E,this.canvas=w,this.dragBox=D,this.cropBox=C,this.viewBox=E.querySelector(".".concat(NAMESPACE,"-view-box")),this.face=x,w.appendChild(l),addClass(e,CLASS_HIDDEN),o.insertBefore(E,e.nextSibling),this.isImg||removeClass(l,CLASS_HIDE),this.initPreview(),this.bind(),r.initialAspectRatio=Math.max(0,r.initialAspectRatio)||NaN,r.aspectRatio=Math.max(0,r.aspectRatio)||NaN,r.viewMode=Math.max(0,Math.min(3,Math.round(r.viewMode)))||0,addClass(C,CLASS_HIDDEN),r.guides||addClass(C.getElementsByClassName("".concat(NAMESPACE,"-dashed")),CLASS_HIDDEN),r.center||addClass(C.getElementsByClassName("".concat(NAMESPACE,"-center")),CLASS_HIDDEN),r.background&&addClass(E,"".concat(NAMESPACE,"-bg")),r.highlight||addClass(x,CLASS_INVISIBLE),r.cropBoxMovable&&(addClass(x,CLASS_MOVE),setData(x,DATA_ACTION,ACTION_ALL)),r.cropBoxResizable||(addClass(C.getElementsByClassName("".concat(NAMESPACE,"-line")),CLASS_HIDDEN),addClass(C.getElementsByClassName("".concat(NAMESPACE,"-point")),CLASS_HIDDEN)),this.render(),this.ready=!0,this.setDragMode(r.dragMode),r.autoCrop&&this.crop(),this.setData(r.data),isFunction(r.ready)&&addListener(e,EVENT_READY,r.ready,{once:!0}),dispatchEvent(e,EVENT_READY)}}},{key:"unbuild",value:function(){!this.ready||(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),removeClass(this.element,CLASS_HIDDEN))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=AnotherCropper,i}},{key:"setDefaults",value:function(e){assign(DEFAULTS,isPlainObject(e)&&e)}}]),i}();assign(Cropper$1.prototype,render,preview,events,handlers,change,methods);var cropper="",cosJsSdkV5={exports:{}};(function(module,exports){(function(t,e){module.exports=e()})(commonjsGlobal,function(){return function(i){var t={};function e(r){if(t[r])return t[r].exports;var l=t[r]={i:r,l:!1,exports:{}};return i[r].call(l.exports,l,l.exports,e),l.l=!0,l.exports}return e.m=i,e.c=t,e.d=function(r,l,o){e.o(r,l)||Object.defineProperty(r,l,{enumerable:!0,get:o})},e.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,l){if(l&1&&(r=e(r)),l&8||l&4&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),l&2&&typeof r!="string")for(var a in r)e.d(o,a,function(E){return r[E]}.bind(null,a));return o},e.n=function(r){var l=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(l,"a",l),l},e.o=function(r,l){return Object.prototype.hasOwnProperty.call(r,l)},e.p="/dist/",e(e.s="./index.js")}({"./index.js":function(i,t,e){var r=e("./src/cos.js");i.exports=r},"./lib/base64.js":function(i,t){var e=function(r){r=r||{};var l=r.Base64,o="2.1.9",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=function(U){for(var K={},B=0,j=U.length;B<j;B++)K[U.charAt(B)]=B;return K}(a),w=String.fromCharCode,D=function(K){if(K.length<2){var B=K.charCodeAt(0);return B<128?K:B<2048?w(192|B>>>6)+w(128|B&63):w(224|B>>>12&15)+w(128|B>>>6&63)+w(128|B&63)}else{var B=65536+(K.charCodeAt(0)-55296)*1024+(K.charCodeAt(1)-56320);return w(240|B>>>18&7)+w(128|B>>>12&63)+w(128|B>>>6&63)+w(128|B&63)}},C=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,x=function(K){return K.replace(C,D)},O=function(K){var B=[0,2,1][K.length%3],j=K.charCodeAt(0)<<16|(K.length>1?K.charCodeAt(1):0)<<8|(K.length>2?K.charCodeAt(2):0),X=[a.charAt(j>>>18),a.charAt(j>>>12&63),B>=2?"=":a.charAt(j>>>6&63),B>=1?"=":a.charAt(j&63)];return X.join("")},H=r.btoa?function(U){return r.btoa(U)}:function(U){return U.replace(/[\s\S]{1,3}/g,O)},L=function(U){return H(x(U))},M=function(K,B){return B?L(String(K)).replace(/[+\/]/g,function(j){return j=="+"?"-":"_"}).replace(/=/g,""):L(String(K))},Y=function(K){return M(K,!0)},G=new RegExp(["[\xC0-\xDF][\x80-\xBF]","[\xE0-\xEF][\x80-\xBF]{2}","[\xF0-\xF7][\x80-\xBF]{3}"].join("|"),"g"),re=function(K){switch(K.length){case 4:var B=(7&K.charCodeAt(0))<<18|(63&K.charCodeAt(1))<<12|(63&K.charCodeAt(2))<<6|63&K.charCodeAt(3),j=B-65536;return w((j>>>10)+55296)+w((j&1023)+56320);case 3:return w((15&K.charCodeAt(0))<<12|(63&K.charCodeAt(1))<<6|63&K.charCodeAt(2));default:return w((31&K.charCodeAt(0))<<6|63&K.charCodeAt(1))}},I=function(K){return K.replace(G,re)},T=function(K){var B=K.length,j=B%4,X=(B>0?E[K.charAt(0)]<<18:0)|(B>1?E[K.charAt(1)]<<12:0)|(B>2?E[K.charAt(2)]<<6:0)|(B>3?E[K.charAt(3)]:0),W=[w(X>>>16),w(X>>>8&255),w(X&255)];return W.length-=[0,0,2,1][j],W.join("")},A=r.atob?function(U){return r.atob(U)}:function(U){return U.replace(/[\s\S]{1,4}/g,T)},N=function(U){return I(A(U))},v=function(K){return N(String(K).replace(/[-_]/g,function(B){return B=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},q=function(){var K=r.Base64;return r.Base64=l,K},V={VERSION:o,atob:A,btoa:H,fromBase64:v,toBase64:M,utob:x,encode:M,encodeURI:Y,btou:I,decode:v,noConflict:q};return V}();i.exports=e},"./lib/beacon.min.js":function(i,t,e){var r,l,o=e("./node_modules/@babel/runtime/helpers/typeof.js");(function(a,E){o(t)=="object"&&typeof i!="undefined"?i.exports=E():(r=E,l=typeof r=="function"?r.call(t,e,t,i):r,l!==void 0&&(i.exports=l))})(this,function(){var a=function(c,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,y){d.__proto__=y}||function(d,y){for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(d[k]=y[k])},a(c,s)},E=function(){return E=Object.assign||function(c){for(var s,d=1,y=arguments.length;d<y;d++)for(var k in s=arguments[d])Object.prototype.hasOwnProperty.call(s,k)&&(c[k]=s[k]);return c},E.apply(this,arguments)};function w(p,c,s,d){return new(s||(s=Promise))(function(y,k){function P(he){try{de(d.next(he))}catch($){k($)}}function Q(he){try{de(d.throw(he))}catch($){k($)}}function de(he){var $;he.done?y(he.value):($=he.value,$ instanceof s?$:new s(function(Te){Te($)})).then(P,Q)}de((d=d.apply(p,c||[])).next())})}function D(p,c){var s,d,y,k,P={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return k={next:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&(k[Symbol.iterator]=function(){return this}),k;function Q(de){return function(he){return function($){if(s)throw new TypeError("Generator is already executing.");for(;P;)try{if(s=1,d&&(y=2&$[0]?d.return:$[0]?d.throw||((y=d.return)&&y.call(d),0):d.next)&&!(y=y.call(d,$[1])).done)return y;switch(d=0,y&&($=[2&$[0],y.value]),$[0]){case 0:case 1:y=$;break;case 4:return P.label++,{value:$[1],done:!1};case 5:P.label++,d=$[1],$=[0];continue;case 7:$=P.ops.pop(),P.trys.pop();continue;default:if(y=P.trys,!((y=y.length>0&&y[y.length-1])||$[0]!==6&&$[0]!==2)){P=0;continue}if($[0]===3&&(!y||$[1]>y[0]&&$[1]<y[3])){P.label=$[1];break}if($[0]===6&&P.label<y[1]){P.label=y[1],y=$;break}if(y&&P.label<y[2]){P.label=y[2],P.ops.push($);break}y[2]&&P.ops.pop(),P.trys.pop();continue}$=c.call(p,P)}catch(Te){$=[6,Te],d=0}finally{s=y=0}if(5&$[0])throw $[1];return{value:$[0]?$[1]:void 0,done:!0}}([de,he])}}}var C="__BEACON_",x="__BEACON_deviceId",O="last_report_time",H="sending_event_ids",L="beacon_config",M="beacon_config_request_time",Y=function(){function p(){var c=this;this.emit=function(s,d){if(c){var y,k=c.__EventsList[s];if(k==null?void 0:k.length){k=k.slice();for(var P=0;P<k.length;P++){y=k[P];try{var Q=y.callback.apply(c,[d]);if(y.type===1&&c.remove(s,y.callback),Q===!1)break}catch(de){throw de}}}return c}},this.__EventsList={}}return p.prototype.indexOf=function(c,s){for(var d=0;d<c.length;d++)if(c[d].callback===s)return d;return-1},p.prototype.on=function(c,s,d){if(d===void 0&&(d=0),this){var y=this.__EventsList[c];if(y||(y=this.__EventsList[c]=[]),this.indexOf(y,s)===-1){var k={name:c,type:d||0,callback:s};return y.push(k),this}return this}},p.prototype.one=function(c,s){this.on(c,s,1)},p.prototype.remove=function(c,s){if(this){var d=this.__EventsList[c];if(!d)return null;if(!s){try{delete this.__EventsList[c]}catch{}return null}if(d.length){var y=this.indexOf(d,s);d.splice(y,1)}return this}},p}();function G(p,c){for(var s={},d=0,y=Object.keys(p);d<y.length;d++){var k=y[d],P=p[k];if(typeof P=="string")s[re(k)]=re(P);else{if(c)throw new Error("value mast be string !!!!");s[re(String(k))]=re(String(P))}}return s}function re(p){if(typeof p!="string")return p;try{return p.replace(new RegExp("\\|","g"),"%7C").replace(new RegExp("\\&","g"),"%26").replace(new RegExp("\\=","g"),"%3D").replace(new RegExp("\\+","g"),"%2B")}catch{return""}}function I(p){return String(p.A99)+String(p.A100)}var T=function(){},A=function(){function p(c){var s=this;this.lifeCycle=new Y,this.uploadJobQueue=[],this.additionalParams={},this.delayTime=0,this._normalLogPipeline=function(d){if(!d||!d.reduce||!d.length)throw new TypeError("createPipeline \u65B9\u6CD5\u9700\u8981\u4F20\u5165\u81F3\u5C11\u6709\u4E00\u4E2A pipe \u7684\u6570\u7EC4");return d.length===1?function(y,k){d[0](y,k||T)}:d.reduce(function(y,k){return function(P,Q){return Q===void 0&&(Q=T),y(P,function(de){return k==null?void 0:k(de,Q)})}})}([function(d){s.send({url:s.strategy.getUploadUrl(),data:d,method:"post",contentType:"application/json;charset=UTF-8"},function(){var y=s.config.onReportSuccess;typeof y=="function"&&y(JSON.stringify(d.events))},function(){var y=s.config.onReportFail;typeof y=="function"&&y(JSON.stringify(d.events))})}]),function(d,y){if(!d)throw y instanceof Error?y:new Error(y)}(Boolean(c.appkey),"appkey must be initial"),this.config=E({},c)}return p.prototype.onUserAction=function(c,s){this.preReport(c,s,!1)},p.prototype.onDirectUserAction=function(c,s){this.preReport(c,s,!0)},p.prototype.preReport=function(c,s,d){c?this.strategy.isEventUpOnOff()&&(this.strategy.isBlackEvent(c)||this.strategy.isSampleEvent(c)||this.onReport(c,s,d)):this.errorReport.reportError("602"," no eventCode")},p.prototype.addAdditionalParams=function(c){for(var s=0,d=Object.keys(c);s<d.length;s++){var y=d[s];this.additionalParams[y]=c[y]}},p.prototype.setChannelId=function(c){this.commonInfo.channelID=String(c)},p.prototype.setOpenId=function(c){this.commonInfo.openid=String(c)},p.prototype.setUnionid=function(c){this.commonInfo.unid=String(c)},p.prototype.getDeviceId=function(){return this.commonInfo.deviceId},p.prototype.getCommonInfo=function(){return this.commonInfo},p.prototype.removeSendingId=function(c){try{var s=JSON.parse(this.storage.getItem(H)),d=s.indexOf(c);d!=-1&&(s.splice(d,1),this.storage.setItem(H,JSON.stringify(s)))}catch{}},p}(),N=function(){function p(c,s,d,y){this.requestParams={},this.network=y,this.requestParams.attaid="00400014144",this.requestParams.token="6478159937",this.requestParams.product_id=c.appkey,this.requestParams.platform=d,this.requestParams.uin=s.deviceId,this.requestParams.model="",this.requestParams.os=d,this.requestParams.app_version=c.appVersion,this.requestParams.sdk_version=s.sdkVersion,this.requestParams.error_stack="",this.uploadUrl=c.isOversea?"https://htrace.wetvinfo.com/kv":"https://h.trace.qq.com/kv"}return p.prototype.reportError=function(c,s){this.requestParams._dc=Math.random(),this.requestParams.error_msg=s,this.requestParams.error_code=c,this.network.get(this.uploadUrl,{params:this.requestParams}).catch(function(d){})},p}(),v=function(){function p(c,s,d,y,k){this.strategy={isEventUpOnOff:!0,httpsUploadUrl:"https://otheve.beacon.qq.com/analytics/v2_upload",requestInterval:30,blacklist:[],samplelist:[]},this.realSample={},this.appkey="",this.needQueryConfig=!0,this.appkey=s.appkey,this.storage=y,this.needQueryConfig=c;try{var P=JSON.parse(this.storage.getItem(L));P&&this.processData(P)}catch{}s.isOversea&&(this.strategy.httpsUploadUrl="https://svibeacon.onezapp.com/analytics/v2_upload"),!s.isOversea&&this.needRequestConfig()&&this.requestConfig(s.appVersion,d,k)}return p.prototype.requestConfig=function(c,s,d){var y=this;this.storage.setItem(M,Date.now().toString()),d.post("https://oth.str.beacon.qq.com/trpc.beacon.configserver.BeaconConfigService/QueryConfig",{platformId:typeof wx=="undefined"?"3":"4",mainAppKey:this.appkey,appVersion:c,sdkVersion:s.sdkVersion,osVersion:s.userAgent,model:"",packageName:"",params:{A3:s.deviceId}}).then(function(k){if(k.data.ret==0)try{var P=JSON.parse(k.data.beaconConfig);P&&(y.processData(P),y.storage.setItem(L,k.data.beaconConfig))}catch{}else y.processData(null),y.storage.setItem(L,"")}).catch(function(k){})},p.prototype.processData=function(c){var s,d,y,k,P;this.strategy.isEventUpOnOff=(s=c==null?void 0:c.isEventUpOnOff)!==null&&s!==void 0?s:this.strategy.isEventUpOnOff,this.strategy.httpsUploadUrl=(d=c==null?void 0:c.httpsUploadUrl)!==null&&d!==void 0?d:this.strategy.httpsUploadUrl,this.strategy.requestInterval=(y=c==null?void 0:c.requestInterval)!==null&&y!==void 0?y:this.strategy.requestInterval,this.strategy.blacklist=(k=c==null?void 0:c.blacklist)!==null&&k!==void 0?k:this.strategy.blacklist,this.strategy.samplelist=(P=c==null?void 0:c.samplelist)!==null&&P!==void 0?P:this.strategy.samplelist;for(var Q=0,de=this.strategy.samplelist;Q<de.length;Q++){var he=de[Q].split(",");he.length==2&&(this.realSample[he[0]]=he[1])}},p.prototype.needRequestConfig=function(){if(!this.needQueryConfig)return!1;var c=Number(this.storage.getItem(M));return Date.now()-c>60*this.strategy.requestInterval*1e3},p.prototype.getUploadUrl=function(){return this.strategy.httpsUploadUrl+"?appkey="+this.appkey},p.prototype.isBlackEvent=function(c){return this.strategy.blacklist.indexOf(c)!=-1},p.prototype.isEventUpOnOff=function(){return this.strategy.isEventUpOnOff},p.prototype.isSampleEvent=function(c){return!!Object.prototype.hasOwnProperty.call(this.realSample,c)&&this.realSample[c]<Math.floor(Math.random()*Math.floor(1e4))},p}(),q="session_storage_key",V=function(){function p(c,s,d){this.getSessionStackDepth=0,this.beacon=d,this.storage=c,this.duration=s,this.appkey=d.config.appkey}return p.prototype.getSession=function(){this.getSessionStackDepth+=1;var c=this.storage.getItem(q);if(!c)return this.createSession();var s="",d=0;try{var y=JSON.parse(c)||{sessionId:void 0,sessionStart:void 0};if(!y.sessionId||!y.sessionStart)return this.createSession();var k=Number(this.storage.getItem(O));if(Date.now()-k>this.duration)return this.createSession();s=y.sessionId,d=y.sessionStart,this.getSessionStackDepth=0}catch{}return{sessionId:s,sessionStart:d}},p.prototype.createSession=function(){var c=Date.now(),s={sessionId:this.appkey+"_"+c.toString(),sessionStart:c};this.storage.setItem(q,JSON.stringify(s)),this.storage.setItem(O,c.toString());var d="is_new_user",y=this.storage.getItem(d);return this.getSessionStackDepth<=1&&this.beacon.onDirectUserAction("rqd_applaunched",{A21:y?"N":"Y"}),this.storage.setItem(d,JSON.stringify(!1)),s},p}();function U(){var p=navigator.userAgent,c=p.indexOf("compatible")>-1&&p.indexOf("MSIE")>-1,s=p.indexOf("Edge")>-1&&!c,d=p.indexOf("Trident")>-1&&p.indexOf("rv:11.0")>-1;if(c){new RegExp("MSIE (\\d+\\.\\d+);").test(p);var y=parseFloat(RegExp.$1);return y==7?7:y==8?8:y==9?9:y==10?10:6}return s?-2:d?11:-1}function K(p,c){var s,d;return(s="https://tun-cos-1258344701.file.myqcloud.com/fp.js",d===void 0&&(d=Date.now()+"-"+Math.random()),new Promise(function(y,k){if(document.getElementById(d))y(void 0);else{var P=document.getElementsByTagName("head")[0],Q=document.createElement("script");Q.onload=function(){return function(){Q.onload=null,y(void 0)}},Q.onerror=function(de){Q.onerror=null,P.removeChild(Q),k(de)},Q.src=s,Q.id=d,P.appendChild(Q)}})).then(function(){new Fingerprint().getQimei36(p,c)}).catch(function(y){}),""}var B=function(){return(B=Object.assign||function(c){for(var s,d=1,y=arguments.length;d<y;d++)for(var k in s=arguments[d])Object.prototype.hasOwnProperty.call(s,k)&&(c[k]=s[k]);return c}).apply(this,arguments)},j,X=function(){function p(c,s){s===void 0&&(s={}),this.reportOptions={},this.config=c,this.reportOptions=s}return p.canUseDB=function(){return!!(window==null?void 0:window.indexedDB)},p.prototype.openDB=function(){var c=this;return new Promise(function(s,d){if(!p.canUseDB())return d({message:"\u5F53\u524D\u4E0D\u652F\u6301 indexeddb"});var y=c.config,k=y.name,P=y.version,Q=y.stores,de=indexedDB.open(k,P);de.onsuccess=function(){c.db=de.result,s(),B({result:1,func:"open",params:JSON.stringify(c.config)},c.reportOptions)},de.onerror=function(he){var $,Te;d(he),B({result:0,func:"open",params:JSON.stringify(c.config),error_msg:(Te=($=he.target)===null||$===void 0?void 0:$.error)===null||Te===void 0?void 0:Te.message},c.reportOptions)},de.onupgradeneeded=function(){c.db=de.result;try{Q==null||Q.forEach(function(he){c.createStore(he)})}catch(he){B({result:0,func:"open",params:JSON.stringify(c.config),error_msg:he.message},c.reportOptions),d(he)}}})},p.prototype.useStore=function(c){return this.storeName=c,this},p.prototype.deleteDB=function(){var c=this;return this.closeDB(),new Promise(function(s,d){var y=indexedDB.deleteDatabase(c.config.name);y.onsuccess=function(){return s()},y.onerror=d})},p.prototype.closeDB=function(){var c;(c=this.db)===null||c===void 0||c.close(),this.db=null},p.prototype.getStoreCount=function(){var c=this;return new Promise(function(s,d){var y=c.getStore("readonly").count();y.onsuccess=function(){return s(y.result)},y.onerror=d})},p.prototype.clearStore=function(){var c=this;return new Promise(function(s,d){var y=c.getStore("readwrite").clear();y.onsuccess=function(){return s()},y.onerror=d})},p.prototype.add=function(c,s){var d=this;return new Promise(function(y,k){var P=d.getStore("readwrite").add(c,s);P.onsuccess=function(){y(P.result)},P.onerror=k})},p.prototype.put=function(c,s){var d=this;return new Promise(function(y,k){var P=d.getStore("readwrite").put(c,s);P.onsuccess=function(){y(P.result)},P.onerror=k})},p.prototype.getStoreAllData=function(){var c=this;return new Promise(function(s,d){var y=c.getStore("readonly").openCursor(),k=[];y.onsuccess=function(){var P;if((P=y.result)===null||P===void 0?void 0:P.value){var Q=y.result.value;k.push(Q),y.result.continue()}else s(k)},y.onerror=d})},p.prototype.getDataRangeByIndex=function(c,s,d,y,k){var P=this;return new Promise(function(Q,de){var he=P.getStore().index(c),$=IDBKeyRange.bound(s,d,y,k),Te=[],Ie=he.openCursor($);Ie.onsuccess=function(){var Pe;((Pe=Ie==null?void 0:Ie.result)===null||Pe===void 0?void 0:Pe.value)?(Te.push(Ie==null?void 0:Ie.result.value),Ie==null||Ie.result.continue()):Q(Te)},Ie.onerror=de})},p.prototype.removeDataByIndex=function(c,s,d,y,k){var P=this;return new Promise(function(Q,de){var he=P.getStore("readwrite").index(c),$=IDBKeyRange.bound(s,d,y,k),Te=he.openCursor($),Ie=0;Te.onsuccess=function(Pe){var ke=Pe.target.result;ke?(Ie+=1,ke.delete(),ke.continue()):Q(Ie)},Te.onerror=de})},p.prototype.createStore=function(c){var s=c.name,d=c.indexes,y=d===void 0?[]:d,k=c.options;if(this.db){this.db.objectStoreNames.contains(s)&&this.db.deleteObjectStore(s);var P=this.db.createObjectStore(s,k);y.forEach(function(Q){P.createIndex(Q.indexName,Q.keyPath,Q.options)})}},p.prototype.getStore=function(c){var s;return c===void 0&&(c="readonly"),(s=this.db)===null||s===void 0?void 0:s.transaction(this.storeName,c).objectStore(this.storeName)},p}(),W="event_table_v3",J="eventId",se=function(){function p(c){this.isReady=!1,this.taskQueue=Promise.resolve(),this.db=new X({name:"Beacon_"+c+"_V3",version:1,stores:[{name:W,options:{keyPath:J},indexes:[{indexName:J,keyPath:J,options:{unique:!0}}]}]}),this.open()}return p.prototype.getCount=function(){var c=this;return this.readyExec(function(){return c.db.getStoreCount()})},p.prototype.setItem=function(c,s){var d=this;return this.readyExec(function(){return d.db.add({eventId:c,value:s})})},p.prototype.getItem=function(c){return w(this,void 0,void 0,function(){var s=this;return D(this,function(d){return[2,this.readyExec(function(){return s.db.getDataRangeByIndex(J,c,c)})]})})},p.prototype.removeItem=function(c){var s=this;return this.readyExec(function(){return s.db.removeDataByIndex(J,c,c)})},p.prototype.updateItem=function(c,s){var d=this;return this.readyExec(function(){return d.db.put({eventId:c,value:s})})},p.prototype.iterate=function(c){var s=this;return this.readyExec(function(){return s.db.getStoreAllData().then(function(d){d.forEach(function(y){c(y.value)})})})},p.prototype.open=function(){return w(this,void 0,void 0,function(){var c=this;return D(this,function(s){switch(s.label){case 0:return this.taskQueue=this.taskQueue.then(function(){return c.db.openDB()}),[4,this.taskQueue];case 1:return s.sent(),this.isReady=!0,this.db.useStore(W),[2]}})})},p.prototype.readyExec=function(c){return this.isReady?c():(this.taskQueue=this.taskQueue.then(function(){return c()}),this.taskQueue)},p}(),ae=function(){function p(c){this.keyObject={},this.storage=c}return p.prototype.getCount=function(){return this.storage.getStoreCount()},p.prototype.removeItem=function(c){this.storage.removeItem(c),delete this.keyObject[c]},p.prototype.setItem=function(c,s){var d=JSON.stringify(s);this.storage.setItem(c,d),this.keyObject[c]=s},p.prototype.iterate=function(c){for(var s=Object.keys(this.keyObject),d=0;d<s.length;d++){var y=this.storage.getItem(s[d]);c(JSON.parse(y))}},p}(),oe=function(){function p(c,s){var d=this;this.dbEventCount=0,U()>0||!window.indexedDB||/X5Lite/.test(navigator.userAgent)?(this.store=new ae(s),this.dbEventCount=this.store.getCount()):(this.store=new se(c),this.getCount().then(function(y){d.dbEventCount=y}).catch(function(y){}))}return p.prototype.getCount=function(){return w(this,void 0,void 0,function(){return D(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,this.store.getCount()];case 1:return[2,c.sent()];case 2:return c.sent(),[2,Promise.reject()];case 3:return[2]}})})},p.prototype.insertEvent=function(c,s){return w(this,void 0,void 0,function(){var d,y;return D(this,function(k){switch(k.label){case 0:if(this.dbEventCount>=1e4)return[2,Promise.reject()];d=I(c.mapValue),k.label=1;case 1:return k.trys.push([1,3,,4]),this.dbEventCount++,[4,this.store.setItem(d,c)];case 2:return[2,k.sent()];case 3:return y=k.sent(),s&&s(y,c),this.dbEventCount--,[2,Promise.reject()];case 4:return[2]}})})},p.prototype.getEvents=function(){return w(this,void 0,void 0,function(){var c;return D(this,function(s){switch(s.label){case 0:c=[],s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.store.iterate(function(d){c.push(d)})];case 2:return s.sent(),[2,Promise.all(c)];case 3:return s.sent(),[2,Promise.all(c)];case 4:return[2]}})})},p.prototype.removeEvent=function(c){return w(this,void 0,void 0,function(){var s;return D(this,function(d){switch(d.label){case 0:s=I(c.mapValue),d.label=1;case 1:return d.trys.push([1,3,,4]),this.dbEventCount--,[4,this.store.removeItem(s)];case 2:return[2,d.sent()];case 3:return d.sent(),this.dbEventCount++,[2,Promise.reject()];case 4:return[2]}})})},p}(),ie=function(){return(ie=Object.assign||function(c){for(var s,d=1,y=arguments.length;d<y;d++)for(var k in s=arguments[d])Object.prototype.hasOwnProperty.call(s,k)&&(c[k]=s[k]);return c}).apply(this,arguments)};function ce(p){try{return decodeURIComponent(p.replace(/\+/g," "))}catch{return null}}function le(p,c){var s=[null,void 0,"",NaN].includes(p);if(c.isSkipEmpty&&s)return null;var d=!c.isSkipEmpty&&s?"":p;try{return c.encode?encodeURIComponent(d):d}catch{return null}}function pe(p,c){c===void 0&&(c={encode:!0,isSkipEmpty:!1});var s=p.url,d=p.query,y=d===void 0?{}:d,k=p.hash,P=s.split("#"),Q=P[0],de=P[1],he=de===void 0?"":de,$=Q.split("?")[0],Te=[],Ie=le(k||he,c),Pe=ie(ie({},function(ke){var Fe=ke.split("#"),Ve=Fe[0],Ke=Fe[1],Ge=Ke===void 0?"":Ke,ze=Ve.split("?"),We=ze[0],Xe=ze[1],rt=Xe===void 0?"":Xe,et=ce(Ge),nt=Object.create(null);return rt.split("&").forEach(function(f){var g=f.split("="),R=g[0],z=g[1],fe=z===void 0?"":z,Be=ce(R),Le=ce(fe);Be===null||Le===null||Be===""&&Le===""||nt[Be]||(nt[Be]=Le)}),{url:We,query:nt,hash:et}}(s).query),y);return Object.keys(Pe).forEach(function(ke){var Fe=le(ke,c),Ve=le(Pe[ke],c);Fe!==null&&Ve!==null&&Te.push(Fe+"="+Ve)}),$+(Te.length?"?"+Te.join("&"):"")+(Ie?"#"+Ie:"")}function Z(p,c){return new Promise(function(s,d){if(c&&document.querySelectorAll("script[data-tag="+c+"]").length)return s();var y=document.createElement("script"),k=ie({type:"text/javascript",charset:"utf-8"},p);Object.keys(k).forEach(function(P){return function(Q,de,he){if(Q)return he===void 0?Q.getAttribute(de):Q.setAttribute(de,he)}(y,P,k[P])}),c&&(y.dataset.tag=c),y.onload=function(){return s()},y.onreadystatechange=function(){var P=y.readyState;["complete","loaded"].includes(P)&&(y.onreadystatechange=null,s())},y.onerror=d,document.body.appendChild(y)})}(function(p){p[p.equal=0]="equal",p[p.low=-1]="low",p[p.high=1]="high"})(j||(j={}));var te=function(){return(te=Object.assign||function(c){for(var s,d=1,y=arguments.length;d<y;d++)for(var k in s=arguments[d])Object.prototype.hasOwnProperty.call(s,k)&&(c[k]=s[k]);return c}).apply(this,arguments)};function ge(p,c,s,d){return new(s||(s=Promise))(function(y,k){function P(he){try{de(d.next(he))}catch($){k($)}}function Q(he){try{de(d.throw(he))}catch($){k($)}}function de(he){var $;he.done?y(he.value):($=he.value,$ instanceof s?$:new s(function(Te){Te($)})).then(P,Q)}de((d=d.apply(p,c||[])).next())})}function ye(p,c){var s,d,y,k,P={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return k={next:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&(k[Symbol.iterator]=function(){return this}),k;function Q(de){return function(he){return function($){if(s)throw new TypeError("Generator is already executing.");for(;P;)try{if(s=1,d&&(y=2&$[0]?d.return:$[0]?d.throw||((y=d.return)&&y.call(d),0):d.next)&&!(y=y.call(d,$[1])).done)return y;switch(d=0,y&&($=[2&$[0],y.value]),$[0]){case 0:case 1:y=$;break;case 4:return P.label++,{value:$[1],done:!1};case 5:P.label++,d=$[1],$=[0];continue;case 7:$=P.ops.pop(),P.trys.pop();continue;default:if(!((y=(y=P.trys).length>0&&y[y.length-1])||$[0]!==6&&$[0]!==2)){P=0;continue}if($[0]===3&&(!y||$[1]>y[0]&&$[1]<y[3])){P.label=$[1];break}if($[0]===6&&P.label<y[1]){P.label=y[1],y=$;break}if(y&&P.label<y[2]){P.label=y[2],P.ops.push($);break}y[2]&&P.ops.pop(),P.trys.pop();continue}$=c.call(p,P)}catch(Te){$=[6,Te],d=0}finally{s=y=0}if(5&$[0])throw $[1];return{value:$[0]?$[1]:void 0,done:!0}}([de,he])}}}var ve=function(){function p(){this.interceptors=[]}return p.prototype.use=function(c,s){return this.interceptors.push({resolved:c,rejected:s}),this.interceptors.length-1},p.prototype.traverse=function(c,s){s===void 0&&(s=!1);var d=Promise.resolve(c);return(s?Array.prototype.reduceRight:Array.prototype.reduce).call(this.interceptors,function(y,k){if(k){var P=k.resolved,Q=k.rejected;d=d.then(P,Q)}return y},""),d},p.prototype.eject=function(c){this.interceptors[c]&&(this.interceptors[c]=null)},p}(),me={defaults:{timeout:0,method:"GET",mode:"cors",redirect:"follow",credentials:"same-origin"},headers:{common:{Accept:"application/json, text/plain, */*"},POST:{"Content-Type":"application/x-www-form-urlencoded"},PUT:{"Content-Type":"application/x-www-form-urlencoded"},PATCH:{"Content-Type":"application/x-www-form-urlencoded"}},baseURL:"",polyfillUrl:"https://vm.gtimg.cn/comps/script/fetch.min.js",interceptors:{request:new ve,response:new ve}},Ce=/^([a-z][a-z\d+\-.]*:)?\/\//i,Ae=Object.prototype.toString;function De(p){return ge(this,void 0,void 0,function(){var c;return ye(this,function(s){switch(s.label){case 0:if(window.fetch)return[2];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Z({src:p})];case 2:return s.sent(),[3,4];case 3:throw c=s.sent(),new Error("\u52A0\u8F7D polyfill "+p+" \u5931\u8D25: "+c.message);case 4:return[2]}})})}function be(p){return["Accept","Content-Type"].forEach(function(c){return s=c,void((d=p.headers)&&Object.keys(d).forEach(function(y){y!==s&&y.toUpperCase()===s.toUpperCase()&&(d[s]=d[y],delete d[y])}));var s,d}),function(c){if(Ae.call(c)!=="[object Object]")return!1;var s=Object.getPrototypeOf(c);return s===null||s===Object.prototype}(p.body)&&(p.body=JSON.stringify(p.body),p.headers&&(p.headers["Content-Type"]="application/json;charset=utf-8")),p}function we(p){return ge(this,void 0,void 0,function(){var c,s,d,y,k,P,Q,de,he,$,Te,Ie,Pe,ke,Fe,Ve,Ke;return ye(this,function(Ge){switch(Ge.label){case 0:return c=me.baseURL,s=me.defaults,d=me.interceptors,[4,De(me.polyfillUrl)];case 1:return Ge.sent(),(y=te(te({},s),p)).headers||(y.headers=function(ze){ze===void 0&&(ze="GET");var We=me.headers[ze]||{};return te(te({},me.headers.common),We)}(y.method)),be(y),[4,d.request.traverse(y,!0)];case 2:if((k=Ge.sent())instanceof Error)throw k;return k.url=function(ze,We){return!ze||Ce.test(We)?We:ze.replace(/\/+$/,"")+"/"+We.replace(/^\/+/,"")}(c,k.url),P=k.url,Q=k.timeout,de=k.params,he=k.method,$=["GET","DELETE","OPTIONS","HEAD"].includes(he===void 0?"GET":he)&&!!de,Te=$?pe({url:P,query:de}):P,Ie=[],Q&&!k.signal&&(Fe=new Promise(function(ze){Pe=setTimeout(function(){ze(new Error("timeout"))},Q)}),Ie.push(Fe),ke=new AbortController,k.signal=ke.signal),Ie.push(fetch(Te,k).catch(function(ze){return ze})),[4,Promise.race(Ie)];case 3:return Ve=Ge.sent(),Pe&&clearTimeout(Pe),[4,d.response.traverse(Ve)];case 4:if((Ke=Ge.sent())instanceof Error)throw ke==null||ke.abort(),Ke;return[2,Ke]}})})}var _e=function(){function p(c){me.interceptors.request.use(function(s){var d=s.url,y=s.method,k=s.body,P=k;if(c.onReportBeforeSend){var Q=c.onReportBeforeSend({url:d,method:y,data:k?JSON.parse(k):null});P=(Q==null?void 0:Q.data)?JSON.stringify(Q.data):null}return y!="GET"&&P?E(E({},s),{body:P}):s})}return p.prototype.get=function(c,s){return w(this,void 0,void 0,function(){var d,y;return D(this,function(k){switch(k.label){case 0:return[4,we(E({url:c},s))];case 1:return[4,(d=k.sent()).json()];case 2:return y=k.sent(),[2,Promise.resolve({data:y,status:d.status,statusText:d.statusText,headers:d.headers})]}})})},p.prototype.post=function(c,s,d){return w(this,void 0,void 0,function(){var y,k;return D(this,function(P){switch(P.label){case 0:return[4,we(E({url:c,body:s,method:"POST"},d))];case 1:return[4,(y=P.sent()).json()];case 2:return k=P.sent(),[2,Promise.resolve({data:k,status:y.status,statusText:y.statusText,headers:y.headers})]}})})},p}(),qe=function(){function p(c){this.appkey=c}return p.prototype.getItem=function(c){try{return window.localStorage.getItem(this.getStoreKey(c))}catch{return""}},p.prototype.removeItem=function(c){try{window.localStorage.removeItem(this.getStoreKey(c))}catch{}},p.prototype.setItem=function(c,s){try{window.localStorage.setItem(this.getStoreKey(c),s)}catch{}},p.prototype.setSessionItem=function(c,s){try{window.sessionStorage.setItem(this.getStoreKey(c),s)}catch{}},p.prototype.getSessionItem=function(c){try{return window.sessionStorage.getItem(this.getStoreKey(c))}catch{return""}},p.prototype.getStoreKey=function(c){return C+this.appkey+"_"+c},p.prototype.createDeviceId=function(){try{var c=window.localStorage.getItem(x);return c||(c=function(s){for(var d="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789",y="",k=0;k<s;k++)y+=d.charAt(Math.floor(Math.random()*d.length));return y}(32),window.localStorage.setItem(x,c)),c}catch{return""}},p.prototype.clear=function(){try{for(var c=window.localStorage.length,s=0;s<c;s++){var d=window.localStorage.key(s);(d==null?void 0:d.substr(0,9))==C&&window.localStorage.removeItem(d)}}catch{}},p.prototype.getStoreCount=function(){var c=0;try{c=window.localStorage.length}catch{}return c},p}(),Me="logid_start",ne="4.5.14-web";return function(p){function c(s){var d=p.call(this,s)||this;d.qimei36="",d.uselessCycleTaskNum=0,d.underWeakNet=!1,d.pauseSearching=!1,d.send=function(Q,de,he){d.storage.setItem(O,Date.now().toString()),d.network.post(d.uploadUrl||d.strategy.getUploadUrl(),Q.data).then(function($){var Te;((Te=$==null?void 0:$.data)===null||Te===void 0?void 0:Te.result)==100?d.delayTime=1e3*$.data.delayTime:d.delayTime=0,de&&de(Q.data),Q.data.events.forEach(function(Ie){d.store.removeEvent(Ie).then(function(){d.removeSendingId(I(Ie.mapValue))})}),d.doCustomCycleTask()}).catch(function($){var Te=Q.data.events;d.errorReport.reportError($.code?$.code.toString():"600",$.message),he&&he(Q.data);var Ie=JSON.parse(d.storage.getItem(H));Te.forEach(function(Pe){Ie&&Ie.indexOf(I(Pe))!=-1&&d.store.insertEvent(Pe,function(ke,Fe){ke&&d.errorReport.reportError("604","insertEvent fail!")}),d.removeSendingId(I(Pe))}),d.monitorUploadFailed()})};var y,k,P=U();return d.isUnderIE8=P>0&&P<8,d.isUnderIE8||(d.isUnderIE=P>0,s.needInitQimei&&K(s.appkey,function(Q){d.qimei36=Q.q36}),d.network=new _e(s),d.storage=new qe(s.appkey),d.initCommonInfo(s),d.store=new oe(s.appkey,d.storage),d.errorReport=new N(d.config,d.commonInfo,"web",d.network),d.strategy=new v(s.needQueryConfig==null||s.needQueryConfig,d.config,d.commonInfo,d.storage,d.network),d.logidStartTime=d.storage.getItem(Me),d.logidStartTime||(d.logidStartTime=Date.now().toString(),d.storage.setItem(Me,d.logidStartTime)),y=d.logidStartTime,k=Date.now()-Number.parseFloat(y),Math.floor(k/864e5)>=365&&d.storage.clear(),d.initSession(s),d.onDirectUserAction("rqd_js_init",{}),setTimeout(function(){return d.lifeCycle.emit("init")},0),d.initDelayTime=s.delay?s.delay:1e3,d.cycleTask(d.initDelayTime)),d}return function(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function y(){this.constructor=s}a(s,d),s.prototype=d===null?Object.create(d):(y.prototype=d.prototype,new y)}(c,p),c.prototype.initSession=function(s){var d=18e5;s.sessionDuration&&s.sessionDuration>3e4&&(d=s.sessionDuration),this.beaconSession=new V(this.storage,d,this)},c.prototype.initCommonInfo=function(s){var d=Number(this.storage.getItem(O));try{var y=JSON.parse(this.storage.getItem(H));(Date.now()-d>3e4||!y)&&this.storage.setItem(H,JSON.stringify([]))}catch{}s.uploadUrl&&(this.uploadUrl=s.uploadUrl+"?appkey="+s.appkey);var k=[window.screen.width,window.screen.height];window.devicePixelRatio&&k.push(window.devicePixelRatio),this.commonInfo={deviceId:this.storage.createDeviceId(),language:navigator&&navigator.language||"zh_CN",query:window.location.search,userAgent:navigator.userAgent,pixel:k.join("*"),channelID:s.channelID?String(s.channelID):"",openid:s.openid?String(s.openid):"",unid:s.unionid?String(s.unionid):"",sdkVersion:ne},this.config.appVersion=s.versionCode?String(s.versionCode):"",this.config.strictMode=s.strictMode},c.prototype.cycleTask=function(s){var d=this;this.intervalID=window.setInterval(function(){d.pauseSearching||d.store.getEvents().then(function(y){y.length==0&&(d.pauseSearching=!0);var k=[],P=JSON.parse(d.storage.getItem(H));P||(P=[]),y&&y.forEach(function(Q){var de=I(Q.mapValue);P.indexOf(de)==-1&&(k.push(Q),P.push(de))}),k.length!=0&&(d.storage.setItem(H,JSON.stringify(P)),d._normalLogPipeline(d.assembleData(k)))}).catch(function(y){})},s)},c.prototype.onReport=function(s,d,y){var k=this;if(this.isUnderIE8)this.errorReport.reportError("601","UnderIE8");else{this.pauseSearching=!1;var P=this.generateData(s,d,y);if(y&&this.delayTime==0&&!this.underWeakNet)this._normalLogPipeline(this.assembleData(P));else{var Q=P.shift();Q&&this.store.insertEvent(Q,function(de){de&&k.errorReport.reportError("604","insertEvent fail!")}).catch(function(de){k._normalLogPipeline(k.assembleData(P))})}}},c.prototype.onSendBeacon=function(s,d){if(this.isUnderIE)this.errorReport.reportError("605","UnderIE");else{this.pauseSearching=!1;var y=this.assembleData(this.generateData(s,d,!0));typeof navigator.sendBeacon=="function"&&navigator.sendBeacon(this.uploadUrl||this.strategy.getUploadUrl(),JSON.stringify(y))}},c.prototype.generateData=function(s,d,y){var k=[],P="4.5.14-web_"+(y?"direct_log_id":"normal_log_id"),Q=Number(this.storage.getItem(P));return Q=Q||1,d=E(E({},d),{A99:y?"Y":"N",A100:Q.toString(),A72:ne,A88:this.logidStartTime}),Q++,this.storage.setItem(P,Q.toString()),k.push({eventCode:s,eventTime:Date.now().toString(),mapValue:G(d,this.config.strictMode)}),k},c.prototype.assembleData=function(s){var d=this.beaconSession.getSession();return{appVersion:this.config.appVersion?re(this.config.appVersion):"",sdkId:"js",sdkVersion:ne,mainAppKey:this.config.appkey,platformId:3,common:G(E(E({},this.additionalParams),{A2:this.commonInfo.deviceId,A8:this.commonInfo.openid,A12:this.commonInfo.language,A17:this.commonInfo.pixel,A23:this.commonInfo.channelID,A50:this.commonInfo.unid,A76:d.sessionId,A101:this.commonInfo.userAgent,A102:window.location.href,A104:document.referrer,A119:this.commonInfo.query,A153:this.qimei36}),!1),events:s}},c.prototype.monitorUploadFailed=function(){this.uselessCycleTaskNum++,this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(6e4),this.underWeakNet=!0)},c.prototype.doCustomCycleTask=function(){this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(this.initDelayTime)),this.uselessCycleTaskNum=0,this.underWeakNet=!1},c}(A)})},"./lib/crypto.js":function(i,t,e){(function(r){var l=e("./node_modules/@babel/runtime/helpers/typeof.js"),o=o||function(a,E){var w={},D=w.lib={},C=function(){},x=D.Base={extend:function(T){C.prototype=this;var A=new C;return T&&A.mixIn(T),A.hasOwnProperty("init")||(A.init=function(){A.$super.init.apply(this,arguments)}),A.init.prototype=A,A.$super=this,A},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var A in T)T.hasOwnProperty(A)&&(this[A]=T[A]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}},O=D.WordArray=x.extend({init:function(T,A){T=this.words=T||[],this.sigBytes=A!=E?A:4*T.length},toString:function(T){return(T||L).stringify(this)},concat:function(T){var A=this.words,N=T.words,v=this.sigBytes;if(T=T.sigBytes,this.clamp(),v%4)for(var q=0;q<T;q++)A[v+q>>>2]|=(N[q>>>2]>>>24-8*(q%4)&255)<<24-8*((v+q)%4);else if(65535<N.length)for(q=0;q<T;q+=4)A[v+q>>>2]=N[q>>>2];else A.push.apply(A,N);return this.sigBytes+=T,this},clamp:function(){var T=this.words,A=this.sigBytes;T[A>>>2]&=4294967295<<32-8*(A%4),T.length=a.ceil(A/4)},clone:function(){var T=x.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var A=[],N=0;N<T;N+=4)A.push(4294967296*a.random()|0);return new O.init(A,T)}}),H=w.enc={},L=H.Hex={stringify:function(T){var A=T.words;T=T.sigBytes;for(var N=[],v=0;v<T;v++){var q=A[v>>>2]>>>24-8*(v%4)&255;N.push((q>>>4).toString(16)),N.push((q&15).toString(16))}return N.join("")},parse:function(T){for(var A=T.length,N=[],v=0;v<A;v+=2)N[v>>>3]|=parseInt(T.substr(v,2),16)<<24-4*(v%8);return new O.init(N,A/2)}},M=H.Latin1={stringify:function(T){var A=T.words;T=T.sigBytes;for(var N=[],v=0;v<T;v++)N.push(String.fromCharCode(A[v>>>2]>>>24-8*(v%4)&255));return N.join("")},parse:function(T){for(var A=T.length,N=[],v=0;v<A;v++)N[v>>>2]|=(T.charCodeAt(v)&255)<<24-8*(v%4);return new O.init(N,A)}},Y=H.Utf8={stringify:function(T){try{return decodeURIComponent(escape(M.stringify(T)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(T){return M.parse(unescape(encodeURIComponent(T)))}},G=D.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new O.init,this._nDataBytes=0},_append:function(T){typeof T=="string"&&(T=Y.parse(T)),this._data.concat(T),this._nDataBytes+=T.sigBytes},_process:function(T){var A=this._data,N=A.words,v=A.sigBytes,q=this.blockSize,V=v/(4*q),V=T?a.ceil(V):a.max((V|0)-this._minBufferSize,0);if(T=V*q,v=a.min(4*T,v),T){for(var U=0;U<T;U+=q)this._doProcessBlock(N,U);U=N.splice(0,T),A.sigBytes-=v}return new O.init(U,v)},clone:function(){var T=x.clone.call(this);return T._data=this._data.clone(),T},_minBufferSize:0});D.Hasher=G.extend({cfg:x.extend(),init:function(T){this.cfg=this.cfg.extend(T),this.reset()},reset:function(){G.reset.call(this),this._doReset()},update:function(T){return this._append(T),this._process(),this},finalize:function(T){return T&&this._append(T),this._doFinalize()},blockSize:16,_createHelper:function(T){return function(A,N){return new T.init(N).finalize(A)}},_createHmacHelper:function(T){return function(A,N){return new re.HMAC.init(T,N).finalize(A)}}});var re=w.algo={};return w}(Math);(function(){var a=o,E=a.lib,w=E.WordArray,D=E.Hasher,C=[],E=a.algo.SHA1=D.extend({_doReset:function(){this._hash=new w.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(O,H){for(var L=this._hash.words,M=L[0],Y=L[1],G=L[2],re=L[3],I=L[4],T=0;80>T;T++){if(16>T)C[T]=O[H+T]|0;else{var A=C[T-3]^C[T-8]^C[T-14]^C[T-16];C[T]=A<<1|A>>>31}A=(M<<5|M>>>27)+I+C[T],A=20>T?A+((Y&G|~Y&re)+1518500249):40>T?A+((Y^G^re)+1859775393):60>T?A+((Y&G|Y&re|G&re)-1894007588):A+((Y^G^re)-899497514),I=re,re=G,G=Y<<30|Y>>>2,Y=M,M=A}L[0]=L[0]+M|0,L[1]=L[1]+Y|0,L[2]=L[2]+G|0,L[3]=L[3]+re|0,L[4]=L[4]+I|0},_doFinalize:function(){var O=this._data,H=O.words,L=8*this._nDataBytes,M=8*O.sigBytes;return H[M>>>5]|=128<<24-M%32,H[(M+64>>>9<<4)+14]=Math.floor(L/4294967296),H[(M+64>>>9<<4)+15]=L,O.sigBytes=4*H.length,this._process(),this._hash},clone:function(){var O=D.clone.call(this);return O._hash=this._hash.clone(),O}});a.SHA1=D._createHelper(E),a.HmacSHA1=D._createHmacHelper(E)})(),function(){var a=o,E=a.enc.Utf8;a.algo.HMAC=a.lib.Base.extend({init:function(D,C){D=this._hasher=new D.init,typeof C=="string"&&(C=E.parse(C));var x=D.blockSize,O=4*x;C.sigBytes>O&&(C=D.finalize(C)),C.clamp();for(var H=this._oKey=C.clone(),L=this._iKey=C.clone(),M=H.words,Y=L.words,G=0;G<x;G++)M[G]^=1549556828,Y[G]^=909522486;H.sigBytes=L.sigBytes=O,this.reset()},reset:function(){var D=this._hasher;D.reset(),D.update(this._iKey)},update:function(D){return this._hasher.update(D),this},finalize:function(D){var C=this._hasher;return D=C.finalize(D),C.reset(),C.finalize(this._oKey.clone().concat(D))}})}(),function(){var a=o,E=a.lib,w=E.WordArray,D=a.enc;D.Base64={stringify:function(x){var O=x.words,H=x.sigBytes,L=this._map;x.clamp();for(var M=[],Y=0;Y<H;Y+=3)for(var G=O[Y>>>2]>>>24-Y%4*8&255,re=O[Y+1>>>2]>>>24-(Y+1)%4*8&255,I=O[Y+2>>>2]>>>24-(Y+2)%4*8&255,T=G<<16|re<<8|I,A=0;A<4&&Y+A*.75<H;A++)M.push(L.charAt(T>>>6*(3-A)&63));var N=L.charAt(64);if(N)for(;M.length%4;)M.push(N);return M.join("")},parse:function(x){var O=x.length,H=this._map,L=H.charAt(64);if(L){var M=x.indexOf(L);M!=-1&&(O=M)}for(var Y=[],G=0,re=0;re<O;re++)if(re%4){var I=H.indexOf(x.charAt(re-1))<<re%4*2,T=H.indexOf(x.charAt(re))>>>6-re%4*2;Y[G>>>2]|=(I|T)<<24-G%4*8,G++}return w.create(Y,G)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),l(r)==="object"?r.exports=o:window.CryptoJS=o}).call(this,e("./node_modules/webpack/buildin/module.js")(i))},"./lib/json2xml.js":function(i,t,e){var r=e("./node_modules/@babel/runtime/helpers/typeof.js"),l="a-zA-Z_\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FFF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",o="-.0-9\xB7\u0300-\u036F\u203F\u2040",a=new RegExp("^([^"+l+"])|^((x|X)(m|M)(l|L))|([^"+l+o+"])","g"),E=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,w=function(H){var L=[];if(H instanceof Object)for(var M in H)H.hasOwnProperty(M)&&L.push(M);return L},D=function(H,L){var M=function(G,re,I,T,A){var N=L.indent!==void 0?L.indent:" ",v=L.prettyPrint?`
- `+new Array(T).join(N):"";L.removeIllegalNameCharacters&&(G=G.replace(a,"_"));var q=[v,"<",G,I||""];return re&&re.length>0?(q.push(">"),q.push(re),A&&q.push(v),q.push("</"),q.push(G),q.push(">")):q.push("/>"),q.join("")};return function Y(G,re,I){var T=r(G);switch((Array.isArray?Array.isArray(G):G instanceof Array)?T="array":G instanceof Date&&(T="date"),T){case"array":var A=[];return G.map(function(V){A.push(Y(V,1,I+1))}),L.prettyPrint&&A.push(`
- `),A.join("");case"date":return G.toJSON?G.toJSON():G+"";case"object":var N=[];for(var v in G)if(G.hasOwnProperty(v))if(G[v]instanceof Array)for(var q=0;q<G[v].length;q++)G[v].hasOwnProperty(q)&&N.push(M(v,Y(G[v][q],0,I+1),null,I+1,w(G[v][q]).length));else N.push(M(v,Y(G[v],0,I+1),null,I+1));return L.prettyPrint&&N.length>0&&N.push(`
- `),N.join("");case"function":return G();default:return L.escape?x(G):""+G}}(H,0,0)},C=function(H){var L=['<?xml version="1.0" encoding="UTF-8"'];return H&&L.push(' standalone="yes"'),L.push("?>"),L.join("")};function x(O){return(""+O).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(E,"")}i.exports=function(O,H){if(H||(H={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),typeof O=="string")try{O=JSON.parse(O.toString())}catch{return!1}var L="",M="";H&&(r(H)=="object"?(H.xmlHeader&&(L=C(!!H.xmlHeader.standalone)),typeof H.docType!="undefined"&&(M="<!DOCTYPE "+H.docType+">")):L=C()),H=H||{};var Y=[L,H.prettyPrint&&M?`
- `:"",M,D(O,H)];return Y.join("").replace(/\n{2,}/g,`
- `).replace(/\s+$/g,"")}},"./lib/md5.js":function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__("./node_modules/@babel/runtime/helpers/typeof.js");(function(){var ERROR="input is invalid type",WINDOW=(typeof window=="undefined"?"undefined":_typeof(window))==="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&(typeof self=="undefined"?"undefined":_typeof(self))==="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&(typeof process=="undefined"?"undefined":_typeof(process))==="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&_typeof(module)==="object"&&module.exports,AMD=__webpack_require__("./node_modules/webpack/buildin/amd-options.js"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(i){return Object.prototype.toString.call(i)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(i){return _typeof(i)==="object"&&i.buffer&&i.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e,r){return new Md5(!0).update(e,r)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.getCtx=t.create=function(){return new Md5},t.update=function(l){return t.create().update(l)};for(var e=0;e<OUTPUT_TYPES.length;++e){var r=OUTPUT_TYPES[e];t[r]=createOutputMethod(r)}return t},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function i(t){if(typeof t=="string")return crypto.createHash("md5").update(t,"utf8").digest("hex");if(t==null)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash("md5").update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod};function Md5(i){if(i)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(i,t){if(!this.finalized){for(var e,r=0,l,o=i.length,a=this.blocks,E=this.buffer8;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),ARRAY_BUFFER)for(l=this.start;r<o&&l<64;++r)e=i.charCodeAt(r),t||e<128?E[l++]=e:e<2048?(E[l++]=192|e>>6,E[l++]=128|e&63):e<55296||e>=57344?(E[l++]=224|e>>12,E[l++]=128|e>>6&63,E[l++]=128|e&63):(e=65536+((e&1023)<<10|i.charCodeAt(++r)&1023),E[l++]=240|e>>18,E[l++]=128|e>>12&63,E[l++]=128|e>>6&63,E[l++]=128|e&63);else for(l=this.start;r<o&&l<64;++r)e=i.charCodeAt(r),t||e<128?a[l>>2]|=e<<SHIFT[l++&3]:e<2048?(a[l>>2]|=(192|e>>6)<<SHIFT[l++&3],a[l>>2]|=(128|e&63)<<SHIFT[l++&3]):e<55296||e>=57344?(a[l>>2]|=(224|e>>12)<<SHIFT[l++&3],a[l>>2]|=(128|e>>6&63)<<SHIFT[l++&3],a[l>>2]|=(128|e&63)<<SHIFT[l++&3]):(e=65536+((e&1023)<<10|i.charCodeAt(++r)&1023),a[l>>2]|=(240|e>>18)<<SHIFT[l++&3],a[l>>2]|=(128|e>>12&63)<<SHIFT[l++&3],a[l>>2]|=(128|e>>6&63)<<SHIFT[l++&3],a[l>>2]|=(128|e&63)<<SHIFT[l++&3]);this.lastByteIndex=l,this.bytes+=l-this.start,l>=64?(this.start=l-64,this.hash(),this.hashed=!0):this.start=l}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var i=this.blocks,t=this.lastByteIndex;i[t>>2]|=EXTRA[t&3],t>=56&&(this.hashed||this.hash(),i[0]=i[16],i[16]=i[1]=i[2]=i[3]=i[4]=i[5]=i[6]=i[7]=i[8]=i[9]=i[10]=i[11]=i[12]=i[13]=i[14]=i[15]=0),i[14]=this.bytes<<3,i[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var i,t,e,r,l,o,a=this.blocks;this.first?(i=a[0]-680876937,i=(i<<7|i>>>25)-271733879<<0,r=(-1732584194^i&2004318071)+a[1]-117830708,r=(r<<12|r>>>20)+i<<0,e=(-271733879^r&(i^-271733879))+a[2]-1126478375,e=(e<<17|e>>>15)+r<<0,t=(i^e&(r^i))+a[3]-1316259209,t=(t<<22|t>>>10)+e<<0):(i=this.h0,t=this.h1,e=this.h2,r=this.h3,i+=(r^t&(e^r))+a[0]-680876936,i=(i<<7|i>>>25)+t<<0,r+=(e^i&(t^e))+a[1]-389564586,r=(r<<12|r>>>20)+i<<0,e+=(t^r&(i^t))+a[2]+606105819,e=(e<<17|e>>>15)+r<<0,t+=(i^e&(r^i))+a[3]-1044525330,t=(t<<22|t>>>10)+e<<0),i+=(r^t&(e^r))+a[4]-176418897,i=(i<<7|i>>>25)+t<<0,r+=(e^i&(t^e))+a[5]+1200080426,r=(r<<12|r>>>20)+i<<0,e+=(t^r&(i^t))+a[6]-1473231341,e=(e<<17|e>>>15)+r<<0,t+=(i^e&(r^i))+a[7]-45705983,t=(t<<22|t>>>10)+e<<0,i+=(r^t&(e^r))+a[8]+1770035416,i=(i<<7|i>>>25)+t<<0,r+=(e^i&(t^e))+a[9]-1958414417,r=(r<<12|r>>>20)+i<<0,e+=(t^r&(i^t))+a[10]-42063,e=(e<<17|e>>>15)+r<<0,t+=(i^e&(r^i))+a[11]-1990404162,t=(t<<22|t>>>10)+e<<0,i+=(r^t&(e^r))+a[12]+1804603682,i=(i<<7|i>>>25)+t<<0,r+=(e^i&(t^e))+a[13]-40341101,r=(r<<12|r>>>20)+i<<0,e+=(t^r&(i^t))+a[14]-1502002290,e=(e<<17|e>>>15)+r<<0,t+=(i^e&(r^i))+a[15]+1236535329,t=(t<<22|t>>>10)+e<<0,i+=(e^r&(t^e))+a[1]-165796510,i=(i<<5|i>>>27)+t<<0,r+=(t^e&(i^t))+a[6]-1069501632,r=(r<<9|r>>>23)+i<<0,e+=(i^t&(r^i))+a[11]+643717713,e=(e<<14|e>>>18)+r<<0,t+=(r^i&(e^r))+a[0]-373897302,t=(t<<20|t>>>12)+e<<0,i+=(e^r&(t^e))+a[5]-701558691,i=(i<<5|i>>>27)+t<<0,r+=(t^e&(i^t))+a[10]+38016083,r=(r<<9|r>>>23)+i<<0,e+=(i^t&(r^i))+a[15]-660478335,e=(e<<14|e>>>18)+r<<0,t+=(r^i&(e^r))+a[4]-405537848,t=(t<<20|t>>>12)+e<<0,i+=(e^r&(t^e))+a[9]+568446438,i=(i<<5|i>>>27)+t<<0,r+=(t^e&(i^t))+a[14]-1019803690,r=(r<<9|r>>>23)+i<<0,e+=(i^t&(r^i))+a[3]-187363961,e=(e<<14|e>>>18)+r<<0,t+=(r^i&(e^r))+a[8]+1163531501,t=(t<<20|t>>>12)+e<<0,i+=(e^r&(t^e))+a[13]-1444681467,i=(i<<5|i>>>27)+t<<0,r+=(t^e&(i^t))+a[2]-51403784,r=(r<<9|r>>>23)+i<<0,e+=(i^t&(r^i))+a[7]+1735328473,e=(e<<14|e>>>18)+r<<0,t+=(r^i&(e^r))+a[12]-1926607734,t=(t<<20|t>>>12)+e<<0,l=t^e,i+=(l^r)+a[5]-378558,i=(i<<4|i>>>28)+t<<0,r+=(l^i)+a[8]-2022574463,r=(r<<11|r>>>21)+i<<0,o=r^i,e+=(o^t)+a[11]+1839030562,e=(e<<16|e>>>16)+r<<0,t+=(o^e)+a[14]-35309556,t=(t<<23|t>>>9)+e<<0,l=t^e,i+=(l^r)+a[1]-1530992060,i=(i<<4|i>>>28)+t<<0,r+=(l^i)+a[4]+1272893353,r=(r<<11|r>>>21)+i<<0,o=r^i,e+=(o^t)+a[7]-155497632,e=(e<<16|e>>>16)+r<<0,t+=(o^e)+a[10]-1094730640,t=(t<<23|t>>>9)+e<<0,l=t^e,i+=(l^r)+a[13]+681279174,i=(i<<4|i>>>28)+t<<0,r+=(l^i)+a[0]-358537222,r=(r<<11|r>>>21)+i<<0,o=r^i,e+=(o^t)+a[3]-722521979,e=(e<<16|e>>>16)+r<<0,t+=(o^e)+a[6]+76029189,t=(t<<23|t>>>9)+e<<0,l=t^e,i+=(l^r)+a[9]-640364487,i=(i<<4|i>>>28)+t<<0,r+=(l^i)+a[12]-421815835,r=(r<<11|r>>>21)+i<<0,o=r^i,e+=(o^t)+a[15]+530742520,e=(e<<16|e>>>16)+r<<0,t+=(o^e)+a[2]-995338651,t=(t<<23|t>>>9)+e<<0,i+=(e^(t|~r))+a[0]-198630844,i=(i<<6|i>>>26)+t<<0,r+=(t^(i|~e))+a[7]+1126891415,r=(r<<10|r>>>22)+i<<0,e+=(i^(r|~t))+a[14]-1416354905,e=(e<<15|e>>>17)+r<<0,t+=(r^(e|~i))+a[5]-57434055,t=(t<<21|t>>>11)+e<<0,i+=(e^(t|~r))+a[12]+1700485571,i=(i<<6|i>>>26)+t<<0,r+=(t^(i|~e))+a[3]-1894986606,r=(r<<10|r>>>22)+i<<0,e+=(i^(r|~t))+a[10]-1051523,e=(e<<15|e>>>17)+r<<0,t+=(r^(e|~i))+a[1]-2054922799,t=(t<<21|t>>>11)+e<<0,i+=(e^(t|~r))+a[8]+1873313359,i=(i<<6|i>>>26)+t<<0,r+=(t^(i|~e))+a[15]-30611744,r=(r<<10|r>>>22)+i<<0,e+=(i^(r|~t))+a[6]-1560198380,e=(e<<15|e>>>17)+r<<0,t+=(r^(e|~i))+a[13]+1309151649,t=(t<<21|t>>>11)+e<<0,i+=(e^(t|~r))+a[4]-145523070,i=(i<<6|i>>>26)+t<<0,r+=(t^(i|~e))+a[11]-1120210379,r=(r<<10|r>>>22)+i<<0,e+=(i^(r|~t))+a[2]+718787259,e=(e<<15|e>>>17)+r<<0,t+=(r^(e|~i))+a[9]-343485551,t=(t<<21|t>>>11)+e<<0,this.first?(this.h0=i+1732584193<<0,this.h1=t-271733879<<0,this.h2=e-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+i<<0,this.h1=this.h1+t<<0,this.h2=this.h2+e<<0,this.h3=this.h3+r<<0)},Md5.prototype.hex=function(){this.finalize();var i=this.h0,t=this.h1,e=this.h2,r=this.h3;return HEX_CHARS[i>>4&15]+HEX_CHARS[i&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(i){if(i==="hex")return this.hex();this.finalize();var t=this.h0,e=this.h1,r=this.h2,l=this.h3,o=[t&255,t>>8&255,t>>16&255,t>>24&255,e&255,e>>8&255,e>>16&255,e>>24&255,r&255,r>>8&255,r>>16&255,r>>24&255,l&255,l>>8&255,l>>16&255,l>>24&255];return o},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var i=new ArrayBuffer(16),t=new Uint32Array(i);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,i},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var i,t,e,r="",l=this.array(),o=0;o<15;)i=l[o++],t=l[o++],e=l[o++],r+=BASE64_ENCODE_CHAR[i>>>2]+BASE64_ENCODE_CHAR[(i<<4|t>>>4)&63]+BASE64_ENCODE_CHAR[(t<<2|e>>>6)&63]+BASE64_ENCODE_CHAR[e&63];return i=l[o],r+=BASE64_ENCODE_CHAR[i>>>2]+BASE64_ENCODE_CHAR[i<<4&63]+"==",r};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__("./node_modules/process/browser.js"),__webpack_require__("./node_modules/webpack/buildin/global.js"),__webpack_require__("./node_modules/webpack/buildin/module.js")(module))},"./lib/request.js":function(i,t,e){var r=e("./node_modules/@babel/runtime/helpers/typeof.js"),l=function(C){switch(r(C)){case"string":return C;case"boolean":return C?"true":"false";case"number":return isFinite(C)?C:"";default:return""}},o=function(C,x,O,H){return x=x||"&",O=O||"=",C===null&&(C=void 0),r(C)==="object"?Object.keys(C).map(function(L){var M=encodeURIComponent(l(L))+O;return Array.isArray(C[L])?C[L].map(function(Y){return M+encodeURIComponent(l(Y))}).join(x):M+encodeURIComponent(l(C[L]))}).filter(Boolean).join(x):H?encodeURIComponent(l(H))+O+encodeURIComponent(l(C)):""},a=function(C,x,O){var H={};return x.getAllResponseHeaders().trim().split(`
- `).forEach(function(L){if(L){var M=L.indexOf(":"),Y=L.substr(0,M).trim().toLowerCase(),G=L.substr(M+1).trim();H[Y]=G}}),{error:C,statusCode:x.status,statusMessage:x.statusText,headers:H,body:O}},E=function(C,x){return!x&&x==="text"?C.responseText:C.response},w=function(C,x){var O=(C.method||"GET").toUpperCase(),H=C.url;if(C.qs){var L=o(C.qs);L&&(H+=(H.indexOf("?")===-1?"?":"&")+L)}var M=new XMLHttpRequest;if(M.open(O,H,!0),M.responseType=C.dataType||"text",C.xhrFields)for(var Y in C.xhrFields)M[Y]=C.xhrFields[Y];var G=C.headers;if(G)for(var re in G)G.hasOwnProperty(re)&&re.toLowerCase()!=="content-length"&&re.toLowerCase()!=="user-agent"&&re.toLowerCase()!=="origin"&&re.toLowerCase()!=="host"&&M.setRequestHeader(re,G[re]);return C.onProgress&&M.upload&&(M.upload.onprogress=C.onProgress),C.onDownloadProgress&&(M.onprogress=C.onDownloadProgress),C.timeout&&(M.timeout=C.timeout),M.ontimeout=function(I){var T=new Error("timeout");x(a(T,M))},M.onload=function(){x(a(null,M,E(M,C.dataType)))},M.onerror=function(I){var T=E(M,C.dataType);if(T)x(a(null,M,T));else{var A=M.statusText;!A&&M.status===0&&(A=new Error("CORS blocked or network error")),x(a(A,M,T))}},M.send(C.body||""),M};i.exports=w},"./lib/xml2json.js":function(i,t,e){var r=e("./node_modules/@xmldom/xmldom/lib/index.js").DOMParser,l=function(){this.version="1.3.5";var a={mergeCDATA:!0,normalize:!0,stripElemPrefix:!0},E=new RegExp(/(?!xmlns)^.*:/);return this.grokType=function(w){return/^\s*$/.test(w)?null:/^(?:true|false)$/i.test(w)?w.toLowerCase()==="true":isFinite(w)?parseFloat(w):w},this.parseString=function(w,D){if(w){var C=this.stringToXML(w);return C.getElementsByTagName("parsererror").length?null:this.parseXML(C,D)}else return null},this.parseXML=function(w,D){for(var C in D)a[C]=D[C];var x={},O=0,H="",L=w.childNodes.length;if(L)for(var M,Y,G,re=0;re<w.childNodes.length;re++)M=w.childNodes.item(re),M.nodeType===4?a.mergeCDATA&&(H+=M.nodeValue):M.nodeType===3?H+=M.nodeValue:M.nodeType===1&&(O===0&&(x={}),a.stripElemPrefix?Y=M.nodeName.replace(E,""):Y=M.nodeName,G=l.parseXML(M),x.hasOwnProperty(Y)?(x[Y].constructor!==Array&&(x[Y]=[x[Y]]),x[Y].push(G)):(x[Y]=G,O++));return Object.keys(x).length||(x=H||""),x},this.xmlToString=function(w){try{var D=w.xml?w.xml:new XMLSerializer().serializeToString(w);return D}catch{return null}},this.stringToXML=function(w){try{var D=null;if(window.DOMParser){var C=new r;return D=C.parseFromString(w,"text/xml"),D}else return D=new ActiveXObject("Microsoft.XMLDOM"),D.async=!1,D.loadXML(w),D}catch{return null}},this}.call({}),o=function(E){return l.parseString(E)};i.exports=o},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(i,t){function e(r,l){if(!(r instanceof l))throw new TypeError("Cannot call a class as a function")}i.exports=e,i.exports.__esModule=!0,i.exports.default=i.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(i,t,e){var r=e("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function l(a,E){for(var w=0;w<E.length;w++){var D=E[w];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(a,r(D.key),D)}}function o(a,E,w){return E&&l(a.prototype,E),w&&l(a,w),Object.defineProperty(a,"prototype",{writable:!1}),a}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(i,t,e){var r=e("./node_modules/@babel/runtime/helpers/typeof.js").default;function l(o,a){if(r(o)!=="object"||o===null)return o;var E=o[Symbol.toPrimitive];if(E!==void 0){var w=E.call(o,a||"default");if(r(w)!=="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(o)}i.exports=l,i.exports.__esModule=!0,i.exports.default=i.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(i,t,e){var r=e("./node_modules/@babel/runtime/helpers/typeof.js").default,l=e("./node_modules/@babel/runtime/helpers/toPrimitive.js");function o(a){var E=l(a,"string");return r(E)==="symbol"?E:String(E)}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(i,t){function e(r){return i.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},i.exports.__esModule=!0,i.exports.default=i.exports,e(r)}i.exports=e,i.exports.__esModule=!0,i.exports.default=i.exports},"./node_modules/@xmldom/xmldom/lib/conventions.js":function(i,t,e){function r(w,D,C){if(C===void 0&&(C=Array.prototype),w&&typeof C.find=="function")return C.find.call(w,D);for(var x=0;x<w.length;x++)if(Object.prototype.hasOwnProperty.call(w,x)){var O=w[x];if(D.call(void 0,O,x,w))return O}}function l(w,D){return D===void 0&&(D=Object),D&&typeof D.freeze=="function"?D.freeze(w):w}function o(w,D){if(w===null||typeof w!="object")throw new TypeError("target is not an object");for(var C in D)Object.prototype.hasOwnProperty.call(D,C)&&(w[C]=D[C]);return w}var a=l({HTML:"text/html",isHTML:function(w){return w===a.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),E=l({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(w){return w===E.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=o,t.find=r,t.freeze=l,t.MIME_TYPE=a,t.NAMESPACE=E},"./node_modules/@xmldom/xmldom/lib/dom-parser.js":function(i,t,e){var r=e("./node_modules/@xmldom/xmldom/lib/conventions.js"),l=e("./node_modules/@xmldom/xmldom/lib/dom.js"),o=e("./node_modules/@xmldom/xmldom/lib/entities.js"),a=e("./node_modules/@xmldom/xmldom/lib/sax.js"),E=l.DOMImplementation,w=r.NAMESPACE,D=a.ParseError,C=a.XMLReader;function x(I){return I.replace(/\r[\n\u0085]/g,`
- `).replace(/[\r\u0085\u2028]/g,`
- `)}function O(I){this.options=I||{locator:{}}}O.prototype.parseFromString=function(I,T){var A=this.options,N=new C,v=A.domBuilder||new L,q=A.errorHandler,V=A.locator,U=A.xmlns||{},K=/\/x?html?$/.test(T),B=K?o.HTML_ENTITIES:o.XML_ENTITIES;V&&v.setDocumentLocator(V),N.errorHandler=H(q,v,V),N.domBuilder=A.domBuilder||v,K&&(U[""]=w.HTML),U.xml=U.xml||w.XML;var j=A.normalizeLineEndings||x;return I&&typeof I=="string"?N.parse(j(I),U,B):N.errorHandler.error("invalid doc source"),v.doc};function H(I,T,A){if(!I){if(T instanceof L)return T;I=T}var N={},v=I instanceof Function;A=A||{};function q(V){var U=I[V];!U&&v&&(U=I.length==2?function(K){I(V,K)}:I),N[V]=U&&function(K){U("[xmldom "+V+"] "+K+Y(A))}||function(){}}return q("warning"),q("error"),q("fatalError"),N}function L(){this.cdata=!1}function M(I,T){T.lineNumber=I.lineNumber,T.columnNumber=I.columnNumber}L.prototype={startDocument:function(){this.doc=new E().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(I,T,A,N){var v=this.doc,q=v.createElementNS(I,A||T),V=N.length;re(this,q),this.currentElement=q,this.locator&&M(this.locator,q);for(var U=0;U<V;U++){var I=N.getURI(U),K=N.getValue(U),A=N.getQName(U),B=v.createAttributeNS(I,A);this.locator&&M(N.getLocator(U),B),B.value=B.nodeValue=K,q.setAttributeNode(B)}},endElement:function(I,T,A){var N=this.currentElement;N.tagName,this.currentElement=N.parentNode},startPrefixMapping:function(I,T){},endPrefixMapping:function(I){},processingInstruction:function(I,T){var A=this.doc.createProcessingInstruction(I,T);this.locator&&M(this.locator,A),re(this,A)},ignorableWhitespace:function(I,T,A){},characters:function(I,T,A){if(I=G.apply(this,arguments),I){if(this.cdata)var N=this.doc.createCDATASection(I);else var N=this.doc.createTextNode(I);this.currentElement?this.currentElement.appendChild(N):/^\s*$/.test(I)&&this.doc.appendChild(N),this.locator&&M(this.locator,N)}},skippedEntity:function(I){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(I){(this.locator=I)&&(I.lineNumber=0)},comment:function(I,T,A){I=G.apply(this,arguments);var N=this.doc.createComment(I);this.locator&&M(this.locator,N),re(this,N)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(I,T,A){var N=this.doc.implementation;if(N&&N.createDocumentType){var v=N.createDocumentType(I,T,A);this.locator&&M(this.locator,v),re(this,v),this.doc.doctype=v}},warning:function(I){console.warn("[xmldom warning] "+I,Y(this.locator))},error:function(I){console.error("[xmldom error] "+I,Y(this.locator))},fatalError:function(I){throw new D(I,this.locator)}};function Y(I){if(I)return`
- @`+(I.systemId||"")+"#[line:"+I.lineNumber+",col:"+I.columnNumber+"]"}function G(I,T,A){return typeof I=="string"?I.substr(T,A):I.length>=T+A||T?new java.lang.String(I,T,A)+"":I}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(I){L.prototype[I]=function(){return null}});function re(I,T){I.currentElement?I.currentElement.appendChild(T):I.doc.appendChild(T)}t.__DOMHandler=L,t.normalizeLineEndings=x,t.DOMParser=O},"./node_modules/@xmldom/xmldom/lib/dom.js":function(i,t,e){var r=e("./node_modules/@xmldom/xmldom/lib/conventions.js"),l=r.find,o=r.NAMESPACE;function a(f){return f!==""}function E(f){return f?f.split(/[\t\n\f\r ]+/).filter(a):[]}function w(f,g){return f.hasOwnProperty(g)||(f[g]=!0),f}function D(f){if(!f)return[];var g=E(f);return Object.keys(g.reduce(w,{}))}function C(f){return function(g){return f&&f.indexOf(g)!==-1}}function x(f,g){for(var R in f)Object.prototype.hasOwnProperty.call(f,R)&&(g[R]=f[R])}function O(f,g){var R=f.prototype;if(!(R instanceof g)){let z=function(){};z.prototype=g.prototype,z=new z,x(R,z),f.prototype=R=z}R.constructor!=f&&(typeof f!="function"&&console.error("unknown Class:"+f),R.constructor=f)}var H={},L=H.ELEMENT_NODE=1,M=H.ATTRIBUTE_NODE=2,Y=H.TEXT_NODE=3,G=H.CDATA_SECTION_NODE=4,re=H.ENTITY_REFERENCE_NODE=5,I=H.ENTITY_NODE=6,T=H.PROCESSING_INSTRUCTION_NODE=7,A=H.COMMENT_NODE=8,N=H.DOCUMENT_NODE=9,v=H.DOCUMENT_TYPE_NODE=10,q=H.DOCUMENT_FRAGMENT_NODE=11,V=H.NOTATION_NODE=12,U={},K={};U.INDEX_SIZE_ERR=(K[1]="Index size error",1),U.DOMSTRING_SIZE_ERR=(K[2]="DOMString size error",2);var B=U.HIERARCHY_REQUEST_ERR=(K[3]="Hierarchy request error",3);U.WRONG_DOCUMENT_ERR=(K[4]="Wrong document",4),U.INVALID_CHARACTER_ERR=(K[5]="Invalid character",5),U.NO_DATA_ALLOWED_ERR=(K[6]="No data allowed",6),U.NO_MODIFICATION_ALLOWED_ERR=(K[7]="No modification allowed",7);var j=U.NOT_FOUND_ERR=(K[8]="Not found",8);U.NOT_SUPPORTED_ERR=(K[9]="Not supported",9);var X=U.INUSE_ATTRIBUTE_ERR=(K[10]="Attribute in use",10);U.INVALID_STATE_ERR=(K[11]="Invalid state",11),U.SYNTAX_ERR=(K[12]="Syntax error",12),U.INVALID_MODIFICATION_ERR=(K[13]="Invalid modification",13),U.NAMESPACE_ERR=(K[14]="Invalid namespace",14),U.INVALID_ACCESS_ERR=(K[15]="Invalid access",15);function W(f,g){if(g instanceof Error)var R=g;else R=this,Error.call(this,K[f]),this.message=K[f],Error.captureStackTrace&&Error.captureStackTrace(this,W);return R.code=f,g&&(this.message=this.message+": "+g),R}W.prototype=Error.prototype,x(U,W);function J(){}J.prototype={length:0,item:function(f){return f>=0&&f<this.length?this[f]:null},toString:function(f,g){for(var R=[],z=0;z<this.length;z++)Xe(this[z],R,f,g);return R.join("")},filter:function(f){return Array.prototype.filter.call(this,f)},indexOf:function(f){return Array.prototype.indexOf.call(this,f)}};function se(f,g){this._node=f,this._refresh=g,ae(this)}function ae(f){var g=f._node._inc||f._node.ownerDocument._inc;if(f._inc!==g){var R=f._refresh(f._node);if(nt(f,"length",R.length),!f.$$length||R.length<f.$$length)for(var z=R.length;z in f;z++)Object.prototype.hasOwnProperty.call(f,z)&&delete f[z];x(R,f),f._inc=g}}se.prototype.item=function(f){return ae(this),this[f]||null},O(se,J);function oe(){}function ie(f,g){for(var R=f.length;R--;)if(f[R]===g)return R}function ce(f,g,R,z){if(z?g[ie(g,z)]=R:g[g.length++]=R,f){R.ownerElement=f;var fe=f.ownerDocument;fe&&(z&&me(fe,f,z),ve(fe,f,R))}}function le(f,g,R){var z=ie(g,R);if(z>=0){for(var fe=g.length-1;z<fe;)g[z]=g[++z];if(g.length=fe,f){var Be=f.ownerDocument;Be&&(me(Be,f,R),R.ownerElement=null)}}else throw new W(j,new Error(f.tagName+"@"+R))}oe.prototype={length:0,item:J.prototype.item,getNamedItem:function(f){for(var g=this.length;g--;){var R=this[g];if(R.nodeName==f)return R}},setNamedItem:function(f){var g=f.ownerElement;if(g&&g!=this._ownerElement)throw new W(X);var R=this.getNamedItem(f.nodeName);return ce(this._ownerElement,this,f,R),R},setNamedItemNS:function(f){var g=f.ownerElement,R;if(g&&g!=this._ownerElement)throw new W(X);return R=this.getNamedItemNS(f.namespaceURI,f.localName),ce(this._ownerElement,this,f,R),R},removeNamedItem:function(f){var g=this.getNamedItem(f);return le(this._ownerElement,this,g),g},removeNamedItemNS:function(f,g){var R=this.getNamedItemNS(f,g);return le(this._ownerElement,this,R),R},getNamedItemNS:function(f,g){for(var R=this.length;R--;){var z=this[R];if(z.localName==g&&z.namespaceURI==f)return z}return null}};function pe(){}pe.prototype={hasFeature:function(f,g){return!0},createDocument:function(f,g,R){var z=new ye;if(z.implementation=this,z.childNodes=new J,z.doctype=R||null,R&&z.appendChild(R),g){var fe=z.createElementNS(f,g);z.appendChild(fe)}return z},createDocumentType:function(f,g,R){var z=new Te;return z.name=f,z.nodeName=f,z.publicId=g||"",z.systemId=R||"",z}};function Z(){}Z.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(f,g){return d(this,f,g)},replaceChild:function(f,g){d(this,f,g,s),g&&this.removeChild(g)},removeChild:function(f){return Ae(this,f)},appendChild:function(f){return this.insertBefore(f,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(f){return et(this.ownerDocument||this,this,f)},normalize:function(){for(var f=this.firstChild;f;){var g=f.nextSibling;g&&g.nodeType==Y&&f.nodeType==Y?(this.removeChild(g),f.appendData(g.data)):(f.normalize(),f=g)}},isSupported:function(f,g){return this.ownerDocument.implementation.hasFeature(f,g)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(f){for(var g=this;g;){var R=g._nsMap;if(R){for(var z in R)if(Object.prototype.hasOwnProperty.call(R,z)&&R[z]===f)return z}g=g.nodeType==M?g.ownerDocument:g.parentNode}return null},lookupNamespaceURI:function(f){for(var g=this;g;){var R=g._nsMap;if(R&&Object.prototype.hasOwnProperty.call(R,f))return R[f];g=g.nodeType==M?g.ownerDocument:g.parentNode}return null},isDefaultNamespace:function(f){var g=this.lookupPrefix(f);return g==null}};function te(f){return f=="<"&&"<"||f==">"&&">"||f=="&"&&"&"||f=='"'&&"""||"&#"+f.charCodeAt()+";"}x(H,Z),x(H,Z.prototype);function ge(f,g){if(g(f))return!0;if(f=f.firstChild)do if(ge(f,g))return!0;while(f=f.nextSibling)}function ye(){this.ownerDocument=this}function ve(f,g,R){f&&f._inc++;var z=R.namespaceURI;z===o.XMLNS&&(g._nsMap[R.prefix?R.localName:""]=R.value)}function me(f,g,R,z){f&&f._inc++;var fe=R.namespaceURI;fe===o.XMLNS&&delete g._nsMap[R.prefix?R.localName:""]}function Ce(f,g,R){if(f&&f._inc){f._inc++;var z=g.childNodes;if(R)z[z.length++]=R;else{for(var fe=g.firstChild,Be=0;fe;)z[Be++]=fe,fe=fe.nextSibling;z.length=Be,delete z[z.length]}}}function Ae(f,g){var R=g.previousSibling,z=g.nextSibling;return R?R.nextSibling=z:f.firstChild=z,z?z.previousSibling=R:f.lastChild=R,g.parentNode=null,g.previousSibling=null,g.nextSibling=null,Ce(f.ownerDocument,f),g}function De(f){return f&&(f.nodeType===Z.DOCUMENT_NODE||f.nodeType===Z.DOCUMENT_FRAGMENT_NODE||f.nodeType===Z.ELEMENT_NODE)}function be(f){return f&&(_e(f)||qe(f)||we(f)||f.nodeType===Z.DOCUMENT_FRAGMENT_NODE||f.nodeType===Z.COMMENT_NODE||f.nodeType===Z.PROCESSING_INSTRUCTION_NODE)}function we(f){return f&&f.nodeType===Z.DOCUMENT_TYPE_NODE}function _e(f){return f&&f.nodeType===Z.ELEMENT_NODE}function qe(f){return f&&f.nodeType===Z.TEXT_NODE}function Me(f,g){var R=f.childNodes||[];if(l(R,_e)||we(g))return!1;var z=l(R,we);return!(g&&z&&R.indexOf(z)>R.indexOf(g))}function ne(f,g){var R=f.childNodes||[];function z(Be){return _e(Be)&&Be!==g}if(l(R,z))return!1;var fe=l(R,we);return!(g&&fe&&R.indexOf(fe)>R.indexOf(g))}function p(f,g,R){if(!De(f))throw new W(B,"Unexpected parent node type "+f.nodeType);if(R&&R.parentNode!==f)throw new W(j,"child not in parent");if(!be(g)||we(g)&&f.nodeType!==Z.DOCUMENT_NODE)throw new W(B,"Unexpected node type "+g.nodeType+" for parent node type "+f.nodeType)}function c(f,g,R){var z=f.childNodes||[],fe=g.childNodes||[];if(g.nodeType===Z.DOCUMENT_FRAGMENT_NODE){var Be=fe.filter(_e);if(Be.length>1||l(fe,qe))throw new W(B,"More than one element or text in fragment");if(Be.length===1&&!Me(f,R))throw new W(B,"Element in fragment can not be inserted before doctype")}if(_e(g)&&!Me(f,R))throw new W(B,"Only one element can be added and only after doctype");if(we(g)){if(l(z,we))throw new W(B,"Only one doctype is allowed");var Le=l(z,_e);if(R&&z.indexOf(Le)<z.indexOf(R))throw new W(B,"Doctype can only be inserted before an element");if(!R&&Le)throw new W(B,"Doctype can not be appended since element is present")}}function s(f,g,R){var z=f.childNodes||[],fe=g.childNodes||[];if(g.nodeType===Z.DOCUMENT_FRAGMENT_NODE){var Be=fe.filter(_e);if(Be.length>1||l(fe,qe))throw new W(B,"More than one element or text in fragment");if(Be.length===1&&!ne(f,R))throw new W(B,"Element in fragment can not be inserted before doctype")}if(_e(g)&&!ne(f,R))throw new W(B,"Only one element can be added and only after doctype");if(we(g)){if(l(z,function(Ye){return we(Ye)&&Ye!==R}))throw new W(B,"Only one doctype is allowed");var Le=l(z,_e);if(R&&z.indexOf(Le)<z.indexOf(R))throw new W(B,"Doctype can only be inserted before an element")}}function d(f,g,R,z){p(f,g,R),f.nodeType===Z.DOCUMENT_NODE&&(z||c)(f,g,R);var fe=g.parentNode;if(fe&&fe.removeChild(g),g.nodeType===q){var Be=g.firstChild;if(Be==null)return g;var Le=g.lastChild}else Be=Le=g;var ue=R?R.previousSibling:f.lastChild;Be.previousSibling=ue,Le.nextSibling=R,ue?ue.nextSibling=Be:f.firstChild=Be,R==null?f.lastChild=Le:R.previousSibling=Le;do Be.parentNode=f;while(Be!==Le&&(Be=Be.nextSibling));return Ce(f.ownerDocument||f,f),g.nodeType==q&&(g.firstChild=g.lastChild=null),g}function y(f,g){return g.parentNode&&g.parentNode.removeChild(g),g.parentNode=f,g.previousSibling=f.lastChild,g.nextSibling=null,g.previousSibling?g.previousSibling.nextSibling=g:f.firstChild=g,f.lastChild=g,Ce(f.ownerDocument,f,g),g}ye.prototype={nodeName:"#document",nodeType:N,doctype:null,documentElement:null,_inc:1,insertBefore:function(f,g){if(f.nodeType==q){for(var R=f.firstChild;R;){var z=R.nextSibling;this.insertBefore(R,g),R=z}return f}return d(this,f,g),f.ownerDocument=this,this.documentElement===null&&f.nodeType===L&&(this.documentElement=f),f},removeChild:function(f){return this.documentElement==f&&(this.documentElement=null),Ae(this,f)},replaceChild:function(f,g){d(this,f,g,s),f.ownerDocument=this,g&&this.removeChild(g),_e(f)&&(this.documentElement=f)},importNode:function(f,g){return rt(this,f,g)},getElementById:function(f){var g=null;return ge(this.documentElement,function(R){if(R.nodeType==L&&R.getAttribute("id")==f)return g=R,!0}),g},getElementsByClassName:function(f){var g=D(f);return new se(this,function(R){var z=[];return g.length>0&&ge(R.documentElement,function(fe){if(fe!==R&&fe.nodeType===L){var Be=fe.getAttribute("class");if(Be){var Le=f===Be;if(!Le){var ue=D(Be);Le=g.every(C(ue))}Le&&z.push(fe)}}}),z})},createElement:function(f){var g=new k;g.ownerDocument=this,g.nodeName=f,g.tagName=f,g.localName=f,g.childNodes=new J;var R=g.attributes=new oe;return R._ownerElement=g,g},createDocumentFragment:function(){var f=new Fe;return f.ownerDocument=this,f.childNodes=new J,f},createTextNode:function(f){var g=new de;return g.ownerDocument=this,g.appendData(f),g},createComment:function(f){var g=new he;return g.ownerDocument=this,g.appendData(f),g},createCDATASection:function(f){var g=new $;return g.ownerDocument=this,g.appendData(f),g},createProcessingInstruction:function(f,g){var R=new Ve;return R.ownerDocument=this,R.tagName=R.nodeName=R.target=f,R.nodeValue=R.data=g,R},createAttribute:function(f){var g=new P;return g.ownerDocument=this,g.name=f,g.nodeName=f,g.localName=f,g.specified=!0,g},createEntityReference:function(f){var g=new ke;return g.ownerDocument=this,g.nodeName=f,g},createElementNS:function(f,g){var R=new k,z=g.split(":"),fe=R.attributes=new oe;return R.childNodes=new J,R.ownerDocument=this,R.nodeName=g,R.tagName=g,R.namespaceURI=f,z.length==2?(R.prefix=z[0],R.localName=z[1]):R.localName=g,fe._ownerElement=R,R},createAttributeNS:function(f,g){var R=new P,z=g.split(":");return R.ownerDocument=this,R.nodeName=g,R.name=g,R.namespaceURI=f,R.specified=!0,z.length==2?(R.prefix=z[0],R.localName=z[1]):R.localName=g,R}},O(ye,Z);function k(){this._nsMap={}}k.prototype={nodeType:L,hasAttribute:function(f){return this.getAttributeNode(f)!=null},getAttribute:function(f){var g=this.getAttributeNode(f);return g&&g.value||""},getAttributeNode:function(f){return this.attributes.getNamedItem(f)},setAttribute:function(f,g){var R=this.ownerDocument.createAttribute(f);R.value=R.nodeValue=""+g,this.setAttributeNode(R)},removeAttribute:function(f){var g=this.getAttributeNode(f);g&&this.removeAttributeNode(g)},appendChild:function(f){return f.nodeType===q?this.insertBefore(f,null):y(this,f)},setAttributeNode:function(f){return this.attributes.setNamedItem(f)},setAttributeNodeNS:function(f){return this.attributes.setNamedItemNS(f)},removeAttributeNode:function(f){return this.attributes.removeNamedItem(f.nodeName)},removeAttributeNS:function(f,g){var R=this.getAttributeNodeNS(f,g);R&&this.removeAttributeNode(R)},hasAttributeNS:function(f,g){return this.getAttributeNodeNS(f,g)!=null},getAttributeNS:function(f,g){var R=this.getAttributeNodeNS(f,g);return R&&R.value||""},setAttributeNS:function(f,g,R){var z=this.ownerDocument.createAttributeNS(f,g);z.value=z.nodeValue=""+R,this.setAttributeNode(z)},getAttributeNodeNS:function(f,g){return this.attributes.getNamedItemNS(f,g)},getElementsByTagName:function(f){return new se(this,function(g){var R=[];return ge(g,function(z){z!==g&&z.nodeType==L&&(f==="*"||z.tagName==f)&&R.push(z)}),R})},getElementsByTagNameNS:function(f,g){return new se(this,function(R){var z=[];return ge(R,function(fe){fe!==R&&fe.nodeType===L&&(f==="*"||fe.namespaceURI===f)&&(g==="*"||fe.localName==g)&&z.push(fe)}),z})}},ye.prototype.getElementsByTagName=k.prototype.getElementsByTagName,ye.prototype.getElementsByTagNameNS=k.prototype.getElementsByTagNameNS,O(k,Z);function P(){}P.prototype.nodeType=M,O(P,Z);function Q(){}Q.prototype={data:"",substringData:function(f,g){return this.data.substring(f,f+g)},appendData:function(f){f=this.data+f,this.nodeValue=this.data=f,this.length=f.length},insertData:function(f,g){this.replaceData(f,0,g)},appendChild:function(f){throw new Error(K[B])},deleteData:function(f,g){this.replaceData(f,g,"")},replaceData:function(f,g,R){var z=this.data.substring(0,f),fe=this.data.substring(f+g);R=z+R+fe,this.nodeValue=this.data=R,this.length=R.length}},O(Q,Z);function de(){}de.prototype={nodeName:"#text",nodeType:Y,splitText:function(f){var g=this.data,R=g.substring(f);g=g.substring(0,f),this.data=this.nodeValue=g,this.length=g.length;var z=this.ownerDocument.createTextNode(R);return this.parentNode&&this.parentNode.insertBefore(z,this.nextSibling),z}},O(de,Q);function he(){}he.prototype={nodeName:"#comment",nodeType:A},O(he,Q);function $(){}$.prototype={nodeName:"#cdata-section",nodeType:G},O($,Q);function Te(){}Te.prototype.nodeType=v,O(Te,Z);function Ie(){}Ie.prototype.nodeType=V,O(Ie,Z);function Pe(){}Pe.prototype.nodeType=I,O(Pe,Z);function ke(){}ke.prototype.nodeType=re,O(ke,Z);function Fe(){}Fe.prototype.nodeName="#document-fragment",Fe.prototype.nodeType=q,O(Fe,Z);function Ve(){}Ve.prototype.nodeType=T,O(Ve,Z);function Ke(){}Ke.prototype.serializeToString=function(f,g,R){return Ge.call(f,g,R)},Z.prototype.toString=Ge;function Ge(f,g){var R=[],z=this.nodeType==9&&this.documentElement||this,fe=z.prefix,Be=z.namespaceURI;if(Be&&fe==null){var fe=z.lookupPrefix(Be);if(fe==null)var Le=[{namespace:Be,prefix:null}]}return Xe(this,R,f,g,Le),R.join("")}function ze(f,g,R){var z=f.prefix||"",fe=f.namespaceURI;if(!fe||z==="xml"&&fe===o.XML||fe===o.XMLNS)return!1;for(var Be=R.length;Be--;){var Le=R[Be];if(Le.prefix===z)return Le.namespace!==fe}return!0}function We(f,g,R){f.push(" ",g,'="',R.replace(/[<>&"\t\n\r]/g,te),'"')}function Xe(f,g,R,z,fe){if(fe||(fe=[]),z)if(f=z(f),f){if(typeof f=="string"){g.push(f);return}}else return;switch(f.nodeType){case L:var Be=f.attributes,Le=Be.length,ue=f.firstChild,Ye=f.tagName;R=o.isHTML(f.namespaceURI)||R;var Qe=Ye;if(!R&&!f.prefix&&f.namespaceURI){for(var Je,n=0;n<Be.length;n++)if(Be.item(n).name==="xmlns"){Je=Be.item(n).value;break}if(!Je)for(var m=fe.length-1;m>=0;m--){var u=fe[m];if(u.prefix===""&&u.namespace===f.namespaceURI){Je=u.namespace;break}}if(Je!==f.namespaceURI)for(var m=fe.length-1;m>=0;m--){var u=fe[m];if(u.namespace===f.namespaceURI){u.prefix&&(Qe=u.prefix+":"+Ye);break}}}g.push("<",Qe);for(var h=0;h<Le;h++){var b=Be.item(h);b.prefix=="xmlns"?fe.push({prefix:b.localName,namespace:b.value}):b.nodeName=="xmlns"&&fe.push({prefix:"",namespace:b.value})}for(var h=0;h<Le;h++){var b=Be.item(h);if(ze(b,R,fe)){var S=b.prefix||"",_=b.namespaceURI;We(g,S?"xmlns:"+S:"xmlns",_),fe.push({prefix:S,namespace:_})}Xe(b,g,R,z,fe)}if(Ye===Qe&&ze(f,R,fe)){var S=f.prefix||"",_=f.namespaceURI;We(g,S?"xmlns:"+S:"xmlns",_),fe.push({prefix:S,namespace:_})}if(ue||R&&!/^(?:meta|link|img|br|hr|input)$/i.test(Ye)){if(g.push(">"),R&&/^script$/i.test(Ye))for(;ue;)ue.data?g.push(ue.data):Xe(ue,g,R,z,fe.slice()),ue=ue.nextSibling;else for(;ue;)Xe(ue,g,R,z,fe.slice()),ue=ue.nextSibling;g.push("</",Qe,">")}else g.push("/>");return;case N:case q:for(var ue=f.firstChild;ue;)Xe(ue,g,R,z,fe.slice()),ue=ue.nextSibling;return;case M:return We(g,f.name,f.value);case Y:return g.push(f.data.replace(/[<&>]/g,te));case G:return g.push("<![CDATA[",f.data,"]]>");case A:return g.push("<!--",f.data,"-->");case v:var F=f.publicId,ee=f.systemId;if(g.push("<!DOCTYPE ",f.name),F)g.push(" PUBLIC ",F),ee&&ee!="."&&g.push(" ",ee),g.push(">");else if(ee&&ee!=".")g.push(" SYSTEM ",ee,">");else{var Re=f.internalSubset;Re&&g.push(" [",Re,"]"),g.push(">")}return;case T:return g.push("<?",f.target," ",f.data,"?>");case re:return g.push("&",f.nodeName,";");default:g.push("??",f.nodeName)}}function rt(f,g,R){var z;switch(g.nodeType){case L:z=g.cloneNode(!1),z.ownerDocument=f;case q:break;case M:R=!0;break}if(z||(z=g.cloneNode(!1)),z.ownerDocument=f,z.parentNode=null,R)for(var fe=g.firstChild;fe;)z.appendChild(rt(f,fe,R)),fe=fe.nextSibling;return z}function et(f,g,R){var z=new g.constructor;for(var fe in g)if(Object.prototype.hasOwnProperty.call(g,fe)){var Be=g[fe];typeof Be!="object"&&Be!=z[fe]&&(z[fe]=Be)}switch(g.childNodes&&(z.childNodes=new J),z.ownerDocument=f,z.nodeType){case L:var Le=g.attributes,ue=z.attributes=new oe,Ye=Le.length;ue._ownerElement=z;for(var Qe=0;Qe<Ye;Qe++)z.setAttributeNode(et(f,Le.item(Qe),!0));break;case M:R=!0}if(R)for(var Je=g.firstChild;Je;)z.appendChild(et(f,Je,R)),Je=Je.nextSibling;return z}function nt(f,g,R){f[g]=R}try{if(Object.defineProperty){let f=function(g){switch(g.nodeType){case L:case q:var R=[];for(g=g.firstChild;g;)g.nodeType!==7&&g.nodeType!==8&&R.push(f(g)),g=g.nextSibling;return R.join("");default:return g.nodeValue}};Object.defineProperty(se.prototype,"length",{get:function(){return ae(this),this.$$length}}),Object.defineProperty(Z.prototype,"textContent",{get:function(){return f(this)},set:function(g){switch(this.nodeType){case L:case q:for(;this.firstChild;)this.removeChild(this.firstChild);(g||String(g))&&this.appendChild(this.ownerDocument.createTextNode(g));break;default:this.data=g,this.value=g,this.nodeValue=g}}}),nt=function(g,R,z){g["$$"+R]=z}}}catch{}t.DocumentType=Te,t.DOMException=W,t.DOMImplementation=pe,t.Element=k,t.Node=Z,t.NodeList=J,t.XMLSerializer=Ke},"./node_modules/@xmldom/xmldom/lib/entities.js":function(i,t,e){var r=e("./node_modules/@xmldom/xmldom/lib/conventions.js").freeze;t.XML_ENTITIES=r({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=r({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",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:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",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:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",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:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",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:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",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:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",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{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",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:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",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:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",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:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",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:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",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:"\u2A8B",leg:"\u22DA",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{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",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{1D543}",lopf:"\u{1D55D}",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:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",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:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",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{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",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:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",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:`
- `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",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:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",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:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",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:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",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:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",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:"\u2033",prime:"\u2032",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{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",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:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",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:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",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:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",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:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",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{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",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:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",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{1D54B}",topf:"\u{1D565}",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{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",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:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),t.entityMap=t.HTML_ENTITIES},"./node_modules/@xmldom/xmldom/lib/index.js":function(i,t,e){var r=e("./node_modules/@xmldom/xmldom/lib/dom.js");t.DOMImplementation=r.DOMImplementation,t.XMLSerializer=r.XMLSerializer,t.DOMParser=e("./node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},"./node_modules/@xmldom/xmldom/lib/sax.js":function(i,t,e){var r=e("./node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,l=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=new RegExp("[\\-\\.0-9"+l.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+l.source+o.source+"*(?::"+l.source+o.source+"*)?$"),E=0,w=1,D=2,C=3,x=4,O=5,H=6,L=7;function M(B,j){this.message=B,this.locator=j,Error.captureStackTrace&&Error.captureStackTrace(this,M)}M.prototype=new Error,M.prototype.name=M.name;function Y(){}Y.prototype={parse:function(B,j,X){var W=this.domBuilder;W.startDocument(),v(j,j={}),G(B,j,X,W,this.errorHandler),W.endDocument()}};function G(B,j,X,W,J){function se(k){if(k>65535){k-=65536;var P=55296+(k>>10),Q=56320+(k&1023);return String.fromCharCode(P,Q)}else return String.fromCharCode(k)}function ae(k){var P=k.slice(1,-1);return Object.hasOwnProperty.call(X,P)?X[P]:P.charAt(0)==="#"?se(parseInt(P.substr(1).replace("x","0x"))):(J.error("entity not found:"+k),k)}function oe(k){if(k>ye){var P=B.substring(ye,k).replace(/&#?\w+;/g,ae);Z&&ie(ye),W.characters(P,0,k-ye),ye=k}}function ie(k,P){for(;k>=le&&(P=pe.exec(B));)ce=P.index,le=ce+P[0].length,Z.lineNumber++;Z.columnNumber=k-ce+1}for(var ce=0,le=0,pe=/.*(?:\r\n?|\n)|.*$/g,Z=W.locator,te=[{currentNSMap:j}],ge={},ye=0;;){try{var ve=B.indexOf("<",ye);if(ve<0){if(!B.substr(ye).match(/^\s*$/)){var me=W.doc,Ce=me.createTextNode(B.substr(ye));me.appendChild(Ce),W.currentElement=Ce}return}switch(ve>ye&&oe(ve),B.charAt(ve+1)){case"/":var Ae=B.indexOf(">",ve+3),De=B.substring(ve+2,Ae).replace(/[ \t\n\r]+$/g,""),be=te.pop();Ae<0?(De=B.substring(ve+2).replace(/[\s<].*/,""),J.error("end tag name: "+De+" is not complete:"+be.tagName),Ae=ve+1+De.length):De.match(/\s</)&&(De=De.replace(/[\s<].*/,""),J.error("end tag name: "+De+" maybe not complete"),Ae=ve+1+De.length);var we=be.localNSMap,_e=be.tagName==De,qe=_e||be.tagName&&be.tagName.toLowerCase()==De.toLowerCase();if(qe){if(W.endElement(be.uri,be.localName,De),we)for(var Me in we)Object.prototype.hasOwnProperty.call(we,Me)&&W.endPrefixMapping(Me);_e||J.fatalError("end tag name: "+De+" is not match the current start tagName:"+be.tagName)}else te.push(be);Ae++;break;case"?":Z&&ie(ve),Ae=V(B,ve,W);break;case"!":Z&&ie(ve),Ae=q(B,ve,W,J);break;default:Z&&ie(ve);var ne=new U,p=te[te.length-1].currentNSMap,Ae=I(B,ve,ne,p,ae,J),c=ne.length;if(!ne.closed&&N(B,Ae,ne.tagName,ge)&&(ne.closed=!0,X.nbsp||J.warning("unclosed xml attribute")),Z&&c){for(var s=re(Z,{}),d=0;d<c;d++){var y=ne[d];ie(y.offset),y.locator=re(Z,{})}W.locator=s,T(ne,W,p)&&te.push(ne),W.locator=Z}else T(ne,W,p)&&te.push(ne);r.isHTML(ne.uri)&&!ne.closed?Ae=A(B,Ae,ne.tagName,ae,W):Ae++}}catch(k){if(k instanceof M)throw k;J.error("element parse error: "+k),Ae=-1}Ae>ye?ye=Ae:oe(Math.max(ve,ye)+1)}}function re(B,j){return j.lineNumber=B.lineNumber,j.columnNumber=B.columnNumber,j}function I(B,j,X,W,J,se){function ae(Z,te,ge){X.attributeNames.hasOwnProperty(Z)&&se.fatalError("Attribute "+Z+" redefined"),X.addValue(Z,te.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,J),ge)}for(var oe,ie,ce=++j,le=E;;){var pe=B.charAt(ce);switch(pe){case"=":if(le===w)oe=B.slice(j,ce),le=C;else if(le===D)le=C;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(le===C||le===w)if(le===w&&(se.warning('attribute value must after "="'),oe=B.slice(j,ce)),j=ce+1,ce=B.indexOf(pe,j),ce>0)ie=B.slice(j,ce),ae(oe,ie,j-1),le=O;else throw new Error("attribute value no end '"+pe+"' match");else if(le==x)ie=B.slice(j,ce),ae(oe,ie,j),se.warning('attribute "'+oe+'" missed start quot('+pe+")!!"),j=ce+1,le=O;else throw new Error('attribute value must after "="');break;case"/":switch(le){case E:X.setTagName(B.slice(j,ce));case O:case H:case L:le=L,X.closed=!0;case x:case w:break;case D:X.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return se.error("unexpected end of input"),le==E&&X.setTagName(B.slice(j,ce)),ce;case">":switch(le){case E:X.setTagName(B.slice(j,ce));case O:case H:case L:break;case x:case w:ie=B.slice(j,ce),ie.slice(-1)==="/"&&(X.closed=!0,ie=ie.slice(0,-1));case D:le===D&&(ie=oe),le==x?(se.warning('attribute "'+ie+'" missed quot(")!'),ae(oe,ie,j)):((!r.isHTML(W[""])||!ie.match(/^(?:disabled|checked|selected)$/i))&&se.warning('attribute "'+ie+'" missed value!! "'+ie+'" instead!!'),ae(ie,ie,j));break;case C:throw new Error("attribute value missed!!")}return ce;case"\x80":pe=" ";default:if(pe<=" ")switch(le){case E:X.setTagName(B.slice(j,ce)),le=H;break;case w:oe=B.slice(j,ce),le=D;break;case x:var ie=B.slice(j,ce);se.warning('attribute "'+ie+'" missed quot(")!!'),ae(oe,ie,j);case O:le=H;break}else switch(le){case D:X.tagName,(!r.isHTML(W[""])||!oe.match(/^(?:disabled|checked|selected)$/i))&&se.warning('attribute "'+oe+'" missed value!! "'+oe+'" instead2!!'),ae(oe,oe,j),j=ce,le=w;break;case O:se.warning('attribute space is required"'+oe+'"!!');case H:le=w,j=ce;break;case C:le=x,j=ce;break;case L:throw new Error("elements closed character '/' and '>' must be connected to")}}ce++}}function T(B,j,X){for(var W=B.tagName,J=null,se=B.length;se--;){var ae=B[se],oe=ae.qName,ie=ae.value,Z=oe.indexOf(":");if(Z>0)var ce=ae.prefix=oe.slice(0,Z),le=oe.slice(Z+1),pe=ce==="xmlns"&≤else le=oe,ce=null,pe=oe==="xmlns"&&"";ae.localName=le,pe!==!1&&(J==null&&(J={},v(X,X={})),X[pe]=J[pe]=ie,ae.uri=r.XMLNS,j.startPrefixMapping(pe,ie))}for(var se=B.length;se--;){ae=B[se];var ce=ae.prefix;ce&&(ce==="xml"&&(ae.uri=r.XML),ce!=="xmlns"&&(ae.uri=X[ce||""]))}var Z=W.indexOf(":");Z>0?(ce=B.prefix=W.slice(0,Z),le=B.localName=W.slice(Z+1)):(ce=null,le=B.localName=W);var te=B.uri=X[ce||""];if(j.startElement(te,le,W,B),B.closed){if(j.endElement(te,le,W),J)for(ce in J)Object.prototype.hasOwnProperty.call(J,ce)&&j.endPrefixMapping(ce)}else return B.currentNSMap=X,B.localNSMap=J,!0}function A(B,j,X,W,J){if(/^(?:script|textarea)$/i.test(X)){var se=B.indexOf("</"+X+">",j),ae=B.substring(j+1,se);if(/[&<]/.test(ae))return/^script$/i.test(X)?(J.characters(ae,0,ae.length),se):(ae=ae.replace(/&#?\w+;/g,W),J.characters(ae,0,ae.length),se)}return j+1}function N(B,j,X,W){var J=W[X];return J==null&&(J=B.lastIndexOf("</"+X+">"),J<j&&(J=B.lastIndexOf("</"+X)),W[X]=J),J<j}function v(B,j){for(var X in B)Object.prototype.hasOwnProperty.call(B,X)&&(j[X]=B[X])}function q(B,j,X,W){var J=B.charAt(j+2);switch(J){case"-":if(B.charAt(j+3)==="-"){var se=B.indexOf("-->",j+4);return se>j?(X.comment(B,j+4,se-j-4),se+3):(W.error("Unclosed comment"),-1)}else return-1;default:if(B.substr(j+3,6)=="CDATA["){var se=B.indexOf("]]>",j+9);return X.startCDATA(),X.characters(B,j+9,se-j-9),X.endCDATA(),se+3}var ae=K(B,j),oe=ae.length;if(oe>1&&/!doctype/i.test(ae[0][0])){var ie=ae[1][0],ce=!1,le=!1;oe>3&&(/^public$/i.test(ae[2][0])?(ce=ae[3][0],le=oe>4&&ae[4][0]):/^system$/i.test(ae[2][0])&&(le=ae[3][0]));var pe=ae[oe-1];return X.startDTD(ie,ce,le),X.endDTD(),pe.index+pe[0].length}}return-1}function V(B,j,X){var W=B.indexOf("?>",j);if(W){var J=B.substring(j,W).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return J?(J[0].length,X.processingInstruction(J[1],J[2]),W+2):-1}return-1}function U(){this.attributeNames={}}U.prototype={setTagName:function(B){if(!a.test(B))throw new Error("invalid tagName:"+B);this.tagName=B},addValue:function(B,j,X){if(!a.test(B))throw new Error("invalid attribute:"+B);this.attributeNames[B]=this.length,this[this.length++]={qName:B,value:j,offset:X}},length:0,getLocalName:function(B){return this[B].localName},getLocator:function(B){return this[B].locator},getQName:function(B){return this[B].qName},getURI:function(B){return this[B].uri},getValue:function(B){return this[B].value}};function K(B,j){var X,W=[],J=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(J.lastIndex=j,J.exec(B);X=J.exec(B);)if(W.push(X),X[1])return W}t.XMLReader=Y,t.ParseError=M},"./node_modules/process/browser.js":function(i,t){var e=i.exports={},r,l;function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=o}catch{r=o}try{typeof clearTimeout=="function"?l=clearTimeout:l=a}catch{l=a}})();function E(G){if(r===setTimeout)return setTimeout(G,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(G,0);try{return r(G,0)}catch{try{return r.call(null,G,0)}catch{return r.call(this,G,0)}}}function w(G){if(l===clearTimeout)return clearTimeout(G);if((l===a||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(G);try{return l(G)}catch{try{return l.call(null,G)}catch{return l.call(this,G)}}}var D=[],C=!1,x,O=-1;function H(){!C||!x||(C=!1,x.length?D=x.concat(D):O=-1,D.length&&L())}function L(){if(!C){var G=E(H);C=!0;for(var re=D.length;re;){for(x=D,D=[];++O<re;)x&&x[O].run();O=-1,re=D.length}x=null,C=!1,w(G)}}e.nextTick=function(G){var re=new Array(arguments.length-1);if(arguments.length>1)for(var I=1;I<arguments.length;I++)re[I-1]=arguments[I];D.push(new M(G,re)),D.length===1&&!C&&E(L)};function M(G,re){this.fun=G,this.array=re}M.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function Y(){}e.on=Y,e.addListener=Y,e.once=Y,e.off=Y,e.removeListener=Y,e.removeAllListeners=Y,e.emit=Y,e.prependListener=Y,e.prependOnceListener=Y,e.listeners=function(G){return[]},e.binding=function(G){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(G){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},"./node_modules/webpack/buildin/amd-options.js":function(i,t){(function(e){i.exports=e}).call(this,{})},"./node_modules/webpack/buildin/global.js":function(i,t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}i.exports=e},"./node_modules/webpack/buildin/module.js":function(i,t){i.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./package.json":function(i){i.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.4.21","description":"JavaScript SDK for [\u817E\u8BAF\u4E91\u5BF9\u8C61\u5B58\u50A8](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js test/test.js server/sts.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"@xmldom/xmldom":"^0.8.6"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},"./src/advance.js":function(i,t,e){var r=e("./node_modules/@babel/runtime/helpers/typeof.js"),l=e("./src/session.js"),o=e("./src/async.js"),a=e("./src/event.js").EventProxy,E=e("./src/util.js"),w=e("./src/tracker.js");function D(v,q){var V=this,U=new a,K=v.TaskId,B=v.Bucket,j=v.Region,X=v.Key,W=v.Body,J=v.ChunkSize||v.SliceSize||V.options.ChunkSize,se=v.AsyncLimit,ae=v.StorageClass,oe=v.ServerSideEncryption,ie,ce,le=v.onHashProgress,pe=v.tracker;pe&&pe.setParams({chunkSize:J}),U.on("error",function(Z){if(!!V._isRunningTask(K))return Z.UploadId=v.UploadData.UploadId||"",q(Z)}),U.on("upload_complete",function(Z){var te=E.extend({UploadId:v.UploadData.UploadId||""},Z);q(null,te)}),U.on("upload_slice_complete",function(Z){var te={};E.each(v.Headers,function(ge,ye){var ve=ye.toLowerCase();(ve.indexOf("x-cos-meta-")===0||ve==="pic-operations")&&(te[ye]=ge)}),M.call(V,{Bucket:B,Region:j,Key:X,UploadId:Z.UploadId,SliceList:Z.SliceList,Headers:te,tracker:pe},function(ge,ye){if(!!V._isRunningTask(K)){if(l.removeUsing(Z.UploadId),ge)return ce(null,!0),U.emit("error",ge);l.removeUploadId.call(V,Z.UploadId),ce({loaded:ie,total:ie},!0),U.emit("upload_complete",ye)}})}),U.on("get_upload_data_finish",function(Z){var te=l.getFileId(W,v.ChunkSize,B,X);te&&l.saveUploadId.call(V,te,Z.UploadId,V.options.UploadIdCacheLimit),l.setUsing(Z.UploadId),ce(null,!0),H.call(V,{TaskId:K,Bucket:B,Region:j,Key:X,Body:W,FileSize:ie,SliceSize:J,AsyncLimit:se,ServerSideEncryption:oe,UploadData:Z,Headers:v.Headers,onProgress:ce,tracker:pe},function(ge,ye){if(!!V._isRunningTask(K)){if(ge)return ce(null,!0),U.emit("error",ge);U.emit("upload_slice_complete",ye)}})}),U.on("get_file_size_finish",function(){if(ce=E.throttleOnProgress.call(V,ie,v.onProgress),v.UploadData.UploadId)U.emit("get_upload_data_finish",v.UploadData);else{var Z=E.extend({TaskId:K,Bucket:B,Region:j,Key:X,Headers:v.Headers,StorageClass:ae,Body:W,FileSize:ie,SliceSize:J,onHashProgress:le,tracker:pe},v);C.call(V,Z,function(te,ge){if(!!V._isRunningTask(K)){if(te)return U.emit("error",te);v.UploadData.UploadId=ge.UploadId,v.UploadData.PartList=ge.PartList,U.emit("get_upload_data_finish",v.UploadData)}})}}),ie=v.ContentLength,delete v.ContentLength,!v.Headers&&(v.Headers={}),E.each(v.Headers,function(Z,te){te.toLowerCase()==="content-length"&&delete v.Headers[te]}),function(){for(var Z=[1,2,4,8,16,32,64,128,256,512,1024,1024*2,1024*4,1024*5],te=1024*1024,ge=0;ge<Z.length&&(te=Z[ge]*1024*1024,!(ie/te<=V.options.MaxPartNumber));ge++);v.ChunkSize=v.SliceSize=J=Math.max(J,te)}(),ie===0?(v.Body="",v.ContentLength=0,v.SkipTask=!0,V.putObject(v,q)):U.emit("get_file_size_finish")}function C(v,q){var V=v.TaskId,U=v.Bucket,K=v.Region,B=v.Key,j=v.StorageClass,X=this,W={},J=v.FileSize,se=v.SliceSize,ae=Math.ceil(J/se),oe=0,ie=E.throttleOnProgress.call(X,J,v.onHashProgress),ce=function(te,ge){var ye=se*(te-1),ve=Math.min(ye+se,J),me=ve-ye;W[te]?ge(null,{PartNumber:te,ETag:W[te],Size:me}):E.fileSlice(v.Body,ye,ve,!1,function(Ce){E.getFileMd5(Ce,function(Ae,De){if(Ae)return ge(E.error(Ae));var be='"'+De+'"';W[te]=be,oe+=me,ie({loaded:oe,total:J}),ge(null,{PartNumber:te,ETag:be,Size:me})})})},le=function(te,ge){var ye=te.length;if(ye===0)return ge(null,!0);if(ye>ae)return ge(null,!1);if(ye>1){var ve=Math.max(te[0].Size,te[1].Size);if(ve!==se)return ge(null,!1)}var me=function Ce(Ae){if(Ae<ye){var De=te[Ae];ce(De.PartNumber,function(be,we){we&&we.ETag===De.ETag&&we.Size===De.Size?Ce(Ae+1):ge(null,!1)})}else ge(null,!0)};me(0)},pe=new a;pe.on("error",function(Z){if(!!X._isRunningTask(V))return q(Z)}),pe.on("upload_id_available",function(Z){var te={},ge=[];E.each(Z.PartList,function(me){te[me.PartNumber]=me});for(var ye=1;ye<=ae;ye++){var ve=te[ye];ve?(ve.PartNumber=ye,ve.Uploaded=!0):ve={PartNumber:ye,ETag:null,Uploaded:!1},ge.push(ve)}Z.PartList=ge,q(null,Z)}),pe.on("no_available_upload_id",function(){if(!!X._isRunningTask(V)){var Z=E.extend({Bucket:U,Region:K,Key:B,Query:E.clone(v.Query),StorageClass:j,Body:v.Body,calledBySdk:"sliceUploadFile",tracker:v.tracker},v),te=E.clone(v.Headers);delete te["x-cos-mime-limit"],Z.Headers=te,X.multipartInit(Z,function(ge,ye){if(!!X._isRunningTask(V)){if(ge)return pe.emit("error",ge);var ve=ye.UploadId;if(!ve)return q(E.error(new Error("no such upload id")));pe.emit("upload_id_available",{UploadId:ve,PartList:[]})}})}}),pe.on("has_and_check_upload_id",function(Z){Z=Z.reverse(),o.eachLimit(Z,1,function(te,ge){if(!!X._isRunningTask(V)){if(l.using[te]){ge();return}O.call(X,{Bucket:U,Region:K,Key:B,UploadId:te,tracker:v.tracker},function(ye,ve){if(!!X._isRunningTask(V)){if(ye)return l.removeUsing(te),pe.emit("error",ye);var me=ve.PartList;me.forEach(function(Ce){Ce.PartNumber*=1,Ce.Size*=1,Ce.ETag=Ce.ETag||""}),le(me,function(Ce,Ae){if(!!X._isRunningTask(V)){if(Ce)return pe.emit("error",Ce);Ae?ge({UploadId:te,PartList:me}):ge()}})}})}},function(te){!X._isRunningTask(V)||(ie(null,!0),te&&te.UploadId?pe.emit("upload_id_available",te):pe.emit("no_available_upload_id"))})}),pe.on("seek_local_avail_upload_id",function(Z){var te=l.getFileId(v.Body,v.ChunkSize,U,B),ge=l.getUploadIdList.call(X,te);if(!te||!ge){pe.emit("has_and_check_upload_id",Z);return}var ye=function ve(me){if(me>=ge.length){pe.emit("has_and_check_upload_id",Z);return}var Ce=ge[me];if(!E.isInArray(Z,Ce)){l.removeUploadId.call(X,Ce),ve(me+1);return}if(l.using[Ce]){ve(me+1);return}O.call(X,{Bucket:U,Region:K,Key:B,UploadId:Ce,tracker:v.tracker},function(Ae,De){!X._isRunningTask(V)||(Ae?(l.removeUploadId.call(X,Ce),ve(me+1)):pe.emit("upload_id_available",{UploadId:Ce,PartList:De.PartList}))})};ye(0)}),pe.on("get_remote_upload_id_list",function(){x.call(X,{Bucket:U,Region:K,Key:B,tracker:v.tracker},function(Z,te){if(!!X._isRunningTask(V)){if(Z)return pe.emit("error",Z);var ge=E.filter(te.UploadList,function(me){return me.Key===B&&(!j||me.StorageClass.toUpperCase()===j.toUpperCase())}).reverse().map(function(me){return me.UploadId||me.UploadID});if(ge.length)pe.emit("seek_local_avail_upload_id",ge);else{var ye=l.getFileId(v.Body,v.ChunkSize,U,B),ve;ye&&(ve=l.getUploadIdList.call(X,ye))&&E.each(ve,function(me){l.removeUploadId.call(X,me)}),pe.emit("no_available_upload_id")}}})}),pe.emit("get_remote_upload_id_list")}function x(v,q){var V=this,U=[],K={Bucket:v.Bucket,Region:v.Region,Prefix:v.Key,calledBySdk:v.calledBySdk||"sliceUploadFile",tracker:v.tracker},B=function j(){V.multipartList(K,function(X,W){if(X)return q(X);U.push.apply(U,W.Upload||[]),W.IsTruncated==="true"?(K.KeyMarker=W.NextKeyMarker,K.UploadIdMarker=W.NextUploadIdMarker,j()):q(null,{UploadList:U})})};B()}function O(v,q){var V=this,U=[],K={Bucket:v.Bucket,Region:v.Region,Key:v.Key,UploadId:v.UploadId,calledBySdk:"sliceUploadFile",tracker:v.tracker},B=function j(){V.multipartListPart(K,function(X,W){if(X)return q(X);U.push.apply(U,W.Part||[]),W.IsTruncated==="true"?(K.PartNumberMarker=W.NextPartNumberMarker,j()):q(null,{PartList:U})})};B()}function H(v,q){var V=this,U=v.TaskId,K=v.Bucket,B=v.Region,j=v.Key,X=v.UploadData,W=v.FileSize,J=v.SliceSize,se=Math.min(v.AsyncLimit||V.options.ChunkParallelLimit||1,256),ae=v.Body,oe=Math.ceil(W/J),ie=0,ce=v.ServerSideEncryption,le=v.Headers,pe=E.filter(X.PartList,function(te){return te.Uploaded&&(ie+=te.PartNumber>=oe&&W%J||J),!te.Uploaded}),Z=v.onProgress;o.eachLimit(pe,se,function(te,ge){if(!!V._isRunningTask(U)){var ye=te.PartNumber,ve=Math.min(W,te.PartNumber*J)-(te.PartNumber-1)*J,me=0;L.call(V,{TaskId:U,Bucket:K,Region:B,Key:j,SliceSize:J,FileSize:W,PartNumber:ye,ServerSideEncryption:ce,Body:ae,UploadData:X,Headers:le,onProgress:function(Ae){ie+=Ae.loaded-me,me=Ae.loaded,Z({loaded:ie,total:W})},tracker:v.tracker},function(Ce,Ae){!V._isRunningTask(U)||(!Ce&&!Ae.ETag&&(Ce='get ETag error, please add "ETag" to CORS ExposeHeader setting.( \u83B7\u53D6ETag\u5931\u8D25\uFF0C\u8BF7\u5728CORS ExposeHeader\u8BBE\u7F6E\u4E2D\u6DFB\u52A0ETag\uFF0C\u8BF7\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/13318 )'),Ce?ie-=me:(ie+=ve-me,te.ETag=Ae.ETag),Z({loaded:ie,total:W}),ge(Ce||null,Ae))})}},function(te){if(!!V._isRunningTask(U)){if(te)return q(te);q(null,{UploadId:X.UploadId,SliceList:X.PartList})}})}function L(v,q){var V=this,U=v.TaskId,K=v.Bucket,B=v.Region,j=v.Key,X=v.FileSize,W=v.Body,J=v.PartNumber*1,se=v.SliceSize,ae=v.ServerSideEncryption,oe=v.UploadData,ie=v.Headers||{},ce=V.options.ChunkRetryTimes+1,le=se*(J-1),pe=se,Z=le+se;Z>X&&(Z=X,pe=Z-le);var te=["x-cos-traffic-limit","x-cos-mime-limit"],ge={};E.each(ie,function(ve,me){te.indexOf(me)>-1&&(ge[me]=ve)});var ye=oe.PartList[J-1];o.retry(ce,function(ve){!V._isRunningTask(U)||E.fileSlice(W,le,Z,!0,function(me){V.multipartUpload({TaskId:U,Bucket:K,Region:B,Key:j,ContentLength:pe,PartNumber:J,UploadId:oe.UploadId,ServerSideEncryption:ae,Body:me,Headers:ge,onProgress:v.onProgress,calledBySdk:"sliceUploadFile",tracker:v.tracker},function(Ce,Ae){if(!!V._isRunningTask(U))return Ce?ve(Ce):(ye.Uploaded=!0,ve(null,Ae))})})},function(ve,me){if(!!V._isRunningTask(U))return q(ve,me)})}function M(v,q){var V=v.Bucket,U=v.Region,K=v.Key,B=v.UploadId,j=v.SliceList,X=this,W=this.options.ChunkRetryTimes+1,J=v.Headers,se=j.map(function(ae){return{PartNumber:ae.PartNumber,ETag:ae.ETag}});o.retry(W,function(ae){X.multipartComplete({Bucket:V,Region:U,Key:K,UploadId:B,Parts:se,Headers:J,calledBySdk:"sliceUploadFile",tracker:v.tracker},ae)},function(ae,oe){q(ae,oe)})}function Y(v,q){var V=v.Bucket,U=v.Region,K=v.Key,B=v.UploadId,j=v.Level||"task",X=v.AsyncLimit,W=this,J=new a;if(J.on("error",function(se){return q(se)}),J.on("get_abort_array",function(se){G.call(W,{Bucket:V,Region:U,Key:K,Headers:v.Headers,AsyncLimit:X,AbortArray:se},q)}),j==="bucket")x.call(W,{Bucket:V,Region:U,calledBySdk:"abortUploadTask"},function(se,ae){if(se)return q(se);J.emit("get_abort_array",ae.UploadList||[])});else if(j==="file"){if(!K)return q(E.error(new Error("abort_upload_task_no_key")));x.call(W,{Bucket:V,Region:U,Key:K,calledBySdk:"abortUploadTask"},function(se,ae){if(se)return q(se);J.emit("get_abort_array",ae.UploadList||[])})}else if(j==="task"){if(!B)return q(E.error(new Error("abort_upload_task_no_id")));if(!K)return q(E.error(new Error("abort_upload_task_no_key")));J.emit("get_abort_array",[{Key:K,UploadId:B}])}else return q(E.error(new Error("abort_unknown_level")))}function G(v,q){var V=v.Bucket,U=v.Region,K=v.Key,B=v.AbortArray,j=v.AsyncLimit||1,X=this,W=0,J=new Array(B.length);o.eachLimit(B,j,function(se,ae){var oe=W;if(K&&K!==se.Key){J[oe]={error:{KeyNotMatch:!0}},ae(null);return}var ie=se.UploadId||se.UploadID;X.multipartAbort({Bucket:V,Region:U,Key:se.Key,Headers:v.Headers,UploadId:ie},function(ce){var le={Bucket:V,Region:U,Key:se.Key,UploadId:ie};J[oe]={error:ce,task:le},ae(null)}),W++},function(se){if(se)return q(se);for(var ae=[],oe=[],ie=0,ce=J.length;ie<ce;ie++){var le=J[ie];le.task&&(le.error?oe.push(le.task):ae.push(le.task))}return q(null,{successList:ae,errorList:oe})})}function re(v,q){var V=this,U=v.SliceSize===void 0?V.options.SliceSize:v.SliceSize,K=[],B=v.Body,j=B.size||B.length||0,X={TaskId:""};if(V.options.EnableTracker){var W=V.options.UseAccelerate||typeof V.options.Domain=="string"&&V.options.Domain.includes("accelerate.");v.tracker=new w({bucket:v.Bucket,region:v.Region,apiName:"uploadFile",fileKey:v.Key,fileSize:j,accelerate:W,deepTracker:V.options.DeepTracker,customId:V.options.CustomId,delay:V.options.TrackerDelay})}E.each(v,function(ce,le){r(ce)!=="object"&&typeof ce!="function"&&(X[le]=ce)});var J=v.onTaskReady,se=function(le){X.TaskId=le,J&&J(le)};v.onTaskReady=se;var ae=j>U?"sliceUploadFile":"putObject",oe=v.onFileFinish,ie=function(le,pe){v.tracker&&v.tracker.formatResult(le,pe),oe&&oe(le,pe,X),q&&q(le,pe)};K.push({api:ae,params:v,callback:ie}),V._addTasks(K)}function I(v,q){var V=this,U=v.SliceSize===void 0?V.options.SliceSize:v.SliceSize,K=0,B=0,j=E.throttleOnProgress.call(V,B,v.onProgress),X=v.files.length,W=v.onFileFinish,J=Array(X),se=function(ie,ce,le){j(null,!0),W&&W(ie,ce,le),J[le.Index]={options:le,error:ie,data:ce},--X<=0&&q&&q(null,{files:J})},ae=[];E.each(v.files,function(oe,ie){(function(){var ce=oe.Body,le=ce.size||ce.length||0,pe={Index:ie,TaskId:""};if(!V.options.UseRawKey&&oe.Key&&oe.Key.substr(0,1)==="/"&&(oe.Key=oe.Key.substr(1)),K+=le,V.options.EnableTracker){var Z=V.options.UseAccelerate||typeof V.options.Domain=="string"&&V.options.Domain.includes("accelerate.");oe.tracker=new w({bucket:oe.Bucket,region:oe.Region,apiName:"uploadFiles",fileKey:oe.Key,fileSize:le,accelerate:Z,deepTracker:V.options.DeepTracker,customId:V.options.CustomId,delay:V.options.TrackerDelay})}E.each(oe,function(be,we){r(be)!=="object"&&typeof be!="function"&&(pe[we]=be)});var te=oe.onTaskReady,ge=function(we){pe.TaskId=we,te&&te(we)};oe.onTaskReady=ge;var ye=0,ve=oe.onProgress,me=function(we){B=B-ye+we.loaded,ye=we.loaded,ve&&ve(we),j({loaded:B,total:K})};oe.onProgress=me;var Ce=le>U?"sliceUploadFile":"putObject",Ae=oe.onFileFinish,De=function(we,_e){oe.tracker&&oe.tracker.formatResult(we,_e),Ae&&Ae(we,_e),se&&se(we,_e,pe)};ae.push({api:Ce,params:oe,callback:De})})()}),V._addTasks(ae)}function T(v,q){var V=new a,U=this,K=v.Bucket,B=v.Region,j=v.Key,X=v.CopySource,W=E.getSourceParams.call(this,X);if(!W){q(E.error(new Error("CopySource format error")));return}var J=W.Bucket,se=W.Region,ae=decodeURIComponent(W.Key),oe=v.CopySliceSize===void 0?U.options.CopySliceSize:v.CopySliceSize;oe=Math.max(0,oe);var ie=v.CopyChunkSize||this.options.CopyChunkSize,ce=this.options.CopyChunkParallelLimit,le=this.options.ChunkRetryTimes+1,pe=0,Z=0,te,ge,ye={},ve={},me={};V.on("copy_slice_complete",function(Ce){E.each(v.Headers,function(De,be){be.toLowerCase().indexOf("x-cos-meta-")===0});var Ae=E.map(Ce.PartList,function(De){return{PartNumber:De.PartNumber,ETag:De.ETag}});o.retry(le,function(De){U.multipartComplete({Bucket:K,Region:B,Key:j,UploadId:Ce.UploadId,Parts:Ae,calledBySdk:"sliceCopyFile"},De)},function(De,be){if(l.removeUsing(Ce.UploadId),De)return ge(null,!0),q(De);l.removeUploadId(Ce.UploadId),ge({loaded:te,total:te},!0),q(null,be)})}),V.on("get_copy_data_finish",function(Ce){var Ae=l.getCopyFileId(X,ye,ie,K,j);Ae&&l.saveUploadId(Ae,Ce.UploadId,U.options.UploadIdCacheLimit),l.setUsing(Ce.UploadId);var De=E.filter(Ce.PartList,function(be){return be.Uploaded&&(Z+=be.PartNumber>=pe&&te%ie||ie),!be.Uploaded});o.eachLimit(De,ce,function(be,we){var _e=be.PartNumber,qe=be.CopySourceRange,Me=be.end-be.start;o.retry(le,function(ne){A.call(U,{Bucket:K,Region:B,Key:j,CopySource:X,UploadId:Ce.UploadId,PartNumber:_e,CopySourceRange:qe},ne)},function(ne,p){if(ne)return we(ne);Z+=Me,ge({loaded:Z,total:te}),be.ETag=p.ETag,we(ne||null,p)})},function(be){if(be)return l.removeUsing(Ce.UploadId),ge(null,!0),q(be);V.emit("copy_slice_complete",Ce)})}),V.on("get_chunk_size_finish",function(){var Ce=function(){U.multipartInit({Bucket:K,Region:B,Key:j,Headers:me},function(_e,qe){if(_e)return q(_e);v.UploadId=qe.UploadId,V.emit("get_copy_data_finish",{UploadId:v.UploadId,PartList:v.PartList})})},Ae=l.getCopyFileId(X,ye,ie,K,j),De=l.getUploadIdList(Ae);if(!Ae||!De)return Ce();var be=function we(_e){if(_e>=De.length)return Ce();var qe=De[_e];if(l.using[qe])return we(_e+1);O.call(U,{Bucket:K,Region:B,Key:j,UploadId:qe},function(Me,ne){if(Me)l.removeUploadId(qe),we(_e+1);else{if(l.using[qe])return we(_e+1);var p={},c=0;E.each(ne.PartList,function(s){var d=parseInt(s.Size),y=c+d-1;p[s.PartNumber+"|"+c+"|"+y]=s.ETag,c+=d}),E.each(v.PartList,function(s){var d=p[s.PartNumber+"|"+s.start+"|"+s.end];d&&(s.ETag=d,s.Uploaded=!0)}),V.emit("get_copy_data_finish",{UploadId:qe,PartList:v.PartList})}})};be(0)}),V.on("get_file_size_finish",function(){if(function(){for(var Ae=[1,2,4,8,16,32,64,128,256,512,1024,1024*2,1024*4,1024*5],De=1024*1024,be=0;be<Ae.length&&(De=Ae[be]*1024*1024,!(te/De<=U.options.MaxPartNumber));be++);v.ChunkSize=ie=Math.max(ie,De),pe=Math.ceil(te/ie);for(var we=[],_e=1;_e<=pe;_e++){var qe=(_e-1)*ie,Me=_e*ie<te?_e*ie-1:te-1,ne={PartNumber:_e,start:qe,end:Me,CopySourceRange:"bytes="+qe+"-"+Me};we.push(ne)}v.PartList=we}(),v.Headers["x-cos-metadata-directive"]==="Replaced"?me=v.Headers:me=ve,me["x-cos-storage-class"]=v.Headers["x-cos-storage-class"]||ve["x-cos-storage-class"],me=E.clearKey(me),ve["x-cos-storage-class"]==="ARCHIVE"||ve["x-cos-storage-class"]==="DEEP_ARCHIVE"){var Ce=ve["x-cos-restore"];if(!Ce||Ce==='ongoing-request="true"'){q(E.error(new Error("Unrestored archive object is not allowed to be copied")));return}}delete me["x-cos-copy-source"],delete me["x-cos-metadata-directive"],delete me["x-cos-copy-source-If-Modified-Since"],delete me["x-cos-copy-source-If-Unmodified-Since"],delete me["x-cos-copy-source-If-Match"],delete me["x-cos-copy-source-If-None-Match"],V.emit("get_chunk_size_finish")}),U.headObject({Bucket:J,Region:se,Key:ae},function(Ce,Ae){if(Ce){Ce.statusCode&&Ce.statusCode===404?q(E.error(Ce,{ErrorStatus:ae+" Not Exist"})):q(Ce);return}if(te=v.FileSize=Ae.headers["content-length"],te===void 0||!te){q(E.error(new Error('get Content-Length error, please add "Content-Length" to CORS ExposeHeader setting.\uFF08 \u83B7\u53D6Content-Length\u5931\u8D25\uFF0C\u8BF7\u5728CORS ExposeHeader\u8BBE\u7F6E\u4E2D\u6DFB\u52A0Content-Length\uFF0C\u8BF7\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/13318 \uFF09')));return}if(ge=E.throttleOnProgress.call(U,te,v.onProgress),te<=oe)v.Headers["x-cos-metadata-directive"]||(v.Headers["x-cos-metadata-directive"]="Copy"),U.putObjectCopy(v,function(be,we){if(be)return ge(null,!0),q(be);ge({loaded:te,total:te},!0),q(be,we)});else{var De=Ae.headers;ye=De,ve={"Cache-Control":De["cache-control"],"Content-Disposition":De["content-disposition"],"Content-Encoding":De["content-encoding"],"Content-Type":De["content-type"],Expires:De.expires,"x-cos-storage-class":De["x-cos-storage-class"]},E.each(De,function(be,we){var _e="x-cos-meta-";we.indexOf(_e)===0&&we.length>_e.length&&(ve[we]=be)}),V.emit("get_file_size_finish")}})}function A(v,q){var V=v.TaskId,U=v.Bucket,K=v.Region,B=v.Key,j=v.CopySource,X=v.UploadId,W=v.PartNumber*1,J=v.CopySourceRange,se=this.options.ChunkRetryTimes+1,ae=this;o.retry(se,function(oe){ae.uploadPartCopy({TaskId:V,Bucket:U,Region:K,Key:B,CopySource:j,UploadId:X,PartNumber:W,CopySourceRange:J},function(ie,ce){oe(ie||null,ce)})},function(oe,ie){return q(oe,ie)})}var N={sliceUploadFile:D,abortUploadTask:Y,uploadFile:re,uploadFiles:I,sliceCopyFile:T};i.exports.init=function(v,q){q.transferToTaskMethod(N,"sliceUploadFile"),E.each(N,function(V,U){v.prototype[U]=E.apiWrapper(U,V)})}},"./src/async.js":function(i,t){var e=function(a,E,w,D){if(D=D||function(){},!a.length||E<=0)return D();var C=0,x=0,O=0;(function H(){if(C>=a.length)return D();for(;O<E&&x<a.length;)x+=1,O+=1,w(a[x-1],function(L){L?(D(L),D=function(){}):(C+=1,O-=1,C>=a.length?D():H())})})()},r=function(a,E,w){var D=function C(x){E(function(O,H){O&&x<a?C(x+1):w(O,H)})};a<1?w():D(1)},l={eachLimit:e,retry:r};i.exports=l},"./src/base.js":function(i,t,e){var r=e("./node_modules/@babel/runtime/helpers/typeof.js"),l=e("./lib/request.js"),o=e("./src/util.js");function a(n,m){typeof n=="function"&&(m=n,n={});var u=this.options.Protocol||(o.isBrowser&&(typeof location=="undefined"?"undefined":r(location))==="object"&&location.protocol==="http:"?"http:":"https:"),h=this.options.ServiceDomain,b=n.AppId||this.options.appId,S=n.Region;h?(h=h.replace(/\{\{AppId\}\}/gi,b||"").replace(/\{\{Region\}\}/gi,S||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\
- `),Xe=["sha1",Fe,a.SHA1(We).toString(),""].join(`
- `),rt=a.HmacSHA1(Xe,ze).toString(),et=["q-sign-algorithm="+Pe,"q-ak="+ke,"q-sign-time="+Fe,"q-key-time="+Ve,"q-header-list="+Ke,"q-url-param-list="+Ge,"q-signature="+rt].join("&");return et},G=function(p,c,s){var d=c/8,y=p.slice(s,s+d);return new Uint8Array(y).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[c](y)[0]},re=function(p,c,s,d){var y=p.slice(c,s),k="";return new Uint8Array(y).forEach(function(P){k+=String.fromCharCode(P)}),d&&(k=decodeURIComponent(escape(k))),k},I=function(p){for(var c={},s=re(p),d={records:[]};p.byteLength;){var y=G(p,32,0),k=G(p,32,4),P=y-k-16,Q=0,de;for(p=p.slice(12);Q<k;){var he=G(p,8,Q),$=re(p,Q+1,Q+1+he),Te=G(p,16,Q+he+2),Ie=re(p,Q+he+4,Q+he+4+Te);c[$]=Ie,Q+=he+4+Te}if(c[":event-type"]==="Records")de=re(p,Q,Q+P,!0),d.records.push(de);else if(c[":event-type"]==="Stats")de=re(p,Q,Q+P,!0),d.stats=Me.xml2json(de).Stats;else if(c[":event-type"]==="error"){var Pe=c[":error-code"],ke=c[":error-message"],Fe=new Error(ke);Fe.message=ke,Fe.name=Fe.code=Pe,d.error=Fe}p=p.slice(Q+P+4)}return{payload:d.records.join(""),body:s}},T=function(p){var c=this.options.CopySourceParser;if(c)return c(p);var s=p.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return s?{Bucket:s[1],Region:s[3],Key:s[7]}:null},A=function(){},N=function(p){var c={};for(var s in p)p.hasOwnProperty(s)&&p[s]!==void 0&&p[s]!==null&&(c[s]=p[s]);return c},v=function(p,c){var s,d=new FileReader;FileReader.prototype.readAsBinaryString?(s=FileReader.prototype.readAsBinaryString,d.onload=function(){c(this.result)}):FileReader.prototype.readAsArrayBuffer?s=function(k){var P="",Q=new FileReader;Q.onload=function(de){for(var he=new Uint8Array(Q.result),$=he.byteLength,Te=0;Te<$;Te++)P+=String.fromCharCode(he[Te]);c(P)},Q.readAsArrayBuffer(k)}:console.error("FileReader not support readAsBinaryString"),s.call(d,p)},q=function(){var ne=function(s,d){s=s.split("."),d=d.split(".");for(var y=0;y<d.length;y++)if(s[y]!==d[y])return parseInt(s[y])>parseInt(d[y])?1:-1;return 0},p=function(s){if(!s)return!1;var d=(s.match(/Chrome\/([.\d]+)/)||[])[1],y=(s.match(/QBCore\/([.\d]+)/)||[])[1],k=(s.match(/QQBrowser\/([.\d]+)/)||[])[1],P=d&&ne(d,"53.0.2785.116")<0&&y&&ne(y,"3.53.991.400")<0&&k&&ne(k,"9.0.2524.400")<=0||!1;return P};return p(typeof navigator!="undefined"&&navigator.userAgent)}(),V=function(p,c,s,d,y){var k;if(p.slice?k=p.slice(c,s):p.mozSlice?k=p.mozSlice(c,s):p.webkitSlice&&(k=p.webkitSlice(c,s)),d&&q){var P=new FileReader;P.onload=function(Q){k=null,y(new Blob([P.result]))},P.readAsArrayBuffer(k)}else y(k)},U=function(p,c,s,d){s=s||A,p?typeof c=="string"?s(Me.md5(c,!0)):Blob&&c instanceof Blob?Me.getFileMd5(c,function(y,k){s(k)},d):s():s()},K=1024*1024,B=function(p,c,s){var d=p.size,y=0,k=o.getCtx(),P=function Q(de){if(de>=d){var he=k.digest("hex");c(null,he);return}var $=Math.min(d,de+K);Me.fileSlice(p,de,$,!1,function(Te){v(Te,function(Ie){Te=null,k=k.update(Ie,!0),y+=Ie.length,Ie=null,s&&s({loaded:y,total:d,percent:Math.round(y/d*1e4)/1e4}),Q(de+K)})})};P(0)};function j(ne){return ie(ne,function(p){return l(p)==="object"&&p!==null?j(p):p})}function X(ne,p,c){return ne&&p in ne?ne[p]:c}function W(ne,p){return oe(p,function(c,s){ne[s]=p[s]}),ne}function J(ne){return ne instanceof Array}function se(ne,p){for(var c=!1,s=0;s<ne.length;s++)if(p===ne[s]){c=!0;break}return c}function ae(ne){return J(ne)?ne:[ne]}function oe(ne,p){for(var c in ne)ne.hasOwnProperty(c)&&p(ne[c],c)}function ie(ne,p){var c=J(ne)?[]:{};for(var s in ne)ne.hasOwnProperty(s)&&(c[s]=p(ne[s],s));return c}function ce(ne,p){var c=J(ne),s=c?[]:{};for(var d in ne)ne.hasOwnProperty(d)&&p(ne[d],d)&&(c?s.push(ne[d]):s[d]=ne[d]);return s}var le=function(p){var c,s,d,y="";for(c=0,s=p.length/2;c<s;c++)d=parseInt(p[c*2]+p[c*2+1],16),y+=String.fromCharCode(d);return btoa(y)},pe=function(){var p=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return p()+p()+"-"+p()+"-"+p()+"-"+p()+"-"+p()+p()+p()},Z=function(p,c){var s=c.Bucket,d=c.Region,y=c.Key,k=this.options.Domain,P=!k||typeof k=="string"&&k.indexOf("{Bucket}")>-1,Q=!k||typeof k=="string"&&k.indexOf("{Region}")>-1;if(p.indexOf("Bucket")>-1||p==="deleteMultipleObject"||p==="multipartList"||p==="listObjectVersions"){if(P&&!s)return"Bucket";if(Q&&!d)return"Region"}else if(p.indexOf("Object")>-1||p.indexOf("multipart")>-1||p==="sliceUploadFile"||p==="abortUploadTask"){if(P&&!s)return"Bucket";if(Q&&!d)return"Region";if(!y)return"Key"}return!1},te=function(p,c){if(c=W({},c),p!=="getAuth"&&p!=="getV4Auth"&&p!=="getObjectUrl"){var s=c.Headers||{};if(c&&l(c)==="object"){(function(){for(var y in c)c.hasOwnProperty(y)&&y.indexOf("x-cos-")>-1&&(s[y]=c[y])})();var d={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations"};Me.each(d,function(y,k){c[y]!==void 0&&(s[k]=c[y])}),c.Headers=N(s)}}return c},ge=function(p,c){return function(s,d){var y=this;typeof s=="function"&&(d=s,s={}),s=te(p,s);var k;if(y.options.EnableTracker)if(s.calledBySdk==="sliceUploadFile")k=s.tracker&&s.tracker.generateSubTracker({apiName:p});else if(["uploadFile","uploadFiles"].includes(p))k=null;else{var P=-1;s.Body&&(P=typeof s.Body=="string"?s.Body.length:s.Body.size||s.Body.byteLength||-1),k=new C({bucket:s.Bucket,region:s.Region,apiName:p,fileKey:s.Key,fileSize:P,deepTracker:y.options.DeepTracker,customId:y.options.CustomId,delay:y.options.TrackerDelay})}s.tracker=k;var Q=function(ke){return ke&&ke.headers&&(ke.headers["x-cos-request-id"]&&(ke.RequestId=ke.headers["x-cos-request-id"]),ke.headers["x-ci-request-id"]&&(ke.RequestId=ke.headers["x-ci-request-id"]),ke.headers["x-cos-version-id"]&&(ke.VersionId=ke.headers["x-cos-version-id"]),ke.headers["x-cos-delete-marker"]&&(ke.DeleteMarker=ke.headers["x-cos-delete-marker"])),ke},de=function(ke,Fe){k&&k.formatResult(ke,Fe),d&&d(Q(ke),Q(Fe))},he=function(){if(p!=="getService"&&p!=="abortUploadTask"){var ke=Z.call(y,p,s);if(ke)return"missing param "+ke;if(s.Region){if(y.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(s.Region))return"Region format error."}else{if(s.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(s.Region))return"Region format error."}!y.options.CompatibilityMode&&s.Region.indexOf("-")===-1&&s.Region!=="yfb"&&s.Region!=="default"&&s.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(s.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(s.Bucket))if(s.AppId)s.Bucket=s.Bucket+"-"+s.AppId;else if(y.options.AppId)s.Bucket=s.Bucket+"-"+y.options.AppId;else return'Bucket should format as "test-1250000000".';s.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete s.AppId)}!y.options.UseRawKey&&s.Key&&s.Key.substr(0,1)==="/"&&(s.Key=s.Key.substr(1))}},$=he(),Te=["getAuth","getObjectUrl"].includes(p);if(typeof Promise=="function"&&!Te&&!d)return new Promise(function(Pe,ke){if(d=function(Ve,Ke){Ve?ke(Ve):Pe(Ke)},$)return de(Me.error(new Error($)));c.call(y,s,de)});if($)return de(Me.error(new Error($)));var Ie=c.call(y,s,de);if(Te)return Ie}},ye=function(p,c){var s=this,d=0,y=0,k=Date.now(),P,Q;function de(){if(Q=0,c&&typeof c=="function"){P=Date.now();var he=Math.max(0,Math.round((y-d)/((P-k)/1e3)*100)/100)||0,$;y===0&&p===0?$=1:$=Math.floor(y/p*100)/100||0,k=P,d=y;try{c({loaded:y,total:p,speed:he,percent:$})}catch{}}}return function(he,$){if(he&&(y=he.loaded,p=he.total),$)clearTimeout(Q),de();else{if(Q)return;Q=setTimeout(de,s.options.ProgressInterval)}}},ve=function(p,c,s){var d;if(typeof c.Body=="string"?c.Body=new Blob([c.Body],{type:"text/plain"}):c.Body instanceof ArrayBuffer&&(c.Body=new Blob([c.Body])),c.Body&&(c.Body instanceof Blob||c.Body.toString()==="[object File]"||c.Body.toString()==="[object Blob]"))d=c.Body.size;else{s(Me.error(new Error("params body format error, Only allow File|Blob|String.")));return}c.ContentLength=d,s(null,d)},me=function(p){return Date.now()+(p||0)},Ce=function(p,c){var s=p;return p.message=p.message||null,typeof c=="string"?(p.error=c,p.message=c):l(c)==="object"&&c!==null&&(W(p,c),(c.code||c.name)&&(p.code=c.code||c.name),c.message&&(p.message=c.message),c.stack&&(p.stack=c.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(p,"name",{writable:!0,enumerable:!1}),Object.defineProperty(p,"message",{enumerable:!0})),p.name=c&&c.name||p.name||p.code||"Error",p.code||(p.code=p.name),p.error||(p.error=j(s)),p},Ae=function(){return(typeof globalThis=="undefined"?"undefined":l(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},De=function(){return(typeof window=="undefined"?"undefined":l(window))!=="object"&&(typeof r=="undefined"?"undefined":l(r))==="object"&&!0&&!Ae()},be=function(p){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(p)},we=function(){if((typeof navigator=="undefined"?"undefined":l(navigator))!=="object")return!1;var ne=navigator.userAgent,p=!!ne.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return p}(),_e=function(){return(typeof navigator=="undefined"?"undefined":l(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),qe=function(p,c){var s=D.encode(p);return c&&(s=s.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),s},Me={noop:A,formatParams:te,apiWrapper:ge,xml2json:E,json2xml:w,md5:o,clearKey:N,fileSlice:V,getBodyMd5:U,getFileMd5:B,b64:le,extend:W,isArray:J,isInArray:se,makeArray:ae,each:oe,map:ie,filter:ce,clone:j,attr:X,uuid:pe,camSafeUrlEncode:x,throttleOnProgress:ye,getFileSize:ve,getSkewTime:me,error:Ce,obj2str:H,getAuth:Y,parseSelectPayload:I,getSourceParams:T,isBrowser:!0,isNode:De,isCIHost:be,isIOS_QQ:we&&_e,encodeBase64:qe};i.exports=Me}).call(this,e("./node_modules/process/browser.js"))}})})})(cosJsSdkV5);var COS=getDefaultExportFromCjs(cosJsSdkV5.exports);const ossSwitch="tencent",tencentBucket="daya-online-1303457149",getUploadSign=async i=>{const{bucketName:t,filename:e,postData:r}=i,l=ossSwitch;let o=t,a=e,E={};return o=tencentBucket,a="klx/"+e,E={key:"klx/"+r.key},request.post("/api-website/open/getUploadSign",{data:{postData:E,pluginName:l,bucketName:o,filename:a},params:{pluginName:l}})},onOnlyFileUpload=async(i,t)=>{{let e="",r=null;if(console.log(t,"params"),await new COS({Domain:"https://oss.dayaedu.com",getAuthorization:async(o,a)=>{a({Authorization:t.signature})}}).uploadFile({Bucket:tencentBucket,Region:"ap-nanjing",Key:`klx/${t.name}`,Body:t.file,SliceSize:1024*1024*500}).then(o=>{var a;((a=o.Location)==null?void 0:a.indexOf("http"))>=0?e=o.Location:e="https://"+o.Location}).catch(o=>{r=o}),e)return e;throw new Error(r)}};var Cropper=defineComponent({name:"cropper",props:{cropperNo:{type:Function,default:i=>{}},cropperOk:{type:Function,default:i=>{}},bucket:{type:String,default:"daya"}},data(){return{ossUploadUrl:`https:
|