wsemi 1.6.44 → 1.6.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/wsemi.umd.js +2 -2
- package/dist/wsemi.umd.js.map +1 -1
- package/docs/-_class.mjs.html +1 -1
- package/docs/ab2blob.mjs.html +1 -1
- package/docs/ab2u8arr.mjs.html +1 -1
- package/docs/addMonth.mjs.html +1 -1
- package/docs/aes2str.mjs.html +1 -1
- package/docs/alive.mjs.html +1 -1
- package/docs/arr2dt.mjs.html +1 -1
- package/docs/arrAccum.mjs.html +1 -1
- package/docs/arrAdd.mjs.html +1 -1
- package/docs/arrAt.mjs.html +1 -1
- package/docs/arrFilterByKeywords.mjs.html +1 -1
- package/docs/arrFilterByNum.mjs.html +1 -1
- package/docs/arrFilterByPnum.mjs.html +1 -1
- package/docs/arrFilterByPnumAndToLog.mjs.html +1 -1
- package/docs/arrFind.mjs.html +1 -1
- package/docs/arrGroupByMaxmin.mjs.html +1 -1
- package/docs/arrHas.mjs.html +1 -1
- package/docs/arrInsert.mjs.html +1 -1
- package/docs/arrLookupByMaxmin.mjs.html +1 -1
- package/docs/arrMulti.mjs.html +1 -1
- package/docs/arrNorm.mjs.html +1 -1
- package/docs/arrProduct.mjs.html +1 -1
- package/docs/arrSep.mjs.html +1 -1
- package/docs/arrSort.mjs.html +1 -1
- package/docs/asind.mjs.html +1 -1
- package/docs/atan2d.mjs.html +1 -1
- package/docs/atand.mjs.html +1 -1
- package/docs/attstr.mjs.html +1 -1
- package/docs/b642obj.mjs.html +1 -1
- package/docs/b642str.mjs.html +1 -1
- package/docs/b642u16arr.mjs.html +1 -1
- package/docs/b642u8arr.mjs.html +1 -1
- package/docs/binstr.mjs.html +1 -1
- package/docs/blob2ab.mjs.html +1 -1
- package/docs/blob2b64.mjs.html +1 -1
- package/docs/blob2str.mjs.html +1 -1
- package/docs/blob2u8arr.mjs.html +1 -1
- package/docs/blobs2b64s.mjs.html +1 -1
- package/docs/blobs2u8arrs.mjs.html +1 -1
- package/docs/bodyLog.mjs.html +1 -1
- package/docs/browserView.mjs.html +1 -1
- package/docs/browserViewFromBlob.mjs.html +1 -1
- package/docs/browserViewFromText.mjs.html +1 -1
- package/docs/browserViewFromU8arr.mjs.html +1 -1
- package/docs/bs2u8arr.mjs.html +1 -1
- package/docs/bufRead.mjs.html +1 -1
- package/docs/bufReadDbl.mjs.html +1 -1
- package/docs/bufWrite.mjs.html +1 -1
- package/docs/bufWriteDbl.mjs.html +1 -1
- package/docs/cache.mjs.html +1 -1
- package/docs/cbol.mjs.html +1 -1
- package/docs/cdbl.mjs.html +1 -1
- package/docs/cfilesize.mjs.html +1 -1
- package/docs/cfinancial.mjs.html +1 -1
- package/docs/cint.mjs.html +1 -1
- package/docs/clearXSS.mjs.html +1 -1
- package/docs/color.mjs.html +1 -1
- package/docs/composeToTree.mjs.html +1 -1
- package/docs/convertToTree.mjs.html +259 -250
- package/docs/copyStrToClipboard.mjs.html +1 -1
- package/docs/cosd.mjs.html +1 -1
- package/docs/cotd.mjs.html +1 -1
- package/docs/cscd.mjs.html +1 -1
- package/docs/cstr.mjs.html +1 -1
- package/docs/day2cht.mjs.html +1 -1
- package/docs/debounce.mjs.html +1 -1
- package/docs/delay.mjs.html +1 -1
- package/docs/dig.mjs.html +1 -1
- package/docs/digExp.mjs.html +1 -1
- package/docs/domAlert.mjs.html +1 -1
- package/docs/domAppend.mjs.html +1 -1
- package/docs/domCancelEvent.mjs.html +1 -1
- package/docs/domConvertToPic.mjs.html +1 -1
- package/docs/domConvertToPicDyn.mjs.html +1 -1
- package/docs/domDetect.mjs.html +1 -1
- package/docs/domDrag.mjs.html +1 -1
- package/docs/domDragBarAndScroll.mjs.html +1 -1
- package/docs/domDragPreview.mjs.html +1 -1
- package/docs/domDropFiles.mjs.html +1 -1
- package/docs/domFadeIn.mjs.html +1 -1
- package/docs/domFadeOut.mjs.html +1 -1
- package/docs/domFind.mjs.html +1 -1
- package/docs/domFinds.mjs.html +1 -1
- package/docs/domGetAttr.mjs.html +1 -1
- package/docs/domGetBoudRect.mjs.html +1 -1
- package/docs/domGetBoudRectRefSelf.mjs.html +1 -1
- package/docs/domGetFileAccept.mjs.html +1 -1
- package/docs/domGetFiles.mjs.html +1 -1
- package/docs/domGetPointFromEvent.mjs.html +1 -1
- package/docs/domGetScrollableParent.mjs.html +1 -1
- package/docs/domIsClientXYIn.mjs.html +1 -1
- package/docs/domIsFocused.mjs.html +1 -1
- package/docs/domIsVisible.mjs.html +1 -1
- package/docs/domPrepend.mjs.html +1 -1
- package/docs/domRemove.mjs.html +1 -1
- package/docs/domRipple.mjs.html +1 -1
- package/docs/domScrollIntoView.mjs.html +1 -1
- package/docs/domScrollTo.mjs.html +1 -1
- package/docs/domShowImages.mjs.html +1 -1
- package/docs/domShowImagesDyn.mjs.html +1 -1
- package/docs/domShowInputAndGetFiles.mjs.html +1 -1
- package/docs/domShowInputAndGetFilesU8Arrs.mjs.html +1 -1
- package/docs/domTooltip.mjs.html +1 -1
- package/docs/domTriggerEvent.mjs.html +1 -1
- package/docs/domVirtualCreate.mjs.html +1 -1
- package/docs/domVirtualCreateQueue.mjs.html +1 -1
- package/docs/downloadExcelFileFromData.mjs.html +1 -1
- package/docs/downloadExcelFileFromDataDyn.mjs.html +1 -1
- package/docs/downloadFileFromB64.mjs.html +1 -1
- package/docs/downloadFileFromBlob.mjs.html +1 -1
- package/docs/downloadFileFromText.mjs.html +1 -1
- package/docs/downloadFileFromU8Arr.mjs.html +1 -1
- package/docs/dtmapping.mjs.html +1 -1
- package/docs/dtpick.mjs.html +1 -1
- package/docs/evem.mjs.html +1 -1
- package/docs/examples/ex-blob2b64.html +1 -1
- package/docs/examples/ex-clearXSS.html +1 -1
- package/docs/examples/ex-colorConverter.html +1 -1
- package/docs/examples/ex-cryptojs.html +1 -1
- package/docs/examples/ex-dayjs.html +1 -1
- package/docs/examples/ex-domConvertToPic.html +1 -1
- package/docs/examples/ex-domConvertToPicDyn.html +1 -1
- package/docs/examples/ex-domDrag.html +1 -1
- package/docs/examples/ex-domDropFiles.html +1 -1
- package/docs/examples/ex-domIsVisible.html +1 -1
- package/docs/examples/ex-domRipple.html +1 -1
- package/docs/examples/ex-domScrollIntoView.html +1 -1
- package/docs/examples/ex-domScrollTo.html +1 -1
- package/docs/examples/ex-domShowImages.html +1 -1
- package/docs/examples/ex-domShowImagesDyn.html +1 -1
- package/docs/examples/ex-domTooltip.html +1 -1
- package/docs/examples/ex-getUserAgent.html +1 -1
- package/docs/examples/ex-getUserAgentDyn.html +1 -1
- package/docs/examples/ex-html2pic.html +1 -1
- package/docs/examples/ex-html2picDyn.html +1 -1
- package/docs/examples/ex-html2str.html +1 -1
- package/docs/examples/ex-html2strDyn.html +1 -1
- package/docs/examples/ex-lodash.html +1 -1
- package/docs/examples/ex-obj2u8arr-u8arr2obj.html +1 -1
- package/docs/examples/ex-ocr.html +1 -1
- package/docs/examples/ex-ocrDyn.html +1 -1
- package/docs/examples/ex-openLink.html +1 -1
- package/docs/examples/ex-strFindFuzz.html +1 -1
- package/docs/examples/ex-strFindFuzzDyn.html +1 -1
- package/docs/examples/ex-timeTZ2expire-timeTZ2past.html +1 -1
- package/docs/examples/ex-xlsx.html +1 -1
- package/docs/examples/ex-xlsxDyn.html +1 -1
- package/docs/execScript.mjs.html +1 -1
- package/docs/f2c.mjs.html +1 -1
- package/docs/files2data.mjs.html +1 -1
- package/docs/flattenToConn.mjs.html +1 -1
- package/docs/flattenTree.mjs.html +1 -1
- package/docs/fsCleanFolder.mjs.html +1 -1
- package/docs/fsCopyFolder.mjs.html +1 -1
- package/docs/fsCreateFolder.mjs.html +1 -1
- package/docs/fsDeleteFolder.mjs.html +1 -1
- package/docs/fsGetFilesInFolder.mjs.html +1 -1
- package/docs/fsGetFoldersInFolder.mjs.html +1 -1
- package/docs/fsIsFile.mjs.html +1 -1
- package/docs/fsIsFolder.mjs.html +1 -1
- package/docs/fsReadText.mjs.html +1 -1
- package/docs/fsTreeFolder.mjs.html +1 -1
- package/docs/fsWriteText.mjs.html +1 -1
- package/docs/genGradientColor.mjs.html +1 -1
- package/docs/genID.mjs.html +1 -1
- package/docs/genPm.mjs.html +1 -1
- package/docs/getBufferSize.mjs.html +1 -1
- package/docs/getClearPathName.mjs.html +1 -1
- package/docs/getCsvStrFromData.mjs.html +1 -1
- package/docs/getDataFromExcelFileU8Arr.mjs.html +1 -1
- package/docs/getDataFromExcelFileU8ArrDyn.mjs.html +1 -1
- package/docs/getDirName.mjs.html +1 -1
- package/docs/getEnv.mjs.html +1 -1
- package/docs/getExcelU8ArrFromData.mjs.html +1 -1
- package/docs/getExcelWorkbookFromData.mjs.html +1 -1
- package/docs/getExcelWorkbookFromWorksheet.mjs.html +1 -1
- package/docs/getFileAccept.mjs.html +1 -1
- package/docs/getFileName.mjs.html +1 -1
- package/docs/getFileTrueName.mjs.html +1 -1
- package/docs/getGlobal.mjs.html +1 -1
- package/docs/getObjSize.mjs.html +1 -1
- package/docs/getTimeBetween.mjs.html +1 -1
- package/docs/getTimeFromUnit.mjs.html +1 -1
- package/docs/getTimeObject.mjs.html +1 -1
- package/docs/getTimeRange.mjs.html +1 -1
- package/docs/getUserAgent.mjs.html +1 -1
- package/docs/getUserAgentDyn.mjs.html +1 -1
- package/docs/getltdtkeys.mjs.html +1 -1
- package/docs/haskey.mjs.html +1 -1
- package/docs/html2pic.mjs.html +1 -1
- package/docs/html2picDyn.mjs.html +1 -1
- package/docs/html2str.mjs.html +1 -1
- package/docs/html2strDyn.mjs.html +1 -1
- package/docs/htmlDecode.mjs.html +1 -1
- package/docs/htmlEncode.mjs.html +1 -1
- package/docs/importResources.mjs.html +1 -1
- package/docs/index.html +1 -1
- package/docs/interp1.mjs.html +1 -1
- package/docs/isDev.mjs.html +1 -1
- package/docs/isEle.mjs.html +1 -1
- package/docs/isEleExistByID.mjs.html +1 -1
- package/docs/isEmail.mjs.html +1 -1
- package/docs/isIE.mjs.html +1 -1
- package/docs/isNarrow.mjs.html +1 -1
- package/docs/isStrHasCapital.mjs.html +1 -1
- package/docs/isStrHasLowerCase.mjs.html +1 -1
- package/docs/isStrHasNumber.mjs.html +1 -1
- package/docs/isUserIdentify.mjs.html +1 -1
- package/docs/isUserName.mjs.html +1 -1
- package/docs/isUserPW.mjs.html +1 -1
- package/docs/isWindow.mjs.html +1 -1
- package/docs/isab.mjs.html +1 -1
- package/docs/isarr.mjs.html +1 -1
- package/docs/isarr0.mjs.html +1 -1
- package/docs/isblob.mjs.html +1 -1
- package/docs/isbol.mjs.html +1 -1
- package/docs/isday.mjs.html +1 -1
- package/docs/isearr.mjs.html +1 -1
- package/docs/iseobj.mjs.html +1 -1
- package/docs/iser.mjs.html +1 -1
- package/docs/isernot.mjs.html +1 -1
- package/docs/isestr.mjs.html +1 -1
- package/docs/isfun.mjs.html +1 -1
- package/docs/isint.mjs.html +1 -1
- package/docs/ismonth.mjs.html +1 -1
- package/docs/isn0int.mjs.html +1 -1
- package/docs/isn0num.mjs.html +1 -1
- package/docs/isnbr.mjs.html +1 -1
- package/docs/isnint.mjs.html +1 -1
- package/docs/isnnum.mjs.html +1 -1
- package/docs/isnull.mjs.html +1 -1
- package/docs/isnum.mjs.html +1 -1
- package/docs/isobj.mjs.html +1 -1
- package/docs/isobj0.mjs.html +1 -1
- package/docs/isp0int.mjs.html +1 -1
- package/docs/isp0num.mjs.html +1 -1
- package/docs/ispint.mjs.html +1 -1
- package/docs/ispm.mjs.html +1 -1
- package/docs/ispnum.mjs.html +1 -1
- package/docs/isstr.mjs.html +1 -1
- package/docs/isstr0.mjs.html +1 -1
- package/docs/istime.mjs.html +1 -1
- package/docs/istimeTZ.mjs.html +1 -1
- package/docs/istimems.mjs.html +1 -1
- package/docs/istimemsTZ.mjs.html +1 -1
- package/docs/isu16arr.mjs.html +1 -1
- package/docs/isu8arr.mjs.html +1 -1
- package/docs/isundefined.mjs.html +1 -1
- package/docs/j2o.mjs.html +1 -1
- package/docs/keysmat2ltdt.mjs.html +1 -1
- package/docs/log.mjs.html +1 -1
- package/docs/ltdt2vrtsable.mjs.html +1 -1
- package/docs/ltdtdiff.mjs.html +1 -1
- package/docs/ltdtkeys2mat.mjs.html +1 -1
- package/docs/ltdtkeysheads2mat.mjs.html +1 -1
- package/docs/ltdtmapping.mjs.html +1 -1
- package/docs/ltdtmerge.mjs.html +1 -1
- package/docs/ltdtpick.mjs.html +1 -1
- package/docs/ltdtpull.mjs.html +1 -1
- package/docs/mat2ltdt.mjs.html +1 -1
- package/docs/matConcat.mjs.html +1 -1
- package/docs/matat.mjs.html +1 -1
- package/docs/now2str.mjs.html +1 -1
- package/docs/now2strp.mjs.html +1 -1
- package/docs/nowDay2str.mjs.html +1 -1
- package/docs/nowms2str.mjs.html +1 -1
- package/docs/nowms2strp.mjs.html +1 -1
- package/docs/o2j.mjs.html +1 -1
- package/docs/obj2b64.mjs.html +1 -1
- package/docs/obj2pb64.mjs.html +1 -1
- package/docs/obj2str.mjs.html +1 -1
- package/docs/obj2stru8arr.mjs.html +1 -1
- package/docs/obj2u8arr.mjs.html +1 -1
- package/docs/objSortBy.mjs.html +1 -1
- package/docs/objSortByKeys.mjs.html +1 -1
- package/docs/ocr.mjs.html +1 -1
- package/docs/ocrDyn.mjs.html +1 -1
- package/docs/oo.mjs.html +1 -1
- package/docs/openLink.mjs.html +1 -1
- package/docs/pb642obj.mjs.html +1 -1
- package/docs/pm2resolve.mjs.html +1 -1
- package/docs/pmChain.mjs.html +1 -1
- package/docs/pmHook.mjs.html +1 -1
- package/docs/pmHookReject.mjs.html +1 -1
- package/docs/pmIni.mjs.html +1 -1
- package/docs/pmMap.mjs.html +1 -1
- package/docs/pmQueue.mjs.html +1 -1
- package/docs/pmSeries.mjs.html +1 -1
- package/docs/pmThrottle.mjs.html +1 -1
- package/docs/queue.mjs.html +1 -1
- package/docs/rang.mjs.html +1 -1
- package/docs/rep.mjs.html +1 -1
- package/docs/repObj.mjs.html +1 -1
- package/docs/replace.mjs.html +1 -1
- package/docs/replaceObj.mjs.html +1 -1
- package/docs/replacePlus.mjs.html +1 -1
- package/docs/round.mjs.html +1 -1
- package/docs/secd.mjs.html +1 -1
- package/docs/sep.mjs.html +1 -1
- package/docs/sepInt.mjs.html +1 -1
- package/docs/sind.mjs.html +1 -1
- package/docs/split.mjs.html +1 -1
- package/docs/str2aes.mjs.html +1 -1
- package/docs/str2b64.mjs.html +1 -1
- package/docs/str2md5.mjs.html +1 -1
- package/docs/str2obj.mjs.html +1 -1
- package/docs/str2sha512.mjs.html +1 -1
- package/docs/str2u8arr.mjs.html +1 -1
- package/docs/strCompare.mjs.html +1 -1
- package/docs/strFindFuzz.mjs.html +1 -1
- package/docs/strFindFuzzDyn.mjs.html +1 -1
- package/docs/strFindSimilar.mjs.html +1 -1
- package/docs/strdelleft.mjs.html +1 -1
- package/docs/strdelright.mjs.html +1 -1
- package/docs/strleft.mjs.html +1 -1
- package/docs/strmid.mjs.html +1 -1
- package/docs/strright.mjs.html +1 -1
- package/docs/stru8arr2obj.mjs.html +1 -1
- package/docs/tand.mjs.html +1 -1
- package/docs/time2day.mjs.html +1 -1
- package/docs/time2hour.mjs.html +1 -1
- package/docs/time2min.mjs.html +1 -1
- package/docs/timeTZ2day.mjs.html +1 -1
- package/docs/timeTZ2expire.mjs.html +1 -1
- package/docs/timeTZ2hour.mjs.html +1 -1
- package/docs/timeTZ2min.mjs.html +1 -1
- package/docs/timeTZ2past.mjs.html +1 -1
- package/docs/timems2day.mjs.html +1 -1
- package/docs/timems2hour.mjs.html +1 -1
- package/docs/timems2min.mjs.html +1 -1
- package/docs/timems2time.mjs.html +1 -1
- package/docs/timemsTZ2day.mjs.html +1 -1
- package/docs/timemsTZ2expire.mjs.html +1 -1
- package/docs/timemsTZ2hour.mjs.html +1 -1
- package/docs/timemsTZ2min.mjs.html +1 -1
- package/docs/timemsTZ2past.mjs.html +1 -1
- package/docs/timemsTZ2time.mjs.html +1 -1
- package/docs/treeObj.mjs.html +1 -1
- package/docs/trim.mjs.html +1 -1
- package/docs/u16arr2b64.mjs.html +1 -1
- package/docs/u16arr2u8arr.mjs.html +1 -1
- package/docs/u8arr2ab.mjs.html +1 -1
- package/docs/u8arr2b64.mjs.html +1 -1
- package/docs/u8arr2blob.mjs.html +1 -1
- package/docs/u8arr2bs.mjs.html +1 -1
- package/docs/u8arr2obj.mjs.html +1 -1
- package/docs/u8arr2str.mjs.html +1 -1
- package/docs/u8arr2u16arr.mjs.html +1 -1
- package/docs/urlParse.mjs.html +1 -1
- package/docs/verifyValue.mjs.html +1 -1
- package/docs/waitFun.mjs.html +1 -1
- package/docs/wsemi.html +260 -251
- package/g2.mjs +875 -0
- package/package.json +1 -1
- package/src/convertToTree.mjs +258 -249
- package/test/convertToTree.test.mjs +1 -1
package/README.md
CHANGED
package/dist/wsemi.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* wsemi v1.6.
|
|
2
|
+
* wsemi v1.6.45
|
|
3
3
|
* (c) 2018-2021 yuda-lyu(semisphere)
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -22,5 +22,5 @@ var w={astral:!1,natives:!1},x={exec:RegExp.prototype.exec,test:RegExp.prototype
|
|
|
22
22
|
* XRegExp Unicode Base 3.1.1-next
|
|
23
23
|
* <xregexp.com>
|
|
24
24
|
* Steven Levithan (c) 2008-2016 MIT License
|
|
25
|
-
*/!function(e){var t={},r=e._dec,n=e._hex,o=e._pad4;function i(e){return e.replace(/[- _]+/g,"").toLowerCase()}function a(e){var t=/^\\[xu](.+)/.exec(e);return t?r(t[1]):e.charCodeAt("\\"===e.charAt(0)?1:0)}function u(r){return t[r]["b!"]||(t[r]["b!"]=function(t){var r="",i=-1;return e.forEach(t,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(e){var t=a(e[1]);t>i+1&&(r+="\\u"+o(n(i+1)),t>i+2&&(r+="-\\u"+o(n(t-1)))),i=a(e[2]||e[1])})),i<65535&&(r+="\\u"+o(n(i+1)),i<65534&&(r+="-\\uFFFF")),r}(t[r].bmp))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(e,r,n){var o="P"===e[1]||!!e[2],a=i(e[4]||e[3]),c=t[a];if("P"===e[1]&&e[2])throw new SyntaxError("Invalid double negation "+e[0]);if(!t.hasOwnProperty(a))throw new SyntaxError("Unknown Unicode token "+e[0]);if(c.inverseOf){if(a=i(c.inverseOf),!t.hasOwnProperty(a))throw new ReferenceError("Unicode token missing data "+e[0]+" -> "+c.inverseOf);c=t[a],o=!o}if(!c.bmp)throw new SyntaxError("Astral mode required for Unicode token "+e[0]);return"class"===r?o?u(a):c.bmp:(o?"[^":"[")+c.bmp+"]"}),{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(r){for(var n,o=0;o<r.length;++o){if(!(n=r[o]).name)throw new Error("Unicode token requires name");if(!(n.inverseOf||n.bmp||n.astral))throw new Error("Unicode token has no character data "+n.name);t[i(n.name)]=n,n.alias&&(t[i(n.alias)]=n)}e.cache.flush("patterns")},e._getUnicodeProperty=function(e){var r=i(e);return t[r]}}(Z),function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");e.addUnicodeData([{name:"L",alias:"Letter",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢄᢇ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"},{name:"N",alias:"Number",bmp:"0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൘-൞൦-൸෦-෯๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9"}])}(Z);var K=Z,J={exports:{}};return function(e){e.exports=function(t,r,n,o){return(e={}).dedupe=function(e,i){var a,u=t(i);if(!r(e)&&"object"!=I(e))throw new Error("contains_dupes must be an array or object");if(0===Object.keys(e).length)return void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("contains_dupes is empty"),[];u.limit&&(void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("options.limit will be ignored in dedupe"),u.limit=0),u.cutoff&&"number"==typeof u.cutoff||(void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Using default cutoff of 70"),u.cutoff=70),u.scorer||(u.scorer=n,void 0!==("undefined"==typeof console?"undefined":I(console))&&console.log("Using default scorer 'ratio' for dedupe")),a=u.processor&&"function"==typeof u.processor?u.processor:function(e){return e};var c={};for(var s in e){var f=a(e[s]);if("string"!=typeof f&&f instanceof String==0)throw new Error("Each processed item in dedupe must be a string.");var l=o(f,e,u);u.returnObjects?(1===l.length||(l=l.sort((function(e,t){var r=a(e.choice),n=a(t.choice),o=r.length,i=n.length;return o===i?r<n?-1:1:i-o}))),u.keepmap?c[a(l[0].choice)]={item:l[0].choice,key:l[0].key,matches:l}:c[a(l[0].choice)]={item:l[0].choice,key:l[0].key}):(1===l.length||(l=l.sort((function(e,t){var r=a(e[0]),n=a(t[0]),o=r.length,i=n.length;return o===i?r<n?-1:1:i-o}))),u.keepmap?c[a(l[0][0])]=[l[0][0],l[0][2],l]:c[a(l[0][0])]=[l[0][0],l[0][2]])}var p=[];for(var d in c)p.push(c[d]);return p},e}}(J),function(){var e=c,r=d,n=v.exports.intersection,o=v.exports.intersectionWith,i=v.exports.difference,a=v.exports.differenceWith,u=v.exports.uniq,s=v.exports.uniqWith,f=v.exports.partialRight,l=v.exports.forEach,p=v.exports.keys,h=v.exports.isArray,m=v.exports.toArray,w=v.exports.orderBy,x=g,j=y,_=b,O=function(e,t,r){var n={},o=K,i=y,a=b;function u(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c(e){return("string"==typeof e||e instanceof String)&&e.length>0}n.validate=c,n.process_and_sort=function(e){return c(e)?e.match(/\S+/g).sort().join(" ").trim():""},n.tokenize=function(n,o){if(o&&o.wildcards&&t&&r){var u=r(i,o,a);return t(n.match(/\S+/g),(function(e,t){return 0===u(e,t)}))}return e(n.match(/\S+/g))};var s=o("[^\\pN|\\pL]","g");return n.full_process=function(e,t){if(!(e instanceof String)&&"string"!=typeof e)return"";var r;if(t&&"object"==I(t)&&t.wildcards&&"string"==typeof t.wildcards&&t.wildcards.length>0){var n=t.wildcards.toLowerCase();if(e=e.toLowerCase(),t.force_ascii){var i="[^\0 -|"+u(n)+"]";e=e.replace(new RegExp(i,"g"),"");var a="["+u(n)+"]",c=n[0];e=e.replace(new RegExp(a,"g"),c);var f="[^A-Za-z0-9"+u(n)+"]";r=(e=(e=e.replace(new RegExp(f,"g")," ")).replace(/_/g," ")).trim()}else{var l="[^\\pN|\\pL|"+u(n)+"]",p=o(l,"g");e=o.replace(e,p," ","all"),a="["+u(n)+"]",c=n[0],r=(e=e.replace(new RegExp(a,"g"),c)).trim()}}else t&&(t.force_ascii||!0===t)&&(r=(e=e.replace(/[^\x00-\x7F]/g,"")).replace(/\W|_/g," ").toLowerCase().trim()),r=o.replace(e,s," ","all").toLowerCase().trim();return t&&t.collapseWhitespace&&(r=r.replace(/\s+/g," ")),r},n.clone_and_set_option_defaults=function(e){if(e&&e.isAClone)return e;var t={isAClone:!0};if(e){var r,n=Object.keys(e);for(r=0;r<n.length;r++)t[n[r]]=e[n[r]]}return void 0!==t.full_process&&!1===t.full_process||(t.full_process=!0),void 0!==t.force_ascii&&!0===t.force_ascii||(t.force_ascii=!1),void 0!==t.normalize&&!1===t.normalize||(t.normalize=!0),void 0!==t.astral&&!0===t.astral&&(t.full_process=!1),void 0!==t.collapseWhitespace&&!1===t.collapseWhitespace||(t.collapseWhitespace=!0),t},n.isCustomFunc=function(e){return"function"!=typeof e||"token_set_ratio"!==e.name&&"partial_token_set_ratio"!==e.name&&"token_sort_ratio"!==e.name&&"partial_token_sort_ratio"!==e.name&&"QRatio"!==e.name&&"WRatio"!==e.name&&"distance"!==e.name&&"partial_ratio"!==e.name},n}(u,s,f),S=O.validate,k=O.process_and_sort,E=O.tokenize,A=O.full_process,M=O.clone_and_set_option_defaults,D=O.isCustomFunc,P=J.exports(M,h,T,H).dedupe;function T(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?ee(e,t,n):0}function Y(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?V(e,t,n):0}function C(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?(n.partial=!0,V(e,t,n)):0}function L(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?(n.proc_sorted||(e=k(e),t=k(t)),ee(e,t,n)):0}function B(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?(n.partial=!0,n.proc_sorted||(e=k(e),t=k(t)),te(e,t,n)):0}function H(e,t,n){var o,i=M(n);if(h(t))o=t.length;else{if(!(t instanceof Object))throw new Error("Invalid choices");o=p(t).length}if(!t||0===o)return void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("No choices"),[];if(i.processor&&"function"!=typeof i.processor)throw new Error("Invalid Processor");if(i.processor||(i.processor=function(e){return e}),i.scorer&&"function"!=typeof i.scorer)throw new Error("Invalid Scorer");i.scorer||(i.scorer=T);var a=D(i.scorer);i.cutoff&&"number"==typeof i.cutoff||(i.cutoff=-1);var u=function(e,t){return e};i.full_process&&(u=A,a||(i.processed=!0));var c=!1;a||(e=u(e,i),i.full_process=!1,i.astral&&i.normalize&&(i.normalize=!1,String.prototype.normalize?(c=!0,e=e.normalize()):void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Normalization not supported in your environment")),0===e.length&&void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Processed query is empty string"));var s,f,d,v,g=[],m=!1,y=!1,b=!1;if("token_sort_ratio"===i.scorer.name||"partial_token_sort_ratio"===i.scorer.name){var w=k(e);y=!0}else if("token_set_ratio"===i.scorer.name||"partial_token_set_ratio"===i.scorer.name){var x=E(e,i);b=!0}return i.returnObjects?(d=function(e,t){return e.score-t.score},v=function(e,t){return t.score-e.score}):(d=function(e,t){return e[1]-t[1]},v=function(e,t){return t[1]-e[1]}),l(t,(function(t,r){i.tokens=void 0,i.proc_sorted=!1,y?(i.proc_sorted=!0,t&&t.proc_sorted?f=t.proc_sorted:(f=u(i.processor(t),i),f=k(c?f.normalize():f)),s=i.scorer(w,f,i)):b?(f="x",t&&t.tokens?(i.tokens=[x,t.tokens],i.trySimple&&(f=u(i.processor(t),i))):(f=u(i.processor(t),i),i.tokens=[x,E(c?f.normalize():f,i)]),s=i.scorer(e,f,i)):a?(f=i.processor(t),s=i.scorer(e,f,i)):("string"==typeof(f=u(i.processor(t),i))&&0!==f.length||(m=!0),c&&"string"==typeof f&&(f=f.normalize()),s=i.scorer(e,f,i)),s>i.cutoff&&(i.returnObjects?g.push({choice:t,score:s,key:r}):g.push([t,s,r]))})),m&&void 0!==("undefined"==typeof console?"undefined":I(console))&&console.log("One or more choices were empty. (post-processing if applied)"),i.limit&&"number"==typeof i.limit&&i.limit>0&&i.limit<o&&!i.unsorted?g=r.nlargest(g,i.limit,d):i.unsorted||(g=g.sort(v)),g}function z(e,t,n,o){var i,a=M(n);"object"==I(n.cancelToken)&&(i=n.cancelToken);var u=256;"number"==typeof a.asyncLoopOffset&&(u=a.asyncLoopOffset<1?1:a.asyncLoopOffset);var c,s=!1;if(t&&t.length&&h(t))c=t.length,s=!0;else{if(!(t instanceof Object))return void o(new Error("Invalid choices"));c=Object.keys(t).length}if(!t||0===c)return void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("No choices"),void o(null,[]);if(a.processor&&"function"!=typeof a.processor)o(new Error("Invalid Processor"));else if(a.processor||(a.processor=function(e){return e}),a.scorer&&"function"!=typeof a.scorer)o(new Error("Invalid Scorer"));else{a.scorer||(a.scorer=T);var f=D(a.scorer);a.cutoff&&"number"==typeof a.cutoff||(a.cutoff=-1);var l=function(e,t){return e};a.full_process&&(l=A,f||(a.processed=!0));var p=!1;f||(e=l(e,a),a.full_process=!1,a.astral&&a.normalize&&(a.normalize=!1,String.prototype.normalize?(p=!0,e=e.normalize()):void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Normalization not supported in your environment")),0===e.length&&void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Processed query is empty string"));var d,v,g,m,y,b=[],w=!1,x=!1,j=!1;if("token_sort_ratio"===a.scorer.name||"partial_token_sort_ratio"===a.scorer.name){var _=k(e);x=!0}else if("token_set_ratio"===a.scorer.name||"partial_token_set_ratio"===a.scorer.name){var O=E(e,a);j=!0}a.returnObjects?(m=function(e,t){return e.score-t.score},y=function(e,t){return t.score-e.score}):(m=function(e,t){return e[1]-t[1]},y=function(e,t){return t[1]-e[1]});var S=Object.keys(t);s?P(0):P(S[0],0)}function P(n,h){(s||t.hasOwnProperty(n))&&(a.tokens=void 0,a.proc_sorted=!1,x?(a.proc_sorted=!0,t[n]&&t[n].proc_sorted?v=t[n].proc_sorted:(v=l(a.processor(t[n]),a),v=k(p?v.normalize():v)),g=a.scorer(_,v,a)):j?(v="x",t[n]&&t[n].tokens?(a.tokens=[O,t[n].tokens],a.trySimple&&(v=l(a.processor(t[n]),a))):(v=l(a.processor(t[n]),a),a.tokens=[O,E(p?v.normalize():v,a)]),g=a.scorer(e,v,a)):f?(v=a.processor(t[n]),g=a.scorer(e,v,a)):("string"==typeof(v=l(a.processor(t[n]),a))&&0!==v.length||(w=!0),p&&"string"==typeof v&&(v=v.normalize()),g=a.scorer(e,v,a)),d=s?parseInt(n):n,g>a.cutoff&&(a.returnObjects?b.push({choice:t[n],score:g,key:d}):b.push([t[n],g,d]))),i&&!0===i.canceled?o(new Error("canceled")):s&&n<t.length-1?n%u==0?setImmediate((function(){P(n+1)})):P(n+1):h<S.length-1?h%u==0?setImmediate((function(){P(S[h+1],h+1)})):P(S[h+1],h+1):(w&&void 0!==("undefined"==typeof console?"undefined":I(console))&&console.log("One or more choices were empty. (post-processing if applied)"),a.limit&&"number"==typeof a.limit&&a.limit>0&&a.limit<c&&!a.unsorted?b=r.nlargest(b,a.limit,m):a.unsorted||(b=b.sort(y)),o(null,b))}}var F="%*SuperUniqueWildcardKey*%",R=!1;function N(e,t){var r=e;if(t.astral){t.normalize&&(String.prototype.normalize?r=e.normalize():R||(void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Normalization not supported in your environment"),R=!0));var n=m(r)}else n=r.split("");var o={};if(t.wildcards)for(var i=0;i<n.length;i++){var a=n[i];t.wildcards.indexOf(a)>-1?o[F]?o[F]+=1:o[F]=1:o[a]?o[a]+=1:o[a]=1}else for(i=0;i<n.length;i++)o[a=n[i]]?o[a]+=1:o[a]=1;return o}function U(e,t,r){for(var o=t,i=e.reduce((function(e,t){return e[t]=N(t,r),e}),{}),a=o.reduce((function(e,t){return e[t]=N(t,r),e}),{}),u=[],c=0;o.length&&c<e.length;){var s=w(o,(function(t){return r=i[e[c]],o=a[t],u=Object.keys(r),s=Object.keys(o),f=n(u,s).map((function(e){return r[e]*o[e]})).reduce((function(e,t){return e+t}),0),l=u.map((function(e){return Math.pow(r[e],2)})).reduce((function(e,t){return e+t}),0),p=s.map((function(e){return Math.pow(o[e],2)})).reduce((function(e,t){return e+t}),0),f/(Math.sqrt(l)*Math.sqrt(p));var r,o,u,s,f,l,p}),"desc")[0];u.push(s),c++,o=o.filter((function(e){return e!==s}))}return u.concat(o)}function W(e,t,r,n){var o=t,i=n;return(t.length>n.length||t.length===n.length&&(e.length>r.length||[e,r].sort()[0]===r))&&(o=n,i=t),[o,i]}function q(e,t,r){if(r.tokens)n=r.tokens[0],o=r.tokens[1];else var n=E(e,r),o=E(t,r);var i=W(e,n.sort(),t,o.sort()),a=i[0],u=U(a,i[1],r);return r.partial?te(a.join(" "),u.join(" "),r):ee(a.join(" "),u.join(" "),r)}function V(e,t,r){if(r.tokens)u=r.tokens[0],c=r.tokens[1];else var u=E(e,r),c=E(t,r);if(r.wildcards)var s=f(j,r,_),l=function(e,t){return 0===s(e,t)},p=o(u,c,l),d=a(u,c,l),v=a(c,u,l);else p=n(u,c),d=i(u,c),v=i(c,u);var h=p.sort().join(" "),g=d.sort(),m=v.sort();if(r.sortBySimilarity)var y=W(e,g,t,m),b=y[0],w=y[1],x=b.join(" "),O=U(b,w,r).join(" ");else x=g.join(" "),O=m.join(" ");var S=h+" "+x,k=h+" "+O;h=h.trim(),S=S.trim(),k=k.trim();var A=ee;if(r.partial&&(A=te,h.length>0))return 100;var M=[A(h,S,r),A(h,k,r),A(S,k,r)];return r.trySimple&&M.push(A(e,t,r)),Math.max.apply(null,M)}var X,$,G,Z,Q=!1;function ee(t,r,n){if(!S(t))return 0;if(!S(r))return 0;if(n.ratio_alg&&"difflib"===n.ratio_alg){var o=new e(null,t,r).ratio();return Math.round(100*o)}var i,a;return void 0===n.subcost&&(n.subcost=2),n.astral?(n.normalize&&(String.prototype.normalize?(t=t.normalize(),r=r.normalize()):Q||(void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Normalization not supported in your environment"),Q=!0)),i=x(t,r,n,m),a=m(t).length+m(r).length):n.wildcards?(i=j(t,r,n,_),a=t.length+r.length):(i=_(t,r,n),a=t.length+r.length),Math.round((a-i)/a*100)}function te(t,r,n){if(!S(t))return 0;if(!S(r))return 0;if(t.length<=r.length)var o=t,i=r;else o=r,i=t;for(var a=new e(null,o,i).getMatchingBlocks(),u=[],c=0;c<a.length;c++){var s=a[c][1]-a[c][0]>0?a[c][1]-a[c][0]:0,f=s+o.length,l=ee(o,i.substring(s,f),n);if(l>99.5)return 100;u.push(l)}return Math.max.apply(null,u)}Object.keys||(Object.keys=(X=Object.prototype.hasOwnProperty,$=!{toString:null}.propertyIsEnumerable("toString"),Z=(G=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("object"!=I(e)&&("function"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var t,r,n=[];for(t in e)X.call(e,t)&&n.push(t);if($)for(r=0;r<Z;r++)X.call(e,G[r])&&n.push(G[r]);return n}));var re=void 0;"undefined"!=typeof Promise&&(re=function(e,t,r){return new Promise((function(n,o){z(e,t,r,(function(e,t){e?o(e):n(t)}))}))});var ne={distance:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,void 0===n.subcost&&(n.subcost=1),n.astral?x(e,t,n,m):j(e,t,n,_)},ratio:T,partial_ratio:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?te(e,t,n):0},token_set_ratio:Y,token_sort_ratio:L,partial_token_set_ratio:C,partial_token_sort_ratio:B,token_similarity_sort_ratio:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?q(e,t,n):0},partial_token_similarity_sort_ratio:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?(n.partial=!0,q(e,t,n)):0},WRatio:function(e,t,r){var n=M(r);if(e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,n.full_process=!1,!S(e))return 0;if(!S(t))return 0;var o=!0,i=.95,a=.9,u=ee(e,t,n),c=Math.max(e.length,t.length)/Math.min(e.length,t.length);if(c<1.5&&(o=!1),c>8&&(a=.6),o){var s=te(e,t,n)*a,f=B(e,t,n)*i*a,l=C(e,t,n)*i*a;return Math.round(Math.max(u,s,f,l))}var p=L(e,t,n)*i,d=Y(e,t,n)*i;return Math.round(Math.max(u,p,d))},full_process:A,extract:H,extractAsync:z,extractAsPromised:re,process_and_sort:k,unique_tokens:E,dedupe:P};t.exports=ne}(),t.exports}()}));var Sh=function(e,t){var r=null==e?0:e.length;return r?sa(e,t)/r:NaN};var kh=function(e){return Sh(e,Je)};function Eh(){var e=os();return Oh||e.fuzzball}function Ah(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n="";if(E(e)||ce(e))n=Au(e);else{if(!io(e))return!!r&&0;n=Ya(e,"")}if(""===t)return!r||100;if(oo(t))return!!r&&0;if(eu(n,t))return!r||100;var o=qi(t," "),i=wi(o,(function(e){return Eh().partial_ratio(n,e)}));if(r)return kh(i);var a=80;return Gv(i,(function(e){return e>=a}))}function Mh(){return(Mh=yu(bu.mark((function e(t,r){var n,o,i,a=arguments;return bu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>2&&void 0!==a[2]&&a[2],io(o=a.length>3?a[3]:void 0)||(o=["https://cdn.jsdelivr.net/npm/fuzzball@2.0.2/dist/fuzzball.umd.min.js"]),e.next=5,Ts(o);case 5:return i=Ah(t,r,n),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dh(e){if(!Bn(e))return{};var t=e.results,r=e.binarys;if(!E(t))return{};if(!Jn(r))return{};var n={};try{n=JSON.parse(t,(function(e,t){if(E(t)){if(t.indexOf("[Uint8Array]::")>=0){var n=$n(t.replace("[Uint8Array]::",""));return r[n]}if(t.indexOf("[Uint16Array]::")>=0){var o=$n(t.replace("[Uint16Array]::",""));return r[o]}if(t.indexOf("[ArrayBuffer]::")>=0){var i=$n(t.replace("[ArrayBuffer]::",""));return r[i]}}return t}))}catch(e){}return n}function Ph(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Fv(e))return{today:null,msg:"",err:"時間格式錯誤"};var r=d.default();Fv(t)&&(r=d.default(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));var n=d.default(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r>n)return{today:null,msg:"",err:"時間已過"};var o,i=r.format("YYYY-MM-DD"),a=n.format("YYYY-MM-DD"),u=d.default(i,"YYYY-MM-DD"),c=d.default(a,"YYYY-MM-DD"),s=n.diff(r,"seconds"),f=n.diff(r,"minutes"),l=n.diff(r,"hours"),p=c.diff(u,"days"),v=c.diff(u,"weeks"),h=c.diff(u,"months"),g=c.diff(u,"years"),m="即將到來";if(s>=0&&(o=!0,m=s+"秒後"),f>0&&(o=!0,m=f+"分鐘後"),l>0){var y=n.format("HH:mm");i===a?(o=!0,m=l+"小時後,今天"+y):(o=!1,m=l+"小時後,明天"+y)}return p>1&&(o=!1,m=2===p?"後天":p+"天後"),v>0&&(o=!1,m=v+"周後"),h>0&&(o=!1,m=h+"個月後"),g>0&&(o=!1,m=g+"年後"),{today:o,msg:m,err:""}}function Th(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Fv(e))return{today:null,msg:"",err:"時間格式錯誤"};var r=d.default();Fv(t)&&(r=d.default(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));var n=d.default(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r<n)return{today:null,msg:"",err:"時間未到"};var o=r.format("YYYY-MM-DD"),i=n.format("YYYY-MM-DD"),a=d.default(o,"YYYY-MM-DD"),u=d.default(i,"YYYY-MM-DD"),c=r.diff(n,"seconds"),s=r.diff(n,"minutes"),f=r.diff(n,"hours"),l=a.diff(u,"days"),p=a.diff(u,"weeks"),v=a.diff(u,"months"),h=a.diff(u,"years"),g=!1,m="剛剛";if(c>=0&&(g=!0,m=c+"秒前"),s>0&&(g=!0,m=s+"分鐘前"),f>0){var y=n.format("HH:mm");o===i?(g=!0,m=f+"小時前"):(g=!1,m="昨天"+y)}return l>1&&(g=!1,m=l+"天前"),p>0&&(g=!1,m=p+"周前"),v>0&&(g=!1,m=v+"個月前"),h>0&&(g=!1,m=h+"年前"),{today:g,msg:m,err:""}}function Ih(e){var t=zv.sepTZ(e);return e="".concat(t.t,".000").concat(t.tz)}function Yh(e){var t=zv.sepTZ(e);return e="".concat(t.t,".000").concat(t.tz)}function Ch(e){if(!Ka(e))return"";var t;try{t=$a(nh(e))}catch(e){return""}return t}var Lh=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n};e._tz=zv,e.ab2blob=function(e){var t=S(e);return new Blob([t])},e.ab2u8arr=S,e.addMonth=function(e,t){return A(e)&&fe(t)?d.default(e,"YYYY-MM").add(t,"months").format("YYYY-MM"):""},e.aes2str=be,e.alive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4,t=Cn(),r={},n=null;function o(){null===n&&(n=setInterval((function(){et(r,(function(n,o){if(Date.now()-n.time>e){var i=vn(r[o]);delete r[o],t.emit("message",{eventName:"leave",key:o,data:i.data,now:In(r)})}})),Bn(r)||(clearInterval(n),n=null)}),50))}function i(e,n){E(e)?(Hn(r,e)||setTimeout((function(){t.emit("message",{eventName:"enter",key:e,data:n,now:In(r)})}),1),r[e]={data:n,time:Date.now()},o()):console.log("trigger need key")}function a(){var e=[];return et(r,(function(t,r){e.push({key:r,data:t.data})})),e}return Gn(e)&&(e=1e4),e=$n(e),t.trigger=i,t.get=a,t},e.arr2dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!io(e))return{};if(io(t))return In(e)===In(t)?Kn(e,t):{};for(var r=[],n=0;n<In(e);n++)r.push(vn(t));var o=Kn(e,r);return o},e.arrAccum=function(e){if(!io(e))return[];var t=[],r=0;return et(e,(function(e){r+=se(e),ce(e)?t.push(r):t.push("")})),t},e.arrAdd=function(){if(In(arguments)<2)return[];for(var e=arguments[0],t=1;t<In(arguments);t++){var r=arguments[t];e=ao(e,r)}return e},e.arrAt=Fo,e.arrFilterByKeywords=function(e,t){if(!io(e))return[];if(!E(t))return[];var r=qi(t," "),n=In(r);return wi(e,(function(e){return function(e){for(var t=!1,o=0,i=0;i<n;i++){var a=r[i],u=a,c="+"===Xi(a,1),s="-"===Xi(a,1);if((c||s)&&(u=Gi(a,1)),""!==Ui(u)){var f=e.indexOf(u)>=0;if(c&&!f){t=!1,o=0;break}if(s&&f){t=!1,o=0;break}if(f){t=!0;var l=1-i/n;o+=l=Math.pow(l,2)}}}return{hasKeyword:t,weight:o}}(e)}))},e.arrFilterByNum=function(e){return io(e)?(e=vn(e),e=Ki(e,ce),e=wi(e,se)):[]},e.arrFilterByPnum=Qi,e.arrFilterByPnumAndToLog=function(e){return io(e)?(e=Qi(e),e=wi(e,Math.log)):[]},e.arrFind=function(e,t){function r(e){return Jn(e)?e:[e]}return oo(e)||0===(e=r(e)).length||oo(t)?[]:(t=r(t),wi(t,(function(t){for(var r=-1,n=0;n<e.length;n++)if(ea(e[n],t)){r=n;break}return r})))},e.arrGroupByMaxmin=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"keyMax");E(n)||(n="max");var o=Oo(r,"keyMin");E(o)||(o="min");var i=Oo(r,"keyValue");E(i)||(i="value");var a=Oo(r,"keyItems");if(E(a)||(a="items"),!io(e))return[];if(!io(t))return[];var u=vn(t);return et(e,(function(e,r){var c=Oo(e,i);ce(c)?c=se(c):ce(e)&&(c=se(e)),ta(c)&&et(t,(function(t,r){var i=Oo(t,n,null),s=Oo(t,o,null);if(null!==i&&null!==s&&ce(i)&&ce(s)){var f=Oo(t,"maxType");"<="!==f&&"<"!==f&&(f="<=");var l,p=Oo(t,"minType");">="!==p&&">"!==p&&(p=">="),i=se(i),s=se(s),l="<="===f?c<=i:c<i,(">="===p?c>=s:c>s)&&l&&(Hn(u[r],a)||(u[r][a]=[]),u[r][a].push(e))}}))})),u},e.arrHas=ra,e.arrInsert=function(e,t,r){if(!io(e))return[];if(Jn(r)||(r=[r]),!zo(t))return e;if((t=$n(t))>In(e))return e;var n=e;try{n=[].concat(ia(e.slice(0,t)),ia(r),ia(e.slice(t)))}catch(e){}return n},e.arrLookupByMaxmin=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"keyMax");E(n)||(n="max");var o=Oo(r,"keyMin");E(o)||(o="min");var i=Oo(r,"keyValue");E(i)||(i="value");var a=Oo(r,"keyItems");E(a)||(a="items");var u=Oo(r,"beforeAddResult",null);if(!io(e))return[];if(!io(t))return[];var c=Bn(Oo(e,0));if(!c)return[];var s=vn(e);return et(s,(function(e,r){var c=Oo(e,i);ce(c)&&(c=se(c)),ta(c)&&et(t,(function(e,t){var i=Oo(e,n,null),f=Oo(e,o,null);if(null!==i&&null!==f&&ce(i)&&ce(f)){var l=Oo(e,"maxType");"<="!==l&&"<"!==l&&(l="<=");var p,d=Oo(e,"minType");">="!==d&&">"!==d&&(d=">="),i=se(i),f=se(f),p="<="===l?c<=i:c<i,(">="===d?c>=f:c>f)&&p&&(aa(u)&&(e=u(e,s[r],r)),Hn(s[r],a)||(s[r][a]=[]),s[r][a].push(e))}}))})),s},e.arrMulti=ca,e.arrNorm=function(e){if(!io(e))return null;var t=la(e,e);return ce(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=la,e.arrSep=function(e,t){if(!io(e))return[];if(!Vi(t)&&!Bn(t))return[];var r="",n=null;if(Vi(t))n=t,r="numCount";else if(Bn(t))if(Vi(Oo(t,"numCount")))n=t.numCount,r="numCount";else{if(!Vi(Oo(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");n=t.numGroup,r="numGroup"}var o=In(e),i=[];if("numCount"===r)for(var a=0;a<o;a+=n){for(var u=[],c=0;c<n;c++){var s=a+c;s<o&&u.push(e[s])}i.push(u)}else if("numGroup"===r){for(var f=0;f<n;f++)i[f]=[];for(var l=-1,p=0;p<o;p++)++l>n-1&&(l=0),i[l].push(e[p])}return i},e.arrSort=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!io(e))return[];if(1===In(e))return e;var r=Oo(t,"returnIndex");ye(r)||(r=!1);var n,o=Oo(t,"compareKey",null),i=Oa(e);if(""===i)return[];if("obj"===i){if(!E(o))return[];var a=wi(e,(function(e,t){return Oo(e,o,"")})),u=Oa(a);if("num"!==u&&"str"!==u)return[];var c=Sa(a,u),s=ka(c,!0);n=r?s:wi(s,(function(t){return e[t]}))}else if("num"===i||"str"===i){var f=Sa(e,i);n=ka(f,r)}return n},e.asind=function(e){return ce(e)?(e=se(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return ce(e)?(e=se(e),ce(t)?(t=se(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return ce(e)?(e=se(e),180*Math.atan(e)/Math.PI):null},e.attstr=Xa,e.b642obj=function(e){if(!k(e))return{};var t={};try{t=Ga($a(e))}catch(e){t={}}return t},e.b642str=$a,e.b642u16arr=Qa,e.b642u8arr=Za,e.binstr=eu,e.blob2ab=nu,e.blob2b64=ou,e.blob2str=function(e){var t=tu(),r=new FileReader;return r.onload=function(){t.resolve(r.result)},r.onerror=function(e){t.reject(e)},r.readAsText(e),t},e.blob2u8arr=iu,e.blobs2b64s=au,e.blobs2u8arrs=uu,e.bodyLog=function(){var e=wi(arguments,(function(e){return cu(e)})).join(", "),t='\n <div style="padding:5px; font-size:10pt; font-family:Microsoft JhengHei, Helvetica;">\n <span style="color:#f26;">log: </span>\n <code>'.concat(su(e),"</code>\n </div>\n ");document.querySelector("body").insertAdjacentHTML("beforeend",t)},e.browserView=fu,e.browserViewFromBlob=function(e,t){lu(e)&&fu(e,t)},e.browserViewFromText=function(e){k(e)&&fu(e,"text/plain")},e.browserViewFromU8arr=function(e,t){Ka(e)&&fu(e,t)},e.bs2u8arr=pu,e.bufRead=du,e.bufReadDbl=vu,e.bufWrite=hu,e.bufWriteDbl=gu,e.cache=function(){var e=Cn(),t={};function r(t,r){setTimeout((function(){e.emit(t,r)}),1)}function n(e,n){var o=n.execFun,i=n.inputFun,a=n.timeExpired;Hn(t,e)||(aa(o)||(o=function(){var e=yu(bu.mark((function e(){return bu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),Gn(a)&&(a=5e3),a=$n(a),Jn(i)||(i=[]),t[e]={needExec:!0,execFun:o,execFunRunning:!1,inputFun:i,value:null,time:null,timeExpired:a},r("message",{fun:"set",key:e,timeExpired:a}))}function o(e){return i.apply(this,arguments)}function i(){return(i=yu(bu.mark((function e(n){var o,i,a,u;return bu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Hn(t,n)){e.next=24;break}return r("message",{fun:"get",key:n,msg:"waiting"}),e.next=4,xu((function(){return!t[n].execFunRunning}),{timeInterval:1e3});case 4:if(i=Date.now(),o=t[n].needExec,a=i-t[n].time,o?r("message",{fun:"get",key:n,msg:"execute first"}):t[n].timeExpired>0&&a>t[n].timeExpired&&(r("message",{fun:"get",key:n,msg:"execute by timeExpired",timeDiff:a}),o=!0),!o){e.next=20;break}return r("message",{fun:"get",key:n,msg:"execFun start"}),t[n].execFunRunning=!0,e.next=13,(u=t[n]).execFun.apply(u,ia(t[n].inputFun)).catch((function(e){r("error",{fun:"get",key:n,msg:e})}));case 13:t[n].value=e.sent,t[n].needExec=!1,t[n].time=i,t[n].execFunRunning=!1,r("message",{fun:"get",key:n,msg:"execFun end"}),e.next=21;break;case 20:r("message",{fun:"get",key:n,msg:"use cache"});case 21:return e.abrupt("return",vn(t[n].value));case 24:return r("error",{fun:"get",key:n,msg:"invalid key"}),e.abrupt("return",null);case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function a(){return(a=yu(bu.mark((function e(t,r){var i,a,u;return bu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.execFun,a=r.inputFun,u=r.timeExpired,n(t,{execFun:i,inputFun:a,timeExpired:u}),e.abrupt("return",o(t));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return e.set=n,e.getProxy=function(e,t){return a.apply(this,arguments)},e.get=o,e.update=function(e,n){Hn(t,e)&&(r("message",{fun:"updateValue",key:e}),t[e].value=n,t[e].time=Date.now())},e.clear=function(e){Hn(t,e)&&(r("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Hn(t,e)&&(r("message",{fun:"remove",key:e}),delete t[e])},e},e.cbol=function(e){if(ye(e))return e;if(0===e)return!1;if(1===e)return!0;var t=!1;return E(e)&&"true"===(e=_u(Ui(e)))&&(t=!0),t},e.cdbl=se,e.cfilesize=function(e){return ce(e)?(e=se(e))<1024?Ou(e,1)+" b":e<1048576?Ou(e/1024,1)+" kb":e<1073741824?Ou(e/1024/1024,1)+" mb":e<1099511627776?Ou(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!ce(e))return"";if(!zo(t))return"";for(var r=(e=Ou(e,t)).split("."),n=r[0],o=r.length>1?"."+r[1]:"",i=/(\d+)(\d{3})/;i.test(n);)n=n.replace(i,"$1,$2");var a=n+o;return a},e.cint=$n,e.clearXSS=function(e){return function e(t){return Jn(t)||Ln(t)?(et(t,(function(r,n){t[n]=e(r)})),t):k(t)?(r=t,h.default(r,{onIgnoreTagAttr:function(e,t,r,n){if("style"===t)return t+'="'+h.default.escapeAttrValue(r)+'"'}})):t;var r}(vn(e))},e.color=Dc,e.composeToTree=Vc,e.convertToTree=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Bn(e)&&!io(e))return[];var r=Oo(t,"bindKey",null);E(r)||(r="id");var n=Oo(t,"bindParent",null);E(n)||(n="parentId");var o=Oo(t,"bindText",null);E(o)||(o="text");var i=Oo(t,"bindChildren",null);E(i)||(i="children");var a=Oo(t,"bindType",null);E(a)||(a="type");var u=Oo(t,"bindNumOfChilren",null);E(u)||(u="numOfChilren");var c=Oo(t,"bindRoot",null);E(c)||(c="root");var s=Oo(t,"saveExtProps",null);ye(s)||(s=!1),Bn(e)&&(e=Su({},c,e));var f=Gc(e,{bindKey:r,bindParent:n,bindText:o,bindType:a,bindNumOfChilren:u}),l=Vc(f,{bindKey:r,bindParent:n,bindChildren:i,saveExtProps:s});return l},e.copyStrToClipboard=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!k(e))return"invalid input";var r=Oo(t,"eleParent");Kc(r)||(r=document.body);var n=document.createElement("textarea");if(n.style.position="fixed",n.style.left=0,n.style.top=0,n.style.zIndex=-1,n.style.background="transparent",n.style.color="transparent",n.value=e,r.appendChild(n),n.select(),!Jc(n))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return r.removeChild(n),""},e.cosd=Qc,e.cotd=function(e){return ce(e)?1/es(e=se(e)):null},e.cscd=function(e){return ce(e)?1/ts(e=se(e)):null},e.cstr=Au,e.day2cht=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!rs(e))return"";var r=d.default(e,"YYYY-MM-DD");return t?r.month()+1+"月"+r.date()+"日":"民國 "+(r.year()-1911)+" 年 "+(r.month()+1)+" 月 "+r.date()+" 日"},e.debounce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;function t(e){var t=[],r=null,n=null;function o(){null===r&&(r=setInterval((function(){if(Date.now()-n>e){var o=t.pop();t=[],o.func.apply(o,ia(o.input))}0===t.length&&(clearInterval(r),r=null)}),10))}return Vi(e)||(e=300),e=$n(e),function(e){if(aa(e)){n=Date.now();for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];t.push({func:e,input:i}),o()}else console.log("func is not function")}}return new t(e)},e.delay=ns,e.dig=Ou,e.digExp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ce(e)&&zo(t)?0===(e=se(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):Ou(e,t):""},e.domAlert=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(E(e)){var r=Oo(t,"type","success");Hn(ls,r)||(r="success");var n=Oo(t,"icon",null);E(n)||(n=ls[r]);var o="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(o=t.position);var i=Oo(t,"time");ta(i)||(i=4e3),i<0&&(i=4e3);var a=Oo(t,"paddingStyle",null);null===a&&(a={top:14,right:26,bottom:14,left:14});var u="",c=Oo(a,"top",0),s=Oo(a,"bottom",0),f=Oo(a,"left",0),l=Oo(a,"right",0);u="padding:".concat(c,"px ").concat(l,"px ").concat(s,"px ").concat(f,"px;");var p=Oo(t,"textColor","#000");p=Eu(p,";","");var d=Oo(t,"backgroundColor","#fff");d=Eu(d,";","");var v=Oo(t,"borderWidth",1),h=Oo(t,"borderColor","#ebeef5");h=Eu(h,";","");var g=Oo(t,"borderRadius",8),m=Oo(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");m=Eu(m,";","");var y=Oo(t,"closeIconShift",null);null===y&&(y={top:10,right:10});var b="",w=Oo(y,"top",""),x=Oo(y,"bottom",""),j=Oo(y,"left",""),_=Oo(y,"right","");ta(w)&&(w="top:".concat(w,"px;")),ta(x)&&(x="bottom:".concat(x,"px;")),ta(j)&&(j="left:".concat(j,"px;")),ta(_)&&(_="right:".concat(_,"px;")),b="position:absolute; ".concat(w," ").concat(_," ").concat(x," ").concat(j);var O="alt-".concat(us()),S="alt-".concat(us()),k='\n <div \n style="display:inline-block; color:'.concat(p,"; background:").concat(d,"; border:").concat(v,"px solid ").concat(h,"; border-radius:").concat(g,"px; box-shadow:").concat(m,';"\n onmouseenter="ttWAlertFadeIn(\'').concat(S,"')\"\n onmouseleave=\"ttWAlertFadeOut('").concat(S,'\')"\n >\n <div style="position:relative; ').concat(u,'">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">').concat(n,"</div>\n </div>\n <div>").concat(e,'</div>\n </div>\n\n <div style="').concat(b,'">\n <div \n id="').concat(S,'" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel(\'').concat(O,"')\"\n >\n ").concat(fs,"\n </div>\n </div>\n\n </div>\n </div>\n "),A=document.createElement("div");A.id=O,A.style.position="fixed",A.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",A.style.zIndex=-1,A.style.opacity=.001,o.indexOf("-left")>=0?A.style.transform="translateX(-100%)":A.style.transform="translateX(100%)",A.innerHTML=k;var M=document.querySelector("body");M.appendChild(A);var D=tu();return ms({id:O,position:o,time:i,pm:D}),D}},e.domAppend=ys,e.domCancelEvent=ws,e.domConvertToPic=Ss,e.domConvertToPicDyn=function(e){return Is.apply(this,arguments)},e.domDetect=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Oo(t,"timeInterval",null);Vi(r)||(r=20);var n=Oo(t,"tolerancePixel",null);Vi(n)||(n=1);var o,i=Cn(),a={offsetWidth:0,offsetHeight:0};if(!aa(e))return console.log("invalid f",e),null;o=setInterval((function(){var t=e();if(t){var r={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight},o=Math.abs(a.offsetWidth-r.offsetWidth)>n,u=Math.abs(a.offsetHeight-r.offsetHeight)>n;if(o||u){var c=Cs({},a);setTimeout((function(){r.offsetWidth>0&&r.offsetHeight>0&&(i.emit("resize",{sold:c,snew:r,ele:t}),i.emit("resizeWithWindow",{sold:c,snew:r,ele:t,from:"dom"}))}),1)}a=r}}),r);var u=function(e){i.emit("resizeWithWindow",{snew:a,from:"window"})};return window.addEventListener("resize",u),i.clear=function(){clearInterval(o),window.removeEventListener("resize",u)},i},e.domDrag=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kc(e)){var r=Oo(t,"attIdentify",null);E(r)||(r="dragid");var n=Oo(t,"attIndex",null);E(n)||(n="dragindex");var o=Oo(t,"attGroup",null);E(o)||(o="draggroup");var i=Oo(t,"group",null);E(i)||(i="group");var a=Oo(t,"previewOpacity",null);ta(a)||(a=.4);var u=Oo(t,"previewDisabledOpacity",null);ta(u)||(u=.2);var c=Oo(t,"previewBackground",null);E(c)||(c="white");var s=Oo(t,"previewBorderWidth",null);ta(s)||(s=1);var f=Oo(t,"previewBorderColor",null);E(f)||(f="#f26");var l=Oo(t,"timeDragStartDelay",null);ta(l)||(l=120);var p="c".concat(us(8)),d=i;e.setAttribute(o,d),e.setAttribute(r,p);var v=$s(d,p,{attIdentify:r,previewOpacity:a,previewBackground:c,previewBorderWidth:s,previewBorderColor:f}),h={dragStart:function(e){v.emit(d+"-dragStart",e)}},g=Ks(e,h);g.bind(),Qs({gid:d,attGroup:o,attIndex:n,attIdentify:r,timeDragStartDelay:l,previewOpacity:a,previewDisabledOpacity:u});var m=Cn();return v.on(i+"-change",(function(e){e.tarEid===p&&m.emit("change",e)})),v.on(i+"-start",(function(e){e.tarEid===p&&m.emit("start",e)})),v.on(i+"-move",(function(e){e.tarEid===p&&m.emit("move",e)})),v.on(i+"-enter",(function(e){e.tarEid===p&&m.emit("enter",e)})),v.on(i+"-leave",(function(e){e.tarEid===p&&m.emit("leave",e)})),v.on(i+"-drop",(function(e){e.tarEid===p&&m.emit("drop",e)})),m.setIsActive=b,m.unbind=y,m}function y(){g.unbind(),Js(d,p)}function b(e){Xs[d].isActive=e}console.log("ele is not HTMLElement",e)},e.domDragBarAndScroll=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=null,i=null,a=null,u=null,c=null,s=null,f=null,l=null,p=null,d=null,v=null,h=null,g=null,m=null,y=!1,b=Oo(r,"getHeighRatio",null);$e(b)||(b=function(){return 1});var w=Oo(r,"getWidthRatio",null);$e(w)||(w=function(){return 1});var x=Oo(r,"stopScrollPropagationForPanel",null);me(x)||(x=!1);var j=Oo(r,"stopTouchDragPropagationForPanel",null);me(j)||(j=!1);var _=Oo(r,"useTouchDragForPanel",null);me(_)||(_=!0);var O=e,S=t,k=Cn();function E(){n=function(e){var t=e.deltaY/Math.abs(e.deltaY),r=e.deltaX/Math.abs(e.deltaX);k.emit("scrollPanel",{ratioY:t,ratioX:r}),x&&ws(e)},O.addEventListener("wheel",n),o=function(e){if(_){var t=Oo(e,"touches.0.clientY",0),r=Oo(e,"touches.0.clientX",0),n=-t*b(),o=-r*w();y=!0,k.emit("pressBar",{clientY:n,clientX:o}),j&&ws(e)}},O.addEventListener("touchstart",o),i=function(e){if(_&&y){var t=Oo(e,"touches.0.clientY",0),r=Oo(e,"touches.0.clientX",0),n=-t*b(),o=-r*w();k.emit("dragBar",{clientY:n,clientX:o}),j&&ws(e)}},O.addEventListener("touchmove",i,{passive:!1}),a=function(e){_&&y&&(y=!1,k.emit("freeBar"),j&&ws(e))},O.addEventListener("touchend",a),u=function(e){y=!0,k.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},S.addEventListener("mousedown",u),c=function(e){y&&(y=!1,k.emit("freeBar"))},S.addEventListener("mouseup",c),s=function(e){y=!0,k.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},S.addEventListener("touchstart",s),f=function(e){y&&(k.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),ws(e))},S.addEventListener("touchmove",f,{passive:!1}),l=function(e){y&&(y=!1,k.emit("freeBar"))},S.addEventListener("touchend",l),p=function(e){y&&k.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",p),d=function(e){y&&(y=!1,k.emit("freeBar"),x&&ws(e))},window.addEventListener("mouseup",d),v=function(e){},window.addEventListener("scroll",v,{passive:!1}),h=function(e){},window.addEventListener("wheel",h,{passive:!1}),g=function(e){},document.addEventListener("scroll",g,{passive:!1}),m=function(e){},document.addEventListener("wheel",m,{passive:!1})}function A(){O.removeEventListener("wheel",n),O.removeEventListener("touchstart",o),O.removeEventListener("touchmove",i),O.removeEventListener("touchend",a),S.removeEventListener("mousedown",u),S.removeEventListener("mouseup",c),S.removeEventListener("touchstart",s),S.removeEventListener("touchmove",f),S.removeEventListener("touchend",l),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",d),window.removeEventListener("scroll",v),window.removeEventListener("wheel",h),document.removeEventListener("scroll",g),document.removeEventListener("wheel",m)}return E(),k.clear=A,k},e.domDragPreview=Ws,e.domDropFiles=function(e){var t=!1,r=!1,n=Cn();function o(e){ws(e),r=!0,!1===t&&(t=!0,n.emit("dropIn",{ev:e}))}function i(e){ws(e),r=!1,setTimeout((function(){r||(t=!1,n.emit("dropOut",{ev:e}))}),100)}function a(e){o(e)}function u(e){i(e)}function c(e){function t(){i(e)}o(e),function(e){return df.apply(this,arguments)}(e.dataTransfer).then((function(r){var o=Ki(r.entries,{type:"file"});n.emit("getFiles",{ev:e,files:r.files,filesTree:o,entries:r.entries,cb:t})})).catch((function(e){n.emit("error",e)}))}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",u,!1),e.addEventListener("drop",c,!1),n.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",u,!1),e.removeEventListener("drop",c,!1)},n},e.domFadeIn=cs,e.domFadeOut=ss,e.domFind=vf,e.domFinds=xs,e.domGetAttr=Rs,e.domGetBoudRect=Ns,e.domGetBoudRectRefSelf=Us,e.domGetFileAccept=yf,e.domGetFiles=bf,e.domGetPointFromEvent=Fs,e.domGetScrollableParent=function(e){var t=/(auto|scroll)/,r=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},n=function(e){return t.test(function(e){return r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x")}(e))};if(e instanceof HTMLElement||e instanceof SVGElement){for(var o=function e(t,r){return null===t.parentNode?r:e(t.parentNode,r.concat([t]))}(e.parentNode,[]),i=0;i<o.length;i+=1)if(n(o[i]))return o[i];return document.scrollingElement||document.documentElement}},e.domIsClientXYIn=function(e,t,r){if(ta(e))if(ta(t)){if(Kc(r)){var n;try{n=r.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}var o=!1;try{o=e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom}catch(e){console.log("catch when calculating page information of element",e)}return o}console.log("ele is not HTMLElement",r)}else console.log("clientY is not Number",t);else console.log("clientX is not Number",e)},e.domIsFocused=Jc,e.domIsVisible=function(e){if(!Kc(e))return Promise.reject("invalid element");if(wf())return Promise.reject("invalid IntersectionObserver");var t=tu();try{var r=new IntersectionObserver((function(e){t.resolve(e[0].isIntersecting),r.disconnect()}));r.observe(e)}catch(e){t.reject(e)}return t},e.domPrepend=_s,e.domRemove=js,e.domRipple=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"timeDuration",null);Vi(n)||(n=1e3);var o=Oo(r,"color",null);if(E(o)||(o="rgba(255, 255, 255, 0.5)"),Kc(e)){e.style.position="relative",e.style.overflow="hidden";var i=e.getBoundingClientRect(),a=t.clientX-i.left,u=t.clientY-i.top,c=2*Math.max(e.clientWidth,e.clientHeight),s=document.createElement("div");s.style.width="".concat(c,"px"),s.style.height="".concat(c,"px"),s.style.transition="all ".concat(n/1e3,"s linear"),s.style.userSelect="none",s.style.position="absolute",s.style.zIndex=1,s.style.left="".concat(a,"px"),s.style.top="".concat(u,"px"),s.style.borderRadius="50%",s.style.transformOrigin="center",s.style.transform="translate(-50%,-50%) scale(0)",s.style.background=o,e.appendChild(s),setTimeout((function(){s.style.transform="translate(-50%,-50%) scale(2)",s.style.opacity=0}),1),setTimeout((function(){js(s)}),n)}},e.domScrollIntoView=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kc(e)){Ln(t)||(t={});var r={behavior:"smooth"};r=zf(zf({},r),t),bs()?Bf(e,r):e.scrollIntoView(r)}},e.domScrollTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kc(e)){Ln(t)||(t={});var r={behavior:"smooth"};r=Rf(Rf({},r),t),bs()?kf(e,r):e.scrollTo(r)}},e.domShowImages=Kf,e.domShowImagesDyn=function(e){return Qf.apply(this,arguments)},e.domShowInputAndGetFiles=tl,e.domShowInputAndGetFilesU8Arrs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,n=tu(),o=[];return tl(e,t,r).then((function(e){var t=tu(),r=e.err;return In(r)>0?t.reject(r):t.resolve(e),t})).then((function(e){var t=e.files;return et(t,(function(e){o.push({name:e.name,size:e.size,type:e.type})})),uu(t)})).then((function(e){et(e,(function(e,t){o[t].u8a=e})),n.resolve(o)})).catch((function(e){n.reject(e)})),n},e.domTooltip=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=null;function i(){null!==n&&n.destroy(!0),e.setAttribute("tippystate",""),clearInterval(o)}var a={arrow:!0,theme:"dark",placement:"bottom",delay:150};r=Bn(r)?$f(a,r):a;var u=t;t||(u=e.innerHTML);var c=e.getAttribute("tippystate"),s=ce(c);if(e.setAttribute("tippystate","5"),!s){u='<div style="text-align:left;">'.concat(u,"</div>");var f=sd;sd.default&&(f=sd.default),(n=f(e,pd(pd({},r),{},{content:u,allowHTML:!0,onHidden:function(){i()},onDestroy:function(){n=null,i()}}))).show(),o=setInterval((function(){var t=e.getAttribute("tippystate");ce(t)?(t=$n(t),t-=1,e.setAttribute("tippystate",t),t<=0&&i()):i()}),1e3)}},e.domTriggerEvent=el,e.domVirtualCreate=dd,e.domVirtualCreateQueue=function(){return new function(){var e=md(1);function t(){return(t=yu(bu.mark((function t(r,n,o){return bu.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e(dd,r,n,o));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e,r,n){return t.apply(this,arguments)}}},e.downloadExcelFileFromData=kd,e.downloadExcelFileFromDataDyn=function(e){return Ed.apply(this,arguments)},e.downloadFileFromB64=function(e,t){if(ru())if(E(e)){var r=document.createElement("a");r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}else console.log("no filename");else console.log("no window")},e.downloadFileFromBlob=yd,e.downloadFileFromText=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];ru()?E(e)?k(t)?ye(r)?yd(e,r?new Blob(["\ufeff",t]):new Blob([t])):console.log("withBOM is not boolean"):console.log("invalid content"):console.log("invalid filename"):console.log("no window")},e.downloadFileFromU8Arr=function(e,t){ru()?E(e)?Ka(t)?yd(e,Ad(t)):console.log("no data"):console.log("no filename"):console.log("no window")},e.dtmapping=Md,e.dtpick=Dd,e.evem=Cn,e.execScript=function(e,t){return new Promise((function(r,n){Jn(t)||(t=[t]);var o=y.default.spawnSync(e,t),i=Ki(o.output,(function(e){return null!==e}));i=wi(i,(function(e){return function(e){try{return e.toString("utf8")}catch(e){}return""}(e)}));var a=Ya(i,""),u=Oo(o,"error.message");u?n(u):r(a)}))},e.f2c=function(e){if(!aa(e))return"";var t=String(e),r=t.substring(t.indexOf("/*")+3,t.lastIndexOf("*/"));return r=Pd(r)},e.files2data=function(e){var t=tu(),r=wi(e,(function(e){return{name:e.name,size:e.size,type:e.type}}));return au(e).then((function(e){var n=wi(e,(function(e){return{b64:e}})),o=Td(r,n);t.resolve(o)})),t},e.flattenToConn=Gc,e.flattenTree=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Jn(e)){if(0===e.length)return[]}else{if(!Ln(e))return[];if(to(e))return[]}var r=Oo(t,"bindKey",null);E(r)||(r="id");var n=Oo(t,"bindChildren",null);E(n)||(n="children");var o=!1;function i(e){for(var t=[e[0]],r=1;r<e.length;r++){var o=e[r];t.push(n),t.push(o)}return t}Ln(e)&&(o=!0,e=[e]);var a=[];return $c(e,(function(e,t,o){var u=Oo(e,r,null),c=Oo(e,n,null);if(u){var s=i([].concat(ia(o),[t]));if(a.push(Yd(Yd({},e),{},{level:(In(s)-1)/2,nk:s})),c)return c}})),o&&(a=a[0]),a},e.fsCleanFolder=function(e){if(!b.default.existsSync(e)){var t=Bd(e);return t.error?t.error:{success:"done: "+e}}if(!Cd(e))return{error:"input path is not folder"};try{b.default.readdirSync(e).forEach((function(t){var r=e+"/"+t;if(b.default.lstatSync(r).isDirectory())Ld(r);else try{b.default.unlinkSync(r)}catch(e){}}))}catch(e){return{error:e}}return{success:"done: "+e}},e.fsCopyFolder=function e(t,r){try{b.default.readdirSync(t).forEach((function(n){var o=t+"/"+n,i=r+"/"+n,a=b.default.lstatSync(o);if(a.isDirectory())Bd(w.default.dirname(i)),e(o,i);else if(a.isSymbolicLink()){var u=b.default.readlinkSync(o);b.default.symlinkSync(u,i)}else Bd(w.default.dirname(i)),b.default.copyFileSync(o,i)}))}catch(e){return{error:e}}return{success:"done: "+r}},e.fsCreateFolder=Bd,e.fsDeleteFolder=Ld,e.fsGetFilesInFolder=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=Hd(e,t);return r=Ki(r,(function(e){return zd(e.path)})),r=wi(r,"path")},e.fsGetFoldersInFolder=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=Hd(e,t);return r=Ki(r,(function(e){return!zd(e.path)})),r=wi(r,"path")},e.fsIsFile=zd,e.fsIsFolder=Cd,e.fsReadText=function(e){return b.default.readFileSync(e,"utf8")},e.fsTreeFolder=Hd,e.fsWriteText=function(e,t){b.default.writeFileSync(e,t,"utf8")},e.genGradientColor=function(e){if(oo(e))return{};var t;try{t=Dc.toRgba(e)}catch(e){return{}}function r(e,t){return e.a=t,Dc.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,r(t,.4)],[1,r(t,.9)]]}},e.genID=us,e.genPm=tu,e.getBufferSize=Rd,e.getClearPathName=Ud,e.getCsvStrFromData=qd,e.getDataFromExcelFileU8Arr=Kd,e.getDataFromExcelFileU8ArrDyn=function(e){return Jd.apply(this,arguments)},e.getDirName=function(e){if(!E(e))return"";var t=Ud(e);if(t.isRoot)return t.path;var r=Qd(e=t.path);if(!E(r))return e;var n=Ud(e=Nd(e,In(r)));return n.isRoot,n.path},e.getEnv=function(){var e=ru(),t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;return{isBrowser:e=e||t,isWebWorker:t,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},e.getExcelU8ArrFromData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!io(e)){var r="no data";return{error:r}}E(t)||(t="data");var n=null;try{var o=xd(e,t),i=ev().write(o,{bookType:"xlsx",type:"binary"});n=pu(i)}catch(e){return{error:e}}return n},e.getExcelWorkbookFromData=xd,e.getExcelWorkbookFromWorksheet=bd,e.getFileAccept=mf,e.getFileName=Qd,e.getFileTrueName=function(e){if(!E(e))return"";var t=Qd(e),r=ha(t,".");if(In(r)<=1)return t;var n="";try{r=tv(r),n=Ya(r,".")}catch(e){}return n},e.getGlobal=os,e.getObjSize=function(e){var t=0,r=function e(r){if(null!=r)switch(I(r)){case"number":t+=8;break;case"string":t+=2*r.length;break;case"boolean":t+=4;break;case"object":var n=Object.prototype.toString.call(r).slice(8,-1);if("Object"===n||"Array"===n)for(var o in r)r.hasOwnProperty(o)&&e(r[o]);else t+=2*r.toString().length}return t}(e);return{int:r,str:function(e){return e<1024?e+" bytes":e<1048576?(e/1024).toFixed(3)+" KiB":e<1073741824?(e/1048576).toFixed(3)+" MiB":(e/1073741824).toFixed(3)+" GiB"}(r)}},e.getTimeBetween=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days",n=iv(r);if(""===n)return[];var o=uv(e,r),i=uv(t,r);if(null===o||null===i)return[];if(e>=t)return[];var a=i.diff(o,r)+1,u=wi(ov(a),(function(e){return o.clone().add(e,r).format(n)}));return u},e.getTimeFromUnit=iv,e.getTimeObject=uv,e.getTimeRange=function(e,t){if(!cv(e))return"無起始時間";if(void 0===t&&(t=e),!cv(t))return"結束時間格式錯誤";var r=d.default(e,"YYYY-MM-DDTHH:mm:ss"),n=d.default(t,"YYYY-MM-DDTHH:mm:ss"),o=r.format("YYYY-MM-DD"),i=n.format("YYYY-MM-DD");if(o===i){var a=n.format("HH:mm");if(e===t)return sv(e)+" 至 無";if(e<t)return sv(e)+" 至 "+a;if(e>t)return sv(e)+" 至 "+a+" (起始時間大於結束時間)"}else{if(o<i)return sv(e)+" 至 "+sv(t);if(o>i)return sv(e)+" 至 "+sv(t)+" (起始時間大於結束時間)"}return""},e.getUserAgent=lv,e.getUserAgentDyn=function(){return pv.apply(this,arguments)},e.getltdtkeys=jd,e.haskey=Hn,e.html2pic=hv,e.html2picDyn=function(e){return mv.apply(this,arguments)},e.html2str=yv,e.html2strDyn=function(e,t){return bv.apply(this,arguments)},e.htmlDecode=function(e){var t=document.createElement("span");return t.appendChild(document.createTextNode(e)),t.innerHTML},e.htmlEncode=su,e.importResources=Ts,e.interp1=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Jn(e))return{err:"ps is not array"};if(!ta(t))return{err:"x is not number"};var n=kv(e,r);if(Oo(n,"err"))return Oo(n,"err");if(0===In(n))return{err:"ps(length=0) is not effective array",ps:e,psEff:n};if(1===In(n))return{err:"ps(length=1) is one point only",ps:e,psEff:n};var o=Ev(n);if("no"===o)return{err:"psEff is not increasing or decreasing"};o===Sv&&(o=Ov,n=xv(n));var i=Oo(r,"mode");"linear"!==i&&"stairs"!==i&&"blocks"!==i&&(i="linear");try{if("linear"===i)return Mv(n,t);if("blocks"===i)return Pv(n,t);if("stairs"===i)return Dv(n,t,r)}catch(e){return{err:e.toString()}}},e.isDev=function(){return!!location&&eu(location.href,"localhost")},e.isEle=Kc,e.isEleExistByID=function(e){return!!E(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!E(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},e.isIE=bs,e.isNarrow=function(e){if(!ru())return!1;var t=window.innerWidth>0&&window.innerWidth<=1024,r=!1;if(e){var n=Oo(e,"clientWidth",0);r=n>0&&n<=700}return t||r},e.isStrHasCapital=Cv,e.isStrHasLowerCase=Lv,e.isStrHasNumber=ja,e.isUserIdentify=function(e){var t=tu();if(!E(e))return t.reject("身份證字號非有效字串"),t;if(10!==e.length)return t.reject("身份證字號長度非10位"),t;if(isNaN(e.substr(1,9))||!/^[A-Z]$/.test(e.substr(0,1)))return t.reject("身份證格式錯誤,字首需大寫英文"),t;e="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(e.substring(0,1))+10+""+e.substr(1,9);var r=parseInt(e.substr(0,1))+9*parseInt(e.substr(1,1))+8*parseInt(e.substr(2,1))+7*parseInt(e.substr(3,1))+6*parseInt(e.substr(4,1))+5*parseInt(e.substr(5,1))+4*parseInt(e.substr(6,1))+3*parseInt(e.substr(7,1))+2*parseInt(e.substr(8,1))+parseInt(e.substr(9,1)),n=parseInt(e.substr(10,1));return r%10!=0&&10-r%10!==n?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){var t=tu();return E(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPW=function(e){var t=tu();if(!k(e))return t.reject("密碼非字串"),t;var r=[];return e.length<8&&r.push("長度須大於8個字元"),e.length>30&&r.push("長度須小於30個字元"),Cv(e)&&Lv(e)&&ja(e)||r.push("須包含大寫、小寫英文與數字各1個字元"),eu(e,["<",">"])&&r.push("不能使用特殊符號(<,>)"),eu(e,["select","insert","update","delete"])&&r.push("不能使用指令(select,insert,update,delete)"),r.length>0?t.reject(Ya(r,",")):t.resolve(),t},e.isWindow=ru,e.isab=O,e.isarr=Jn,e.isarr0=no,e.isblob=lu,e.isbol=ye,e.isday=rs,e.isearr=io,e.iseobj=Bn,e.iser=oo,e.isernot=gf,e.isestr=E,e.isfun=aa,e.isint=fe,e.ismonth=A,e.isn0int=Tv,e.isn0num=Iv,e.isnbr=ue,e.isnint=Gn,e.isnnum=function(e){return!!ce(e)&&se(e)<0},e.isnull=eo,e.isnum=ce,e.isobj=Ln,e.isobj0=to,e.isp0int=zo,e.isp0num=Yv,e.ispint=Vi,e.ispm=wu,e.ispnum=Ji,e.isstr=k,e.isstr0=ro,e.istime=cv,e.istimeTZ=Rv,e.istimems=Bv,e.istimemsTZ=Fv,e.isu16arr=Fd,e.isu8arr=Ka,e.isundefined=Qn,e.j2o=Ga,e.keysmat2ltdt=Nv,e.log=function(){var e=null;return{init:function(t){if(!aa(t))throw new Error("loggerFun is not function");e=t},log:function(t,r,n){if(null===e)throw new Error("no logger: need to construct by init");var o=Uv(),i={id:us(),from:t,level:r,msg:cu(n),time:o};return e(i)}}},e.ltdt2vrtsable=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!io(e))return[];if(!Jn(t))return[];var r=!1;if(et(e,(function(e){Bn(e)||(r=!0)})),r)return[];var n=jd(e),o=[];et(e,(function(e){var t={};et(n,(function(r){t[r]={value:e[r].value,style:e[r].style,rowspan:1}})),o.push(t)}));var i=xv(o),a=In(i);et(n,(function(e){if(ra(e,t)){var r=lo(0,a,0),n=lo(0,a,0),o=lo(1,a+1,0);et(i,(function(t,a){if(a>0){var u=i[a-1][e].value,c=i[a][e].value;ea(u,c)&&(r[a-1]=1,r[a]=1,o[a]=o[a-1]+1),1===r[a-1]&&1===r[a]&&(n[a-1]=0,n[a]=1)}})),et(i,(function(t,a){1===r[a]&&(1===n[a]?i[a][e].rowspan=o[a]:i[a][e].rowspan=null)}))}}));var u=xv(i);return u},e.ltdtdiff=function(e,t,r){if(!E(r))return console.log("invalid key"),{infor:{},del:[],same:[],diff:[],add:[]};Jn(e)||(e=[e]),Jn(t)||(t=[t]);var n={},o=[],i=[],a=[];et(e,(function(e){if(Hn(e,r)){var u=Su({},r,e[r]),c=Vv(t,u);oo(c)?(o.push(e),n[e[r]]="del"):ea(e,c)?(a.push(c),n[c[r]]="same"):(i.push(c),n[c[r]]="diff")}}));var u=[];return et(t,(function(t){if(Hn(t,r)){var o=Su({},r,t[r]);oo(Vv(e,o))&&(u.push(t),n[t[r]]="add")}})),{infor:n,del:o,same:a,diff:i,add:u}},e.ltdtkeys2mat=_d,e.ltdtkeysheads2mat=Od,e.ltdtmapping=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!io(e))return[];if(!io(t))return[];var n=wi(e,(function(e){return Md(e,t,r)}));return n},e.ltdtmerge=Td,e.ltdtpick=function(e,t){return io(e)&&io(t)?wi(e,(function(e){return Dd(e,t)})):[]},e.ltdtpull=function(e,t,r){return Jn(e)&&Jn(t)&&E(r)&&Gv(e,(function(e){return Ln(e)}))?0===t.length?e:Gv(t,(function(e){return Ln(e)}))?Kv(e,t,r):[]:[]},e.mat2ltdt=function(e){if(!io(e))return[];if(e.length<=1)return[];var t=!1;return et(e,(function(e){io(e)||(t=!0)})),t?[]:Nv(Jv(e)[0],Qv(e))},e.matConcat=function(e,t){if(!Jn(e))return[];if(!Jn(t))return[];if(0===In(e)&&0===In(t))return[];for(var r=In(e),n=In(Oo(e,0,[])),o=In(t),i=In(Oo(t,0,[])),a=[],u=Math.max(r,o),c=0;c<u;c++){for(var s=[],f=-1,l=0;l<n;l++){f++;var p=Oo(e,"".concat(c,".").concat(l),null);s[f]=p}for(var d=0;d<i;d++){f++;var v=Oo(t,"".concat(c,".").concat(d),null);s[f]=v}a[c]=s}return a},e.matat=function(e,t,r){return io(e)?wi(e,(function(e){return Fo(e,t,r)})):[]},e.now2str=function(){return d.default().format("YYYY-MM-DDTHH:mm:ssZ")},e.now2strp=function(){return d.default().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){return d.default().format("YYYY-MM-DD")},e.nowms2str=Uv,e.nowms2strp=function(){return d.default().format("YYYYMMDDHHmmssSSS")},e.o2j=cu,e.obj2b64=function(e){var t="";try{t=eh(cu(e))}catch(e){t=""}return t},e.obj2pb64=function(e,t){return void 0===e?"":E(t)?th(cu({data:e}),t,!0):""},e.obj2str=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(Qn(e))return"";if(k(t))t=[t];else if(!Jn(t))return"";function r(e,r){return t.indexOf("Uint8Array")>=0&&(r=ch.u8arr2b64(r)),t.indexOf("Uint16Array")>=0&&(r=ch.u16arr2b64(r)),r}var n="";try{n=JSON.stringify(e,r)}catch(e){n=""}return n},e.obj2stru8arr=fh,e.obj2u8arr=function(e){var t=[],r=[];if(!io(e)&&!Bn(e))return null;var n=[],o=[];function i(e){n.push(Rd(e)),o.push(e)}try{var a=fh(e);i(lh(a.results)),et(a.binarys,(function(e){i(e)}));var u=n,c=lh(JSON.stringify(u)),s=new Uint8Array(8);gu(Rd(c),s),t.push(s),t.push(c),et(o,(function(e){t.push(e)})),et(t,(function(e){r=function(e,t){var r=Rd(e),n=Rd(t),o=new Uint8Array(r+n);return o.set(new Uint8Array(e),0),o.set(new Uint8Array(t),r),o}(r,e)}))}catch(e){return null}return r},e.objSortBy=ph,e.objSortByKeys=function(e,t){if(!Bn(e))return{};if(!io(t))return{};var r={};return et(t,(function(e,t){r[e]=t})),ph(e,(function(e,t){return Oo(r,t,0)}))},e.ocr=vh,e.ocrDyn=function(e){return gh.apply(this,arguments)},e.oo=function(e){if(void 0!==e)return Ga(cu(e))},e.openLink=function(e){if(E(e)){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},e.pb642obj=function(e,t){return E(e)&&E(t)?Ga(be(e,t,!0)).data:""},e.pm2resolve=hd,e.pmChain=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Jn(e)){var r=tu();return r.reject("pms is not array"),r}return e.reduce((function(e,t){return e.then(t)}),Promise.resolve(t))},e.pmHook=mh,e.pmHookReject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return aa(e)?(aa(t)||(t=function(){}),mh(e,(function(e){if("afterCatch"===e.mode)return t(e.data)}))):null},e.pmIni=function(){return Promise.resolve()},e.pmMap=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n={},o=!1,i=tu();if(!Jn(e)&&!Ln(e))return i.reject("rs is not array or object"),i;var a=!1;if(Ln(e)){a=!0;var u=[];et(e,(function(e,t){u.push({k:t,v:e})})),e=u}var c=gd(r);return c.on("message",(function(r){if(!o){var u,s=c.get();if(aa(t)){var f=s.key,l=s.value;a&&(f=s.value.k,l=s.value.v),u=t(l,f)}else u=s.value;u.then((function(e){n[s.key]=e})).catch((function(e){o=!0,c.clear(),i.reject(e)})).finally((function(){c.cb(),In(n)===e.length&&i.resolve(Xd(n))}))}})),et(e,(function(e,t){c.push({key:t,value:e})})),i},e.pmQueue=md,e.pmSeries=As,e.pmThrottle=function(){var e=Cn(),t=[],r=null,n=!1;function o(){null===r&&(r=setInterval(yu(bu.mark((function o(){var i,a,u,c,s,f;return bu.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!n){o.next=2;break}return o.abrupt("return");case 2:for(n=!0,i=t.pop(),a=0;a<t.length;a++)u=t[a].id,c={state:"cancelled"},e.emit(u,c);if(t=[],!i){o.next=16;break}if(f=i.id,!aa(i.func)){o.next=14;break}return o.next=11,hd(i.func).apply(void 0,ia(i.input));case 11:s=o.sent,o.next=15;break;case 14:s={state:"error",msg:"fun is not function"};case 15:e.emit(f,s);case 16:(n=!1)||0!==t.length||(clearInterval(r),r=null);case 18:case"end":return o.stop()}}),o)}))),10))}return function(r){var n=tu();if(aa(r)){for(var i=us(),a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];return t.push({id:i,func:r,input:u}),o(),e.once(i,(function(e){"success"===e.state?n.resolve(e.msg):"cancelled"===e.state?n.reject({reason:"cancelled"}):n.reject(e.msg)})),n}console.log("func is not function")}},e.queue=gd,e.rang=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!ce(e))return[];if(e=se(e),!ce(t))return[];if(t=se(t),ce(r)||(r=2),(r=$n(r))<2&&(r=2),2===r)return[e,t];var n=(t-e)/(r-1),o=e,i=[];i.push(e);for(var a=1;a<=r;a++)o+=n,i.push(o);return i},e.rep=function(e,t){return E(e)&&zo(t)?wh(e,t):""},e.repObj=function(e,t){return oo(e)?[]:Vi(t)?ov(t,Io(e)):[]},e.replace=Eu,e.replaceObj=function(e,t){if(!E(e))return"";if(!Bn(t))return"";var r=!1;return et(t,(function(e,t){k(e)||(r=!0)})),r?"":(et(t,(function(t,r){e=Eu(e,r,t)})),e)},e.replacePlus=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0;if(!E(e)||!E(t)||!E(r))return"";if(!k(o))return"";var i="[\\s\\S]*";E(n)&&(i="[^"+n+"]*");var a=t+i+r,u=new RegExp(a,"g"),c=e.replace(u,o);return c},e.round=function(e){return ce(e)?(e=se(e),Xn(e)):""},e.secd=function(e){return ce(e)?1/Qc(e=se(e)):null},e.sep=qi,e.sepInt=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!fe(e))return[];if(!zo(t))return[];if(!ye(r))return[];for(var n=xh(e/t),o=e-n*t,i=[],a=1;a<=t;a++){var u=n;a<=o&&(u=n+1),i.push(u)}return r&&(i=xv(i)),i},e.sind=ts,e.split=Wi,e.str2aes=th,e.str2b64=eh,e.str2md5=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!E(e))return"";if(!ye(t))return"";var r=de(e);return t?r.toString(pe):r.toString(ge)},e.str2obj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(k(t))t=[t];else if(!Jn(t))return{};function r(e,r){return t.indexOf("Uint8Array")>=0&&(r=ch.b642u8arr(r)),t.indexOf("Uint16Array")>=0&&(r=ch.b642u16arr(r)),r}var n={};try{n=JSON.parse(e,r)}catch(e){n={}}return n},e.str2sha512=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!E(e))return"";if(!ye(t))return"";var r=jh(e);return t?r.toString(pe):r.toString(ge)},e.str2u8arr=lh,e.strCompare=_h,e.strFindFuzz=Ah,e.strFindFuzzDyn=function(e,t){return Mh.apply(this,arguments)},e.strFindSimilar=function(e,t){var r="";if(E(e)||ce(e))r=Au(e);else{if(!io(e))return{};r=Ya(e,"")}return ce(t)&&(t=Au(t)),E(t)&&(t=[t]),io(t)?function(e,t){for(var r=[],n=0,o=0;o<t.length;o++){var i=t[o],a=_h(e,i);r.push({target:i,rating:a}),a>r[n].rating&&(n=o)}return{ratings:r,bestMatch:r[n],bestMatchIndex:n}}(r,t=wi(t,(function(e){return Au(e)}))):{}},e.strdelleft=Gi,e.strdelright=Nd,e.strleft=Xi,e.strmid=_a,e.strright=$i,e.stru8arr2obj=Dh,e.tand=es,e.time2day=function(e){return cv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"):""},e.time2hour=function(e){return cv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH"):""},e.time2min=sv,e.timeTZ2day=function(e){return Rv(e)?(e=zv.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")):""},e.timeTZ2expire=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Rv(e)?Ph(e=Ih(e),t=Ih(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timeTZ2hour=function(e){return Rv(e)?(e=zv.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")):""},e.timeTZ2min=function(e){return Rv(e)?(e=zv.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")):""},e.timeTZ2past=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Rv(e)?Th(e=Yh(e),t=Yh(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timems2day=function(e){return Bv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD"):""},e.timems2hour=function(e){return Bv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH"):""},e.timems2min=function(e){return Bv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm"):""},e.timems2time=function(e){return Bv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss"):""},e.timemsTZ2day=function(e){return Fv(e)?(e=zv.delTZ(e),d.default(e).format("YYYY-MM-DD")):""},e.timemsTZ2expire=Ph,e.timemsTZ2hour=function(e){return Fv(e)?(e=zv.delTZ(e),d.default(e).format("YYYY-MM-DDTHH")):""},e.timemsTZ2min=function(e){return Fv(e)?(e=zv.delTZ(e),d.default(e).format("YYYY-MM-DDTHH:mm")):""},e.timemsTZ2past=Th,e.timemsTZ2time=function(e){return Fv(e)?(e=zv.delTZ(e),d.default(e).format("YYYY-MM-DDTHH:mm:ss")):""},e.treeObj=$c,e.trim=Pd,e.u16arr2b64=ih,e.u16arr2u8arr=oh,e.u8arr2ab=function(e){return Ka(e)?e.buffer:new ArrayBuffer},e.u8arr2b64=nh,e.u8arr2blob=Ad,e.u8arr2bs=function(e){if(!Ka(e))return"";for(var t=e.length,r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r},e.u8arr2obj=function(e){var t=null;if(!Ka(e))return null;try{var r=e.slice(0,8),n=e.slice(8,Rd(e)),o=vu(r),i=n.slice(0,o),a=n.slice(o,Rd(n)),u=Ch(i),c=function(e,t){var r=0,n=0,o=[];return et(t,(function(t){n=r+t;var i=e.slice(r,n);r=n,o.push(i)})),o}(a,JSON.parse(u));t=Dh({results:Ch(c.shift()),binarys:c})}catch(e){}return t},e.u8arr2str=Ch,e.u8arr2u16arr=Ja,e.urlParse=function(e){if(!E(e))return{};if(e=ha(e,"?"),!E(e=Oo(e,"[1]")))return{};var t=ha(e,"&");return t=wi(t,(function(e){return ha(e,"=")})),t=Lh(t)},e.verifyValue=function(e,t){var r=!1,n="";if("isstr"===t)k(e)||(r=!0,n="需要為字串",e="");else if("isnum"===t)ce(e)||(r=!0,n="需要為數字",e=0);else if("isp0num"===t)Yv(e)||(r=!0,n="需要為含0的正浮點數",e=0);else if("isn0num"===t)Iv(e)||(r=!0,n="需要為含0的負浮點數",e=0);else if("isint"===t)fe(e)||(r=!0,n="需要為整數",e=0);else if("ispint"===t)Vi(e)||(r=!0,n="需要為不含0正整數",e=0);else if("isp0int"===t)zo(e)||(r=!0,n="需要為含0正整數",e=0);else if("isnint"===t)Gn(e)||(r=!0,n="需要為不含0負整數",e=0);else if("isn0int"===t)Tv(e)||(r=!0,n="需要為含0負整數",e=0);else if(aa(t)){e=t(e)}else"any"===t?ce(e)||k(e)||(r=!0,n="需要為字串或數字",e=""):(r=!0,n="需要指定驗證類型",e=null);return{value:e,err:r,errmsg:n}},e.waitFun=xu,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
25
|
+
*/!function(e){var t={},r=e._dec,n=e._hex,o=e._pad4;function i(e){return e.replace(/[- _]+/g,"").toLowerCase()}function a(e){var t=/^\\[xu](.+)/.exec(e);return t?r(t[1]):e.charCodeAt("\\"===e.charAt(0)?1:0)}function u(r){return t[r]["b!"]||(t[r]["b!"]=function(t){var r="",i=-1;return e.forEach(t,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(e){var t=a(e[1]);t>i+1&&(r+="\\u"+o(n(i+1)),t>i+2&&(r+="-\\u"+o(n(t-1)))),i=a(e[2]||e[1])})),i<65535&&(r+="\\u"+o(n(i+1)),i<65534&&(r+="-\\uFFFF")),r}(t[r].bmp))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(e,r,n){var o="P"===e[1]||!!e[2],a=i(e[4]||e[3]),c=t[a];if("P"===e[1]&&e[2])throw new SyntaxError("Invalid double negation "+e[0]);if(!t.hasOwnProperty(a))throw new SyntaxError("Unknown Unicode token "+e[0]);if(c.inverseOf){if(a=i(c.inverseOf),!t.hasOwnProperty(a))throw new ReferenceError("Unicode token missing data "+e[0]+" -> "+c.inverseOf);c=t[a],o=!o}if(!c.bmp)throw new SyntaxError("Astral mode required for Unicode token "+e[0]);return"class"===r?o?u(a):c.bmp:(o?"[^":"[")+c.bmp+"]"}),{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(r){for(var n,o=0;o<r.length;++o){if(!(n=r[o]).name)throw new Error("Unicode token requires name");if(!(n.inverseOf||n.bmp||n.astral))throw new Error("Unicode token has no character data "+n.name);t[i(n.name)]=n,n.alias&&(t[i(n.alias)]=n)}e.cache.flush("patterns")},e._getUnicodeProperty=function(e){var r=i(e);return t[r]}}(Z),function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");e.addUnicodeData([{name:"L",alias:"Letter",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢄᢇ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"},{name:"N",alias:"Number",bmp:"0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൘-൞൦-൸෦-෯๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9"}])}(Z);var K=Z,J={exports:{}};return function(e){e.exports=function(t,r,n,o){return(e={}).dedupe=function(e,i){var a,u=t(i);if(!r(e)&&"object"!=I(e))throw new Error("contains_dupes must be an array or object");if(0===Object.keys(e).length)return void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("contains_dupes is empty"),[];u.limit&&(void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("options.limit will be ignored in dedupe"),u.limit=0),u.cutoff&&"number"==typeof u.cutoff||(void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Using default cutoff of 70"),u.cutoff=70),u.scorer||(u.scorer=n,void 0!==("undefined"==typeof console?"undefined":I(console))&&console.log("Using default scorer 'ratio' for dedupe")),a=u.processor&&"function"==typeof u.processor?u.processor:function(e){return e};var c={};for(var s in e){var f=a(e[s]);if("string"!=typeof f&&f instanceof String==0)throw new Error("Each processed item in dedupe must be a string.");var l=o(f,e,u);u.returnObjects?(1===l.length||(l=l.sort((function(e,t){var r=a(e.choice),n=a(t.choice),o=r.length,i=n.length;return o===i?r<n?-1:1:i-o}))),u.keepmap?c[a(l[0].choice)]={item:l[0].choice,key:l[0].key,matches:l}:c[a(l[0].choice)]={item:l[0].choice,key:l[0].key}):(1===l.length||(l=l.sort((function(e,t){var r=a(e[0]),n=a(t[0]),o=r.length,i=n.length;return o===i?r<n?-1:1:i-o}))),u.keepmap?c[a(l[0][0])]=[l[0][0],l[0][2],l]:c[a(l[0][0])]=[l[0][0],l[0][2]])}var p=[];for(var d in c)p.push(c[d]);return p},e}}(J),function(){var e=c,r=d,n=v.exports.intersection,o=v.exports.intersectionWith,i=v.exports.difference,a=v.exports.differenceWith,u=v.exports.uniq,s=v.exports.uniqWith,f=v.exports.partialRight,l=v.exports.forEach,p=v.exports.keys,h=v.exports.isArray,m=v.exports.toArray,w=v.exports.orderBy,x=g,j=y,_=b,O=function(e,t,r){var n={},o=K,i=y,a=b;function u(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c(e){return("string"==typeof e||e instanceof String)&&e.length>0}n.validate=c,n.process_and_sort=function(e){return c(e)?e.match(/\S+/g).sort().join(" ").trim():""},n.tokenize=function(n,o){if(o&&o.wildcards&&t&&r){var u=r(i,o,a);return t(n.match(/\S+/g),(function(e,t){return 0===u(e,t)}))}return e(n.match(/\S+/g))};var s=o("[^\\pN|\\pL]","g");return n.full_process=function(e,t){if(!(e instanceof String)&&"string"!=typeof e)return"";var r;if(t&&"object"==I(t)&&t.wildcards&&"string"==typeof t.wildcards&&t.wildcards.length>0){var n=t.wildcards.toLowerCase();if(e=e.toLowerCase(),t.force_ascii){var i="[^\0 -|"+u(n)+"]";e=e.replace(new RegExp(i,"g"),"");var a="["+u(n)+"]",c=n[0];e=e.replace(new RegExp(a,"g"),c);var f="[^A-Za-z0-9"+u(n)+"]";r=(e=(e=e.replace(new RegExp(f,"g")," ")).replace(/_/g," ")).trim()}else{var l="[^\\pN|\\pL|"+u(n)+"]",p=o(l,"g");e=o.replace(e,p," ","all"),a="["+u(n)+"]",c=n[0],r=(e=e.replace(new RegExp(a,"g"),c)).trim()}}else t&&(t.force_ascii||!0===t)&&(r=(e=e.replace(/[^\x00-\x7F]/g,"")).replace(/\W|_/g," ").toLowerCase().trim()),r=o.replace(e,s," ","all").toLowerCase().trim();return t&&t.collapseWhitespace&&(r=r.replace(/\s+/g," ")),r},n.clone_and_set_option_defaults=function(e){if(e&&e.isAClone)return e;var t={isAClone:!0};if(e){var r,n=Object.keys(e);for(r=0;r<n.length;r++)t[n[r]]=e[n[r]]}return void 0!==t.full_process&&!1===t.full_process||(t.full_process=!0),void 0!==t.force_ascii&&!0===t.force_ascii||(t.force_ascii=!1),void 0!==t.normalize&&!1===t.normalize||(t.normalize=!0),void 0!==t.astral&&!0===t.astral&&(t.full_process=!1),void 0!==t.collapseWhitespace&&!1===t.collapseWhitespace||(t.collapseWhitespace=!0),t},n.isCustomFunc=function(e){return"function"!=typeof e||"token_set_ratio"!==e.name&&"partial_token_set_ratio"!==e.name&&"token_sort_ratio"!==e.name&&"partial_token_sort_ratio"!==e.name&&"QRatio"!==e.name&&"WRatio"!==e.name&&"distance"!==e.name&&"partial_ratio"!==e.name},n}(u,s,f),S=O.validate,k=O.process_and_sort,E=O.tokenize,A=O.full_process,M=O.clone_and_set_option_defaults,D=O.isCustomFunc,P=J.exports(M,h,T,H).dedupe;function T(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?ee(e,t,n):0}function Y(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?V(e,t,n):0}function C(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?(n.partial=!0,V(e,t,n)):0}function L(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?(n.proc_sorted||(e=k(e),t=k(t)),ee(e,t,n)):0}function B(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?(n.partial=!0,n.proc_sorted||(e=k(e),t=k(t)),te(e,t,n)):0}function H(e,t,n){var o,i=M(n);if(h(t))o=t.length;else{if(!(t instanceof Object))throw new Error("Invalid choices");o=p(t).length}if(!t||0===o)return void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("No choices"),[];if(i.processor&&"function"!=typeof i.processor)throw new Error("Invalid Processor");if(i.processor||(i.processor=function(e){return e}),i.scorer&&"function"!=typeof i.scorer)throw new Error("Invalid Scorer");i.scorer||(i.scorer=T);var a=D(i.scorer);i.cutoff&&"number"==typeof i.cutoff||(i.cutoff=-1);var u=function(e,t){return e};i.full_process&&(u=A,a||(i.processed=!0));var c=!1;a||(e=u(e,i),i.full_process=!1,i.astral&&i.normalize&&(i.normalize=!1,String.prototype.normalize?(c=!0,e=e.normalize()):void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Normalization not supported in your environment")),0===e.length&&void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Processed query is empty string"));var s,f,d,v,g=[],m=!1,y=!1,b=!1;if("token_sort_ratio"===i.scorer.name||"partial_token_sort_ratio"===i.scorer.name){var w=k(e);y=!0}else if("token_set_ratio"===i.scorer.name||"partial_token_set_ratio"===i.scorer.name){var x=E(e,i);b=!0}return i.returnObjects?(d=function(e,t){return e.score-t.score},v=function(e,t){return t.score-e.score}):(d=function(e,t){return e[1]-t[1]},v=function(e,t){return t[1]-e[1]}),l(t,(function(t,r){i.tokens=void 0,i.proc_sorted=!1,y?(i.proc_sorted=!0,t&&t.proc_sorted?f=t.proc_sorted:(f=u(i.processor(t),i),f=k(c?f.normalize():f)),s=i.scorer(w,f,i)):b?(f="x",t&&t.tokens?(i.tokens=[x,t.tokens],i.trySimple&&(f=u(i.processor(t),i))):(f=u(i.processor(t),i),i.tokens=[x,E(c?f.normalize():f,i)]),s=i.scorer(e,f,i)):a?(f=i.processor(t),s=i.scorer(e,f,i)):("string"==typeof(f=u(i.processor(t),i))&&0!==f.length||(m=!0),c&&"string"==typeof f&&(f=f.normalize()),s=i.scorer(e,f,i)),s>i.cutoff&&(i.returnObjects?g.push({choice:t,score:s,key:r}):g.push([t,s,r]))})),m&&void 0!==("undefined"==typeof console?"undefined":I(console))&&console.log("One or more choices were empty. (post-processing if applied)"),i.limit&&"number"==typeof i.limit&&i.limit>0&&i.limit<o&&!i.unsorted?g=r.nlargest(g,i.limit,d):i.unsorted||(g=g.sort(v)),g}function z(e,t,n,o){var i,a=M(n);"object"==I(n.cancelToken)&&(i=n.cancelToken);var u=256;"number"==typeof a.asyncLoopOffset&&(u=a.asyncLoopOffset<1?1:a.asyncLoopOffset);var c,s=!1;if(t&&t.length&&h(t))c=t.length,s=!0;else{if(!(t instanceof Object))return void o(new Error("Invalid choices"));c=Object.keys(t).length}if(!t||0===c)return void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("No choices"),void o(null,[]);if(a.processor&&"function"!=typeof a.processor)o(new Error("Invalid Processor"));else if(a.processor||(a.processor=function(e){return e}),a.scorer&&"function"!=typeof a.scorer)o(new Error("Invalid Scorer"));else{a.scorer||(a.scorer=T);var f=D(a.scorer);a.cutoff&&"number"==typeof a.cutoff||(a.cutoff=-1);var l=function(e,t){return e};a.full_process&&(l=A,f||(a.processed=!0));var p=!1;f||(e=l(e,a),a.full_process=!1,a.astral&&a.normalize&&(a.normalize=!1,String.prototype.normalize?(p=!0,e=e.normalize()):void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Normalization not supported in your environment")),0===e.length&&void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Processed query is empty string"));var d,v,g,m,y,b=[],w=!1,x=!1,j=!1;if("token_sort_ratio"===a.scorer.name||"partial_token_sort_ratio"===a.scorer.name){var _=k(e);x=!0}else if("token_set_ratio"===a.scorer.name||"partial_token_set_ratio"===a.scorer.name){var O=E(e,a);j=!0}a.returnObjects?(m=function(e,t){return e.score-t.score},y=function(e,t){return t.score-e.score}):(m=function(e,t){return e[1]-t[1]},y=function(e,t){return t[1]-e[1]});var S=Object.keys(t);s?P(0):P(S[0],0)}function P(n,h){(s||t.hasOwnProperty(n))&&(a.tokens=void 0,a.proc_sorted=!1,x?(a.proc_sorted=!0,t[n]&&t[n].proc_sorted?v=t[n].proc_sorted:(v=l(a.processor(t[n]),a),v=k(p?v.normalize():v)),g=a.scorer(_,v,a)):j?(v="x",t[n]&&t[n].tokens?(a.tokens=[O,t[n].tokens],a.trySimple&&(v=l(a.processor(t[n]),a))):(v=l(a.processor(t[n]),a),a.tokens=[O,E(p?v.normalize():v,a)]),g=a.scorer(e,v,a)):f?(v=a.processor(t[n]),g=a.scorer(e,v,a)):("string"==typeof(v=l(a.processor(t[n]),a))&&0!==v.length||(w=!0),p&&"string"==typeof v&&(v=v.normalize()),g=a.scorer(e,v,a)),d=s?parseInt(n):n,g>a.cutoff&&(a.returnObjects?b.push({choice:t[n],score:g,key:d}):b.push([t[n],g,d]))),i&&!0===i.canceled?o(new Error("canceled")):s&&n<t.length-1?n%u==0?setImmediate((function(){P(n+1)})):P(n+1):h<S.length-1?h%u==0?setImmediate((function(){P(S[h+1],h+1)})):P(S[h+1],h+1):(w&&void 0!==("undefined"==typeof console?"undefined":I(console))&&console.log("One or more choices were empty. (post-processing if applied)"),a.limit&&"number"==typeof a.limit&&a.limit>0&&a.limit<c&&!a.unsorted?b=r.nlargest(b,a.limit,m):a.unsorted||(b=b.sort(y)),o(null,b))}}var F="%*SuperUniqueWildcardKey*%",R=!1;function N(e,t){var r=e;if(t.astral){t.normalize&&(String.prototype.normalize?r=e.normalize():R||(void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Normalization not supported in your environment"),R=!0));var n=m(r)}else n=r.split("");var o={};if(t.wildcards)for(var i=0;i<n.length;i++){var a=n[i];t.wildcards.indexOf(a)>-1?o[F]?o[F]+=1:o[F]=1:o[a]?o[a]+=1:o[a]=1}else for(i=0;i<n.length;i++)o[a=n[i]]?o[a]+=1:o[a]=1;return o}function U(e,t,r){for(var o=t,i=e.reduce((function(e,t){return e[t]=N(t,r),e}),{}),a=o.reduce((function(e,t){return e[t]=N(t,r),e}),{}),u=[],c=0;o.length&&c<e.length;){var s=w(o,(function(t){return r=i[e[c]],o=a[t],u=Object.keys(r),s=Object.keys(o),f=n(u,s).map((function(e){return r[e]*o[e]})).reduce((function(e,t){return e+t}),0),l=u.map((function(e){return Math.pow(r[e],2)})).reduce((function(e,t){return e+t}),0),p=s.map((function(e){return Math.pow(o[e],2)})).reduce((function(e,t){return e+t}),0),f/(Math.sqrt(l)*Math.sqrt(p));var r,o,u,s,f,l,p}),"desc")[0];u.push(s),c++,o=o.filter((function(e){return e!==s}))}return u.concat(o)}function W(e,t,r,n){var o=t,i=n;return(t.length>n.length||t.length===n.length&&(e.length>r.length||[e,r].sort()[0]===r))&&(o=n,i=t),[o,i]}function q(e,t,r){if(r.tokens)n=r.tokens[0],o=r.tokens[1];else var n=E(e,r),o=E(t,r);var i=W(e,n.sort(),t,o.sort()),a=i[0],u=U(a,i[1],r);return r.partial?te(a.join(" "),u.join(" "),r):ee(a.join(" "),u.join(" "),r)}function V(e,t,r){if(r.tokens)u=r.tokens[0],c=r.tokens[1];else var u=E(e,r),c=E(t,r);if(r.wildcards)var s=f(j,r,_),l=function(e,t){return 0===s(e,t)},p=o(u,c,l),d=a(u,c,l),v=a(c,u,l);else p=n(u,c),d=i(u,c),v=i(c,u);var h=p.sort().join(" "),g=d.sort(),m=v.sort();if(r.sortBySimilarity)var y=W(e,g,t,m),b=y[0],w=y[1],x=b.join(" "),O=U(b,w,r).join(" ");else x=g.join(" "),O=m.join(" ");var S=h+" "+x,k=h+" "+O;h=h.trim(),S=S.trim(),k=k.trim();var A=ee;if(r.partial&&(A=te,h.length>0))return 100;var M=[A(h,S,r),A(h,k,r),A(S,k,r)];return r.trySimple&&M.push(A(e,t,r)),Math.max.apply(null,M)}var X,$,G,Z,Q=!1;function ee(t,r,n){if(!S(t))return 0;if(!S(r))return 0;if(n.ratio_alg&&"difflib"===n.ratio_alg){var o=new e(null,t,r).ratio();return Math.round(100*o)}var i,a;return void 0===n.subcost&&(n.subcost=2),n.astral?(n.normalize&&(String.prototype.normalize?(t=t.normalize(),r=r.normalize()):Q||(void 0!==("undefined"==typeof console?"undefined":I(console))&&console.warn("Normalization not supported in your environment"),Q=!0)),i=x(t,r,n,m),a=m(t).length+m(r).length):n.wildcards?(i=j(t,r,n,_),a=t.length+r.length):(i=_(t,r,n),a=t.length+r.length),Math.round((a-i)/a*100)}function te(t,r,n){if(!S(t))return 0;if(!S(r))return 0;if(t.length<=r.length)var o=t,i=r;else o=r,i=t;for(var a=new e(null,o,i).getMatchingBlocks(),u=[],c=0;c<a.length;c++){var s=a[c][1]-a[c][0]>0?a[c][1]-a[c][0]:0,f=s+o.length,l=ee(o,i.substring(s,f),n);if(l>99.5)return 100;u.push(l)}return Math.max.apply(null,u)}Object.keys||(Object.keys=(X=Object.prototype.hasOwnProperty,$=!{toString:null}.propertyIsEnumerable("toString"),Z=(G=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("object"!=I(e)&&("function"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var t,r,n=[];for(t in e)X.call(e,t)&&n.push(t);if($)for(r=0;r<Z;r++)X.call(e,G[r])&&n.push(G[r]);return n}));var re=void 0;"undefined"!=typeof Promise&&(re=function(e,t,r){return new Promise((function(n,o){z(e,t,r,(function(e,t){e?o(e):n(t)}))}))});var ne={distance:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,void 0===n.subcost&&(n.subcost=1),n.astral?x(e,t,n,m):j(e,t,n,_)},ratio:T,partial_ratio:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?te(e,t,n):0},token_set_ratio:Y,token_sort_ratio:L,partial_token_set_ratio:C,partial_token_sort_ratio:B,token_similarity_sort_ratio:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?q(e,t,n):0},partial_token_similarity_sort_ratio:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,S(e)&&S(t)?(n.partial=!0,q(e,t,n)):0},WRatio:function(e,t,r){var n=M(r);if(e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,n.full_process=!1,!S(e))return 0;if(!S(t))return 0;var o=!0,i=.95,a=.9,u=ee(e,t,n),c=Math.max(e.length,t.length)/Math.min(e.length,t.length);if(c<1.5&&(o=!1),c>8&&(a=.6),o){var s=te(e,t,n)*a,f=B(e,t,n)*i*a,l=C(e,t,n)*i*a;return Math.round(Math.max(u,s,f,l))}var p=L(e,t,n)*i,d=Y(e,t,n)*i;return Math.round(Math.max(u,p,d))},full_process:A,extract:H,extractAsync:z,extractAsPromised:re,process_and_sort:k,unique_tokens:E,dedupe:P};t.exports=ne}(),t.exports}()}));var Sh=function(e,t){var r=null==e?0:e.length;return r?sa(e,t)/r:NaN};var kh=function(e){return Sh(e,Je)};function Eh(){var e=os();return Oh||e.fuzzball}function Ah(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n="";if(E(e)||ce(e))n=Au(e);else{if(!io(e))return!!r&&0;n=Ya(e,"")}if(""===t)return!r||100;if(oo(t))return!!r&&0;if(eu(n,t))return!r||100;var o=qi(t," "),i=wi(o,(function(e){return Eh().partial_ratio(n,e)}));if(r)return kh(i);var a=80;return Gv(i,(function(e){return e>=a}))}function Mh(){return(Mh=yu(bu.mark((function e(t,r){var n,o,i,a=arguments;return bu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>2&&void 0!==a[2]&&a[2],io(o=a.length>3?a[3]:void 0)||(o=["https://cdn.jsdelivr.net/npm/fuzzball@2.0.2/dist/fuzzball.umd.min.js"]),e.next=5,Ts(o);case 5:return i=Ah(t,r,n),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dh(e){if(!Bn(e))return{};var t=e.results,r=e.binarys;if(!E(t))return{};if(!Jn(r))return{};var n={};try{n=JSON.parse(t,(function(e,t){if(E(t)){if(t.indexOf("[Uint8Array]::")>=0){var n=$n(t.replace("[Uint8Array]::",""));return r[n]}if(t.indexOf("[Uint16Array]::")>=0){var o=$n(t.replace("[Uint16Array]::",""));return r[o]}if(t.indexOf("[ArrayBuffer]::")>=0){var i=$n(t.replace("[ArrayBuffer]::",""));return r[i]}}return t}))}catch(e){}return n}function Ph(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Fv(e))return{today:null,msg:"",err:"時間格式錯誤"};var r=d.default();Fv(t)&&(r=d.default(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));var n=d.default(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r>n)return{today:null,msg:"",err:"時間已過"};var o,i=r.format("YYYY-MM-DD"),a=n.format("YYYY-MM-DD"),u=d.default(i,"YYYY-MM-DD"),c=d.default(a,"YYYY-MM-DD"),s=n.diff(r,"seconds"),f=n.diff(r,"minutes"),l=n.diff(r,"hours"),p=c.diff(u,"days"),v=c.diff(u,"weeks"),h=c.diff(u,"months"),g=c.diff(u,"years"),m="即將到來";if(s>=0&&(o=!0,m=s+"秒後"),f>0&&(o=!0,m=f+"分鐘後"),l>0){var y=n.format("HH:mm");i===a?(o=!0,m=l+"小時後,今天"+y):(o=!1,m=l+"小時後,明天"+y)}return p>1&&(o=!1,m=2===p?"後天":p+"天後"),v>0&&(o=!1,m=v+"周後"),h>0&&(o=!1,m=h+"個月後"),g>0&&(o=!1,m=g+"年後"),{today:o,msg:m,err:""}}function Th(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Fv(e))return{today:null,msg:"",err:"時間格式錯誤"};var r=d.default();Fv(t)&&(r=d.default(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));var n=d.default(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r<n)return{today:null,msg:"",err:"時間未到"};var o=r.format("YYYY-MM-DD"),i=n.format("YYYY-MM-DD"),a=d.default(o,"YYYY-MM-DD"),u=d.default(i,"YYYY-MM-DD"),c=r.diff(n,"seconds"),s=r.diff(n,"minutes"),f=r.diff(n,"hours"),l=a.diff(u,"days"),p=a.diff(u,"weeks"),v=a.diff(u,"months"),h=a.diff(u,"years"),g=!1,m="剛剛";if(c>=0&&(g=!0,m=c+"秒前"),s>0&&(g=!0,m=s+"分鐘前"),f>0){var y=n.format("HH:mm");o===i?(g=!0,m=f+"小時前"):(g=!1,m="昨天"+y)}return l>1&&(g=!1,m=l+"天前"),p>0&&(g=!1,m=p+"周前"),v>0&&(g=!1,m=v+"個月前"),h>0&&(g=!1,m=h+"年前"),{today:g,msg:m,err:""}}function Ih(e){var t=zv.sepTZ(e);return e="".concat(t.t,".000").concat(t.tz)}function Yh(e){var t=zv.sepTZ(e);return e="".concat(t.t,".000").concat(t.tz)}function Ch(e){if(!Ka(e))return"";var t;try{t=$a(nh(e))}catch(e){return""}return t}var Lh=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n};e._tz=zv,e.ab2blob=function(e){var t=S(e);return new Blob([t])},e.ab2u8arr=S,e.addMonth=function(e,t){return A(e)&&fe(t)?d.default(e,"YYYY-MM").add(t,"months").format("YYYY-MM"):""},e.aes2str=be,e.alive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4,t=Cn(),r={},n=null;function o(){null===n&&(n=setInterval((function(){et(r,(function(n,o){if(Date.now()-n.time>e){var i=vn(r[o]);delete r[o],t.emit("message",{eventName:"leave",key:o,data:i.data,now:In(r)})}})),Bn(r)||(clearInterval(n),n=null)}),50))}function i(e,n){E(e)?(Hn(r,e)||setTimeout((function(){t.emit("message",{eventName:"enter",key:e,data:n,now:In(r)})}),1),r[e]={data:n,time:Date.now()},o()):console.log("trigger need key")}function a(){var e=[];return et(r,(function(t,r){e.push({key:r,data:t.data})})),e}return Gn(e)&&(e=1e4),e=$n(e),t.trigger=i,t.get=a,t},e.arr2dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!io(e))return{};if(io(t))return In(e)===In(t)?Kn(e,t):{};for(var r=[],n=0;n<In(e);n++)r.push(vn(t));var o=Kn(e,r);return o},e.arrAccum=function(e){if(!io(e))return[];var t=[],r=0;return et(e,(function(e){r+=se(e),ce(e)?t.push(r):t.push("")})),t},e.arrAdd=function(){if(In(arguments)<2)return[];for(var e=arguments[0],t=1;t<In(arguments);t++){var r=arguments[t];e=ao(e,r)}return e},e.arrAt=Fo,e.arrFilterByKeywords=function(e,t){if(!io(e))return[];if(!E(t))return[];var r=qi(t," "),n=In(r);return wi(e,(function(e){return function(e){for(var t=!1,o=0,i=0;i<n;i++){var a=r[i],u=a,c="+"===Xi(a,1),s="-"===Xi(a,1);if((c||s)&&(u=Gi(a,1)),""!==Ui(u)){var f=e.indexOf(u)>=0;if(c&&!f){t=!1,o=0;break}if(s&&f){t=!1,o=0;break}if(f){t=!0;var l=1-i/n;o+=l=Math.pow(l,2)}}}return{hasKeyword:t,weight:o}}(e)}))},e.arrFilterByNum=function(e){return io(e)?(e=vn(e),e=Ki(e,ce),e=wi(e,se)):[]},e.arrFilterByPnum=Qi,e.arrFilterByPnumAndToLog=function(e){return io(e)?(e=Qi(e),e=wi(e,Math.log)):[]},e.arrFind=function(e,t){function r(e){return Jn(e)?e:[e]}return oo(e)||0===(e=r(e)).length||oo(t)?[]:(t=r(t),wi(t,(function(t){for(var r=-1,n=0;n<e.length;n++)if(ea(e[n],t)){r=n;break}return r})))},e.arrGroupByMaxmin=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"keyMax");E(n)||(n="max");var o=Oo(r,"keyMin");E(o)||(o="min");var i=Oo(r,"keyValue");E(i)||(i="value");var a=Oo(r,"keyItems");if(E(a)||(a="items"),!io(e))return[];if(!io(t))return[];var u=vn(t);return et(e,(function(e,r){var c=Oo(e,i);ce(c)?c=se(c):ce(e)&&(c=se(e)),ta(c)&&et(t,(function(t,r){var i=Oo(t,n,null),s=Oo(t,o,null);if(null!==i&&null!==s&&ce(i)&&ce(s)){var f=Oo(t,"maxType");"<="!==f&&"<"!==f&&(f="<=");var l,p=Oo(t,"minType");">="!==p&&">"!==p&&(p=">="),i=se(i),s=se(s),l="<="===f?c<=i:c<i,(">="===p?c>=s:c>s)&&l&&(Hn(u[r],a)||(u[r][a]=[]),u[r][a].push(e))}}))})),u},e.arrHas=ra,e.arrInsert=function(e,t,r){if(!io(e))return[];if(Jn(r)||(r=[r]),!zo(t))return e;if((t=$n(t))>In(e))return e;var n=e;try{n=[].concat(ia(e.slice(0,t)),ia(r),ia(e.slice(t)))}catch(e){}return n},e.arrLookupByMaxmin=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"keyMax");E(n)||(n="max");var o=Oo(r,"keyMin");E(o)||(o="min");var i=Oo(r,"keyValue");E(i)||(i="value");var a=Oo(r,"keyItems");E(a)||(a="items");var u=Oo(r,"beforeAddResult",null);if(!io(e))return[];if(!io(t))return[];var c=Bn(Oo(e,0));if(!c)return[];var s=vn(e);return et(s,(function(e,r){var c=Oo(e,i);ce(c)&&(c=se(c)),ta(c)&&et(t,(function(e,t){var i=Oo(e,n,null),f=Oo(e,o,null);if(null!==i&&null!==f&&ce(i)&&ce(f)){var l=Oo(e,"maxType");"<="!==l&&"<"!==l&&(l="<=");var p,d=Oo(e,"minType");">="!==d&&">"!==d&&(d=">="),i=se(i),f=se(f),p="<="===l?c<=i:c<i,(">="===d?c>=f:c>f)&&p&&(aa(u)&&(e=u(e,s[r],r)),Hn(s[r],a)||(s[r][a]=[]),s[r][a].push(e))}}))})),s},e.arrMulti=ca,e.arrNorm=function(e){if(!io(e))return null;var t=la(e,e);return ce(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=la,e.arrSep=function(e,t){if(!io(e))return[];if(!Vi(t)&&!Bn(t))return[];var r="",n=null;if(Vi(t))n=t,r="numCount";else if(Bn(t))if(Vi(Oo(t,"numCount")))n=t.numCount,r="numCount";else{if(!Vi(Oo(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");n=t.numGroup,r="numGroup"}var o=In(e),i=[];if("numCount"===r)for(var a=0;a<o;a+=n){for(var u=[],c=0;c<n;c++){var s=a+c;s<o&&u.push(e[s])}i.push(u)}else if("numGroup"===r){for(var f=0;f<n;f++)i[f]=[];for(var l=-1,p=0;p<o;p++)++l>n-1&&(l=0),i[l].push(e[p])}return i},e.arrSort=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!io(e))return[];if(1===In(e))return e;var r=Oo(t,"returnIndex");ye(r)||(r=!1);var n,o=Oo(t,"compareKey",null),i=Oa(e);if(""===i)return[];if("obj"===i){if(!E(o))return[];var a=wi(e,(function(e,t){return Oo(e,o,"")})),u=Oa(a);if("num"!==u&&"str"!==u)return[];var c=Sa(a,u),s=ka(c,!0);n=r?s:wi(s,(function(t){return e[t]}))}else if("num"===i||"str"===i){var f=Sa(e,i);n=ka(f,r)}return n},e.asind=function(e){return ce(e)?(e=se(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return ce(e)?(e=se(e),ce(t)?(t=se(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return ce(e)?(e=se(e),180*Math.atan(e)/Math.PI):null},e.attstr=Xa,e.b642obj=function(e){if(!k(e))return{};var t={};try{t=Ga($a(e))}catch(e){t={}}return t},e.b642str=$a,e.b642u16arr=Qa,e.b642u8arr=Za,e.binstr=eu,e.blob2ab=nu,e.blob2b64=ou,e.blob2str=function(e){var t=tu(),r=new FileReader;return r.onload=function(){t.resolve(r.result)},r.onerror=function(e){t.reject(e)},r.readAsText(e),t},e.blob2u8arr=iu,e.blobs2b64s=au,e.blobs2u8arrs=uu,e.bodyLog=function(){var e=wi(arguments,(function(e){return cu(e)})).join(", "),t='\n <div style="padding:5px; font-size:10pt; font-family:Microsoft JhengHei, Helvetica;">\n <span style="color:#f26;">log: </span>\n <code>'.concat(su(e),"</code>\n </div>\n ");document.querySelector("body").insertAdjacentHTML("beforeend",t)},e.browserView=fu,e.browserViewFromBlob=function(e,t){lu(e)&&fu(e,t)},e.browserViewFromText=function(e){k(e)&&fu(e,"text/plain")},e.browserViewFromU8arr=function(e,t){Ka(e)&&fu(e,t)},e.bs2u8arr=pu,e.bufRead=du,e.bufReadDbl=vu,e.bufWrite=hu,e.bufWriteDbl=gu,e.cache=function(){var e=Cn(),t={};function r(t,r){setTimeout((function(){e.emit(t,r)}),1)}function n(e,n){var o=n.execFun,i=n.inputFun,a=n.timeExpired;Hn(t,e)||(aa(o)||(o=function(){var e=yu(bu.mark((function e(){return bu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),Gn(a)&&(a=5e3),a=$n(a),Jn(i)||(i=[]),t[e]={needExec:!0,execFun:o,execFunRunning:!1,inputFun:i,value:null,time:null,timeExpired:a},r("message",{fun:"set",key:e,timeExpired:a}))}function o(e){return i.apply(this,arguments)}function i(){return(i=yu(bu.mark((function e(n){var o,i,a,u;return bu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Hn(t,n)){e.next=24;break}return r("message",{fun:"get",key:n,msg:"waiting"}),e.next=4,xu((function(){return!t[n].execFunRunning}),{timeInterval:1e3});case 4:if(i=Date.now(),o=t[n].needExec,a=i-t[n].time,o?r("message",{fun:"get",key:n,msg:"execute first"}):t[n].timeExpired>0&&a>t[n].timeExpired&&(r("message",{fun:"get",key:n,msg:"execute by timeExpired",timeDiff:a}),o=!0),!o){e.next=20;break}return r("message",{fun:"get",key:n,msg:"execFun start"}),t[n].execFunRunning=!0,e.next=13,(u=t[n]).execFun.apply(u,ia(t[n].inputFun)).catch((function(e){r("error",{fun:"get",key:n,msg:e})}));case 13:t[n].value=e.sent,t[n].needExec=!1,t[n].time=i,t[n].execFunRunning=!1,r("message",{fun:"get",key:n,msg:"execFun end"}),e.next=21;break;case 20:r("message",{fun:"get",key:n,msg:"use cache"});case 21:return e.abrupt("return",vn(t[n].value));case 24:return r("error",{fun:"get",key:n,msg:"invalid key"}),e.abrupt("return",null);case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function a(){return(a=yu(bu.mark((function e(t,r){var i,a,u;return bu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.execFun,a=r.inputFun,u=r.timeExpired,n(t,{execFun:i,inputFun:a,timeExpired:u}),e.abrupt("return",o(t));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return e.set=n,e.getProxy=function(e,t){return a.apply(this,arguments)},e.get=o,e.update=function(e,n){Hn(t,e)&&(r("message",{fun:"updateValue",key:e}),t[e].value=n,t[e].time=Date.now())},e.clear=function(e){Hn(t,e)&&(r("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Hn(t,e)&&(r("message",{fun:"remove",key:e}),delete t[e])},e},e.cbol=function(e){if(ye(e))return e;if(0===e)return!1;if(1===e)return!0;var t=!1;return E(e)&&"true"===(e=_u(Ui(e)))&&(t=!0),t},e.cdbl=se,e.cfilesize=function(e){return ce(e)?(e=se(e))<1024?Ou(e,1)+" b":e<1048576?Ou(e/1024,1)+" kb":e<1073741824?Ou(e/1024/1024,1)+" mb":e<1099511627776?Ou(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!ce(e))return"";if(!zo(t))return"";for(var r=(e=Ou(e,t)).split("."),n=r[0],o=r.length>1?"."+r[1]:"",i=/(\d+)(\d{3})/;i.test(n);)n=n.replace(i,"$1,$2");var a=n+o;return a},e.cint=$n,e.clearXSS=function(e){return function e(t){return Jn(t)||Ln(t)?(et(t,(function(r,n){t[n]=e(r)})),t):k(t)?(r=t,h.default(r,{onIgnoreTagAttr:function(e,t,r,n){if("style"===t)return t+'="'+h.default.escapeAttrValue(r)+'"'}})):t;var r}(vn(e))},e.color=Dc,e.composeToTree=Vc,e.convertToTree=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Bn(e)&&!io(e))return[];var r=Oo(t,"bindKey",null);E(r)||(r="id");var n=Oo(t,"bindParent",null);E(n)||(n="parentId");var o=Oo(t,"bindText",null);E(o)||(o="text");var i=Oo(t,"bindChildren",null);E(i)||(i="children");var a=Oo(t,"bindType",null);E(a)||(a="type");var u=Oo(t,"bindNumOfChilren",null);E(u)||(u="numOfChilren");var c=Oo(t,"bindRoot",null);E(c)||(c="root");var s=Oo(t,"saveExtProps",null);ye(s)||(s=!1),E(c)&&(e=Su({},c,e));var f=Gc(e,{bindKey:r,bindParent:n,bindText:o,bindType:a,bindNumOfChilren:u}),l=Vc(f,{bindKey:r,bindParent:n,bindChildren:i,saveExtProps:s});return l},e.copyStrToClipboard=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!k(e))return"invalid input";var r=Oo(t,"eleParent");Kc(r)||(r=document.body);var n=document.createElement("textarea");if(n.style.position="fixed",n.style.left=0,n.style.top=0,n.style.zIndex=-1,n.style.background="transparent",n.style.color="transparent",n.value=e,r.appendChild(n),n.select(),!Jc(n))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return r.removeChild(n),""},e.cosd=Qc,e.cotd=function(e){return ce(e)?1/es(e=se(e)):null},e.cscd=function(e){return ce(e)?1/ts(e=se(e)):null},e.cstr=Au,e.day2cht=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!rs(e))return"";var r=d.default(e,"YYYY-MM-DD");return t?r.month()+1+"月"+r.date()+"日":"民國 "+(r.year()-1911)+" 年 "+(r.month()+1)+" 月 "+r.date()+" 日"},e.debounce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;function t(e){var t=[],r=null,n=null;function o(){null===r&&(r=setInterval((function(){if(Date.now()-n>e){var o=t.pop();t=[],o.func.apply(o,ia(o.input))}0===t.length&&(clearInterval(r),r=null)}),10))}return Vi(e)||(e=300),e=$n(e),function(e){if(aa(e)){n=Date.now();for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];t.push({func:e,input:i}),o()}else console.log("func is not function")}}return new t(e)},e.delay=ns,e.dig=Ou,e.digExp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ce(e)&&zo(t)?0===(e=se(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):Ou(e,t):""},e.domAlert=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(E(e)){var r=Oo(t,"type","success");Hn(ls,r)||(r="success");var n=Oo(t,"icon",null);E(n)||(n=ls[r]);var o="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(o=t.position);var i=Oo(t,"time");ta(i)||(i=4e3),i<0&&(i=4e3);var a=Oo(t,"paddingStyle",null);null===a&&(a={top:14,right:26,bottom:14,left:14});var u="",c=Oo(a,"top",0),s=Oo(a,"bottom",0),f=Oo(a,"left",0),l=Oo(a,"right",0);u="padding:".concat(c,"px ").concat(l,"px ").concat(s,"px ").concat(f,"px;");var p=Oo(t,"textColor","#000");p=Eu(p,";","");var d=Oo(t,"backgroundColor","#fff");d=Eu(d,";","");var v=Oo(t,"borderWidth",1),h=Oo(t,"borderColor","#ebeef5");h=Eu(h,";","");var g=Oo(t,"borderRadius",8),m=Oo(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");m=Eu(m,";","");var y=Oo(t,"closeIconShift",null);null===y&&(y={top:10,right:10});var b="",w=Oo(y,"top",""),x=Oo(y,"bottom",""),j=Oo(y,"left",""),_=Oo(y,"right","");ta(w)&&(w="top:".concat(w,"px;")),ta(x)&&(x="bottom:".concat(x,"px;")),ta(j)&&(j="left:".concat(j,"px;")),ta(_)&&(_="right:".concat(_,"px;")),b="position:absolute; ".concat(w," ").concat(_," ").concat(x," ").concat(j);var O="alt-".concat(us()),S="alt-".concat(us()),k='\n <div \n style="display:inline-block; color:'.concat(p,"; background:").concat(d,"; border:").concat(v,"px solid ").concat(h,"; border-radius:").concat(g,"px; box-shadow:").concat(m,';"\n onmouseenter="ttWAlertFadeIn(\'').concat(S,"')\"\n onmouseleave=\"ttWAlertFadeOut('").concat(S,'\')"\n >\n <div style="position:relative; ').concat(u,'">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">').concat(n,"</div>\n </div>\n <div>").concat(e,'</div>\n </div>\n\n <div style="').concat(b,'">\n <div \n id="').concat(S,'" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel(\'').concat(O,"')\"\n >\n ").concat(fs,"\n </div>\n </div>\n\n </div>\n </div>\n "),A=document.createElement("div");A.id=O,A.style.position="fixed",A.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",A.style.zIndex=-1,A.style.opacity=.001,o.indexOf("-left")>=0?A.style.transform="translateX(-100%)":A.style.transform="translateX(100%)",A.innerHTML=k;var M=document.querySelector("body");M.appendChild(A);var D=tu();return ms({id:O,position:o,time:i,pm:D}),D}},e.domAppend=ys,e.domCancelEvent=ws,e.domConvertToPic=Ss,e.domConvertToPicDyn=function(e){return Is.apply(this,arguments)},e.domDetect=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Oo(t,"timeInterval",null);Vi(r)||(r=20);var n=Oo(t,"tolerancePixel",null);Vi(n)||(n=1);var o,i=Cn(),a={offsetWidth:0,offsetHeight:0};if(!aa(e))return console.log("invalid f",e),null;o=setInterval((function(){var t=e();if(t){var r={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight},o=Math.abs(a.offsetWidth-r.offsetWidth)>n,u=Math.abs(a.offsetHeight-r.offsetHeight)>n;if(o||u){var c=Cs({},a);setTimeout((function(){r.offsetWidth>0&&r.offsetHeight>0&&(i.emit("resize",{sold:c,snew:r,ele:t}),i.emit("resizeWithWindow",{sold:c,snew:r,ele:t,from:"dom"}))}),1)}a=r}}),r);var u=function(e){i.emit("resizeWithWindow",{snew:a,from:"window"})};return window.addEventListener("resize",u),i.clear=function(){clearInterval(o),window.removeEventListener("resize",u)},i},e.domDrag=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kc(e)){var r=Oo(t,"attIdentify",null);E(r)||(r="dragid");var n=Oo(t,"attIndex",null);E(n)||(n="dragindex");var o=Oo(t,"attGroup",null);E(o)||(o="draggroup");var i=Oo(t,"group",null);E(i)||(i="group");var a=Oo(t,"previewOpacity",null);ta(a)||(a=.4);var u=Oo(t,"previewDisabledOpacity",null);ta(u)||(u=.2);var c=Oo(t,"previewBackground",null);E(c)||(c="white");var s=Oo(t,"previewBorderWidth",null);ta(s)||(s=1);var f=Oo(t,"previewBorderColor",null);E(f)||(f="#f26");var l=Oo(t,"timeDragStartDelay",null);ta(l)||(l=120);var p="c".concat(us(8)),d=i;e.setAttribute(o,d),e.setAttribute(r,p);var v=$s(d,p,{attIdentify:r,previewOpacity:a,previewBackground:c,previewBorderWidth:s,previewBorderColor:f}),h={dragStart:function(e){v.emit(d+"-dragStart",e)}},g=Ks(e,h);g.bind(),Qs({gid:d,attGroup:o,attIndex:n,attIdentify:r,timeDragStartDelay:l,previewOpacity:a,previewDisabledOpacity:u});var m=Cn();return v.on(i+"-change",(function(e){e.tarEid===p&&m.emit("change",e)})),v.on(i+"-start",(function(e){e.tarEid===p&&m.emit("start",e)})),v.on(i+"-move",(function(e){e.tarEid===p&&m.emit("move",e)})),v.on(i+"-enter",(function(e){e.tarEid===p&&m.emit("enter",e)})),v.on(i+"-leave",(function(e){e.tarEid===p&&m.emit("leave",e)})),v.on(i+"-drop",(function(e){e.tarEid===p&&m.emit("drop",e)})),m.setIsActive=b,m.unbind=y,m}function y(){g.unbind(),Js(d,p)}function b(e){Xs[d].isActive=e}console.log("ele is not HTMLElement",e)},e.domDragBarAndScroll=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=null,i=null,a=null,u=null,c=null,s=null,f=null,l=null,p=null,d=null,v=null,h=null,g=null,m=null,y=!1,b=Oo(r,"getHeighRatio",null);$e(b)||(b=function(){return 1});var w=Oo(r,"getWidthRatio",null);$e(w)||(w=function(){return 1});var x=Oo(r,"stopScrollPropagationForPanel",null);me(x)||(x=!1);var j=Oo(r,"stopTouchDragPropagationForPanel",null);me(j)||(j=!1);var _=Oo(r,"useTouchDragForPanel",null);me(_)||(_=!0);var O=e,S=t,k=Cn();function E(){n=function(e){var t=e.deltaY/Math.abs(e.deltaY),r=e.deltaX/Math.abs(e.deltaX);k.emit("scrollPanel",{ratioY:t,ratioX:r}),x&&ws(e)},O.addEventListener("wheel",n),o=function(e){if(_){var t=Oo(e,"touches.0.clientY",0),r=Oo(e,"touches.0.clientX",0),n=-t*b(),o=-r*w();y=!0,k.emit("pressBar",{clientY:n,clientX:o}),j&&ws(e)}},O.addEventListener("touchstart",o),i=function(e){if(_&&y){var t=Oo(e,"touches.0.clientY",0),r=Oo(e,"touches.0.clientX",0),n=-t*b(),o=-r*w();k.emit("dragBar",{clientY:n,clientX:o}),j&&ws(e)}},O.addEventListener("touchmove",i,{passive:!1}),a=function(e){_&&y&&(y=!1,k.emit("freeBar"),j&&ws(e))},O.addEventListener("touchend",a),u=function(e){y=!0,k.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},S.addEventListener("mousedown",u),c=function(e){y&&(y=!1,k.emit("freeBar"))},S.addEventListener("mouseup",c),s=function(e){y=!0,k.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},S.addEventListener("touchstart",s),f=function(e){y&&(k.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),ws(e))},S.addEventListener("touchmove",f,{passive:!1}),l=function(e){y&&(y=!1,k.emit("freeBar"))},S.addEventListener("touchend",l),p=function(e){y&&k.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",p),d=function(e){y&&(y=!1,k.emit("freeBar"),x&&ws(e))},window.addEventListener("mouseup",d),v=function(e){},window.addEventListener("scroll",v,{passive:!1}),h=function(e){},window.addEventListener("wheel",h,{passive:!1}),g=function(e){},document.addEventListener("scroll",g,{passive:!1}),m=function(e){},document.addEventListener("wheel",m,{passive:!1})}function A(){O.removeEventListener("wheel",n),O.removeEventListener("touchstart",o),O.removeEventListener("touchmove",i),O.removeEventListener("touchend",a),S.removeEventListener("mousedown",u),S.removeEventListener("mouseup",c),S.removeEventListener("touchstart",s),S.removeEventListener("touchmove",f),S.removeEventListener("touchend",l),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",d),window.removeEventListener("scroll",v),window.removeEventListener("wheel",h),document.removeEventListener("scroll",g),document.removeEventListener("wheel",m)}return E(),k.clear=A,k},e.domDragPreview=Ws,e.domDropFiles=function(e){var t=!1,r=!1,n=Cn();function o(e){ws(e),r=!0,!1===t&&(t=!0,n.emit("dropIn",{ev:e}))}function i(e){ws(e),r=!1,setTimeout((function(){r||(t=!1,n.emit("dropOut",{ev:e}))}),100)}function a(e){o(e)}function u(e){i(e)}function c(e){function t(){i(e)}o(e),function(e){return df.apply(this,arguments)}(e.dataTransfer).then((function(r){var o=Ki(r.entries,{type:"file"});n.emit("getFiles",{ev:e,files:r.files,filesTree:o,entries:r.entries,cb:t})})).catch((function(e){n.emit("error",e)}))}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",u,!1),e.addEventListener("drop",c,!1),n.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",u,!1),e.removeEventListener("drop",c,!1)},n},e.domFadeIn=cs,e.domFadeOut=ss,e.domFind=vf,e.domFinds=xs,e.domGetAttr=Rs,e.domGetBoudRect=Ns,e.domGetBoudRectRefSelf=Us,e.domGetFileAccept=yf,e.domGetFiles=bf,e.domGetPointFromEvent=Fs,e.domGetScrollableParent=function(e){var t=/(auto|scroll)/,r=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},n=function(e){return t.test(function(e){return r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x")}(e))};if(e instanceof HTMLElement||e instanceof SVGElement){for(var o=function e(t,r){return null===t.parentNode?r:e(t.parentNode,r.concat([t]))}(e.parentNode,[]),i=0;i<o.length;i+=1)if(n(o[i]))return o[i];return document.scrollingElement||document.documentElement}},e.domIsClientXYIn=function(e,t,r){if(ta(e))if(ta(t)){if(Kc(r)){var n;try{n=r.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}var o=!1;try{o=e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom}catch(e){console.log("catch when calculating page information of element",e)}return o}console.log("ele is not HTMLElement",r)}else console.log("clientY is not Number",t);else console.log("clientX is not Number",e)},e.domIsFocused=Jc,e.domIsVisible=function(e){if(!Kc(e))return Promise.reject("invalid element");if(wf())return Promise.reject("invalid IntersectionObserver");var t=tu();try{var r=new IntersectionObserver((function(e){t.resolve(e[0].isIntersecting),r.disconnect()}));r.observe(e)}catch(e){t.reject(e)}return t},e.domPrepend=_s,e.domRemove=js,e.domRipple=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"timeDuration",null);Vi(n)||(n=1e3);var o=Oo(r,"color",null);if(E(o)||(o="rgba(255, 255, 255, 0.5)"),Kc(e)){e.style.position="relative",e.style.overflow="hidden";var i=e.getBoundingClientRect(),a=t.clientX-i.left,u=t.clientY-i.top,c=2*Math.max(e.clientWidth,e.clientHeight),s=document.createElement("div");s.style.width="".concat(c,"px"),s.style.height="".concat(c,"px"),s.style.transition="all ".concat(n/1e3,"s linear"),s.style.userSelect="none",s.style.position="absolute",s.style.zIndex=1,s.style.left="".concat(a,"px"),s.style.top="".concat(u,"px"),s.style.borderRadius="50%",s.style.transformOrigin="center",s.style.transform="translate(-50%,-50%) scale(0)",s.style.background=o,e.appendChild(s),setTimeout((function(){s.style.transform="translate(-50%,-50%) scale(2)",s.style.opacity=0}),1),setTimeout((function(){js(s)}),n)}},e.domScrollIntoView=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kc(e)){Ln(t)||(t={});var r={behavior:"smooth"};r=zf(zf({},r),t),bs()?Bf(e,r):e.scrollIntoView(r)}},e.domScrollTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kc(e)){Ln(t)||(t={});var r={behavior:"smooth"};r=Rf(Rf({},r),t),bs()?kf(e,r):e.scrollTo(r)}},e.domShowImages=Kf,e.domShowImagesDyn=function(e){return Qf.apply(this,arguments)},e.domShowInputAndGetFiles=tl,e.domShowInputAndGetFilesU8Arrs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,n=tu(),o=[];return tl(e,t,r).then((function(e){var t=tu(),r=e.err;return In(r)>0?t.reject(r):t.resolve(e),t})).then((function(e){var t=e.files;return et(t,(function(e){o.push({name:e.name,size:e.size,type:e.type})})),uu(t)})).then((function(e){et(e,(function(e,t){o[t].u8a=e})),n.resolve(o)})).catch((function(e){n.reject(e)})),n},e.domTooltip=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=null;function i(){null!==n&&n.destroy(!0),e.setAttribute("tippystate",""),clearInterval(o)}var a={arrow:!0,theme:"dark",placement:"bottom",delay:150};r=Bn(r)?$f(a,r):a;var u=t;t||(u=e.innerHTML);var c=e.getAttribute("tippystate"),s=ce(c);if(e.setAttribute("tippystate","5"),!s){u='<div style="text-align:left;">'.concat(u,"</div>");var f=sd;sd.default&&(f=sd.default),(n=f(e,pd(pd({},r),{},{content:u,allowHTML:!0,onHidden:function(){i()},onDestroy:function(){n=null,i()}}))).show(),o=setInterval((function(){var t=e.getAttribute("tippystate");ce(t)?(t=$n(t),t-=1,e.setAttribute("tippystate",t),t<=0&&i()):i()}),1e3)}},e.domTriggerEvent=el,e.domVirtualCreate=dd,e.domVirtualCreateQueue=function(){return new function(){var e=md(1);function t(){return(t=yu(bu.mark((function t(r,n,o){return bu.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e(dd,r,n,o));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e,r,n){return t.apply(this,arguments)}}},e.downloadExcelFileFromData=kd,e.downloadExcelFileFromDataDyn=function(e){return Ed.apply(this,arguments)},e.downloadFileFromB64=function(e,t){if(ru())if(E(e)){var r=document.createElement("a");r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}else console.log("no filename");else console.log("no window")},e.downloadFileFromBlob=yd,e.downloadFileFromText=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];ru()?E(e)?k(t)?ye(r)?yd(e,r?new Blob(["\ufeff",t]):new Blob([t])):console.log("withBOM is not boolean"):console.log("invalid content"):console.log("invalid filename"):console.log("no window")},e.downloadFileFromU8Arr=function(e,t){ru()?E(e)?Ka(t)?yd(e,Ad(t)):console.log("no data"):console.log("no filename"):console.log("no window")},e.dtmapping=Md,e.dtpick=Dd,e.evem=Cn,e.execScript=function(e,t){return new Promise((function(r,n){Jn(t)||(t=[t]);var o=y.default.spawnSync(e,t),i=Ki(o.output,(function(e){return null!==e}));i=wi(i,(function(e){return function(e){try{return e.toString("utf8")}catch(e){}return""}(e)}));var a=Ya(i,""),u=Oo(o,"error.message");u?n(u):r(a)}))},e.f2c=function(e){if(!aa(e))return"";var t=String(e),r=t.substring(t.indexOf("/*")+3,t.lastIndexOf("*/"));return r=Pd(r)},e.files2data=function(e){var t=tu(),r=wi(e,(function(e){return{name:e.name,size:e.size,type:e.type}}));return au(e).then((function(e){var n=wi(e,(function(e){return{b64:e}})),o=Td(r,n);t.resolve(o)})),t},e.flattenToConn=Gc,e.flattenTree=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Jn(e)){if(0===e.length)return[]}else{if(!Ln(e))return[];if(to(e))return[]}var r=Oo(t,"bindKey",null);E(r)||(r="id");var n=Oo(t,"bindChildren",null);E(n)||(n="children");var o=!1;function i(e){for(var t=[e[0]],r=1;r<e.length;r++){var o=e[r];t.push(n),t.push(o)}return t}Ln(e)&&(o=!0,e=[e]);var a=[];return $c(e,(function(e,t,o){var u=Oo(e,r,null),c=Oo(e,n,null);if(u){var s=i([].concat(ia(o),[t]));if(a.push(Yd(Yd({},e),{},{level:(In(s)-1)/2,nk:s})),c)return c}})),o&&(a=a[0]),a},e.fsCleanFolder=function(e){if(!b.default.existsSync(e)){var t=Bd(e);return t.error?t.error:{success:"done: "+e}}if(!Cd(e))return{error:"input path is not folder"};try{b.default.readdirSync(e).forEach((function(t){var r=e+"/"+t;if(b.default.lstatSync(r).isDirectory())Ld(r);else try{b.default.unlinkSync(r)}catch(e){}}))}catch(e){return{error:e}}return{success:"done: "+e}},e.fsCopyFolder=function e(t,r){try{b.default.readdirSync(t).forEach((function(n){var o=t+"/"+n,i=r+"/"+n,a=b.default.lstatSync(o);if(a.isDirectory())Bd(w.default.dirname(i)),e(o,i);else if(a.isSymbolicLink()){var u=b.default.readlinkSync(o);b.default.symlinkSync(u,i)}else Bd(w.default.dirname(i)),b.default.copyFileSync(o,i)}))}catch(e){return{error:e}}return{success:"done: "+r}},e.fsCreateFolder=Bd,e.fsDeleteFolder=Ld,e.fsGetFilesInFolder=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=Hd(e,t);return r=Ki(r,(function(e){return zd(e.path)})),r=wi(r,"path")},e.fsGetFoldersInFolder=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=Hd(e,t);return r=Ki(r,(function(e){return!zd(e.path)})),r=wi(r,"path")},e.fsIsFile=zd,e.fsIsFolder=Cd,e.fsReadText=function(e){return b.default.readFileSync(e,"utf8")},e.fsTreeFolder=Hd,e.fsWriteText=function(e,t){b.default.writeFileSync(e,t,"utf8")},e.genGradientColor=function(e){if(oo(e))return{};var t;try{t=Dc.toRgba(e)}catch(e){return{}}function r(e,t){return e.a=t,Dc.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,r(t,.4)],[1,r(t,.9)]]}},e.genID=us,e.genPm=tu,e.getBufferSize=Rd,e.getClearPathName=Ud,e.getCsvStrFromData=qd,e.getDataFromExcelFileU8Arr=Kd,e.getDataFromExcelFileU8ArrDyn=function(e){return Jd.apply(this,arguments)},e.getDirName=function(e){if(!E(e))return"";var t=Ud(e);if(t.isRoot)return t.path;var r=Qd(e=t.path);if(!E(r))return e;var n=Ud(e=Nd(e,In(r)));return n.isRoot,n.path},e.getEnv=function(){var e=ru(),t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;return{isBrowser:e=e||t,isWebWorker:t,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},e.getExcelU8ArrFromData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!io(e)){var r="no data";return{error:r}}E(t)||(t="data");var n=null;try{var o=xd(e,t),i=ev().write(o,{bookType:"xlsx",type:"binary"});n=pu(i)}catch(e){return{error:e}}return n},e.getExcelWorkbookFromData=xd,e.getExcelWorkbookFromWorksheet=bd,e.getFileAccept=mf,e.getFileName=Qd,e.getFileTrueName=function(e){if(!E(e))return"";var t=Qd(e),r=ha(t,".");if(In(r)<=1)return t;var n="";try{r=tv(r),n=Ya(r,".")}catch(e){}return n},e.getGlobal=os,e.getObjSize=function(e){var t=0,r=function e(r){if(null!=r)switch(I(r)){case"number":t+=8;break;case"string":t+=2*r.length;break;case"boolean":t+=4;break;case"object":var n=Object.prototype.toString.call(r).slice(8,-1);if("Object"===n||"Array"===n)for(var o in r)r.hasOwnProperty(o)&&e(r[o]);else t+=2*r.toString().length}return t}(e);return{int:r,str:function(e){return e<1024?e+" bytes":e<1048576?(e/1024).toFixed(3)+" KiB":e<1073741824?(e/1048576).toFixed(3)+" MiB":(e/1073741824).toFixed(3)+" GiB"}(r)}},e.getTimeBetween=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days",n=iv(r);if(""===n)return[];var o=uv(e,r),i=uv(t,r);if(null===o||null===i)return[];if(e>=t)return[];var a=i.diff(o,r)+1,u=wi(ov(a),(function(e){return o.clone().add(e,r).format(n)}));return u},e.getTimeFromUnit=iv,e.getTimeObject=uv,e.getTimeRange=function(e,t){if(!cv(e))return"無起始時間";if(void 0===t&&(t=e),!cv(t))return"結束時間格式錯誤";var r=d.default(e,"YYYY-MM-DDTHH:mm:ss"),n=d.default(t,"YYYY-MM-DDTHH:mm:ss"),o=r.format("YYYY-MM-DD"),i=n.format("YYYY-MM-DD");if(o===i){var a=n.format("HH:mm");if(e===t)return sv(e)+" 至 無";if(e<t)return sv(e)+" 至 "+a;if(e>t)return sv(e)+" 至 "+a+" (起始時間大於結束時間)"}else{if(o<i)return sv(e)+" 至 "+sv(t);if(o>i)return sv(e)+" 至 "+sv(t)+" (起始時間大於結束時間)"}return""},e.getUserAgent=lv,e.getUserAgentDyn=function(){return pv.apply(this,arguments)},e.getltdtkeys=jd,e.haskey=Hn,e.html2pic=hv,e.html2picDyn=function(e){return mv.apply(this,arguments)},e.html2str=yv,e.html2strDyn=function(e,t){return bv.apply(this,arguments)},e.htmlDecode=function(e){var t=document.createElement("span");return t.appendChild(document.createTextNode(e)),t.innerHTML},e.htmlEncode=su,e.importResources=Ts,e.interp1=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Jn(e))return{err:"ps is not array"};if(!ta(t))return{err:"x is not number"};var n=kv(e,r);if(Oo(n,"err"))return Oo(n,"err");if(0===In(n))return{err:"ps(length=0) is not effective array",ps:e,psEff:n};if(1===In(n))return{err:"ps(length=1) is one point only",ps:e,psEff:n};var o=Ev(n);if("no"===o)return{err:"psEff is not increasing or decreasing"};o===Sv&&(o=Ov,n=xv(n));var i=Oo(r,"mode");"linear"!==i&&"stairs"!==i&&"blocks"!==i&&(i="linear");try{if("linear"===i)return Mv(n,t);if("blocks"===i)return Pv(n,t);if("stairs"===i)return Dv(n,t,r)}catch(e){return{err:e.toString()}}},e.isDev=function(){return!!location&&eu(location.href,"localhost")},e.isEle=Kc,e.isEleExistByID=function(e){return!!E(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!E(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},e.isIE=bs,e.isNarrow=function(e){if(!ru())return!1;var t=window.innerWidth>0&&window.innerWidth<=1024,r=!1;if(e){var n=Oo(e,"clientWidth",0);r=n>0&&n<=700}return t||r},e.isStrHasCapital=Cv,e.isStrHasLowerCase=Lv,e.isStrHasNumber=ja,e.isUserIdentify=function(e){var t=tu();if(!E(e))return t.reject("身份證字號非有效字串"),t;if(10!==e.length)return t.reject("身份證字號長度非10位"),t;if(isNaN(e.substr(1,9))||!/^[A-Z]$/.test(e.substr(0,1)))return t.reject("身份證格式錯誤,字首需大寫英文"),t;e="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(e.substring(0,1))+10+""+e.substr(1,9);var r=parseInt(e.substr(0,1))+9*parseInt(e.substr(1,1))+8*parseInt(e.substr(2,1))+7*parseInt(e.substr(3,1))+6*parseInt(e.substr(4,1))+5*parseInt(e.substr(5,1))+4*parseInt(e.substr(6,1))+3*parseInt(e.substr(7,1))+2*parseInt(e.substr(8,1))+parseInt(e.substr(9,1)),n=parseInt(e.substr(10,1));return r%10!=0&&10-r%10!==n?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){var t=tu();return E(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPW=function(e){var t=tu();if(!k(e))return t.reject("密碼非字串"),t;var r=[];return e.length<8&&r.push("長度須大於8個字元"),e.length>30&&r.push("長度須小於30個字元"),Cv(e)&&Lv(e)&&ja(e)||r.push("須包含大寫、小寫英文與數字各1個字元"),eu(e,["<",">"])&&r.push("不能使用特殊符號(<,>)"),eu(e,["select","insert","update","delete"])&&r.push("不能使用指令(select,insert,update,delete)"),r.length>0?t.reject(Ya(r,",")):t.resolve(),t},e.isWindow=ru,e.isab=O,e.isarr=Jn,e.isarr0=no,e.isblob=lu,e.isbol=ye,e.isday=rs,e.isearr=io,e.iseobj=Bn,e.iser=oo,e.isernot=gf,e.isestr=E,e.isfun=aa,e.isint=fe,e.ismonth=A,e.isn0int=Tv,e.isn0num=Iv,e.isnbr=ue,e.isnint=Gn,e.isnnum=function(e){return!!ce(e)&&se(e)<0},e.isnull=eo,e.isnum=ce,e.isobj=Ln,e.isobj0=to,e.isp0int=zo,e.isp0num=Yv,e.ispint=Vi,e.ispm=wu,e.ispnum=Ji,e.isstr=k,e.isstr0=ro,e.istime=cv,e.istimeTZ=Rv,e.istimems=Bv,e.istimemsTZ=Fv,e.isu16arr=Fd,e.isu8arr=Ka,e.isundefined=Qn,e.j2o=Ga,e.keysmat2ltdt=Nv,e.log=function(){var e=null;return{init:function(t){if(!aa(t))throw new Error("loggerFun is not function");e=t},log:function(t,r,n){if(null===e)throw new Error("no logger: need to construct by init");var o=Uv(),i={id:us(),from:t,level:r,msg:cu(n),time:o};return e(i)}}},e.ltdt2vrtsable=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!io(e))return[];if(!Jn(t))return[];var r=!1;if(et(e,(function(e){Bn(e)||(r=!0)})),r)return[];var n=jd(e),o=[];et(e,(function(e){var t={};et(n,(function(r){t[r]={value:e[r].value,style:e[r].style,rowspan:1}})),o.push(t)}));var i=xv(o),a=In(i);et(n,(function(e){if(ra(e,t)){var r=lo(0,a,0),n=lo(0,a,0),o=lo(1,a+1,0);et(i,(function(t,a){if(a>0){var u=i[a-1][e].value,c=i[a][e].value;ea(u,c)&&(r[a-1]=1,r[a]=1,o[a]=o[a-1]+1),1===r[a-1]&&1===r[a]&&(n[a-1]=0,n[a]=1)}})),et(i,(function(t,a){1===r[a]&&(1===n[a]?i[a][e].rowspan=o[a]:i[a][e].rowspan=null)}))}}));var u=xv(i);return u},e.ltdtdiff=function(e,t,r){if(!E(r))return console.log("invalid key"),{infor:{},del:[],same:[],diff:[],add:[]};Jn(e)||(e=[e]),Jn(t)||(t=[t]);var n={},o=[],i=[],a=[];et(e,(function(e){if(Hn(e,r)){var u=Su({},r,e[r]),c=Vv(t,u);oo(c)?(o.push(e),n[e[r]]="del"):ea(e,c)?(a.push(c),n[c[r]]="same"):(i.push(c),n[c[r]]="diff")}}));var u=[];return et(t,(function(t){if(Hn(t,r)){var o=Su({},r,t[r]);oo(Vv(e,o))&&(u.push(t),n[t[r]]="add")}})),{infor:n,del:o,same:a,diff:i,add:u}},e.ltdtkeys2mat=_d,e.ltdtkeysheads2mat=Od,e.ltdtmapping=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!io(e))return[];if(!io(t))return[];var n=wi(e,(function(e){return Md(e,t,r)}));return n},e.ltdtmerge=Td,e.ltdtpick=function(e,t){return io(e)&&io(t)?wi(e,(function(e){return Dd(e,t)})):[]},e.ltdtpull=function(e,t,r){return Jn(e)&&Jn(t)&&E(r)&&Gv(e,(function(e){return Ln(e)}))?0===t.length?e:Gv(t,(function(e){return Ln(e)}))?Kv(e,t,r):[]:[]},e.mat2ltdt=function(e){if(!io(e))return[];if(e.length<=1)return[];var t=!1;return et(e,(function(e){io(e)||(t=!0)})),t?[]:Nv(Jv(e)[0],Qv(e))},e.matConcat=function(e,t){if(!Jn(e))return[];if(!Jn(t))return[];if(0===In(e)&&0===In(t))return[];for(var r=In(e),n=In(Oo(e,0,[])),o=In(t),i=In(Oo(t,0,[])),a=[],u=Math.max(r,o),c=0;c<u;c++){for(var s=[],f=-1,l=0;l<n;l++){f++;var p=Oo(e,"".concat(c,".").concat(l),null);s[f]=p}for(var d=0;d<i;d++){f++;var v=Oo(t,"".concat(c,".").concat(d),null);s[f]=v}a[c]=s}return a},e.matat=function(e,t,r){return io(e)?wi(e,(function(e){return Fo(e,t,r)})):[]},e.now2str=function(){return d.default().format("YYYY-MM-DDTHH:mm:ssZ")},e.now2strp=function(){return d.default().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){return d.default().format("YYYY-MM-DD")},e.nowms2str=Uv,e.nowms2strp=function(){return d.default().format("YYYYMMDDHHmmssSSS")},e.o2j=cu,e.obj2b64=function(e){var t="";try{t=eh(cu(e))}catch(e){t=""}return t},e.obj2pb64=function(e,t){return void 0===e?"":E(t)?th(cu({data:e}),t,!0):""},e.obj2str=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(Qn(e))return"";if(k(t))t=[t];else if(!Jn(t))return"";function r(e,r){return t.indexOf("Uint8Array")>=0&&(r=ch.u8arr2b64(r)),t.indexOf("Uint16Array")>=0&&(r=ch.u16arr2b64(r)),r}var n="";try{n=JSON.stringify(e,r)}catch(e){n=""}return n},e.obj2stru8arr=fh,e.obj2u8arr=function(e){var t=[],r=[];if(!io(e)&&!Bn(e))return null;var n=[],o=[];function i(e){n.push(Rd(e)),o.push(e)}try{var a=fh(e);i(lh(a.results)),et(a.binarys,(function(e){i(e)}));var u=n,c=lh(JSON.stringify(u)),s=new Uint8Array(8);gu(Rd(c),s),t.push(s),t.push(c),et(o,(function(e){t.push(e)})),et(t,(function(e){r=function(e,t){var r=Rd(e),n=Rd(t),o=new Uint8Array(r+n);return o.set(new Uint8Array(e),0),o.set(new Uint8Array(t),r),o}(r,e)}))}catch(e){return null}return r},e.objSortBy=ph,e.objSortByKeys=function(e,t){if(!Bn(e))return{};if(!io(t))return{};var r={};return et(t,(function(e,t){r[e]=t})),ph(e,(function(e,t){return Oo(r,t,0)}))},e.ocr=vh,e.ocrDyn=function(e){return gh.apply(this,arguments)},e.oo=function(e){if(void 0!==e)return Ga(cu(e))},e.openLink=function(e){if(E(e)){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},e.pb642obj=function(e,t){return E(e)&&E(t)?Ga(be(e,t,!0)).data:""},e.pm2resolve=hd,e.pmChain=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Jn(e)){var r=tu();return r.reject("pms is not array"),r}return e.reduce((function(e,t){return e.then(t)}),Promise.resolve(t))},e.pmHook=mh,e.pmHookReject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return aa(e)?(aa(t)||(t=function(){}),mh(e,(function(e){if("afterCatch"===e.mode)return t(e.data)}))):null},e.pmIni=function(){return Promise.resolve()},e.pmMap=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n={},o=!1,i=tu();if(!Jn(e)&&!Ln(e))return i.reject("rs is not array or object"),i;var a=!1;if(Ln(e)){a=!0;var u=[];et(e,(function(e,t){u.push({k:t,v:e})})),e=u}var c=gd(r);return c.on("message",(function(r){if(!o){var u,s=c.get();if(aa(t)){var f=s.key,l=s.value;a&&(f=s.value.k,l=s.value.v),u=t(l,f)}else u=s.value;u.then((function(e){n[s.key]=e})).catch((function(e){o=!0,c.clear(),i.reject(e)})).finally((function(){c.cb(),In(n)===e.length&&i.resolve(Xd(n))}))}})),et(e,(function(e,t){c.push({key:t,value:e})})),i},e.pmQueue=md,e.pmSeries=As,e.pmThrottle=function(){var e=Cn(),t=[],r=null,n=!1;function o(){null===r&&(r=setInterval(yu(bu.mark((function o(){var i,a,u,c,s,f;return bu.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!n){o.next=2;break}return o.abrupt("return");case 2:for(n=!0,i=t.pop(),a=0;a<t.length;a++)u=t[a].id,c={state:"cancelled"},e.emit(u,c);if(t=[],!i){o.next=16;break}if(f=i.id,!aa(i.func)){o.next=14;break}return o.next=11,hd(i.func).apply(void 0,ia(i.input));case 11:s=o.sent,o.next=15;break;case 14:s={state:"error",msg:"fun is not function"};case 15:e.emit(f,s);case 16:(n=!1)||0!==t.length||(clearInterval(r),r=null);case 18:case"end":return o.stop()}}),o)}))),10))}return function(r){var n=tu();if(aa(r)){for(var i=us(),a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];return t.push({id:i,func:r,input:u}),o(),e.once(i,(function(e){"success"===e.state?n.resolve(e.msg):"cancelled"===e.state?n.reject({reason:"cancelled"}):n.reject(e.msg)})),n}console.log("func is not function")}},e.queue=gd,e.rang=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!ce(e))return[];if(e=se(e),!ce(t))return[];if(t=se(t),ce(r)||(r=2),(r=$n(r))<2&&(r=2),2===r)return[e,t];var n=(t-e)/(r-1),o=e,i=[];i.push(e);for(var a=1;a<=r;a++)o+=n,i.push(o);return i},e.rep=function(e,t){return E(e)&&zo(t)?wh(e,t):""},e.repObj=function(e,t){return oo(e)?[]:Vi(t)?ov(t,Io(e)):[]},e.replace=Eu,e.replaceObj=function(e,t){if(!E(e))return"";if(!Bn(t))return"";var r=!1;return et(t,(function(e,t){k(e)||(r=!0)})),r?"":(et(t,(function(t,r){e=Eu(e,r,t)})),e)},e.replacePlus=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0;if(!E(e)||!E(t)||!E(r))return"";if(!k(o))return"";var i="[\\s\\S]*";E(n)&&(i="[^"+n+"]*");var a=t+i+r,u=new RegExp(a,"g"),c=e.replace(u,o);return c},e.round=function(e){return ce(e)?(e=se(e),Xn(e)):""},e.secd=function(e){return ce(e)?1/Qc(e=se(e)):null},e.sep=qi,e.sepInt=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!fe(e))return[];if(!zo(t))return[];if(!ye(r))return[];for(var n=xh(e/t),o=e-n*t,i=[],a=1;a<=t;a++){var u=n;a<=o&&(u=n+1),i.push(u)}return r&&(i=xv(i)),i},e.sind=ts,e.split=Wi,e.str2aes=th,e.str2b64=eh,e.str2md5=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!E(e))return"";if(!ye(t))return"";var r=de(e);return t?r.toString(pe):r.toString(ge)},e.str2obj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(k(t))t=[t];else if(!Jn(t))return{};function r(e,r){return t.indexOf("Uint8Array")>=0&&(r=ch.b642u8arr(r)),t.indexOf("Uint16Array")>=0&&(r=ch.b642u16arr(r)),r}var n={};try{n=JSON.parse(e,r)}catch(e){n={}}return n},e.str2sha512=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!E(e))return"";if(!ye(t))return"";var r=jh(e);return t?r.toString(pe):r.toString(ge)},e.str2u8arr=lh,e.strCompare=_h,e.strFindFuzz=Ah,e.strFindFuzzDyn=function(e,t){return Mh.apply(this,arguments)},e.strFindSimilar=function(e,t){var r="";if(E(e)||ce(e))r=Au(e);else{if(!io(e))return{};r=Ya(e,"")}return ce(t)&&(t=Au(t)),E(t)&&(t=[t]),io(t)?function(e,t){for(var r=[],n=0,o=0;o<t.length;o++){var i=t[o],a=_h(e,i);r.push({target:i,rating:a}),a>r[n].rating&&(n=o)}return{ratings:r,bestMatch:r[n],bestMatchIndex:n}}(r,t=wi(t,(function(e){return Au(e)}))):{}},e.strdelleft=Gi,e.strdelright=Nd,e.strleft=Xi,e.strmid=_a,e.strright=$i,e.stru8arr2obj=Dh,e.tand=es,e.time2day=function(e){return cv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"):""},e.time2hour=function(e){return cv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH"):""},e.time2min=sv,e.timeTZ2day=function(e){return Rv(e)?(e=zv.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")):""},e.timeTZ2expire=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Rv(e)?Ph(e=Ih(e),t=Ih(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timeTZ2hour=function(e){return Rv(e)?(e=zv.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")):""},e.timeTZ2min=function(e){return Rv(e)?(e=zv.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")):""},e.timeTZ2past=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Rv(e)?Th(e=Yh(e),t=Yh(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timems2day=function(e){return Bv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD"):""},e.timems2hour=function(e){return Bv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH"):""},e.timems2min=function(e){return Bv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm"):""},e.timems2time=function(e){return Bv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss"):""},e.timemsTZ2day=function(e){return Fv(e)?(e=zv.delTZ(e),d.default(e).format("YYYY-MM-DD")):""},e.timemsTZ2expire=Ph,e.timemsTZ2hour=function(e){return Fv(e)?(e=zv.delTZ(e),d.default(e).format("YYYY-MM-DDTHH")):""},e.timemsTZ2min=function(e){return Fv(e)?(e=zv.delTZ(e),d.default(e).format("YYYY-MM-DDTHH:mm")):""},e.timemsTZ2past=Th,e.timemsTZ2time=function(e){return Fv(e)?(e=zv.delTZ(e),d.default(e).format("YYYY-MM-DDTHH:mm:ss")):""},e.treeObj=$c,e.trim=Pd,e.u16arr2b64=ih,e.u16arr2u8arr=oh,e.u8arr2ab=function(e){return Ka(e)?e.buffer:new ArrayBuffer},e.u8arr2b64=nh,e.u8arr2blob=Ad,e.u8arr2bs=function(e){if(!Ka(e))return"";for(var t=e.length,r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r},e.u8arr2obj=function(e){var t=null;if(!Ka(e))return null;try{var r=e.slice(0,8),n=e.slice(8,Rd(e)),o=vu(r),i=n.slice(0,o),a=n.slice(o,Rd(n)),u=Ch(i),c=function(e,t){var r=0,n=0,o=[];return et(t,(function(t){n=r+t;var i=e.slice(r,n);r=n,o.push(i)})),o}(a,JSON.parse(u));t=Dh({results:Ch(c.shift()),binarys:c})}catch(e){}return t},e.u8arr2str=Ch,e.u8arr2u16arr=Ja,e.urlParse=function(e){if(!E(e))return{};if(e=ha(e,"?"),!E(e=Oo(e,"[1]")))return{};var t=ha(e,"&");return t=wi(t,(function(e){return ha(e,"=")})),t=Lh(t)},e.verifyValue=function(e,t){var r=!1,n="";if("isstr"===t)k(e)||(r=!0,n="需要為字串",e="");else if("isnum"===t)ce(e)||(r=!0,n="需要為數字",e=0);else if("isp0num"===t)Yv(e)||(r=!0,n="需要為含0的正浮點數",e=0);else if("isn0num"===t)Iv(e)||(r=!0,n="需要為含0的負浮點數",e=0);else if("isint"===t)fe(e)||(r=!0,n="需要為整數",e=0);else if("ispint"===t)Vi(e)||(r=!0,n="需要為不含0正整數",e=0);else if("isp0int"===t)zo(e)||(r=!0,n="需要為含0正整數",e=0);else if("isnint"===t)Gn(e)||(r=!0,n="需要為不含0負整數",e=0);else if("isn0int"===t)Tv(e)||(r=!0,n="需要為含0負整數",e=0);else if(aa(t)){e=t(e)}else"any"===t?ce(e)||k(e)||(r=!0,n="需要為字串或數字",e=""):(r=!0,n="需要指定驗證類型",e=null);return{value:e,err:r,errmsg:n}},e.waitFun=xu,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
26
26
|
//# sourceMappingURL=wsemi.umd.js.map
|