jwt-ui 1.0.2 → 1.0.5
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/lib/demo.html +1 -10
- package/lib/jwt-ui.common.js +63544 -3786
- package/lib/jwt-ui.common.js.map +1 -1
- package/lib/jwt-ui.css +1 -1
- package/lib/jwt-ui.umd.js +63538 -3779
- package/lib/jwt-ui.umd.js.map +1 -1
- package/lib/jwt-ui.umd.min.js +158 -1
- package/lib/jwt-ui.umd.min.js.map +1 -1
- package/package.json +16 -11
package/lib/jwt-ui.umd.min.js
CHANGED
|
@@ -1,2 +1,159 @@
|
|
|
1
|
-
(function(e,l){"object"===typeof exports&&"object"===typeof module?module.exports=l(require("vue")):"function"===typeof define&&define.amd?define([],l):"object"===typeof exports?exports["jwt-ui"]=l(require("vue")):e["jwt-ui"]=l(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var l={};function i(n){if(l[n])return l[n].exports;var t=l[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return i.m=e,i.c=l,i.d=function(e,l,n){i.o(e,l)||Object.defineProperty(e,l,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,l){if(1&l&&(e=i(e)),8&l)return e;if(4&l&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&l&&"string"!=typeof e)for(var t in e)i.d(n,t,function(l){return e[l]}.bind(null,t));return n},i.n=function(e){var l=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(l,"a",l),l},i.o=function(e,l){return Object.prototype.hasOwnProperty.call(e,l)},i.p="",i(i.s="fae3")}({"00ee":function(e,l,i){var n=i("b622"),t=n("toStringTag"),r={};r[t]="z",e.exports="[object z]"===String(r)},"0366":function(e,l,i){var n=i("e330"),t=i("59ed"),r=i("40d5"),o=n(n.bind);e.exports=function(e,l){return t(e),void 0===l?e:r?o(e,l):function(){return e.apply(l,arguments)}}},"03f0":function(e,l,i){"use strict";i("513c")},"057f":function(e,l,i){var n=i("c6b6"),t=i("fc6a"),r=i("241c").f,o=i("4dae"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(e){try{return r(e)}catch(l){return o(a)}};e.exports.f=function(e){return a&&"Window"==n(e)?f(e):r(t(e))}},"06cf":function(e,l,i){var n=i("83ab"),t=i("c65b"),r=i("d1e7"),o=i("5c6c"),a=i("fc6a"),f=i("a04b"),c=i("1a2d"),s=i("0cfb"),u=Object.getOwnPropertyDescriptor;l.f=n?u:function(e,l){if(e=a(e),l=f(l),s)try{return u(e,l)}catch(i){}if(c(e,l))return o(!t(r.f,e,l),e[l])}},"07fa":function(e,l,i){var n=i("50c4");e.exports=function(e){return n(e.length)}},"0b42":function(e,l,i){var n=i("da84"),t=i("e8b5"),r=i("68ee"),o=i("861d"),a=i("b622"),f=a("species"),c=n.Array;e.exports=function(e){var l;return t(e)&&(l=e.constructor,r(l)&&(l===c||t(l.prototype))?l=void 0:o(l)&&(l=l[f],null===l&&(l=void 0))),void 0===l?c:l}},"0cfb":function(e,l,i){var n=i("83ab"),t=i("d039"),r=i("cc12");e.exports=!n&&!t((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(e,l,i){var n=i("da84"),t=n.String;e.exports=function(e){try{return t(e)}catch(l){return"Object"}}},"13d2":function(e,l,i){var n=i("d039"),t=i("1626"),r=i("1a2d"),o=i("9bf2").f,a=i("5e77").CONFIGURABLE,f=i("8925"),c=i("69f3"),s=c.enforce,u=c.get,d=!n((function(){return 8!==o((function(){}),"length",{value:8}).length})),p=String(String).split("String"),b=e.exports=function(e,l,i){"Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(l="get "+l),i&&i.setter&&(l="set "+l),(!r(e,"name")||a&&e.name!==l)&&o(e,"name",{value:l,configurable:!0}),d&&i&&r(i,"arity")&&e.length!==i.arity&&o(e,"length",{value:i.arity});var n=s(e);return r(n,"source")||(n.source=p.join("string"==typeof l?l:"")),e};Function.prototype.toString=b((function(){return t(this)&&u(this).source||f(this)}),"toString")},"159b":function(e,l,i){var n=i("da84"),t=i("fdbc"),r=i("785a"),o=i("17c2"),a=i("9112"),f=function(e){if(e&&e.forEach!==o)try{a(e,"forEach",o)}catch(l){e.forEach=o}};for(var c in t)t[c]&&f(n[c]&&n[c].prototype);f(r)},1626:function(e,l){e.exports=function(e){return"function"==typeof e}},"17c2":function(e,l,i){"use strict";var n=i("b727").forEach,t=i("a640"),r=t("forEach");e.exports=r?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},"1a2d":function(e,l,i){var n=i("e330"),t=i("7b0b"),r=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,l){return r(t(e),l)}},"1be4":function(e,l,i){var n=i("d066");e.exports=n("document","documentElement")},"1d80":function(e,l,i){var n=i("da84"),t=n.TypeError;e.exports=function(e){if(void 0==e)throw t("Can't call method on "+e);return e}},"1dde":function(e,l,i){var n=i("d039"),t=i("b622"),r=i("2d00"),o=t("species");e.exports=function(e){return r>=51||!n((function(){var l=[],i=l.constructor={};return i[o]=function(){return{foo:1}},1!==l[e](Boolean).foo}))}},2330:function(e,l,i){var n={"./BaseImg/index.vue":"a1c1","./BaseInput/index.vue":"7e1a","./JwtHeaderButton/index.vue":"a2a4","./JwtIcon/index.vue":"3103","./JwtIconSelect/index.vue":"e826","./JwtImage/index.vue":"4d58","./JwtSelectServer/index.vue":"7bf5"};function t(e){var l=r(e);return i(l)}function r(e){if(!i.o(n,e)){var l=new Error("Cannot find module '"+e+"'");throw l.code="MODULE_NOT_FOUND",l}return n[e]}t.keys=function(){return Object.keys(n)},t.resolve=r,e.exports=t,t.id="2330"},"23cb":function(e,l,i){var n=i("5926"),t=Math.max,r=Math.min;e.exports=function(e,l){var i=n(e);return i<0?t(i+l,0):r(i,l)}},"23e7":function(e,l,i){var n=i("da84"),t=i("06cf").f,r=i("9112"),o=i("cb2d"),a=i("ce4e"),f=i("e893"),c=i("94ca");e.exports=function(e,l){var i,s,u,d,p,b,h=e.target,m=e.global,g=e.stat;if(s=m?n:g?n[h]||a(h,{}):(n[h]||{}).prototype,s)for(u in l){if(p=l[u],e.noTargetGet?(b=t(s,u),d=b&&b.value):d=s[u],i=c(m?u:h+(g?".":"#")+u,e.forced),!i&&void 0!==d){if(typeof p==typeof d)continue;f(p,d)}(e.sham||d&&d.sham)&&r(p,"sham",!0),o(s,u,p,e)}}},"241c":function(e,l,i){var n=i("ca84"),t=i("7839"),r=t.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},2532:function(e,l,i){"use strict";var n=i("23e7"),t=i("e330"),r=i("5a34"),o=i("1d80"),a=i("577e"),f=i("ab13"),c=t("".indexOf);n({target:"String",proto:!0,forced:!f("includes")},{includes:function(e){return!!~c(a(o(this)),a(r(e)),arguments.length>1?arguments[1]:void 0)}})},"2ba4":function(e,l,i){var n=i("40d5"),t=Function.prototype,r=t.apply,o=t.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(r):function(){return o.apply(r,arguments)})},"2d00":function(e,l,i){var n,t,r=i("da84"),o=i("342f"),a=r.process,f=r.Deno,c=a&&a.versions||f&&f.version,s=c&&c.v8;s&&(n=s.split("."),t=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!t&&o&&(n=o.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/),n&&(t=+n[1]))),e.exports=t},3103:function(e,l,i){"use strict";i.r(l);var n=i("8bbf");function t(e,l,i,t,r,o){return Object(n["openBlock"])(),Object(n["createElementBlock"])("i",{class:Object(n["normalizeClass"])(e.iconName),style:Object(n["normalizeStyle"])({"font-size":e.size+"px"})},null,6)}i("a9e3");var r=Object(n["defineComponent"])({name:"JwtIcon",props:{icon:{type:String,default:"settings-3-line"},size:{type:[String,Number],default:16}},setup:function(e){var l=Object(n["computed"])((function(){return"ri-".concat(e.icon)}));return{iconName:l}}}),o=i("6b0d"),a=i.n(o);const f=a()(r,[["render",t]]);l["default"]=f},"342f":function(e,l,i){var n=i("d066");e.exports=n("navigator","userAgent")||""},"37e8":function(e,l,i){var n=i("83ab"),t=i("aed9"),r=i("9bf2"),o=i("825a"),a=i("fc6a"),f=i("df75");l.f=n&&!t?Object.defineProperties:function(e,l){o(e);var i,n=a(l),t=f(l),c=t.length,s=0;while(c>s)r.f(e,i=t[s++],n[i]);return e}},"3a9b":function(e,l,i){var n=i("e330");e.exports=n({}.isPrototypeOf)},"3bbe":function(e,l,i){var n=i("da84"),t=i("1626"),r=n.String,o=n.TypeError;e.exports=function(e){if("object"==typeof e||t(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},"3d87":function(e,l,i){var n=i("4930");e.exports=n&&!!Symbol["for"]&&!!Symbol.keyFor},"3f8c":function(e,l){e.exports={}},"408a":function(e,l,i){var n=i("e330");e.exports=n(1..valueOf)},"40d5":function(e,l,i){var n=i("d039");e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"428f":function(e,l,i){var n=i("da84");e.exports=n},"44ad":function(e,l,i){var n=i("da84"),t=i("e330"),r=i("d039"),o=i("c6b6"),a=n.Object,f=t("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?f(e,""):a(e)}:a},"44d2":function(e,l,i){var n=i("b622"),t=i("7c73"),r=i("9bf2"),o=n("unscopables"),a=Array.prototype;void 0==a[o]&&r.f(a,o,{configurable:!0,value:t(null)}),e.exports=function(e){a[o][e]=!0}},"44e7":function(e,l,i){var n=i("861d"),t=i("c6b6"),r=i("b622"),o=r("match");e.exports=function(e){var l;return n(e)&&(void 0!==(l=e[o])?!!l:"RegExp"==t(e))}},"462f":function(e,l,i){},"485a":function(e,l,i){var n=i("da84"),t=i("c65b"),r=i("1626"),o=i("861d"),a=n.TypeError;e.exports=function(e,l){var i,n;if("string"===l&&r(i=e.toString)&&!o(n=t(i,e)))return n;if(r(i=e.valueOf)&&!o(n=t(i,e)))return n;if("string"!==l&&r(i=e.toString)&&!o(n=t(i,e)))return n;throw a("Can't convert object to primitive value")}},4930:function(e,l,i){var n=i("2d00"),t=i("d039");e.exports=!!Object.getOwnPropertySymbols&&!t((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"4d58":function(e,l,i){"use strict";i.r(l);var n=i("8bbf"),t={class:"base-image-wrapper"},r={key:0,class:"base-image-mask"};function o(e,l,i,o,a,f){var c=Object(n["resolveComponent"])("el-image"),s=Object(n["resolveComponent"])("jwt-icon");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",t,[Object(n["createVNode"])(c,{fit:e.fit,"preview-src-list":[e.imgPath],src:e.imgPath},null,8,["fit","preview-src-list","src"]),e.icon?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",r,[Object(n["createVNode"])(s,{icon:e.icon,size:"36"},null,8,["icon"])])):Object(n["createCommentVNode"])("",!0)])}var a=Object(n["defineComponent"])({name:"JwtImage",props:{fit:{type:String,default:"cover"},src:{type:String,default:""},type:{type:String,default:""}},emits:["table-action"],setup:function(e){var l=Object(n["computed"])((function(){return e.src})),i=Object(n["computed"])((function(){var l={search:"search-line",add:"add-circle-line",delete:"delete-bin-line"};return l[e.type]}));return{imgPath:l,icon:i}}}),f=(i("620a"),i("6b0d")),c=i.n(f);const s=c()(a,[["render",o],["__scopeId","data-v-0fbbd080"]]);l["default"]=s},"4d64":function(e,l,i){var n=i("fc6a"),t=i("23cb"),r=i("07fa"),o=function(e){return function(l,i,o){var a,f=n(l),c=r(f),s=t(o,c);if(e&&i!=i){while(c>s)if(a=f[s++],a!=a)return!0}else for(;c>s;s++)if((e||s in f)&&f[s]===i)return e||s||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4dae":function(e,l,i){var n=i("da84"),t=i("23cb"),r=i("07fa"),o=i("8418"),a=n.Array,f=Math.max;e.exports=function(e,l,i){for(var n=r(e),c=t(l,n),s=t(void 0===i?n:i,n),u=a(f(s-c,0)),d=0;c<s;c++,d++)o(u,d,e[c]);return u.length=d,u}},"4de4":function(e,l,i){"use strict";var n=i("23e7"),t=i("b727").filter,r=i("1dde"),o=r("filter");n({target:"Array",proto:!0,forced:!o},{filter:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(e,l,i){var n=i("5926"),t=Math.min;e.exports=function(e){return e>0?t(n(e),9007199254740991):0}},"513c":function(e,l,i){},5530:function(e,l,i){"use strict";i.d(l,"a",(function(){return r}));i("b64b"),i("a4d3"),i("4de4"),i("d3b7"),i("e439"),i("159b"),i("dbb4");function n(e,l,i){return l in e?Object.defineProperty(e,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[l]=i,e}function t(e,l){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter((function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable}))),i.push.apply(i,n)}return i}function r(e){for(var l=1;l<arguments.length;l++){var i=null!=arguments[l]?arguments[l]:{};l%2?t(Object(i),!0).forEach((function(l){n(e,l,i[l])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(i,l))}))}return e}},5692:function(e,l,i){var n=i("c430"),t=i("c6cd");(e.exports=function(e,l){return t[e]||(t[e]=void 0!==l?l:{})})("versions",[]).push({version:"3.22.4",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(e,l,i){var n=i("d066"),t=i("e330"),r=i("241c"),o=i("7418"),a=i("825a"),f=t([].concat);e.exports=n("Reflect","ownKeys")||function(e){var l=r.f(a(e)),i=o.f;return i?f(l,i(e)):l}},"577e":function(e,l,i){var n=i("da84"),t=i("f5df"),r=n.String;e.exports=function(e){if("Symbol"===t(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},"57b9":function(e,l,i){var n=i("c65b"),t=i("d066"),r=i("b622"),o=i("cb2d");e.exports=function(){var e=t("Symbol"),l=e&&e.prototype,i=l&&l.valueOf,a=r("toPrimitive");l&&!l[a]&&o(l,a,(function(e){return n(i,this)}),{arity:1})}},5899:function(e,l){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,l,i){var n=i("e330"),t=i("1d80"),r=i("577e"),o=i("5899"),a=n("".replace),f="["+o+"]",c=RegExp("^"+f+f+"*"),s=RegExp(f+f+"*$"),u=function(e){return function(l){var i=r(t(l));return 1&e&&(i=a(i,c,"")),2&e&&(i=a(i,s,"")),i}};e.exports={start:u(1),end:u(2),trim:u(3)}},5926:function(e,l){var i=Math.ceil,n=Math.floor;e.exports=function(e){var l=+e;return l!==l||0===l?0:(l>0?n:i)(l)}},"59ed":function(e,l,i){var n=i("da84"),t=i("1626"),r=i("0d51"),o=n.TypeError;e.exports=function(e){if(t(e))return e;throw o(r(e)+" is not a function")}},"5a34":function(e,l,i){var n=i("da84"),t=i("44e7"),r=n.TypeError;e.exports=function(e){if(t(e))throw r("The method doesn't accept regular expressions");return e}},"5a47":function(e,l,i){var n=i("23e7"),t=i("4930"),r=i("d039"),o=i("7418"),a=i("7b0b"),f=!t||r((function(){o.f(1)}));n({target:"Object",stat:!0,forced:f},{getOwnPropertySymbols:function(e){var l=o.f;return l?l(a(e)):[]}})},"5c6c":function(e,l){e.exports=function(e,l){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:l}}},"5e77":function(e,l,i){var n=i("83ab"),t=i("1a2d"),r=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=t(r,"name"),f=a&&"something"===function(){}.name,c=a&&(!n||n&&o(r,"name").configurable);e.exports={EXISTS:a,PROPER:f,CONFIGURABLE:c}},"5fe4":function(e,l,i){"use strict";i("c05f")},6073:function(e,l,i){"use strict";i("96b5")},"620a":function(e,l,i){"use strict";i("9d55")},"65f0":function(e,l,i){var n=i("0b42");e.exports=function(e,l){return new(n(e))(0===l?0:l)}},"68ee":function(e,l,i){var n=i("e330"),t=i("d039"),r=i("1626"),o=i("f5df"),a=i("d066"),f=i("8925"),c=function(){},s=[],u=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=n(d.exec),b=!d.exec(c),h=function(e){if(!r(e))return!1;try{return u(c,s,e),!0}catch(l){return!1}},m=function(e){if(!r(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return b||!!p(d,f(e))}catch(l){return!0}};m.sham=!0,e.exports=!u||t((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?m:h},"69f3":function(e,l,i){var n,t,r,o=i("7f9a"),a=i("da84"),f=i("e330"),c=i("861d"),s=i("9112"),u=i("1a2d"),d=i("c6cd"),p=i("f772"),b=i("d012"),h="Object already initialized",m=a.TypeError,g=a.WeakMap,v=function(e){return r(e)?t(e):n(e,{})},y=function(e){return function(l){var i;if(!c(l)||(i=t(l)).type!==e)throw m("Incompatible receiver, "+e+" required");return i}};if(o||d.state){var w=d.state||(d.state=new g),k=f(w.get),x=f(w.has),O=f(w.set);n=function(e,l){if(x(w,e))throw new m(h);return l.facade=e,O(w,e,l),l},t=function(e){return k(w,e)||{}},r=function(e){return x(w,e)}}else{var j=p("state");b[j]=!0,n=function(e,l){if(u(e,j))throw new m(h);return l.facade=e,s(e,j,l),l},t=function(e){return u(e,j)?e[j]:{}},r=function(e){return u(e,j)}}e.exports={set:n,get:t,has:r,enforce:v,getterFor:y}},"6b0d":function(e,l,i){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=(e,l)=>{const i=e.__vccOpts||e;for(const[n,t]of l)i[n]=t;return i}},7156:function(e,l,i){var n=i("1626"),t=i("861d"),r=i("d2bb");e.exports=function(e,l,i){var o,a;return r&&n(o=l.constructor)&&o!==i&&t(a=o.prototype)&&a!==i.prototype&&r(e,a),e}},7418:function(e,l){l.f=Object.getOwnPropertySymbols},"746f":function(e,l,i){var n=i("428f"),t=i("1a2d"),r=i("e538"),o=i("9bf2").f;e.exports=function(e){var l=n.Symbol||(n.Symbol={});t(l,e)||o(l,e,{value:r.f(e)})}},7839:function(e,l){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,l,i){var n=i("cc12"),t=n("span").classList,r=t&&t.constructor&&t.constructor.prototype;e.exports=r===Object.prototype?void 0:r},"7b0b":function(e,l,i){var n=i("da84"),t=i("1d80"),r=n.Object;e.exports=function(e){return r(t(e))}},"7bf5":function(e,l,i){"use strict";i.r(l);var n=i("8bbf"),t={key:0,class:"fxm ptb10"},r=["src"],o={class:"ml10"};function a(e,l,i,a,f,c){var s=Object(n["resolveComponent"])("el-option"),u=Object(n["resolveComponent"])("el-select");return Object(n["openBlock"])(),Object(n["createBlock"])(u,{modelValue:e.selectModel,"onUpdate:modelValue":l[0]||(l[0]=function(l){return e.selectModel=l}),clearable:"",filterable:"",placeholder:"",remote:"","remote-method":e.remoteMethod,onChange:e.handleSelectChange},{default:Object(n["withCtx"])((function(){return[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.listData,(function(l,i){return Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:i,class:Object(n["normalizeClass"])({"avatar-logo":e.avatarKey}),label:l[e.labelKey],value:l[e.valueKey]},{default:Object(n["withCtx"])((function(){return[e.avatarKey?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",t,[Object(n["createElementVNode"])("img",{class:"w40 r100px",src:l[e.avatarKey]},null,8,r),Object(n["createElementVNode"])("span",o,Object(n["toDisplayString"])(l[e.labelKey]),1)])):Object(n["createCommentVNode"])("",!0)]})),_:2},1032,["class","label","value"])})),128))]})),_:1},8,["modelValue","remote-method","onChange"])}var f=i("5530"),c=(i("7db0"),i("d3b7"),Object(n["defineComponent"])({name:"JwtSelectServer",components:{},props:{listApi:{type:String,default:""},searchKey:{type:String,default:"title"},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"id"},avatarKey:{type:String,default:""},exParams:{type:Object,default:function(){}},modelValue:{type:String,default:""},request:{type:Function,default:function(){}}},emits:["update:modelValue","change","select"],setup:function(e,l){var i=l.emit,t=Object(n["reactive"])({content:"",listData:[],searchVal:"",timer:null}),r=Object(n["computed"])({get:function(){return e.modelValue||""},set:function(e){i("update:modelValue",e)}}),o=function(){var l=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=e.listApi,n=e.searchKey,o=e.valueKey;if(i){var a=Object(f["a"])({sort:"id",order:"desc",per_page:50},e.exParams);a[n]=t.searchVal,l&&r.value&&(a[o]=r.value||""),e.request({url:i,method:"get",params:a}).then((function(e){t.listData=e.data}))}},a=function(l){if(i("change",l),l){var n=e.valueKey,r=t.listData.find((function(e){return e[n]===l}));i("select",r)}},c=function(e){console.log("query",e),t.searchVal=e,e?(clearTimeout(t.timer),t.timer=setTimeout((function(){o()}),500),console.log("query",e)):o()};return Object(n["onMounted"])((function(){setTimeout((function(){o(!0)}),50)})),Object(f["a"])(Object(f["a"])({selectModel:r},Object(n["toRefs"])(t)),{},{handleSelectChange:a,remoteMethod:c})}})),s=(i("5fe4"),i("6b0d")),u=i.n(s);const d=u()(c,[["render",a]]);l["default"]=d},"7c73":function(e,l,i){var n,t=i("825a"),r=i("37e8"),o=i("7839"),a=i("d012"),f=i("1be4"),c=i("cc12"),s=i("f772"),u=">",d="<",p="prototype",b="script",h=s("IE_PROTO"),m=function(){},g=function(e){return d+b+u+e+d+"/"+b+u},v=function(e){e.write(g("")),e.close();var l=e.parentWindow.Object;return e=null,l},y=function(){var e,l=c("iframe"),i="java"+b+":";return l.style.display="none",f.appendChild(l),l.src=String(i),e=l.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},w=function(){try{n=new ActiveXObject("htmlfile")}catch(l){}w="undefined"!=typeof document?document.domain&&n?v(n):y():v(n);var e=o.length;while(e--)delete w[p][o[e]];return w()};a[h]=!0,e.exports=Object.create||function(e,l){var i;return null!==e?(m[p]=t(e),i=new m,m[p]=null,i[h]=e):i=w(),void 0===l?i:r.f(i,l)}},"7db0":function(e,l,i){"use strict";var n=i("23e7"),t=i("b727").find,r=i("44d2"),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r(o)},"7dd0":function(e,l,i){"use strict";var n=i("23e7"),t=i("c65b"),r=i("c430"),o=i("5e77"),a=i("1626"),f=i("9ed3"),c=i("e163"),s=i("d2bb"),u=i("d44e"),d=i("9112"),p=i("cb2d"),b=i("b622"),h=i("3f8c"),m=i("ae93"),g=o.PROPER,v=o.CONFIGURABLE,y=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,k=b("iterator"),x="keys",O="values",j="entries",S=function(){return this};e.exports=function(e,l,i,o,b,m,C){f(i,l,o);var E,N,P,z=function(e){if(e===b&&V)return V;if(!w&&e in T)return T[e];switch(e){case x:return function(){return new i(this,e)};case O:return function(){return new i(this,e)};case j:return function(){return new i(this,e)}}return function(){return new i(this)}},I=l+" Iterator",_=!1,T=e.prototype,A=T[k]||T["@@iterator"]||b&&T[b],V=!w&&A||z(b),L="Array"==l&&T.entries||A;if(L&&(E=c(L.call(new e)),E!==Object.prototype&&E.next&&(r||c(E)===y||(s?s(E,y):a(E[k])||p(E,k,S)),u(E,I,!0,!0),r&&(h[I]=S))),g&&b==O&&A&&A.name!==O&&(!r&&v?d(T,"name",O):(_=!0,V=function(){return t(A,this)})),b)if(N={values:z(O),keys:m?V:z(x),entries:z(j)},C)for(P in N)(w||_||!(P in T))&&p(T,P,N[P]);else n({target:l,proto:!0,forced:w||_},N);return r&&!C||T[k]===V||p(T,k,V,{name:b}),h[l]=V,N}},"7e1a":function(e,l,i){"use strict";i.r(l);var n=i("8bbf"),t={class:"table-actions"};function r(e,l,i,r,o,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",t,[Object(n["createElementVNode"])("input",{type:"text",onChange:l[0]||(l[0]=function(){return e.inputChange&&e.inputChange.apply(e,arguments)})},null,32)])}var o=Object(n["defineComponent"])({name:"BaseInput",props:{},emits:["table-action"],setup:function(e,l){var i=l.emit,n=function(e){i("table-action",e)},t=function(e){i("change",e)};return{handleTableAction:n,inputChange:t}}}),a=(i("6073"),i("6b0d")),f=i.n(a);const c=f()(o,[["render",r]]);l["default"]=c},"7f9a":function(e,l,i){var n=i("da84"),t=i("1626"),r=i("8925"),o=n.WeakMap;e.exports=t(o)&&/native code/.test(r(o))},"825a":function(e,l,i){var n=i("da84"),t=i("861d"),r=n.String,o=n.TypeError;e.exports=function(e){if(t(e))return e;throw o(r(e)+" is not an object")}},"83ab":function(e,l,i){var n=i("d039");e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,l,i){"use strict";var n=i("a04b"),t=i("9bf2"),r=i("5c6c");e.exports=function(e,l,i){var o=n(l);o in e?t.f(e,o,r(0,i)):e[o]=i}},"861d":function(e,l,i){var n=i("1626");e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},8875:function(e,l,i){var n,t,r;(function(i,o){t=[],n=o,r="function"===typeof n?n.apply(l,t):n,void 0===r||(e.exports=r)})("undefined"!==typeof self&&self,(function(){function e(){var l=Object.getOwnPropertyDescriptor(document,"currentScript");if(!l&&"currentScript"in document&&document.currentScript)return document.currentScript;if(l&&l.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var i,n,t,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,a=r.exec(p.stack)||o.exec(p.stack),f=a&&a[1]||!1,c=a&&a[2]||!1,s=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");f===s&&(i=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),t=i.replace(n,"$1").trim());for(var d=0;d<u.length;d++){if("interactive"===u[d].readyState)return u[d];if(u[d].src===f)return u[d];if(f===s&&u[d].innerHTML&&u[d].innerHTML.trim()===t)return u[d]}return null}}return e}))},8925:function(e,l,i){var n=i("e330"),t=i("1626"),r=i("c6cd"),o=n(Function.toString);t(r.inspectSource)||(r.inspectSource=function(e){return o(e)}),e.exports=r.inspectSource},"8bbf":function(l,i){l.exports=e},"90e3":function(e,l,i){var n=i("e330"),t=0,r=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++t+r,36)}},9112:function(e,l,i){var n=i("83ab"),t=i("9bf2"),r=i("5c6c");e.exports=n?function(e,l,i){return t.f(e,l,r(1,i))}:function(e,l,i){return e[l]=i,e}},"94ca":function(e,l,i){var n=i("d039"),t=i("1626"),r=/#|\.prototype\./,o=function(e,l){var i=f[a(e)];return i==s||i!=c&&(t(l)?n(l):!!l)},a=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},f=o.data={},c=o.NATIVE="N",s=o.POLYFILL="P";e.exports=o},"96b5":function(e,l,i){},"9bf2":function(e,l,i){var n=i("da84"),t=i("83ab"),r=i("0cfb"),o=i("aed9"),a=i("825a"),f=i("a04b"),c=n.TypeError,s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",b="writable";l.f=t?o?function(e,l,i){if(a(e),l=f(l),a(i),"function"===typeof e&&"prototype"===l&&"value"in i&&b in i&&!i[b]){var n=u(e,l);n&&n[b]&&(e[l]=i.value,i={configurable:p in i?i[p]:n[p],enumerable:d in i?i[d]:n[d],writable:!1})}return s(e,l,i)}:s:function(e,l,i){if(a(e),l=f(l),a(i),r)try{return s(e,l,i)}catch(n){}if("get"in i||"set"in i)throw c("Accessors not supported");return"value"in i&&(e[l]=i.value),e}},"9d55":function(e,l,i){},"9ed3":function(e,l,i){"use strict";var n=i("ae93").IteratorPrototype,t=i("7c73"),r=i("5c6c"),o=i("d44e"),a=i("3f8c"),f=function(){return this};e.exports=function(e,l,i,c){var s=l+" Iterator";return e.prototype=t(n,{next:r(+!c,i)}),o(e,s,!1,!0),a[s]=f,e}},a04b:function(e,l,i){var n=i("c04e"),t=i("d9b5");e.exports=function(e){var l=n(e,"string");return t(l)?l:l+""}},a1c1:function(e,l,i){"use strict";i.r(l);var n=i("8bbf"),t=function(e){return Object(n["pushScopeId"])("data-v-e81b1fcc"),e=e(),Object(n["popScopeId"])(),e},r={class:"table-actions"},o=t((function(){return Object(n["createElementVNode"])("div",null,"测试发布npm",-1)})),a=[o];function f(e,l,i,t,o,f){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",r,a)}var c=Object(n["defineComponent"])({name:"BaseImg",props:{},emits:["table-action"],setup:function(e,l){var i=l.emit,n=function(e){i("table-action",e)};return{handleTableAction:n}}}),s=(i("aaae"),i("6b0d")),u=i.n(s);const d=u()(c,[["render",f],["__scopeId","data-v-e81b1fcc"]]);l["default"]=d},a2a4:function(e,l,i){"use strict";i.r(l);i("caad"),i("2532");var n=i("8bbf"),t={key:0,class:"table-header-actions"};function r(e,l,i,r,o,a){var f=Object(n["resolveComponent"])("vab-icon"),c=Object(n["resolveComponent"])("el-button");return e.headerButtonActions.length?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",t,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.headerButtonActions,(function(l,i){return Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:i,disabled:(l.code.includes("delete")||l.code.includes("batch"))&&!e.selectionRow.length,loading:e.loading,type:l.code.includes("delete")?"danger":"primary",onClick:function(i){return e.handleHeaderAction(l)}},{default:Object(n["withCtx"])((function(){return[l.icon&&!e.loading?(Object(n["openBlock"])(),Object(n["createBlock"])(f,{key:0,icon:l.icon},null,8,["icon"])):Object(n["createCommentVNode"])("",!0),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(l.show_title||l.title),1)]})),_:2},1032,["disabled","loading","type","onClick"])})),128))])):Object(n["createCommentVNode"])("",!0)}i("4de4"),i("d3b7");var o=Object(n["defineComponent"])({name:"JwtHeaderButton",props:{loading:{type:Boolean,default:!1},currentPath:{type:String,default:"/"},menusObj:{type:Object,default:function(){}},selectionRow:{type:Array,default:function(){return[]}},actionList:{type:Array,default:function(){return[]}}},emits:["header-action"],setup:function(e,l){var i=l.emit,t=Object(n["computed"])((function(){var l=((null===e||void 0===e?void 0:e.menusObj)||{})[null===e||void 0===e?void 0:e.currentPath];return l&&l.operations.length?l.operations.filter((function(l){var i=l.show_header;if(e.actionList&&e.actionList.length){var n=l.code;i=i&&e.actionList.includes(n)}return i})):[]})),r=function(e){i("header-action",e)};return{headerButtonActions:t,handleHeaderAction:r}}}),a=i("6b0d"),f=i.n(a);const c=f()(o,[["render",r]]);l["default"]=c},a4d3:function(e,l,i){i("d9f5"),i("b4f8"),i("c513"),i("e9c4"),i("5a47")},a640:function(e,l,i){"use strict";var n=i("d039");e.exports=function(e,l){var i=[][e];return!!i&&n((function(){i.call(null,l||function(){return 1},1)}))}},a9e3:function(e,l,i){"use strict";var n=i("83ab"),t=i("da84"),r=i("e330"),o=i("94ca"),a=i("cb2d"),f=i("1a2d"),c=i("7156"),s=i("3a9b"),u=i("d9b5"),d=i("c04e"),p=i("d039"),b=i("241c").f,h=i("06cf").f,m=i("9bf2").f,g=i("408a"),v=i("58a8").trim,y="Number",w=t[y],k=w.prototype,x=t.TypeError,O=r("".slice),j=r("".charCodeAt),S=function(e){var l=d(e,"number");return"bigint"==typeof l?l:C(l)},C=function(e){var l,i,n,t,r,o,a,f,c=d(e,"number");if(u(c))throw x("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=v(c),l=j(c,0),43===l||45===l){if(i=j(c,2),88===i||120===i)return NaN}else if(48===l){switch(j(c,1)){case 66:case 98:n=2,t=49;break;case 79:case 111:n=8,t=55;break;default:return+c}for(r=O(c,2),o=r.length,a=0;a<o;a++)if(f=j(r,a),f<48||f>t)return NaN;return parseInt(r,n)}return+c};if(o(y,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var E,N=function(e){var l=arguments.length<1?0:w(S(e)),i=this;return s(k,i)&&p((function(){g(i)}))?c(Object(l),i,N):l},P=n?b(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),z=0;P.length>z;z++)f(w,E=P[z])&&!f(N,E)&&m(N,E,h(w,E));N.prototype=k,k.constructor=N,a(t,y,N)}},aaae:function(e,l,i){"use strict";i("462f")},ab13:function(e,l,i){var n=i("b622"),t=n("match");e.exports=function(e){var l=/./;try{"/./"[e](l)}catch(i){try{return l[t]=!1,"/./"[e](l)}catch(n){}}return!1}},ae93:function(e,l,i){"use strict";var n,t,r,o=i("d039"),a=i("1626"),f=i("7c73"),c=i("e163"),s=i("cb2d"),u=i("b622"),d=i("c430"),p=u("iterator"),b=!1;[].keys&&(r=[].keys(),"next"in r?(t=c(c(r)),t!==Object.prototype&&(n=t)):b=!0);var h=void 0==n||o((function(){var e={};return n[p].call(e)!==e}));h?n={}:d&&(n=f(n)),a(n[p])||s(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:b}},aed9:function(e,l,i){var n=i("83ab"),t=i("d039");e.exports=n&&t((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b041:function(e,l,i){"use strict";var n=i("00ee"),t=i("f5df");e.exports=n?{}.toString:function(){return"[object "+t(this)+"]"}},b0c0:function(e,l,i){var n=i("83ab"),t=i("5e77").EXISTS,r=i("e330"),o=i("9bf2").f,a=Function.prototype,f=r(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=r(c.exec),u="name";n&&!t&&o(a,u,{configurable:!0,get:function(){try{return s(c,f(this))[1]}catch(e){return""}}})},b4f8:function(e,l,i){var n=i("23e7"),t=i("d066"),r=i("1a2d"),o=i("577e"),a=i("5692"),f=i("3d87"),c=a("string-to-symbol-registry"),s=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!f},{for:function(e){var l=o(e);if(r(c,l))return c[l];var i=t("Symbol")(l);return c[l]=i,s[i]=l,i}})},b622:function(e,l,i){var n=i("da84"),t=i("5692"),r=i("1a2d"),o=i("90e3"),a=i("4930"),f=i("fdbf"),c=t("wks"),s=n.Symbol,u=s&&s["for"],d=f?s:s&&s.withoutSetter||o;e.exports=function(e){if(!r(c,e)||!a&&"string"!=typeof c[e]){var l="Symbol."+e;a&&r(s,e)?c[e]=s[e]:c[e]=f&&u?u(l):d(l)}return c[e]}},b64b:function(e,l,i){var n=i("23e7"),t=i("7b0b"),r=i("df75"),o=i("d039"),a=o((function(){r(1)}));n({target:"Object",stat:!0,forced:a},{keys:function(e){return r(t(e))}})},b727:function(e,l,i){var n=i("0366"),t=i("e330"),r=i("44ad"),o=i("7b0b"),a=i("07fa"),f=i("65f0"),c=t([].push),s=function(e){var l=1==e,i=2==e,t=3==e,s=4==e,u=6==e,d=7==e,p=5==e||u;return function(b,h,m,g){for(var v,y,w=o(b),k=r(w),x=n(h,m),O=a(k),j=0,S=g||f,C=l?S(b,O):i||d?S(b,0):void 0;O>j;j++)if((p||j in k)&&(v=k[j],y=x(v,j,w),e))if(l)C[j]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return j;case 2:c(C,v)}else switch(e){case 4:return!1;case 7:c(C,v)}return u?-1:t||s?s:C}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},c04e:function(e,l,i){var n=i("da84"),t=i("c65b"),r=i("861d"),o=i("d9b5"),a=i("dc4a"),f=i("485a"),c=i("b622"),s=n.TypeError,u=c("toPrimitive");e.exports=function(e,l){if(!r(e)||o(e))return e;var i,n=a(e,u);if(n){if(void 0===l&&(l="default"),i=t(n,e,l),!r(i)||o(i))return i;throw s("Can't convert object to primitive value")}return void 0===l&&(l="number"),f(e,l)}},c05f:function(e,l,i){},c430:function(e,l){e.exports=!1},c513:function(e,l,i){var n=i("23e7"),t=i("1a2d"),r=i("d9b5"),o=i("0d51"),a=i("5692"),f=i("3d87"),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!f},{keyFor:function(e){if(!r(e))throw TypeError(o(e)+" is not a symbol");if(t(c,e))return c[e]}})},c65b:function(e,l,i){var n=i("40d5"),t=Function.prototype.call;e.exports=n?t.bind(t):function(){return t.apply(t,arguments)}},c6b6:function(e,l,i){var n=i("e330"),t=n({}.toString),r=n("".slice);e.exports=function(e){return r(t(e),8,-1)}},c6cd:function(e,l,i){var n=i("da84"),t=i("ce4e"),r="__core-js_shared__",o=n[r]||t(r,{});e.exports=o},c8ba:function(e,l){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(n){"object"===typeof window&&(i=window)}e.exports=i},ca84:function(e,l,i){var n=i("e330"),t=i("1a2d"),r=i("fc6a"),o=i("4d64").indexOf,a=i("d012"),f=n([].push);e.exports=function(e,l){var i,n=r(e),c=0,s=[];for(i in n)!t(a,i)&&t(n,i)&&f(s,i);while(l.length>c)t(n,i=l[c++])&&(~o(s,i)||f(s,i));return s}},caad:function(e,l,i){"use strict";var n=i("23e7"),t=i("4d64").includes,r=i("d039"),o=i("44d2"),a=r((function(){return!Array(1).includes()}));n({target:"Array",proto:!0,forced:a},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cb2d:function(e,l,i){var n=i("da84"),t=i("1626"),r=i("9112"),o=i("13d2"),a=i("ce4e");e.exports=function(e,l,i,f){var c=!!f&&!!f.unsafe,s=!!f&&!!f.enumerable,u=!!f&&!!f.noTargetGet,d=f&&void 0!==f.name?f.name:l;return t(i)&&o(i,d,f),e===n?(s?e[l]=i:a(l,i),e):(c?!u&&e[l]&&(s=!0):delete e[l],s?e[l]=i:r(e,l,i),e)}},cc12:function(e,l,i){var n=i("da84"),t=i("861d"),r=n.document,o=t(r)&&t(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},ce4e:function(e,l,i){var n=i("da84"),t=Object.defineProperty;e.exports=function(e,l){try{t(n,e,{value:l,configurable:!0,writable:!0})}catch(i){n[e]=l}return l}},d012:function(e,l){e.exports={}},d039:function(e,l){e.exports=function(e){try{return!!e()}catch(l){return!0}}},d066:function(e,l,i){var n=i("da84"),t=i("1626"),r=function(e){return t(e)?e:void 0};e.exports=function(e,l){return arguments.length<2?r(n[e]):n[e]&&n[e][l]}},d1e7:function(e,l,i){"use strict";var n={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!n.call({1:2},1);l.f=r?function(e){var l=t(this,e);return!!l&&l.enumerable}:n},d2bb:function(e,l,i){var n=i("e330"),t=i("825a"),r=i("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,l=!1,i={};try{e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(i,[]),l=i instanceof Array}catch(o){}return function(i,n){return t(i),r(n),l?e(i,n):i.__proto__=n,i}}():void 0)},d3b7:function(e,l,i){var n=i("00ee"),t=i("cb2d"),r=i("b041");n||t(Object.prototype,"toString",r,{unsafe:!0})},d44e:function(e,l,i){var n=i("9bf2").f,t=i("1a2d"),r=i("b622"),o=r("toStringTag");e.exports=function(e,l,i){e&&!i&&(e=e.prototype),e&&!t(e,o)&&n(e,o,{configurable:!0,value:l})}},d81d:function(e,l,i){"use strict";var n=i("23e7"),t=i("b727").map,r=i("1dde"),o=r("map");n({target:"Array",proto:!0,forced:!o},{map:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})},d9b5:function(e,l,i){var n=i("da84"),t=i("d066"),r=i("1626"),o=i("3a9b"),a=i("fdbf"),f=n.Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var l=t("Symbol");return r(l)&&o(l.prototype,f(e))}},d9f5:function(e,l,i){"use strict";var n=i("23e7"),t=i("da84"),r=i("c65b"),o=i("e330"),a=i("c430"),f=i("83ab"),c=i("4930"),s=i("d039"),u=i("1a2d"),d=i("3a9b"),p=i("825a"),b=i("fc6a"),h=i("a04b"),m=i("577e"),g=i("5c6c"),v=i("7c73"),y=i("df75"),w=i("241c"),k=i("057f"),x=i("7418"),O=i("06cf"),j=i("9bf2"),S=i("37e8"),C=i("d1e7"),E=i("cb2d"),N=i("5692"),P=i("f772"),z=i("d012"),I=i("90e3"),_=i("b622"),T=i("e538"),A=i("746f"),V=i("57b9"),L=i("d44e"),B=i("69f3"),F=i("b727").forEach,q=P("hidden"),M="Symbol",D="prototype",R=B.set,G=B.getterFor(M),K=Object[D],J=t.Symbol,U=J&&J[D],H=t.TypeError,$=t.QObject,W=O.f,X=j.f,Y=k.f,Q=C.f,Z=o([].push),ee=N("symbols"),le=N("op-symbols"),ie=N("wks"),ne=!$||!$[D]||!$[D].findChild,te=f&&s((function(){return 7!=v(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,l,i){var n=W(K,l);n&&delete K[l],X(e,l,i),n&&e!==K&&X(K,l,n)}:X,re=function(e,l){var i=ee[e]=v(U);return R(i,{type:M,tag:e,description:l}),f||(i.description=l),i},oe=function(e,l,i){e===K&&oe(le,l,i),p(e);var n=h(l);return p(i),u(ee,n)?(i.enumerable?(u(e,q)&&e[q][n]&&(e[q][n]=!1),i=v(i,{enumerable:g(0,!1)})):(u(e,q)||X(e,q,g(1,{})),e[q][n]=!0),te(e,n,i)):X(e,n,i)},ae=function(e,l){p(e);var i=b(l),n=y(i).concat(de(i));return F(n,(function(l){f&&!r(ce,i,l)||oe(e,l,i[l])})),e},fe=function(e,l){return void 0===l?v(e):ae(v(e),l)},ce=function(e){var l=h(e),i=r(Q,this,l);return!(this===K&&u(ee,l)&&!u(le,l))&&(!(i||!u(this,l)||!u(ee,l)||u(this,q)&&this[q][l])||i)},se=function(e,l){var i=b(e),n=h(l);if(i!==K||!u(ee,n)||u(le,n)){var t=W(i,n);return!t||!u(ee,n)||u(i,q)&&i[q][n]||(t.enumerable=!0),t}},ue=function(e){var l=Y(b(e)),i=[];return F(l,(function(e){u(ee,e)||u(z,e)||Z(i,e)})),i},de=function(e){var l=e===K,i=Y(l?le:b(e)),n=[];return F(i,(function(e){!u(ee,e)||l&&!u(K,e)||Z(n,ee[e])})),n};c||(J=function(){if(d(U,this))throw H("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,l=I(e),i=function(e){this===K&&r(i,le,e),u(this,q)&&u(this[q],l)&&(this[q][l]=!1),te(this,l,g(1,e))};return f&&ne&&te(K,l,{configurable:!0,set:i}),re(l,e)},U=J[D],E(U,"toString",(function(){return G(this).tag})),E(J,"withoutSetter",(function(e){return re(I(e),e)})),C.f=ce,j.f=oe,S.f=ae,O.f=se,w.f=k.f=ue,x.f=de,T.f=function(e){return re(_(e),e)},f&&(X(U,"description",{configurable:!0,get:function(){return G(this).description}}),a||E(K,"propertyIsEnumerable",ce,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:J}),F(y(ie),(function(e){A(e)})),n({target:M,stat:!0,forced:!c},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!f},{create:fe,defineProperty:oe,defineProperties:ae,getOwnPropertyDescriptor:se}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue}),V(),L(J,M),z[q]=!0},da84:function(e,l,i){(function(l){var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof l&&l)||function(){return this}()||Function("return this")()}).call(this,i("c8ba"))},dbb4:function(e,l,i){var n=i("23e7"),t=i("83ab"),r=i("56ef"),o=i("fc6a"),a=i("06cf"),f=i("8418");n({target:"Object",stat:!0,sham:!t},{getOwnPropertyDescriptors:function(e){var l,i,n=o(e),t=a.f,c=r(n),s={},u=0;while(c.length>u)i=t(n,l=c[u++]),void 0!==i&&f(s,l,i);return s}})},dc4a:function(e,l,i){var n=i("59ed");e.exports=function(e,l){var i=e[l];return null==i?void 0:n(i)}},ddb0:function(e,l,i){var n=i("da84"),t=i("fdbc"),r=i("785a"),o=i("e260"),a=i("9112"),f=i("b622"),c=f("iterator"),s=f("toStringTag"),u=o.values,d=function(e,l){if(e){if(e[c]!==u)try{a(e,c,u)}catch(n){e[c]=u}if(e[s]||a(e,s,l),t[l])for(var i in o)if(e[i]!==o[i])try{a(e,i,o[i])}catch(n){e[i]=o[i]}}};for(var p in t)d(n[p]&&n[p].prototype,p);d(r,"DOMTokenList")},df75:function(e,l,i){var n=i("ca84"),t=i("7839");e.exports=Object.keys||function(e){return n(e,t)}},e163:function(e,l,i){var n=i("da84"),t=i("1a2d"),r=i("1626"),o=i("7b0b"),a=i("f772"),f=i("e177"),c=a("IE_PROTO"),s=n.Object,u=s.prototype;e.exports=f?s.getPrototypeOf:function(e){var l=o(e);if(t(l,c))return l[c];var i=l.constructor;return r(i)&&l instanceof i?i.prototype:l instanceof s?u:null}},e177:function(e,l,i){var n=i("d039");e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,l,i){"use strict";var n=i("fc6a"),t=i("44d2"),r=i("3f8c"),o=i("69f3"),a=i("9bf2").f,f=i("7dd0"),c=i("c430"),s=i("83ab"),u="Array Iterator",d=o.set,p=o.getterFor(u);e.exports=f(Array,"Array",(function(e,l){d(this,{type:u,target:n(e),index:0,kind:l})}),(function(){var e=p(this),l=e.target,i=e.kind,n=e.index++;return!l||n>=l.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:l[n],done:!1}:{value:[n,l[n]],done:!1}}),"values");var b=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!c&&s&&"values"!==b.name)try{a(b,"name",{value:"values"})}catch(h){}},e330:function(e,l,i){var n=i("40d5"),t=Function.prototype,r=t.bind,o=t.call,a=n&&r.bind(o,o);e.exports=n?function(e){return e&&a(e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},e439:function(e,l,i){var n=i("23e7"),t=i("d039"),r=i("fc6a"),o=i("06cf").f,a=i("83ab"),f=t((function(){o(1)})),c=!a||f;n({target:"Object",stat:!0,forced:c,sham:!a},{getOwnPropertyDescriptor:function(e,l){return o(r(e),l)}})},e538:function(e,l,i){var n=i("b622");l.f=n},e826:function(e,l,i){"use strict";i.r(l);var n=i("8bbf"),t=function(e){return Object(n["pushScopeId"])("data-v-30cca88c"),e=e(),Object(n["popScopeId"])(),e},r=t((function(){return Object(n["createElementVNode"])("span",{style:{padding:"0 5px"}},"图标选择器",-1)})),o={class:"jwt-icon-select-wrapper"},a=Object(n["createTextVNode"])("查询");function f(e,l,i,t,f,c){var s=Object(n["resolveComponent"])("jwt-icon"),u=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-input"),p=Object(n["resolveComponent"])("el-col"),b=Object(n["resolveComponent"])("el-row"),h=Object(n["resolveComponent"])("el-card"),m=Object(n["resolveComponent"])("el-pagination"),g=Object(n["resolveComponent"])("el-popover");return Object(n["openBlock"])(),Object(n["createBlock"])(g,{trigger:"click",width:300},{reference:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(s,{icon:e.selectIcon},null,8,["icon"]),r,Object(n["createVNode"])(s,{icon:"arrow-down-s-line"})]})),_:1})]})),default:Object(n["withCtx"])((function(){return[Object(n["createElementVNode"])("div",o,[Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(p,{span:18},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(d,{modelValue:e.searchVal,"onUpdate:modelValue":l[0]||(l[0]=function(l){return e.searchVal=l}),placeholder:"",clearable:"",onKeydown:Object(n["withKeys"])(e.handleSearchIcon,["enter"])},null,8,["modelValue","onKeydown"])]})),_:1}),Object(n["createVNode"])(p,{span:4,offset:1},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(u,{type:"primary",onClick:e.handleSearchIcon},{default:Object(n["withCtx"])((function(){return[a]})),_:1},8,["onClick"])]})),_:1})]})),_:1}),Object(n["createVNode"])(b,{gutter:10,class:"icon-list"},{default:Object(n["withCtx"])((function(){return[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.listData,(function(l,i){return Object(n["openBlock"])(),Object(n["createBlock"])(p,{span:6,key:i},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(h,{onClick:function(i){return e.handleSelectIcon(l)},shadow:"hover","body-style":{padding:"5px",textAlign:"center"}},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(s,{icon:l,size:"30"},null,8,["icon"])]})),_:2},1032,["onClick"])]})),_:2},1024)})),128))]})),_:1}),Object(n["createVNode"])(b,{justify:"center",class:"pagination"},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(p,{span:18},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(m,{background:"","current-page":e.pagination.pageNo,layout:e.pagination.layout,"page-size":e.pagination.pageSize,total:e.pagination.total,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange},null,8,["current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]})),_:1})]})),_:1})])]})),_:1})}var c=i("5530"),s=(i("fb6a"),i("4de4"),i("d3b7"),i("caad"),i("2532"),i("f416")),u=16,d=Object(n["defineComponent"])({name:"JwtIconSelect",props:{modelValue:{type:String,default:"settings-3-line"}},emits:["update:modelValue","change"],setup:function(e,l){var i=l.emit,t=Object(n["reactive"])({searchVal:"",listData:s["iconList"].slice(0,u),allIconData:[],pagination:{pageNo:1,pageSize:u,total:s["iconList"].length,layout:"total, prev, next"}}),r=Object(n["computed"])({get:function(){return e.modelValue||"settings-3-line"},set:function(e){i("update:modelValue",e)}}),o=function(e){t.pagination.pageSize=e},a=function(e){t.pagination.pageNo=e,p()},f=function(e){r.value=e,i("change",e)},d=function(){t.pagination.pageNo=1,p()},p=function(){var e=[];e=t.searchVal?s["iconList"].filter((function(e){return e.includes(t.searchVal)})):s["iconList"],t.pagination.total=e.length,t.listData=e.slice(16*(t.pagination.pageNo-1),16*t.pagination.pageNo)};return Object(c["a"])(Object(c["a"])({},Object(n["toRefs"])(t)),{},{selectIcon:r,handleSearchIcon:d,handleSelectIcon:f,handleSizeChange:o,handleCurrentChange:a})}}),p=(i("03f0"),i("6b0d")),b=i.n(p);const h=b()(d,[["render",f],["__scopeId","data-v-30cca88c"]]);l["default"]=h},e893:function(e,l,i){var n=i("1a2d"),t=i("56ef"),r=i("06cf"),o=i("9bf2");e.exports=function(e,l,i){for(var a=t(l),f=o.f,c=r.f,s=0;s<a.length;s++){var u=a[s];n(e,u)||i&&n(i,u)||f(e,u,c(l,u))}}},e8b5:function(e,l,i){var n=i("c6b6");e.exports=Array.isArray||function(e){return"Array"==n(e)}},e9c4:function(e,l,i){var n=i("23e7"),t=i("d066"),r=i("2ba4"),o=i("c65b"),a=i("e330"),f=i("d039"),c=i("e8b5"),s=i("1626"),u=i("861d"),d=i("d9b5"),p=i("f36a"),b=i("4930"),h=t("JSON","stringify"),m=a(/./.exec),g=a("".charAt),v=a("".charCodeAt),y=a("".replace),w=a(1..toString),k=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,j=!b||f((function(){var e=t("Symbol")();return"[null]"!=h([e])||"{}"!=h({a:e})||"{}"!=h(Object(e))})),S=f((function(){return'"\\udf06\\ud834"'!==h("\udf06\ud834")||'"\\udead"'!==h("\udead")})),C=function(e,l){var i=p(arguments),n=l;if((u(l)||void 0!==e)&&!d(e))return c(l)||(l=function(e,l){if(s(n)&&(l=o(n,this,e,l)),!d(l))return l}),i[1]=l,r(h,null,i)},E=function(e,l,i){var n=g(i,l-1),t=g(i,l+1);return m(x,e)&&!m(O,t)||m(O,e)&&!m(x,n)?"\\u"+w(v(e,0),16):e};h&&n({target:"JSON",stat:!0,arity:3,forced:j||S},{stringify:function(e,l,i){var n=p(arguments),t=r(j?C:h,null,n);return S&&"string"==typeof t?y(t,k,E):t}})},f36a:function(e,l,i){var n=i("e330");e.exports=n([].slice)},f416:function(e,l){var i=["24-hours-fill","24-hours-line","4k-fill","4k-line","a-b","account-box-fill","account-box-line","account-circle-fill","account-circle-line","account-pin-box-fill","account-pin-box-line","account-pin-circle-fill","account-pin-circle-line","add-box-fill","add-box-line","add-circle-fill","add-circle-line","add-fill","add-line","admin-fill","admin-line","airplay-fill","airplay-line","alarm-fill","alarm-line","alarm-warning-fill","alarm-warning-line","album-fill","album-line","alert-fill","alert-line","aliens-fill","aliens-line","align-bottom","align-center","align-justify","align-left","align-right","align-top","align-vertically","alipay-fill","alipay-line","amazon-fill","amazon-line","anchor-fill","anchor-line","ancient-gate-fill","ancient-gate-line","ancient-pavilion-fill","ancient-pavilion-line","android-fill","android-line","angularjs-fill","angularjs-line","anticlockwise-2-fill","anticlockwise-2-line","anticlockwise-fill","anticlockwise-line","app-store-fill","app-store-line","apple-fill","apple-line","apps-2-fill","apps-2-line","apps-fill","apps-line","archive-drawer-fill","archive-drawer-line","archive-fill","archive-line","arrow-down-circle-fill","arrow-down-circle-line","arrow-down-fill","arrow-down-line","arrow-down-s-fill","arrow-down-s-line","arrow-drop-down-fill","arrow-drop-down-line","arrow-drop-left-fill","arrow-drop-left-line","arrow-drop-right-fill","arrow-drop-right-line","arrow-drop-up-fill","arrow-drop-up-line","arrow-go-back-fill","arrow-go-back-line","arrow-go-forward-fill","arrow-go-forward-line","arrow-left-circle-fill","arrow-left-circle-line","arrow-left-down-fill","arrow-left-down-line","arrow-left-fill","arrow-left-line","arrow-left-right-fill","arrow-left-right-line","arrow-left-s-fill","arrow-left-s-line","arrow-left-up-fill","arrow-left-up-line","arrow-right-circle-fill","arrow-right-circle-line","arrow-right-down-fill","arrow-right-down-line","arrow-right-fill","arrow-right-line","arrow-right-s-fill","arrow-right-s-line","arrow-right-up-fill","arrow-right-up-line","arrow-up-circle-fill","arrow-up-circle-line","arrow-up-down-fill","arrow-up-down-line","arrow-up-fill","arrow-up-line","arrow-up-s-fill","arrow-up-s-line","artboard-2-fill","artboard-2-line","artboard-fill","artboard-line","article-fill","article-line","aspect-ratio-fill","aspect-ratio-line","asterisk","at-fill","at-line","attachment-2","attachment-fill","attachment-line","auction-fill","auction-line","award-fill","award-line","baidu-fill","baidu-line","ball-pen-fill","ball-pen-line","bank-card-2-fill","bank-card-2-line","bank-card-fill","bank-card-line","bank-fill","bank-line","bar-chart-2-fill","bar-chart-2-line","bar-chart-box-fill","bar-chart-box-line","bar-chart-fill","bar-chart-grouped-fill","bar-chart-grouped-line","bar-chart-horizontal-fill","bar-chart-horizontal-line","bar-chart-line","barcode-box-fill","barcode-box-line","barcode-fill","barcode-line","barricade-fill","barricade-line","base-station-fill","base-station-line","basketball-fill","basketball-line","battery-2-charge-fill","battery-2-charge-line","battery-2-fill","battery-2-line","battery-charge-fill","battery-charge-line","battery-fill","battery-line","battery-low-fill","battery-low-line","battery-saver-fill","battery-saver-line","battery-share-fill","battery-share-line","bear-smile-fill","bear-smile-line","behance-fill","behance-line","bell-fill","bell-line","bike-fill","bike-line","bilibili-fill","bilibili-line","bill-fill","bill-line","billiards-fill","billiards-line","bit-coin-fill","bit-coin-line","blaze-fill","blaze-line","bluetooth-connect-fill","bluetooth-connect-line","bluetooth-fill","bluetooth-line","blur-off-fill","blur-off-line","body-scan-fill","body-scan-line","bold","book-2-fill","book-2-line","book-3-fill","book-3-line","book-fill","book-line","book-mark-fill","book-mark-line","book-open-fill","book-open-line","book-read-fill","book-read-line","booklet-fill","booklet-line","bookmark-2-fill","bookmark-2-line","bookmark-3-fill","bookmark-3-line","bookmark-fill","bookmark-line","boxing-fill","boxing-line","braces-fill","braces-line","brackets-fill","brackets-line","briefcase-2-fill","briefcase-2-line","briefcase-3-fill","briefcase-3-line","briefcase-4-fill","briefcase-4-line","briefcase-5-fill","briefcase-5-line","briefcase-fill","briefcase-line","bring-forward","bring-to-front","broadcast-fill","broadcast-line","brush-2-fill","brush-2-line","brush-3-fill","brush-3-line","brush-4-fill","brush-4-line","brush-fill","brush-line","bubble-chart-fill","bubble-chart-line","bug-2-fill","bug-2-line","bug-fill","bug-line","building-2-fill","building-2-line","building-3-fill","building-3-line","building-4-fill","building-4-line","building-fill","building-line","bus-2-fill","bus-2-line","bus-fill","bus-line","bus-wifi-fill","bus-wifi-line","cactus-fill","cactus-line","cake-2-fill","cake-2-line","cake-3-fill","cake-3-line","cake-fill","cake-line","calculator-fill","calculator-line","calendar-2-fill","calendar-2-line","calendar-check-fill","calendar-check-line","calendar-event-fill","calendar-event-line","calendar-fill","calendar-line","calendar-todo-fill","calendar-todo-line","camera-2-fill","camera-2-line","camera-3-fill","camera-3-line","camera-fill","camera-lens-fill","camera-lens-line","camera-line","camera-off-fill","camera-off-line","camera-switch-fill","camera-switch-line","capsule-fill","capsule-line","car-fill","car-line","car-washing-fill","car-washing-line","caravan-fill","caravan-line","cast-fill","cast-line","cellphone-fill","cellphone-line","celsius-fill","celsius-line","centos-fill","centos-line","character-recognition-fill","character-recognition-line","charging-pile-2-fill","charging-pile-2-line","charging-pile-fill","charging-pile-line","chat-1-fill","chat-1-line","chat-2-fill","chat-2-line","chat-3-fill","chat-3-line","chat-4-fill","chat-4-line","chat-check-fill","chat-check-line","chat-delete-fill","chat-delete-line","chat-download-fill","chat-download-line","chat-follow-up-fill","chat-follow-up-line","chat-forward-fill","chat-forward-line","chat-heart-fill","chat-heart-line","chat-history-fill","chat-history-line","chat-new-fill","chat-new-line","chat-off-fill","chat-off-line","chat-poll-fill","chat-poll-line","chat-private-fill","chat-private-line","chat-quote-fill","chat-quote-line","chat-settings-fill","chat-settings-line","chat-smile-2-fill","chat-smile-2-line","chat-smile-3-fill","chat-smile-3-line","chat-smile-fill","chat-smile-line","chat-upload-fill","chat-upload-line","chat-voice-fill","chat-voice-line","check-double-fill","check-double-line","check-fill","check-line","checkbox-blank-circle-fill","checkbox-blank-circle-line","checkbox-blank-fill","checkbox-blank-line","checkbox-circle-fill","checkbox-circle-line","checkbox-fill","checkbox-indeterminate-fill","checkbox-indeterminate-line","checkbox-line","checkbox-multiple-blank-fill","checkbox-multiple-blank-line","checkbox-multiple-fill","checkbox-multiple-line","china-railway-fill","china-railway-line","chrome-fill","chrome-line","clapperboard-fill","clapperboard-line","clipboard-fill","clipboard-line","clockwise-2-fill","clockwise-2-line","clockwise-fill","clockwise-line","close-circle-fill","close-circle-line","close-fill","close-line","closed-captioning-fill","closed-captioning-line","cloud-fill","cloud-line","cloud-off-fill","cloud-off-line","cloud-windy-fill","cloud-windy-line","cloudy-2-fill","cloudy-2-line","cloudy-fill","cloudy-line","code-box-fill","code-box-line","code-fill","code-line","code-s-fill","code-s-line","code-s-slash-fill","code-s-slash-line","code-view","codepen-fill","codepen-line","coin-fill","coin-line","coins-fill","coins-line","collage-fill","collage-line","command-fill","command-line","community-fill","community-line","compass-2-fill","compass-2-line","compass-3-fill","compass-3-line","compass-4-fill","compass-4-line","compass-discover-fill","compass-discover-line","compass-fill","compass-line","compasses-2-fill","compasses-2-line","compasses-fill","compasses-line","computer-fill","computer-line","contacts-book-2-fill","contacts-book-2-line","contacts-book-fill","contacts-book-line","contacts-book-upload-fill","contacts-book-upload-line","contacts-fill","contacts-line","contrast-2-fill","contrast-2-line","contrast-drop-2-fill","contrast-drop-2-line","contrast-drop-fill","contrast-drop-line","contrast-fill","contrast-line","copper-coin-fill","copper-coin-line","copper-diamond-fill","copper-diamond-line","copyleft-fill","copyleft-line","copyright-fill","copyright-line","coreos-fill","coreos-line","coupon-2-fill","coupon-2-line","coupon-3-fill","coupon-3-line","coupon-4-fill","coupon-4-line","coupon-5-fill","coupon-5-line","coupon-fill","coupon-line","cpu-fill","cpu-line","creative-commons-by-fill","creative-commons-by-line","creative-commons-fill","creative-commons-line","creative-commons-nc-fill","creative-commons-nc-line","creative-commons-nd-fill","creative-commons-nd-line","creative-commons-sa-fill","creative-commons-sa-line","creative-commons-zero-fill","creative-commons-zero-line","criminal-fill","criminal-line","crop-2-fill","crop-2-line","crop-fill","crop-line","css3-fill","css3-line","cup-fill","cup-line","currency-fill","currency-line","cursor-fill","cursor-line","customer-service-2-fill","customer-service-2-line","customer-service-fill","customer-service-line","dashboard-2-fill","dashboard-2-line","dashboard-3-fill","dashboard-3-line","dashboard-fill","dashboard-line","database-2-fill","database-2-line","database-fill","database-line","delete-back-2-fill","delete-back-2-line","delete-back-fill","delete-back-line","delete-bin-2-fill","delete-bin-2-line","delete-bin-3-fill","delete-bin-3-line","delete-bin-4-fill","delete-bin-4-line","delete-bin-5-fill","delete-bin-5-line","delete-bin-6-fill","delete-bin-6-line","delete-bin-7-fill","delete-bin-7-line","delete-bin-fill","delete-bin-line","delete-column","delete-row","device-fill","device-line","device-recover-fill","device-recover-line","dingding-fill","dingding-line","direction-fill","direction-line","disc-fill","disc-line","discord-fill","discord-line","discuss-fill","discuss-line","dislike-fill","dislike-line","disqus-fill","disqus-line","divide-fill","divide-line","donut-chart-fill","donut-chart-line","door-closed-fill","door-closed-line","door-fill","door-line","door-lock-box-fill","door-lock-box-line","door-lock-fill","door-lock-line","door-open-fill","door-open-line","dossier-fill","dossier-line","douban-fill","douban-line","double-quotes-l","double-quotes-r","download-2-fill","download-2-line","download-cloud-2-fill","download-cloud-2-line","download-cloud-fill","download-cloud-line","download-fill","download-line","draft-fill","draft-line","drag-drop-fill","drag-drop-line","drag-move-2-fill","drag-move-2-line","drag-move-fill","drag-move-line","dribbble-fill","dribbble-line","drive-fill","drive-line","drizzle-fill","drizzle-line","drop-fill","drop-line","dropbox-fill","dropbox-line","dual-sim-1-fill","dual-sim-1-line","dual-sim-2-fill","dual-sim-2-line","dv-fill","dv-line","dvd-fill","dvd-line","e-bike-2-fill","e-bike-2-line","e-bike-fill","e-bike-line","earth-fill","earth-line","earthquake-fill","earthquake-line","edge-fill","edge-line","edit-2-fill","edit-2-line","edit-box-fill","edit-box-line","edit-circle-fill","edit-circle-line","edit-fill","edit-line","eject-fill","eject-line","emotion-2-fill","emotion-2-line","emotion-fill","emotion-happy-fill","emotion-happy-line","emotion-laugh-fill","emotion-laugh-line","emotion-line","emotion-normal-fill","emotion-normal-line","emotion-sad-fill","emotion-sad-line","emotion-unhappy-fill","emotion-unhappy-line","empathize-fill","empathize-line","emphasis-cn","emphasis","english-input","equalizer-fill","equalizer-line","eraser-fill","eraser-line","error-warning-fill","error-warning-line","evernote-fill","evernote-line","exchange-box-fill","exchange-box-line","exchange-cny-fill","exchange-cny-line","exchange-dollar-fill","exchange-dollar-line","exchange-fill","exchange-funds-fill","exchange-funds-line","exchange-line","external-link-fill","external-link-line","eye-2-fill","eye-2-line","eye-close-fill","eye-close-line","eye-fill","eye-line","eye-off-fill","eye-off-line","facebook-box-fill","facebook-box-line","facebook-circle-fill","facebook-circle-line","facebook-fill","facebook-line","fahrenheit-fill","fahrenheit-line","feedback-fill","feedback-line","file-2-fill","file-2-line","file-3-fill","file-3-line","file-4-fill","file-4-line","file-add-fill","file-add-line","file-chart-2-fill","file-chart-2-line","file-chart-fill","file-chart-line","file-cloud-fill","file-cloud-line","file-code-fill","file-code-line","file-copy-2-fill","file-copy-2-line","file-copy-fill","file-copy-line","file-damage-fill","file-damage-line","file-download-fill","file-download-line","file-edit-fill","file-edit-line","file-excel-2-fill","file-excel-2-line","file-excel-fill","file-excel-line","file-fill","file-forbid-fill","file-forbid-line","file-gif-fill","file-gif-line","file-history-fill","file-history-line","file-hwp-fill","file-hwp-line","file-info-fill","file-info-line","file-line","file-list-2-fill","file-list-2-line","file-list-3-fill","file-list-3-line","file-list-fill","file-list-line","file-lock-fill","file-lock-line","file-mark-fill","file-mark-line","file-music-fill","file-music-line","file-paper-2-fill","file-paper-2-line","file-paper-fill","file-paper-line","file-pdf-fill","file-pdf-line","file-ppt-2-fill","file-ppt-2-line","file-ppt-fill","file-ppt-line","file-reduce-fill","file-reduce-line","file-search-fill","file-search-line","file-settings-fill","file-settings-line","file-shield-2-fill","file-shield-2-line","file-shield-fill","file-shield-line","file-shred-fill","file-shred-line","file-text-fill","file-text-line","file-transfer-fill","file-transfer-line","file-unknow-fill","file-unknow-line","file-upload-fill","file-upload-line","file-user-fill","file-user-line","file-warning-fill","file-warning-line","file-word-2-fill","file-word-2-line","file-word-fill","file-word-line","file-zip-fill","file-zip-line","film-fill","film-line","filter-2-fill","filter-2-line","filter-3-fill","filter-3-line","filter-fill","filter-line","filter-off-fill","filter-off-line","find-replace-fill","find-replace-line","finder-fill","finder-line","fingerprint-2-fill","fingerprint-2-line","fingerprint-fill","fingerprint-line","fire-fill","fire-line","firefox-fill","firefox-line","first-aid-kit-fill","first-aid-kit-line","flag-2-fill","flag-2-line","flag-fill","flag-line","flashlight-fill","flashlight-line","flask-fill","flask-line","flight-land-fill","flight-land-line","flight-takeoff-fill","flight-takeoff-line","flood-fill","flood-line","flow-chart","flutter-fill","flutter-line","focus-2-fill","focus-2-line","focus-3-fill","focus-3-line","focus-fill","focus-line","foggy-fill","foggy-line","folder-2-fill","folder-2-line","folder-3-fill","folder-3-line","folder-4-fill","folder-4-line","folder-5-fill","folder-5-line","folder-add-fill","folder-add-line","folder-chart-2-fill","folder-chart-2-line","folder-chart-fill","folder-chart-line","folder-download-fill","folder-download-line","folder-fill","folder-forbid-fill","folder-forbid-line","folder-history-fill","folder-history-line","folder-info-fill","folder-info-line","folder-keyhole-fill","folder-keyhole-line","folder-line","folder-lock-fill","folder-lock-line","folder-music-fill","folder-music-line","folder-open-fill","folder-open-line","folder-received-fill","folder-received-line","folder-reduce-fill","folder-reduce-line","folder-settings-fill","folder-settings-line","folder-shared-fill","folder-shared-line","folder-shield-2-fill","folder-shield-2-line","folder-shield-fill","folder-shield-line","folder-transfer-fill","folder-transfer-line","folder-unknow-fill","folder-unknow-line","folder-upload-fill","folder-upload-line","folder-user-fill","folder-user-line","folder-warning-fill","folder-warning-line","folder-zip-fill","folder-zip-line","folders-fill","folders-line","font-color","font-size-2","font-size","football-fill","football-line","footprint-fill","footprint-line","forbid-2-fill","forbid-2-line","forbid-fill","forbid-line","format-clear","fridge-fill","fridge-line","fullscreen-exit-fill","fullscreen-exit-line","fullscreen-fill","fullscreen-line","function-fill","function-line","functions","funds-box-fill","funds-box-line","funds-fill","funds-line","gallery-fill","gallery-line","gallery-upload-fill","gallery-upload-line","game-fill","game-line","gamepad-fill","gamepad-line","gas-station-fill","gas-station-line","gatsby-fill","gatsby-line","genderless-fill","genderless-line","ghost-2-fill","ghost-2-line","ghost-fill","ghost-line","ghost-smile-fill","ghost-smile-line","gift-2-fill","gift-2-line","gift-fill","gift-line","git-branch-fill","git-branch-line","git-commit-fill","git-commit-line","git-merge-fill","git-merge-line","git-pull-request-fill","git-pull-request-line","git-repository-commits-fill","git-repository-commits-line","git-repository-fill","git-repository-line","git-repository-private-fill","git-repository-private-line","github-fill","github-line","gitlab-fill","gitlab-line","global-fill","global-line","globe-fill","globe-line","goblet-fill","goblet-line","google-fill","google-line","google-play-fill","google-play-line","government-fill","government-line","gps-fill","gps-line","gradienter-fill","gradienter-line","grid-fill","grid-line","group-2-fill","group-2-line","group-fill","group-line","guide-fill","guide-line","h-1","h-2","h-3","h-4","h-5","h-6","hail-fill","hail-line","hammer-fill","hammer-line","hand-coin-fill","hand-coin-line","hand-heart-fill","hand-heart-line","hand-sanitizer-fill","hand-sanitizer-line","handbag-fill","handbag-line","hard-drive-2-fill","hard-drive-2-line","hard-drive-fill","hard-drive-line","hashtag","haze-2-fill","haze-2-line","haze-fill","haze-line","hd-fill","hd-line","heading","headphone-fill","headphone-line","health-book-fill","health-book-line","heart-2-fill","heart-2-line","heart-3-fill","heart-3-line","heart-add-fill","heart-add-line","heart-fill","heart-line","heart-pulse-fill","heart-pulse-line","hearts-fill","hearts-line","heavy-showers-fill","heavy-showers-line","history-fill","history-line","home-2-fill","home-2-line","home-3-fill","home-3-line","home-4-fill","home-4-line","home-5-fill","home-5-line","home-6-fill","home-6-line","home-7-fill","home-7-line","home-8-fill","home-8-line","home-fill","home-gear-fill","home-gear-line","home-heart-fill","home-heart-line","home-line","home-smile-2-fill","home-smile-2-line","home-smile-fill","home-smile-line","home-wifi-fill","home-wifi-line","honor-of-kings-fill","honor-of-kings-line","honour-fill","honour-line","hospital-fill","hospital-line","hotel-bed-fill","hotel-bed-line","hotel-fill","hotel-line","hotspot-fill","hotspot-line","hq-fill","hq-line","html5-fill","html5-line","ie-fill","ie-line","image-2-fill","image-2-line","image-add-fill","image-add-line","image-edit-fill","image-edit-line","image-fill","image-line","inbox-archive-fill","inbox-archive-line","inbox-fill","inbox-line","inbox-unarchive-fill","inbox-unarchive-line","increase-decrease-fill","increase-decrease-line","indent-decrease","indent-increase","indeterminate-circle-fill","indeterminate-circle-line","information-fill","information-line","infrared-thermometer-fill","infrared-thermometer-line","ink-bottle-fill","ink-bottle-line","input-cursor-move","input-method-fill","input-method-line","insert-column-left","insert-column-right","insert-row-bottom","insert-row-top","instagram-fill","instagram-line","install-fill","install-line","invision-fill","invision-line","italic","kakao-talk-fill","kakao-talk-line","key-2-fill","key-2-line","key-fill","key-line","keyboard-box-fill","keyboard-box-line","keyboard-fill","keyboard-line","keynote-fill","keynote-line","knife-blood-fill","knife-blood-line","knife-fill","knife-line","landscape-fill","landscape-line","layout-2-fill","layout-2-line","layout-3-fill","layout-3-line","layout-4-fill","layout-4-line","layout-5-fill","layout-5-line","layout-6-fill","layout-6-line","layout-bottom-2-fill","layout-bottom-2-line","layout-bottom-fill","layout-bottom-line","layout-column-fill","layout-column-line","layout-fill","layout-grid-fill","layout-grid-line","layout-left-2-fill","layout-left-2-line","layout-left-fill","layout-left-line","layout-line","layout-masonry-fill","layout-masonry-line","layout-right-2-fill","layout-right-2-line","layout-right-fill","layout-right-line","layout-row-fill","layout-row-line","layout-top-2-fill","layout-top-2-line","layout-top-fill","layout-top-line","leaf-fill","leaf-line","lifebuoy-fill","lifebuoy-line","lightbulb-fill","lightbulb-flash-fill","lightbulb-flash-line","lightbulb-line","line-chart-fill","line-chart-line","line-fill","line-height","line-line","link-m","link-unlink-m","link-unlink","link","linkedin-box-fill","linkedin-box-line","linkedin-fill","linkedin-line","links-fill","links-line","list-check-2","list-check","list-ordered","list-settings-fill","list-settings-line","list-unordered","live-fill","live-line","loader-2-fill","loader-2-line","loader-3-fill","loader-3-line","loader-4-fill","loader-4-line","loader-5-fill","loader-5-line","loader-fill","loader-line","lock-2-fill","lock-2-line","lock-fill","lock-line","lock-password-fill","lock-password-line","lock-unlock-fill","lock-unlock-line","login-box-fill","login-box-line","login-circle-fill","login-circle-line","logout-box-fill","logout-box-line","logout-box-r-fill","logout-box-r-line","logout-circle-fill","logout-circle-line","logout-circle-r-fill","logout-circle-r-line","luggage-cart-fill","luggage-cart-line","luggage-deposit-fill","luggage-deposit-line","lungs-fill","lungs-line","mac-fill","mac-line","macbook-fill","macbook-line","magic-fill","magic-line","mail-add-fill","mail-add-line","mail-check-fill","mail-check-line","mail-close-fill","mail-close-line","mail-download-fill","mail-download-line","mail-fill","mail-forbid-fill","mail-forbid-line","mail-line","mail-lock-fill","mail-lock-line","mail-open-fill","mail-open-line","mail-send-fill","mail-send-line","mail-settings-fill","mail-settings-line","mail-star-fill","mail-star-line","mail-unread-fill","mail-unread-line","mail-volume-fill","mail-volume-line","map-2-fill","map-2-line","map-fill","map-line","map-pin-2-fill","map-pin-2-line","map-pin-3-fill","map-pin-3-line","map-pin-4-fill","map-pin-4-line","map-pin-5-fill","map-pin-5-line","map-pin-add-fill","map-pin-add-line","map-pin-fill","map-pin-line","map-pin-range-fill","map-pin-range-line","map-pin-time-fill","map-pin-time-line","map-pin-user-fill","map-pin-user-line","mark-pen-fill","mark-pen-line","markdown-fill","markdown-line","markup-fill","markup-line","mastercard-fill","mastercard-line","mastodon-fill","mastodon-line","medal-2-fill","medal-2-line","medal-fill","medal-line","medicine-bottle-fill","medicine-bottle-line","medium-fill","medium-line","men-fill","men-line","mental-health-fill","mental-health-line","menu-2-fill","menu-2-line","menu-3-fill","menu-3-line","menu-4-fill","menu-4-line","menu-5-fill","menu-5-line","menu-add-fill","menu-add-line","menu-fill","menu-fold-fill","menu-fold-line","menu-line","menu-unfold-fill","menu-unfold-line","merge-cells-horizontal","merge-cells-vertical","message-2-fill","message-2-line","message-3-fill","message-3-line","message-fill","message-line","messenger-fill","messenger-line","meteor-fill","meteor-line","mic-2-fill","mic-2-line","mic-fill","mic-line","mic-off-fill","mic-off-line","mickey-fill","mickey-line","microscope-fill","microscope-line","microsoft-fill","microsoft-line","mind-map","mini-program-fill","mini-program-line","mist-fill","mist-line","money-cny-box-fill","money-cny-box-line","money-cny-circle-fill","money-cny-circle-line","money-dollar-box-fill","money-dollar-box-line","money-dollar-circle-fill","money-dollar-circle-line","money-euro-box-fill","money-euro-box-line","money-euro-circle-fill","money-euro-circle-line","money-pound-box-fill","money-pound-box-line","money-pound-circle-fill","money-pound-circle-line","moon-clear-fill","moon-clear-line","moon-cloudy-fill","moon-cloudy-line","moon-fill","moon-foggy-fill","moon-foggy-line","moon-line","more-2-fill","more-2-line","more-fill","more-line","motorbike-fill","motorbike-line","mouse-fill","mouse-line","movie-2-fill","movie-2-line","movie-fill","movie-line","music-2-fill","music-2-line","music-fill","music-line","mv-fill","mv-line","navigation-fill","navigation-line","netease-cloud-music-fill","netease-cloud-music-line","netflix-fill","netflix-line","newspaper-fill","newspaper-line","node-tree","notification-2-fill","notification-2-line","notification-3-fill","notification-3-line","notification-4-fill","notification-4-line","notification-badge-fill","notification-badge-line","notification-fill","notification-line","notification-off-fill","notification-off-line","npmjs-fill","npmjs-line","number-0","number-1","number-2","number-3","number-4","number-5","number-6","number-7","number-8","number-9","numbers-fill","numbers-line","nurse-fill","nurse-line","oil-fill","oil-line","omega","open-arm-fill","open-arm-line","open-source-fill","open-source-line","opera-fill","opera-line","order-play-fill","order-play-line","organization-chart","outlet-2-fill","outlet-2-line","outlet-fill","outlet-line","page-separator","pages-fill","pages-line","paint-brush-fill","paint-brush-line","paint-fill","paint-line","palette-fill","palette-line","pantone-fill","pantone-line","paragraph","parent-fill","parent-line","parentheses-fill","parentheses-line","parking-box-fill","parking-box-line","parking-fill","parking-line","passport-fill","passport-line","patreon-fill","patreon-line","pause-circle-fill","pause-circle-line","pause-fill","pause-line","pause-mini-fill","pause-mini-line","paypal-fill","paypal-line","pen-nib-fill","pen-nib-line","pencil-fill","pencil-line","pencil-ruler-2-fill","pencil-ruler-2-line","pencil-ruler-fill","pencil-ruler-line","percent-fill","percent-line","phone-camera-fill","phone-camera-line","phone-fill","phone-find-fill","phone-find-line","phone-line","phone-lock-fill","phone-lock-line","picture-in-picture-2-fill","picture-in-picture-2-line","picture-in-picture-exit-fill","picture-in-picture-exit-line","picture-in-picture-fill","picture-in-picture-line","pie-chart-2-fill","pie-chart-2-line","pie-chart-box-fill","pie-chart-box-line","pie-chart-fill","pie-chart-line","pin-distance-fill","pin-distance-line","ping-pong-fill","ping-pong-line","pinterest-fill","pinterest-line","pinyin-input","pixelfed-fill","pixelfed-line","plane-fill","plane-line","plant-fill","plant-line","play-circle-fill","play-circle-line","play-fill","play-line","play-list-2-fill","play-list-2-line","play-list-add-fill","play-list-add-line","play-list-fill","play-list-line","play-mini-fill","play-mini-line","playstation-fill","playstation-line","plug-2-fill","plug-2-line","plug-fill","plug-line","polaroid-2-fill","polaroid-2-line","polaroid-fill","polaroid-line","police-car-fill","police-car-line","price-tag-2-fill","price-tag-2-line","price-tag-3-fill","price-tag-3-line","price-tag-fill","price-tag-line","printer-cloud-fill","printer-cloud-line","printer-fill","printer-line","product-hunt-fill","product-hunt-line","profile-fill","profile-line","projector-2-fill","projector-2-line","projector-fill","projector-line","psychotherapy-fill","psychotherapy-line","pulse-fill","pulse-line","pushpin-2-fill","pushpin-2-line","pushpin-fill","pushpin-line","qq-fill","qq-line","qr-code-fill","qr-code-line","qr-scan-2-fill","qr-scan-2-line","qr-scan-fill","qr-scan-line","question-answer-fill","question-answer-line","question-fill","question-line","question-mark","questionnaire-fill","questionnaire-line","quill-pen-fill","quill-pen-line","radar-fill","radar-line","radio-2-fill","radio-2-line","radio-button-fill","radio-button-line","radio-fill","radio-line","rainbow-fill","rainbow-line","rainy-fill","rainy-line","reactjs-fill","reactjs-line","record-circle-fill","record-circle-line","record-mail-fill","record-mail-line","recycle-fill","recycle-line","red-packet-fill","red-packet-line","reddit-fill","reddit-line","refresh-fill","refresh-line","refund-2-fill","refund-2-line","refund-fill","refund-line","registered-fill","registered-line","remixicon-fill","remixicon-line","remote-control-2-fill","remote-control-2-line","remote-control-fill","remote-control-line","repeat-2-fill","repeat-2-line","repeat-fill","repeat-line","repeat-one-fill","repeat-one-line","reply-all-fill","reply-all-line","reply-fill","reply-line","reserved-fill","reserved-line","rest-time-fill","rest-time-line","restart-fill","restart-line","restaurant-2-fill","restaurant-2-line","restaurant-fill","restaurant-line","rewind-fill","rewind-line","rewind-mini-fill","rewind-mini-line","rhythm-fill","rhythm-line","riding-fill","riding-line","road-map-fill","road-map-line","roadster-fill","roadster-line","robot-fill","robot-line","rocket-2-fill","rocket-2-line","rocket-fill","rocket-line","rotate-lock-fill","rotate-lock-line","rounded-corner","route-fill","route-line","router-fill","router-line","rss-fill","rss-line","ruler-2-fill","ruler-2-line","ruler-fill","ruler-line","run-fill","run-line","safari-fill","safari-line","safe-2-fill","safe-2-line","safe-fill","safe-line","sailboat-fill","sailboat-line","save-2-fill","save-2-line","save-3-fill","save-3-line","save-fill","save-line","scales-2-fill","scales-2-line","scales-3-fill","scales-3-line","scales-fill","scales-line","scan-2-fill","scan-2-line","scan-fill","scan-line","scissors-2-fill","scissors-2-line","scissors-cut-fill","scissors-cut-line","scissors-fill","scissors-line","screenshot-2-fill","screenshot-2-line","screenshot-fill","screenshot-line","sd-card-fill","sd-card-line","sd-card-mini-fill","sd-card-mini-line","search-2-fill","search-2-line","search-eye-fill","search-eye-line","search-fill","search-line","secure-payment-fill","secure-payment-line","seedling-fill","seedling-line","send-backward","send-plane-2-fill","send-plane-2-line","send-plane-fill","send-plane-line","send-to-back","sensor-fill","sensor-line","separator","server-fill","server-line","service-fill","service-line","settings-2-fill","settings-2-line","settings-3-fill","settings-3-line","settings-4-fill","settings-4-line","settings-5-fill","settings-5-line","settings-6-fill","settings-6-line","settings-fill","settings-line","shape-2-fill","shape-2-line","shape-fill","shape-line","share-box-fill","share-box-line","share-circle-fill","share-circle-line","share-fill","share-forward-2-fill","share-forward-2-line","share-forward-box-fill","share-forward-box-line","share-forward-fill","share-forward-line","share-line","shield-check-fill","shield-check-line","shield-cross-fill","shield-cross-line","shield-fill","shield-flash-fill","shield-flash-line","shield-keyhole-fill","shield-keyhole-line","shield-line","shield-star-fill","shield-star-line","shield-user-fill","shield-user-line","ship-2-fill","ship-2-line","ship-fill","ship-line","shirt-fill","shirt-line","shopping-bag-2-fill","shopping-bag-2-line","shopping-bag-3-fill","shopping-bag-3-line","shopping-bag-fill","shopping-bag-line","shopping-basket-2-fill","shopping-basket-2-line","shopping-basket-fill","shopping-basket-line","shopping-cart-2-fill","shopping-cart-2-line","shopping-cart-fill","shopping-cart-line","showers-fill","showers-line","shuffle-fill","shuffle-line","shut-down-fill","shut-down-line","side-bar-fill","side-bar-line","signal-tower-fill","signal-tower-line","signal-wifi-1-fill","signal-wifi-1-line","signal-wifi-2-fill","signal-wifi-2-line","signal-wifi-3-fill","signal-wifi-3-line","signal-wifi-error-fill","signal-wifi-error-line","signal-wifi-fill","signal-wifi-line","signal-wifi-off-fill","signal-wifi-off-line","sim-card-2-fill","sim-card-2-line","sim-card-fill","sim-card-line","single-quotes-l","single-quotes-r","sip-fill","sip-line","skip-back-fill","skip-back-line","skip-back-mini-fill","skip-back-mini-line","skip-forward-fill","skip-forward-line","skip-forward-mini-fill","skip-forward-mini-line","skull-2-fill","skull-2-line","skull-fill","skull-line","skype-fill","skype-line","slack-fill","slack-line","slice-fill","slice-line","slideshow-2-fill","slideshow-2-line","slideshow-3-fill","slideshow-3-line","slideshow-4-fill","slideshow-4-line","slideshow-fill","slideshow-line","smartphone-fill","smartphone-line","snapchat-fill","snapchat-line","snowy-fill","snowy-line","sort-asc","sort-desc","sound-module-fill","sound-module-line","soundcloud-fill","soundcloud-line","space-ship-fill","space-ship-line","space","spam-2-fill","spam-2-line","spam-3-fill","spam-3-line","spam-fill","spam-line","speaker-2-fill","speaker-2-line","speaker-3-fill","speaker-3-line","speaker-fill","speaker-line","spectrum-fill","spectrum-line","speed-fill","speed-line","speed-mini-fill","speed-mini-line","split-cells-horizontal","split-cells-vertical","spotify-fill","spotify-line","spy-fill","spy-line","stack-fill","stack-line","stack-overflow-fill","stack-overflow-line","stackshare-fill","stackshare-line","star-fill","star-half-fill","star-half-line","star-half-s-fill","star-half-s-line","star-line","star-s-fill","star-s-line","star-smile-fill","star-smile-line","steam-fill","steam-line","steering-2-fill","steering-2-line","steering-fill","steering-line","stethoscope-fill","stethoscope-line","sticky-note-2-fill","sticky-note-2-line","sticky-note-fill","sticky-note-line","stock-fill","stock-line","stop-circle-fill","stop-circle-line","stop-fill","stop-line","stop-mini-fill","stop-mini-line","store-2-fill","store-2-line","store-3-fill","store-3-line","store-fill","store-line","strikethrough-2","strikethrough","subscript-2","subscript","subtract-fill","subtract-line","subway-fill","subway-line","subway-wifi-fill","subway-wifi-line","suitcase-2-fill","suitcase-2-line","suitcase-3-fill","suitcase-3-line","suitcase-fill","suitcase-line","sun-cloudy-fill","sun-cloudy-line","sun-fill","sun-foggy-fill","sun-foggy-line","sun-line","superscript-2","superscript","surgical-mask-fill","surgical-mask-line","surround-sound-fill","surround-sound-line","survey-fill","survey-line","swap-box-fill","swap-box-line","swap-fill","swap-line","switch-fill","switch-line","sword-fill","sword-line","syringe-fill","syringe-line","t-box-fill","t-box-line","t-shirt-2-fill","t-shirt-2-line","t-shirt-air-fill","t-shirt-air-line","t-shirt-fill","t-shirt-line","table-2","table-alt-fill","table-alt-line","table-fill","table-line","tablet-fill","tablet-line","takeaway-fill","takeaway-line","taobao-fill","taobao-line","tape-fill","tape-line","task-fill","task-line","taxi-fill","taxi-line","taxi-wifi-fill","taxi-wifi-line","team-fill","team-line","telegram-fill","telegram-line","temp-cold-fill","temp-cold-line","temp-hot-fill","temp-hot-line","terminal-box-fill","terminal-box-line","terminal-fill","terminal-line","terminal-window-fill","terminal-window-line","test-tube-fill","test-tube-line","text-direction-l","text-direction-r","text-spacing","text-wrap","text","thermometer-fill","thermometer-line","thumb-down-fill","thumb-down-line","thumb-up-fill","thumb-up-line","thunderstorms-fill","thunderstorms-line","ticket-2-fill","ticket-2-line","ticket-fill","ticket-line","time-fill","time-line","timer-2-fill","timer-2-line","timer-fill","timer-flash-fill","timer-flash-line","timer-line","todo-fill","todo-line","toggle-fill","toggle-line","tools-fill","tools-line","tornado-fill","tornado-line","trademark-fill","trademark-line","traffic-light-fill","traffic-light-line","train-fill","train-line","train-wifi-fill","train-wifi-line","translate-2","translate","travesti-fill","travesti-line","treasure-map-fill","treasure-map-line","trello-fill","trello-line","trophy-fill","trophy-line","truck-fill","truck-line","tumblr-fill","tumblr-line","tv-2-fill","tv-2-line","tv-fill","tv-line","twitch-fill","twitch-line","twitter-fill","twitter-line","typhoon-fill","typhoon-line","u-disk-fill","u-disk-line","ubuntu-fill","ubuntu-line","umbrella-fill","umbrella-line","underline","uninstall-fill","uninstall-line","unsplash-fill","unsplash-line","upload-2-fill","upload-2-line","upload-cloud-2-fill","upload-cloud-2-line","upload-cloud-fill","upload-cloud-line","upload-fill","upload-line","usb-fill","usb-line","user-2-fill","user-2-line","user-3-fill","user-3-line","user-4-fill","user-4-line","user-5-fill","user-5-line","user-6-fill","user-6-line","user-add-fill","user-add-line","user-fill","user-follow-fill","user-follow-line","user-heart-fill","user-heart-line","user-line","user-location-fill","user-location-line","user-received-2-fill","user-received-2-line","user-received-fill","user-received-line","user-search-fill","user-search-line","user-settings-fill","user-settings-line","user-shared-2-fill","user-shared-2-line","user-shared-fill","user-shared-line","user-smile-fill","user-smile-line","user-star-fill","user-star-line","user-unfollow-fill","user-unfollow-line","user-voice-fill","user-voice-line","video-add-fill","video-add-line","video-chat-fill","video-chat-line","video-download-fill","video-download-line","video-fill","video-line","video-upload-fill","video-upload-line","vidicon-2-fill","vidicon-2-line","vidicon-fill","vidicon-line","vimeo-fill","vimeo-line","vip-crown-2-fill","vip-crown-2-line","vip-crown-fill","vip-crown-line","vip-diamond-fill","vip-diamond-line","vip-fill","vip-line","virus-fill","virus-line","visa-fill","visa-line","voice-recognition-fill","voice-recognition-line","voiceprint-fill","voiceprint-line","volume-down-fill","volume-down-line","volume-mute-fill","volume-mute-line","volume-off-vibrate-fill","volume-off-vibrate-line","volume-up-fill","volume-up-line","volume-vibrate-fill","volume-vibrate-line","vuejs-fill","vuejs-line","walk-fill","walk-line","wallet-2-fill","wallet-2-line","wallet-3-fill","wallet-3-line","wallet-fill","wallet-line","water-flash-fill","water-flash-line","webcam-fill","webcam-line","wechat-2-fill","wechat-2-line","wechat-fill","wechat-line","wechat-pay-fill","wechat-pay-line","weibo-fill","weibo-line","whatsapp-fill","whatsapp-line","wheelchair-fill","wheelchair-line","wifi-fill","wifi-line","wifi-off-fill","wifi-off-line","window-2-fill","window-2-line","window-fill","window-line","windows-fill","windows-line","windy-fill","windy-line","wireless-charging-fill","wireless-charging-line","women-fill","women-line","wubi-input","xbox-fill","xbox-line","xing-fill","xing-line","youtube-fill","youtube-line","zcool-fill","zcool-line","zhihu-fill","zhihu-line","zoom-in-fill","zoom-in-line","zoom-out-fill","zoom-out-line","zzz-fill","zzz-line"];e.exports={iconList:i}},f5df:function(e,l,i){var n=i("da84"),t=i("00ee"),r=i("1626"),o=i("c6b6"),a=i("b622"),f=a("toStringTag"),c=n.Object,s="Arguments"==o(function(){return arguments}()),u=function(e,l){try{return e[l]}catch(i){}};e.exports=t?o:function(e){var l,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=u(l=c(e),f))?i:s?o(l):"Object"==(n=o(l))&&r(l.callee)?"Arguments":n}},f772:function(e,l,i){var n=i("5692"),t=i("90e3"),r=n("keys");e.exports=function(e){return r[e]||(r[e]=t(e))}},fae3:function(e,l,i){"use strict";if(i.r(l),i.d(l,"setupJwt",(function(){return o})),"undefined"!==typeof window){var n=window.document.currentScript,t=i("8875");n=t(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:t});var r=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(i.p=r[1])}i("d81d"),i("e260"),i("d3b7"),i("ddb0"),i("b0c0");var o=function e(l){var n=i("2330");e.installed||(e.installed=!0,n.keys().map((function(e){var i=n(e),t=i.default.name;l.component(t,i.default||i)})))}},fb6a:function(e,l,i){"use strict";var n=i("23e7"),t=i("da84"),r=i("e8b5"),o=i("68ee"),a=i("861d"),f=i("23cb"),c=i("07fa"),s=i("fc6a"),u=i("8418"),d=i("b622"),p=i("1dde"),b=i("f36a"),h=p("slice"),m=d("species"),g=t.Array,v=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,l){var i,n,t,d=s(this),p=c(d),h=f(e,p),y=f(void 0===l?p:l,p);if(r(d)&&(i=d.constructor,o(i)&&(i===g||r(i.prototype))?i=void 0:a(i)&&(i=i[m],null===i&&(i=void 0)),i===g||void 0===i))return b(d,h,y);for(n=new(void 0===i?g:i)(v(y-h,0)),t=0;h<y;h++,t++)h in d&&u(n,t,d[h]);return n.length=t,n}})},fc6a:function(e,l,i){var n=i("44ad"),t=i("1d80");e.exports=function(e){return n(t(e))}},fdbc:function(e,l){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,l,i){var n=i("4930");e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})}));
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["jwt-ui"]=t(require("vue")):e["jwt-ui"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(){var t={3577:function(e,t,n){"use strict";n.d(t,{HD:function(){return l},Kn:function(){return u},RI:function(){return i},_A:function(){return f},dG:function(){return r},mf:function(){return a}});const r=()=>{},o=(Object.assign,Object.prototype.hasOwnProperty),i=(e,t)=>o.call(e,t),a=(Array.isArray,e=>"function"===typeof e),l=e=>"string"===typeof e,u=e=>null!==e&&"object"===typeof e,s=(Object.prototype.toString,e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}}),c=/-(\w)/g,f=s((e=>e.replace(c,((e,t)=>t?t.toUpperCase():"")))),d=/\B([A-Z])/g,p=(s((e=>e.replace(d,"-$1").toLowerCase())),s((e=>e.charAt(0).toUpperCase()+e.slice(1))));s((e=>e?`on${p(e)}`:""))},9662:function(e,t,n){var r=n(614),o=n(6330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},1223:function(e,t,n){var r=n(5112),o=n(30),i=n(3070).f,a=r("unscopables"),l=Array.prototype;void 0==l[a]&&i(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},9670:function(e,t,n){var r=n(111),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},1318:function(e,t,n){var r=n(5656),o=n(1400),i=n(6244),a=function(e){return function(t,n,a){var l,u=r(t),s=i(u),c=o(a,s);if(e&&n!=n){while(s>c)if(l=u[c++],l!=l)return!0}else for(;s>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4326:function(e,t,n){var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},9920:function(e,t,n){var r=n(2597),o=n(3887),i=n(1236),a=n(3070);e.exports=function(e,t,n){for(var l=o(t),u=a.f,s=i.f,c=0;c<l.length;c++){var f=l[c];r(e,f)||n&&r(n,f)||u(e,f,s(t,f))}}},8880:function(e,t,n){var r=n(9781),o=n(3070),i=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8052:function(e,t,n){var r=n(614),o=n(3070),i=n(6339),a=n(3072);e.exports=function(e,t,n,l){l||(l={});var u=l.enumerable,s=void 0!==l.name?l.name:t;if(r(n)&&i(n,s,l),l.global)u?e[t]=n:a(t,n);else{try{l.unsafe?e[t]&&(u=!0):delete e[t]}catch(c){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},3072:function(e,t,n){var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var r=n(7854),o=n(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,o,i=n(7854),a=n(8113),l=i.process,u=i.Deno,s=l&&l.versions||u&&u.version,c=s&&s.v8;c&&(r=c.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var r=n(7854),o=n(1236).f,i=n(8880),a=n(8052),l=n(3072),u=n(9920),s=n(4705);e.exports=function(e,t){var n,c,f,d,p,h,g=e.target,v=e.global,m=e.stat;if(c=v?r:m?r[g]||l(g,{}):(r[g]||{}).prototype,c)for(f in t){if(p=t[f],e.dontCallGetSet?(h=o(c,f),d=h&&h.value):d=c[f],n=s(v?f:g+(m?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(c,f,p,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){var r=n(4374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(e,t,n){var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,l=o(i,"name"),u=l&&"something"===function(){}.name,s=l&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:l,PROPER:u,CONFIGURABLE:s}},1702:function(e,t,n){var r=n(4374),o=Function.prototype,i=o.bind,a=o.call,l=r&&i.bind(a,a);e.exports=r?function(e){return e&&l(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},5005:function(e,t,n){var r=n(7854),o=n(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},8173:function(e,t,n){var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(e,t,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:function(e){e.exports={}},490:function(e,t,n){var r=n(5005);e.exports=r("document","documentElement")},4664:function(e,t,n){var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(1702),o=n(7293),i=n(4326),a=Object,l=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?l(e,""):a(e)}:a},2788:function(e,t,n){var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},9909:function(e,t,n){var r,o,i,a=n(8536),l=n(7854),u=n(1702),s=n(111),c=n(8880),f=n(2597),d=n(5465),p=n(6200),h=n(3501),g="Object already initialized",v=l.TypeError,m=l.WeakMap,y=function(e){return i(e)?o(e):r(e,{})},b=function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}};if(a||d.state){var w=d.state||(d.state=new m),x=u(w.get),C=u(w.has),E=u(w.set);r=function(e,t){if(C(w,e))throw new v(g);return t.facade=e,E(w,e,t),t},o=function(e){return x(w,e)||{}},i=function(e){return C(w,e)}}else{var k=p("state");h[k]=!0,r=function(e,t){if(f(e,k))throw new v(g);return t.facade=e,c(e,k,t),t},o=function(e){return f(e,k)?e[k]:{}},i=function(e){return f(e,k)}}e.exports={set:r,get:o,has:i,enforce:y,getterFor:b}},614:function(e){e.exports=function(e){return"function"==typeof e}},4705:function(e,t,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(e,t){var n=u[l(e)];return n==c||n!=s&&(o(t)?r(t):!!t)},l=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},s=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},111:function(e,t,n){var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var r=n(5005),o=n(614),i=n(7976),a=n(3307),l=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,l(e))}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},6339:function(e,t,n){var r=n(7293),o=n(614),i=n(2597),a=n(9781),l=n(6530).CONFIGURABLE,u=n(2788),s=n(9909),c=s.enforce,f=s.get,d=Object.defineProperty,p=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||l&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&i(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=c(e);return i(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return o(this)&&f(this).source||u(this)}),"toString")},4758:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},133:function(e,t,n){var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(e,t,n){var r=n(7854),o=n(614),i=n(2788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},30:function(e,t,n){var r,o=n(9670),i=n(6048),a=n(748),l=n(3501),u=n(490),s=n(317),c=n(6200),f=">",d="<",p="prototype",h="script",g=c("IE_PROTO"),v=function(){},m=function(e){return d+h+f+e+d+"/"+h+f},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=s("iframe"),n="java"+h+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},w=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&r?y(r):b():y(r);var e=a.length;while(e--)delete w[p][a[e]];return w()};l[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[p]=o(e),n=new v,v[p]=null,n[g]=e):n=w(),void 0===t?n:i.f(n,t)}},6048:function(e,t,n){var r=n(9781),o=n(3353),i=n(3070),a=n(9670),l=n(5656),u=n(1956);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);var n,r=l(t),o=u(t),s=o.length,c=0;while(s>c)i.f(e,n=o[c++],r[n]);return e}},3070:function(e,t,n){var r=n(9781),o=n(4664),i=n(3353),a=n(9670),l=n(4948),u=TypeError,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?i?function(e,t,n){if(a(e),t=l(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=c(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(a(e),t=l(t),a(n),o)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),o=n(6916),i=n(5296),a=n(9114),l=n(5656),u=n(4948),s=n(2597),c=n(4664),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=l(e),t=u(t),c)try{return f(e,t)}catch(n){}if(s(e,t))return a(!o(i.f,e,t),e[t])}},8006:function(e,t,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,l=n(3501),u=r([].push);e.exports=function(e,t){var n,r=i(e),s=0,c=[];for(n in r)!o(l,n)&&o(r,n)&&u(c,n);while(t.length>s)o(r,n=t[s++])&&(~a(c,n)||u(c,n));return c}},1956:function(e,t,n){var r=n(6324),o=n(748);e.exports=Object.keys||function(e){return r(e,o)}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2140:function(e,t,n){var r=n(6916),o=n(614),i=n(111),a=TypeError;e.exports=function(e,t){var n,l;if("string"===t&&o(n=e.toString)&&!i(l=r(n,e)))return l;if(o(n=e.valueOf)&&!i(l=r(n,e)))return l;if("string"!==t&&o(n=e.toString)&&!i(l=r(n,e)))return l;throw a("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),o=n(1702),i=n(8006),a=n(5181),l=n(9670),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(l(e)),n=a.f;return n?u(t,n(e)):t}},4488:function(e){var t=TypeError;e.exports=function(e){if(void 0==e)throw t("Can't call method on "+e);return e}},6200:function(e,t,n){var r=n(2309),o=n(9711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:function(e,t,n){var r=n(7854),o=n(3072),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},2309:function(e,t,n){var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.5",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.5/LICENSE",source:"https://github.com/zloirock/core-js"})},1400:function(e,t,n){var r=n(9303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5656:function(e,t,n){var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:function(e,t,n){var r=n(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},7466:function(e,t,n){var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488),o=Object;e.exports=function(e){return o(r(e))}},7593:function(e,t,n){var r=n(6916),o=n(111),i=n(2190),a=n(8173),l=n(2140),u=n(5112),s=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw s("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},4948:function(e,t,n){var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},9711:function(e,t,n){var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},3307:function(e,t,n){var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),o=n(7293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(e,t,n){var r=n(7854),o=n(2309),i=n(2597),a=n(9711),l=n(133),u=n(3307),s=o("wks"),c=r.Symbol,f=c&&c["for"],d=u?c:c&&c.withoutSetter||a;e.exports=function(e){if(!i(s,e)||!l&&"string"!=typeof s[e]){var t="Symbol."+e;l&&i(c,e)?s[e]=c[e]:s[e]=u&&f?f(t):d(t)}return s[e]}},6699:function(e,t,n){"use strict";var r=n(2109),o=n(1318).includes,i=n(7293),a=n(1223),l=i((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:l},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},7484:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",u="week",s="month",c="quarter",f="year",d="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:f,w:u,d:l,D:d,h:a,m:i,s:o,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=v;var x=function(e){return e instanceof S},C=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;w[l]=t,o=l}return!r&&o&&(b=o),o||!r&&b},E=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},k=y;k.l=C,k.i=x,k.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function v(e){this.$L=C(e.locale,null,!0),this.parse(e)}var m=v.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return k},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return E(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<E(e)},m.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,r=!!k.u(t)||t,c=k.p(e),p=function(e,t){var o=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,v=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case f:return r?p(1,0):p(31,11);case s:return r?p(1,v):p(0,v+1);case u:var b=this.$locale().weekStart||0,w=(g<b?g+7:g)-b;return p(r?m-w:m+(6-w),v);case l:case d:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var n,u=k.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[l]=c+"Date",n[d]=c+"Date",n[s]=c+"Month",n[f]=c+"FullYear",n[a]=c+"Hours",n[i]=c+"Minutes",n[o]=c+"Seconds",n[r]=c+"Milliseconds",n)[u],h=u===l?this.$D+(t-this.$W):t;if(u===s||u===f){var g=this.clone().set(d,1);g.$d[p](h),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[k.p(e)]()},m.add=function(r,c){var d,p=this;r=Number(r);var h=k.p(c),g=function(e){var t=E(p);return k.w(t.date(t.date()+Math.round(e*r)),p)};if(h===s)return this.set(s,this.$M+r);if(h===f)return this.set(f,this.$y+r);if(h===l)return g(1);if(h===u)return g(7);var v=(d={},d[i]=t,d[a]=n,d[o]=e,d)[h]||1,m=this.$d.getTime()+r*v;return k.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),i=this.$H,a=this.$m,l=this.$M,u=n.weekdays,s=n.months,c=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return k.s(i%12||12,e,"0")},d=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:k.s(l+1,2,"0"),MMM:c(n.monthsShort,l,s,3),MMMM:c(s,l),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,u,2),ddd:c(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:k.s(i,2,"0"),h:f(1),hh:f(2),a:d(i,a,!0),A:d(i,a,!1),m:String(a),mm:k.s(a,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:o};return r.replace(g,(function(e,t){return t||h[e]||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,p){var h,g=k.p(d),v=E(r),m=(v.utcOffset()-this.utcOffset())*t,y=this-v,b=k.m(this,v);return b=(h={},h[f]=b/12,h[s]=b,h[c]=b/3,h[u]=(y-m)/6048e5,h[l]=(y-m)/864e5,h[a]=y/n,h[i]=y/t,h[o]=y/e,h)[g]||y,p?b:k.a(b)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return w[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return k.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},v}(),D=S.prototype;return E.prototype=D,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",s],["$y",f],["$D",d]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),E.extend=function(e,t){return e.$i||(e(t,S,E),e.$i=!0),E},E.locale=C,E.isDayjs=x,E.unix=function(e){return E(1e3*e)},E.en=w[b],E.Ls=w,E.p={},E}))},6486:function(e,t,n){var r;
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Lodash <https://lodash.com/>
|
|
5
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
6
|
+
* Released under MIT license <https://lodash.com/license>
|
|
7
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
8
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
9
|
+
*/e=n.nmd(e),function(){var o,i="4.17.21",a=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",p=1,h=2,g=4,v=1,m=2,y=1,b=2,w=4,x=8,C=16,E=32,k=64,S=128,D=256,A=512,O=30,_="...",B=800,F=16,j=1,P=2,T=3,N=1/0,I=9007199254740991,M=17976931348623157e292,L=NaN,R=4294967295,z=R-1,V=R>>>1,$=[["ary",S],["bind",y],["bindKey",b],["curry",x],["curryRight",C],["flip",A],["partial",E],["partialRight",k],["rearg",D]],U="[object Arguments]",H="[object Array]",W="[object AsyncFunction]",q="[object Boolean]",K="[object Date]",G="[object DOMException]",Y="[object Error]",Z="[object Function]",J="[object GeneratorFunction]",X="[object Map]",Q="[object Number]",ee="[object Null]",te="[object Object]",ne="[object Promise]",re="[object Proxy]",oe="[object RegExp]",ie="[object Set]",ae="[object String]",le="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",ce="[object WeakSet]",fe="[object ArrayBuffer]",de="[object DataView]",pe="[object Float32Array]",he="[object Float64Array]",ge="[object Int8Array]",ve="[object Int16Array]",me="[object Int32Array]",ye="[object Uint8Array]",be="[object Uint8ClampedArray]",we="[object Uint16Array]",xe="[object Uint32Array]",Ce=/\b__p \+= '';/g,Ee=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,Ae=RegExp(Se.source),Oe=RegExp(De.source),_e=/<%-([\s\S]+?)%>/g,Be=/<%([\s\S]+?)%>/g,Fe=/<%=([\s\S]+?)%>/g,je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Ne.source),Me=/^\s+/,Le=/\s/,Re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,Ve=/,? & /,$e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Ze=/^0o[0-7]+$/i,Je=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,et=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",nt="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",ot="\\u20d0-\\u20ff",it=nt+rt+ot,at="\\u2700-\\u27bf",lt="a-z\\xdf-\\xf6\\xf8-\\xff",ut="\\xac\\xb1\\xd7\\xf7",st="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ct="\\u2000-\\u206f",ft=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dt="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",ht=ut+st+ct+ft,gt="['’]",vt="["+tt+"]",mt="["+ht+"]",yt="["+it+"]",bt="\\d+",wt="["+at+"]",xt="["+lt+"]",Ct="[^"+tt+ht+bt+at+lt+dt+"]",Et="\\ud83c[\\udffb-\\udfff]",kt="(?:"+yt+"|"+Et+")",St="[^"+tt+"]",Dt="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot="["+dt+"]",_t="\\u200d",Bt="(?:"+xt+"|"+Ct+")",Ft="(?:"+Ot+"|"+Ct+")",jt="(?:"+gt+"(?:d|ll|m|re|s|t|ve))?",Pt="(?:"+gt+"(?:D|LL|M|RE|S|T|VE))?",Tt=kt+"?",Nt="["+pt+"]?",It="(?:"+_t+"(?:"+[St,Dt,At].join("|")+")"+Nt+Tt+")*",Mt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rt=Nt+Tt+It,zt="(?:"+[wt,Dt,At].join("|")+")"+Rt,Vt="(?:"+[St+yt+"?",yt,Dt,At,vt].join("|")+")",$t=RegExp(gt,"g"),Ut=RegExp(yt,"g"),Ht=RegExp(Et+"(?="+Et+")|"+Vt+Rt,"g"),Wt=RegExp([Ot+"?"+xt+"+"+jt+"(?="+[mt,Ot,"$"].join("|")+")",Ft+"+"+Pt+"(?="+[mt,Ot+Bt,"$"].join("|")+")",Ot+"?"+Bt+"+"+jt,Ot+"+"+Pt,Lt,Mt,bt,zt].join("|"),"g"),qt=RegExp("["+_t+tt+it+pt+"]"),Kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yt=-1,Zt={};Zt[pe]=Zt[he]=Zt[ge]=Zt[ve]=Zt[me]=Zt[ye]=Zt[be]=Zt[we]=Zt[xe]=!0,Zt[U]=Zt[H]=Zt[fe]=Zt[q]=Zt[de]=Zt[K]=Zt[Y]=Zt[Z]=Zt[X]=Zt[Q]=Zt[te]=Zt[oe]=Zt[ie]=Zt[ae]=Zt[se]=!1;var Jt={};Jt[U]=Jt[H]=Jt[fe]=Jt[de]=Jt[q]=Jt[K]=Jt[pe]=Jt[he]=Jt[ge]=Jt[ve]=Jt[me]=Jt[X]=Jt[Q]=Jt[te]=Jt[oe]=Jt[ie]=Jt[ae]=Jt[le]=Jt[ye]=Jt[be]=Jt[we]=Jt[xe]=!0,Jt[Y]=Jt[Z]=Jt[se]=!1;var Xt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Qt={"&":"&","<":"<",">":">",'"':""","'":"'"},en={"&":"&","<":"<",">":">",""":'"',"'":"'"},tn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,an="object"==typeof self&&self&&self.Object===Object&&self,ln=on||an||Function("return this")(),un=t&&!t.nodeType&&t,sn=un&&e&&!e.nodeType&&e,cn=sn&&sn.exports===un,fn=cn&&on.process,dn=function(){try{var e=sn&&sn.require&&sn.require("util").types;return e||fn&&fn.binding&&fn.binding("util")}catch(t){}}(),pn=dn&&dn.isArrayBuffer,hn=dn&&dn.isDate,gn=dn&&dn.isMap,vn=dn&&dn.isRegExp,mn=dn&&dn.isSet,yn=dn&&dn.isTypedArray;function bn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wn(e,t,n,r){var o=-1,i=null==e?0:e.length;while(++o<i){var a=e[o];t(r,a,n(a),e)}return r}function xn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function Cn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function En(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function kn(e,t){var n=-1,r=null==e?0:e.length,o=0,i=[];while(++n<r){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Sn(e,t){var n=null==e?0:e.length;return!!n&&Mn(e,t,0)>-1}function Dn(e,t,n){var r=-1,o=null==e?0:e.length;while(++r<o)if(n(t,e[r]))return!0;return!1}function An(e,t){var n=-1,r=null==e?0:e.length,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}function On(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}function _n(e,t,n,r){var o=-1,i=null==e?0:e.length;r&&i&&(n=e[++o]);while(++o<i)n=t(n,e[o],o,e);return n}function Bn(e,t,n,r){var o=null==e?0:e.length;r&&o&&(n=e[--o]);while(o--)n=t(n,e[o],o,e);return n}function Fn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var jn=Vn("length");function Pn(e){return e.split("")}function Tn(e){return e.match($e)||[]}function Nn(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function In(e,t,n,r){var o=e.length,i=n+(r?1:-1);while(r?i--:++i<o)if(t(e[i],i,e))return i;return-1}function Mn(e,t,n){return t===t?pr(e,t,n):In(e,Rn,n)}function Ln(e,t,n,r){var o=n-1,i=e.length;while(++o<i)if(r(e[o],t))return o;return-1}function Rn(e){return e!==e}function zn(e,t){var n=null==e?0:e.length;return n?Wn(e,t)/n:L}function Vn(e){return function(t){return null==t?o:t[e]}}function $n(e){return function(t){return null==e?o:e[t]}}function Un(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Hn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Wn(e,t){var n,r=-1,i=e.length;while(++r<i){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function qn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Kn(e,t){return An(t,(function(t){return[t,e[t]]}))}function Gn(e){return e?e.slice(0,mr(e)+1).replace(Me,""):e}function Yn(e){return function(t){return e(t)}}function Zn(e,t){return An(t,(function(t){return e[t]}))}function Jn(e,t){return e.has(t)}function Xn(e,t){var n=-1,r=e.length;while(++n<r&&Mn(t,e[n],0)>-1);return n}function Qn(e,t){var n=e.length;while(n--&&Mn(t,e[n],0)>-1);return n}function er(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var tr=$n(Xt),nr=$n(Qt);function rr(e){return"\\"+tn[e]}function or(e,t){return null==e?o:e[t]}function ir(e){return qt.test(e)}function ar(e){return Kt.test(e)}function lr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function ur(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sr(e,t){return function(n){return e(t(n))}}function cr(e,t){var n=-1,r=e.length,o=0,i=[];while(++n<r){var a=e[n];a!==t&&a!==d||(e[n]=d,i[o++]=n)}return i}function fr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pr(e,t,n){var r=n-1,o=e.length;while(++r<o)if(e[r]===t)return r;return-1}function hr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function gr(e){return ir(e)?br(e):jn(e)}function vr(e){return ir(e)?wr(e):Pn(e)}function mr(e){var t=e.length;while(t--&&Le.test(e.charAt(t)));return t}var yr=$n(en);function br(e){var t=Ht.lastIndex=0;while(Ht.test(e))++t;return t}function wr(e){return e.match(Ht)||[]}function xr(e){return e.match(Wt)||[]}var Cr=function e(t){t=null==t?ln:Er.defaults(ln.Object(),t,Er.pick(ln,Gt));var n=t.Array,r=t.Date,Le=t.Error,$e=t.Function,tt=t.Math,nt=t.Object,rt=t.RegExp,ot=t.String,it=t.TypeError,at=n.prototype,lt=$e.prototype,ut=nt.prototype,st=t["__core-js_shared__"],ct=lt.toString,ft=ut.hasOwnProperty,dt=0,pt=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ht=ut.toString,gt=ct.call(nt),vt=ln._,mt=rt("^"+ct.call(ft).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=cn?t.Buffer:o,bt=t.Symbol,wt=t.Uint8Array,xt=yt?yt.allocUnsafe:o,Ct=sr(nt.getPrototypeOf,nt),Et=nt.create,kt=ut.propertyIsEnumerable,St=at.splice,Dt=bt?bt.isConcatSpreadable:o,At=bt?bt.iterator:o,Ot=bt?bt.toStringTag:o,_t=function(){try{var e=Ka(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Bt=t.clearTimeout!==ln.clearTimeout&&t.clearTimeout,Ft=r&&r.now!==ln.Date.now&&r.now,jt=t.setTimeout!==ln.setTimeout&&t.setTimeout,Pt=tt.ceil,Tt=tt.floor,Nt=nt.getOwnPropertySymbols,It=yt?yt.isBuffer:o,Mt=t.isFinite,Lt=at.join,Rt=sr(nt.keys,nt),zt=tt.max,Vt=tt.min,Ht=r.now,Wt=t.parseInt,qt=tt.random,Kt=at.reverse,Xt=Ka(t,"DataView"),Qt=Ka(t,"Map"),en=Ka(t,"Promise"),tn=Ka(t,"Set"),on=Ka(t,"WeakMap"),an=Ka(nt,"create"),un=on&&new on,sn={},fn=jl(Xt),dn=jl(Qt),jn=jl(en),Pn=jl(tn),$n=jl(on),pr=bt?bt.prototype:o,br=pr?pr.valueOf:o,wr=pr?pr.toString:o;function Cr(e){if(Sc(e)&&!uc(e)&&!(e instanceof Ar)){if(e instanceof Dr)return e;if(ft.call(e,"__wrapped__"))return Tl(e)}return new Dr(e)}var kr=function(){function e(){}return function(t){if(!kc(t))return{};if(Et)return Et(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Sr(){}function Dr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Ar(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Or(){var e=new Ar(this.__wrapped__);return e.__actions__=oa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=oa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=oa(this.__views__),e}function _r(){if(this.__filtered__){var e=new Ar(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Br(){var e=this.__wrapped__.value(),t=this.__dir__,n=uc(e),r=t<0,o=n?e.length:0,i=Xa(0,o,this.__views__),a=i.start,l=i.end,u=l-a,s=r?l:a-1,c=this.__iteratees__,f=c.length,d=0,p=Vt(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return Ri(e,this.__actions__);var h=[];e:while(u--&&d<p){s+=t;var g=-1,v=e[s];while(++g<f){var m=c[g],y=m.iteratee,b=m.type,w=y(v);if(b==P)v=w;else if(!w){if(b==j)continue e;break e}}h[d++]=v}return h}function Fr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function jr(){this.__data__=an?an(null):{},this.size=0}function Pr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Tr(e){var t=this.__data__;if(an){var n=t[e];return n===c?o:n}return ft.call(t,e)?t[e]:o}function Nr(e){var t=this.__data__;return an?t[e]!==o:ft.call(t,e)}function Ir(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=an&&t===o?c:t,this}function Mr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Lr(){this.__data__=[],this.size=0}function Rr(e){var t=this.__data__,n=co(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():St.call(t,n,1),--this.size,!0}function zr(e){var t=this.__data__,n=co(t,e);return n<0?o:t[n][1]}function Vr(e){return co(this.__data__,e)>-1}function $r(e,t){var n=this.__data__,r=co(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ur(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Fr,map:new(Qt||Mr),string:new Fr}}function Wr(e){var t=Wa(this,e)["delete"](e);return this.size-=t?1:0,t}function qr(e){return Wa(this,e).get(e)}function Kr(e){return Wa(this,e).has(e)}function Gr(e,t){var n=Wa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Yr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Ur;while(++t<n)this.add(e[t])}function Zr(e){return this.__data__.set(e,c),this}function Jr(e){return this.__data__.has(e)}function Xr(e){var t=this.__data__=new Mr(e);this.size=t.size}function Qr(){this.__data__=new Mr,this.size=0}function eo(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function to(e){return this.__data__.get(e)}function no(e){return this.__data__.has(e)}function ro(e,t){var n=this.__data__;if(n instanceof Mr){var r=n.__data__;if(!Qt||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ur(r)}return n.set(e,t),this.size=n.size,this}function oo(e,t){var n=uc(e),r=!n&&lc(e),o=!n&&!r&&pc(e),i=!n&&!r&&!o&&zc(e),a=n||r||o||i,l=a?qn(e.length,ot):[],u=l.length;for(var s in e)!t&&!ft.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||al(s,u))||l.push(s);return l}function io(e){var t=e.length;return t?e[yi(0,t-1)]:o}function ao(e,t){return _l(oa(e),mo(t,0,e.length))}function lo(e){return _l(oa(e))}function uo(e,t,n){(n!==o&&!oc(e[t],n)||n===o&&!(t in e))&&go(e,t,n)}function so(e,t,n){var r=e[t];ft.call(e,t)&&oc(r,n)&&(n!==o||t in e)||go(e,t,n)}function co(e,t){var n=e.length;while(n--)if(oc(e[n][0],t))return n;return-1}function fo(e,t,n,r){return Eo(e,(function(e,o,i){t(r,e,n(e),i)})),r}function po(e,t){return e&&ia(t,Ef(t),e)}function ho(e,t){return e&&ia(t,kf(t),e)}function go(e,t,n){"__proto__"==t&&_t?_t(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function vo(e,t){var r=-1,i=t.length,a=n(i),l=null==e;while(++r<i)a[r]=l?o:mf(e,t[r]);return a}function mo(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function yo(e,t,n,r,i,a){var l,u=t&p,s=t&h,c=t&g;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!kc(e))return e;var f=uc(e);if(f){if(l=tl(e),!u)return oa(e,l)}else{var d=Ja(e),v=d==Z||d==J;if(pc(e))return Gi(e,u);if(d==te||d==U||v&&!i){if(l=s||v?{}:nl(e),!u)return s?la(e,ho(l,e)):aa(e,po(l,e))}else{if(!Jt[d])return i?e:{};l=rl(e,d,u)}}a||(a=new Xr);var m=a.get(e);if(m)return m;a.set(e,l),Mc(e)?e.forEach((function(r){l.add(yo(r,t,n,r,e,a))})):Dc(e)&&e.forEach((function(r,o){l.set(o,yo(r,t,n,o,e,a))}));var y=c?s?za:Ra:s?kf:Ef,b=f?o:y(e);return xn(b||e,(function(r,o){b&&(o=r,r=e[o]),so(l,o,yo(r,t,n,o,e,a))})),l}function bo(e){var t=Ef(e);return function(n){return wo(n,e,t)}}function wo(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function xo(e,t,n){if("function"!=typeof e)throw new it(u);return Sl((function(){e.apply(o,n)}),t)}function Co(e,t,n,r){var o=-1,i=Sn,l=!0,u=e.length,s=[],c=t.length;if(!u)return s;n&&(t=An(t,Yn(n))),r?(i=Dn,l=!1):t.length>=a&&(i=Jn,l=!1,t=new Yr(t));e:while(++o<u){var f=e[o],d=null==n?f:n(f);if(f=r||0!==f?f:0,l&&d===d){var p=c;while(p--)if(t[p]===d)continue e;s.push(f)}else i(t,d,r)||s.push(f)}return s}Cr.templateSettings={escape:_e,evaluate:Be,interpolate:Fe,variable:"",imports:{_:Cr}},Cr.prototype=Sr.prototype,Cr.prototype.constructor=Cr,Dr.prototype=kr(Sr.prototype),Dr.prototype.constructor=Dr,Ar.prototype=kr(Sr.prototype),Ar.prototype.constructor=Ar,Fr.prototype.clear=jr,Fr.prototype["delete"]=Pr,Fr.prototype.get=Tr,Fr.prototype.has=Nr,Fr.prototype.set=Ir,Mr.prototype.clear=Lr,Mr.prototype["delete"]=Rr,Mr.prototype.get=zr,Mr.prototype.has=Vr,Mr.prototype.set=$r,Ur.prototype.clear=Hr,Ur.prototype["delete"]=Wr,Ur.prototype.get=qr,Ur.prototype.has=Kr,Ur.prototype.set=Gr,Yr.prototype.add=Yr.prototype.push=Zr,Yr.prototype.has=Jr,Xr.prototype.clear=Qr,Xr.prototype["delete"]=eo,Xr.prototype.get=to,Xr.prototype.has=no,Xr.prototype.set=ro;var Eo=ca(jo),ko=ca(Po,!0);function So(e,t){var n=!0;return Eo(e,(function(e,r,o){return n=!!t(e,r,o),n})),n}function Do(e,t,n){var r=-1,i=e.length;while(++r<i){var a=e[r],l=t(a);if(null!=l&&(u===o?l===l&&!Rc(l):n(l,u)))var u=l,s=a}return s}function Ao(e,t,n,r){var i=e.length;n=Gc(n),n<0&&(n=-n>i?0:i+n),r=r===o||r>i?i:Gc(r),r<0&&(r+=i),r=n>r?0:Yc(r);while(n<r)e[n++]=t;return e}function Oo(e,t){var n=[];return Eo(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function _o(e,t,n,r,o){var i=-1,a=e.length;n||(n=il),o||(o=[]);while(++i<a){var l=e[i];t>0&&n(l)?t>1?_o(l,t-1,n,r,o):On(o,l):r||(o[o.length]=l)}return o}var Bo=fa(),Fo=fa(!0);function jo(e,t){return e&&Bo(e,t,Ef)}function Po(e,t){return e&&Fo(e,t,Ef)}function To(e,t){return kn(t,(function(t){return xc(e[t])}))}function No(e,t){t=Hi(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Fl(t[n++])];return n&&n==r?e:o}function Io(e,t,n){var r=t(e);return uc(e)?r:On(r,n(e))}function Mo(e){return null==e?e===o?ue:ee:Ot&&Ot in nt(e)?Ga(e):bl(e)}function Lo(e,t){return e>t}function Ro(e,t){return null!=e&&ft.call(e,t)}function zo(e,t){return null!=e&&t in nt(e)}function Vo(e,t,n){return e>=Vt(t,n)&&e<zt(t,n)}function $o(e,t,r){var i=r?Dn:Sn,a=e[0].length,l=e.length,u=l,s=n(l),c=1/0,f=[];while(u--){var d=e[u];u&&t&&(d=An(d,Yn(t))),c=Vt(d.length,c),s[u]=!r&&(t||a>=120&&d.length>=120)?new Yr(u&&d):o}d=e[0];var p=-1,h=s[0];e:while(++p<a&&f.length<c){var g=d[p],v=t?t(g):g;if(g=r||0!==g?g:0,!(h?Jn(h,v):i(f,v,r))){u=l;while(--u){var m=s[u];if(!(m?Jn(m,v):i(e[u],v,r)))continue e}h&&h.push(v),f.push(g)}}return f}function Uo(e,t,n,r){return jo(e,(function(e,o,i){t(r,n(e),o,i)})),r}function Ho(e,t,n){t=Hi(t,e),e=xl(e,t);var r=null==e?e:e[Fl(iu(t))];return null==r?o:bn(r,e,n)}function Wo(e){return Sc(e)&&Mo(e)==U}function qo(e){return Sc(e)&&Mo(e)==fe}function Ko(e){return Sc(e)&&Mo(e)==K}function Go(e,t,n,r,o){return e===t||(null==e||null==t||!Sc(e)&&!Sc(t)?e!==e&&t!==t:Yo(e,t,n,r,Go,o))}function Yo(e,t,n,r,o,i){var a=uc(e),l=uc(t),u=a?H:Ja(e),s=l?H:Ja(t);u=u==U?te:u,s=s==U?te:s;var c=u==te,f=s==te,d=u==s;if(d&&pc(e)){if(!pc(t))return!1;a=!0,c=!1}if(d&&!c)return i||(i=new Xr),a||zc(e)?Na(e,t,n,r,o,i):Ia(e,t,u,n,r,o,i);if(!(n&v)){var p=c&&ft.call(e,"__wrapped__"),h=f&&ft.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new Xr),o(g,m,n,r,i)}}return!!d&&(i||(i=new Xr),Ma(e,t,n,r,o,i))}function Zo(e){return Sc(e)&&Ja(e)==X}function Jo(e,t,n,r){var i=n.length,a=i,l=!r;if(null==e)return!a;e=nt(e);while(i--){var u=n[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}while(++i<a){u=n[i];var s=u[0],c=e[s],f=u[1];if(l&&u[2]){if(c===o&&!(s in e))return!1}else{var d=new Xr;if(r)var p=r(c,f,s,e,t,d);if(!(p===o?Go(f,c,v|m,r,d):p))return!1}}return!0}function Xo(e){if(!kc(e)||fl(e))return!1;var t=xc(e)?mt:Ye;return t.test(jl(e))}function Qo(e){return Sc(e)&&Mo(e)==oe}function ei(e){return Sc(e)&&Ja(e)==ie}function ti(e){return Sc(e)&&Ec(e.length)&&!!Zt[Mo(e)]}function ni(e){return"function"==typeof e?e:null==e?Fd:"object"==typeof e?uc(e)?ui(e[0],e[1]):li(e):Hd(e)}function ri(e){if(!pl(e))return Rt(e);var t=[];for(var n in nt(e))ft.call(e,n)&&"constructor"!=n&&t.push(n);return t}function oi(e){if(!kc(e))return yl(e);var t=pl(e),n=[];for(var r in e)("constructor"!=r||!t&&ft.call(e,r))&&n.push(r);return n}function ii(e,t){return e<t}function ai(e,t){var r=-1,o=cc(e)?n(e.length):[];return Eo(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function li(e){var t=qa(e);return 1==t.length&&t[0][2]?gl(t[0][0],t[0][1]):function(n){return n===e||Jo(n,e,t)}}function ui(e,t){return ul(e)&&hl(t)?gl(Fl(e),t):function(n){var r=mf(n,e);return r===o&&r===t?bf(n,e):Go(t,r,v|m)}}function si(e,t,n,r,i){e!==t&&Bo(t,(function(a,l){if(i||(i=new Xr),kc(a))ci(e,t,l,n,si,r,i);else{var u=r?r(El(e,l),a,l+"",e,t,i):o;u===o&&(u=a),uo(e,l,u)}}),kf)}function ci(e,t,n,r,i,a,l){var u=El(e,n),s=El(t,n),c=l.get(s);if(c)uo(e,n,c);else{var f=a?a(u,s,n+"",e,t,l):o,d=f===o;if(d){var p=uc(s),h=!p&&pc(s),g=!p&&!h&&zc(s);f=s,p||h||g?uc(u)?f=u:fc(u)?f=oa(u):h?(d=!1,f=Gi(s,!0)):g?(d=!1,f=Qi(s,!0)):f=[]:Tc(s)||lc(s)?(f=u,lc(u)?f=Jc(u):kc(u)&&!xc(u)||(f=nl(s))):d=!1}d&&(l.set(s,f),i(f,s,r,a,l),l["delete"](s)),uo(e,n,f)}}function fi(e,t){var n=e.length;if(n)return t+=t<0?n:0,al(t,n)?e[t]:o}function di(e,t,n){t=t.length?An(t,(function(e){return uc(e)?function(t){return No(t,1===e.length?e[0]:e)}:e})):[Fd];var r=-1;t=An(t,Yn(Ha()));var o=ai(e,(function(e,n,o){var i=An(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return Hn(o,(function(e,t){return ta(e,t,n)}))}function pi(e,t){return hi(e,t,(function(t,n){return bf(e,n)}))}function hi(e,t,n){var r=-1,o=t.length,i={};while(++r<o){var a=t[r],l=No(e,a);n(l,a)&&ki(i,Hi(a,e),l)}return i}function gi(e){return function(t){return No(t,e)}}function vi(e,t,n,r){var o=r?Ln:Mn,i=-1,a=t.length,l=e;e===t&&(t=oa(t)),n&&(l=An(e,Yn(n)));while(++i<a){var u=0,s=t[i],c=n?n(s):s;while((u=o(l,c,u,r))>-1)l!==e&&St.call(l,u,1),St.call(e,u,1)}return e}function mi(e,t){var n=e?t.length:0,r=n-1;while(n--){var o=t[n];if(n==r||o!==i){var i=o;al(o)?St.call(e,o,1):Ii(e,o)}}return e}function yi(e,t){return e+Tt(qt()*(t-e+1))}function bi(e,t,r,o){var i=-1,a=zt(Pt((t-e)/(r||1)),0),l=n(a);while(a--)l[o?a:++i]=e,e+=r;return l}function wi(e,t){var n="";if(!e||t<1||t>I)return n;do{t%2&&(n+=e),t=Tt(t/2),t&&(e+=e)}while(t);return n}function xi(e,t){return Dl(wl(e,t,Fd),e+"")}function Ci(e){return io($f(e))}function Ei(e,t){var n=$f(e);return _l(n,mo(t,0,n.length))}function ki(e,t,n,r){if(!kc(e))return e;t=Hi(t,e);var i=-1,a=t.length,l=a-1,u=e;while(null!=u&&++i<a){var s=Fl(t[i]),c=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=l){var f=u[s];c=r?r(f,s,u):o,c===o&&(c=kc(f)?f:al(t[i+1])?[]:{})}so(u,s,c),u=u[s]}return e}var Si=un?function(e,t){return un.set(e,t),e}:Fd,Di=_t?function(e,t){return _t(e,"toString",{configurable:!0,enumerable:!1,value:Ad(t),writable:!0})}:Fd;function Ai(e){return _l($f(e))}function Oi(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;var a=n(i);while(++o<i)a[o]=e[o+t];return a}function _i(e,t){var n;return Eo(e,(function(e,r,o){return n=t(e,r,o),!n})),!!n}function Bi(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=V){while(r<o){var i=r+o>>>1,a=e[i];null!==a&&!Rc(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Fi(e,t,Fd,n)}function Fi(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);var l=t!==t,u=null===t,s=Rc(t),c=t===o;while(i<a){var f=Tt((i+a)/2),d=n(e[f]),p=d!==o,h=null===d,g=d===d,v=Rc(d);if(l)var m=r||g;else m=c?g&&(r||p):u?g&&p&&(r||!h):s?g&&p&&!h&&(r||!v):!h&&!v&&(r?d<=t:d<t);m?i=f+1:a=f}return Vt(a,z)}function ji(e,t){var n=-1,r=e.length,o=0,i=[];while(++n<r){var a=e[n],l=t?t(a):a;if(!n||!oc(l,u)){var u=l;i[o++]=0===a?0:a}}return i}function Pi(e){return"number"==typeof e?e:Rc(e)?L:+e}function Ti(e){if("string"==typeof e)return e;if(uc(e))return An(e,Ti)+"";if(Rc(e))return wr?wr.call(e):"";var t=e+"";return"0"==t&&1/e==-N?"-0":t}function Ni(e,t,n){var r=-1,o=Sn,i=e.length,l=!0,u=[],s=u;if(n)l=!1,o=Dn;else if(i>=a){var c=t?null:_a(e);if(c)return fr(c);l=!1,o=Jn,s=new Yr}else s=t?[]:u;e:while(++r<i){var f=e[r],d=t?t(f):f;if(f=n||0!==f?f:0,l&&d===d){var p=s.length;while(p--)if(s[p]===d)continue e;t&&s.push(d),u.push(f)}else o(s,d,n)||(s!==u&&s.push(d),u.push(f))}return u}function Ii(e,t){return t=Hi(t,e),e=xl(e,t),null==e||delete e[Fl(iu(t))]}function Mi(e,t,n,r){return ki(e,t,n(No(e,t)),r)}function Li(e,t,n,r){var o=e.length,i=r?o:-1;while((r?i--:++i<o)&&t(e[i],i,e));return n?Oi(e,r?0:i,r?i+1:o):Oi(e,r?i+1:0,r?o:i)}function Ri(e,t){var n=e;return n instanceof Ar&&(n=n.value()),_n(t,(function(e,t){return t.func.apply(t.thisArg,On([e],t.args))}),n)}function zi(e,t,r){var o=e.length;if(o<2)return o?Ni(e[0]):[];var i=-1,a=n(o);while(++i<o){var l=e[i],u=-1;while(++u<o)u!=i&&(a[i]=Co(a[i]||l,e[u],t,r))}return Ni(_o(a,1),t,r)}function Vi(e,t,n){var r=-1,i=e.length,a=t.length,l={};while(++r<i){var u=r<a?t[r]:o;n(l,e[r],u)}return l}function $i(e){return fc(e)?e:[]}function Ui(e){return"function"==typeof e?e:Fd}function Hi(e,t){return uc(e)?e:ul(e,t)?[e]:Bl(Qc(e))}var Wi=xi;function qi(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:Oi(e,t,n)}var Ki=Bt||function(e){return ln.clearTimeout(e)};function Gi(e,t){if(t)return e.slice();var n=e.length,r=xt?xt(n):new e.constructor(n);return e.copy(r),r}function Yi(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Zi(e,t){var n=t?Yi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ji(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}function Xi(e){return br?nt(br.call(e)):{}}function Qi(e,t){var n=t?Yi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=Rc(e),l=t!==o,u=null===t,s=t===t,c=Rc(t);if(!u&&!c&&!a&&e>t||a&&l&&s&&!u&&!c||r&&l&&s||!n&&s||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||u&&n&&i||!l&&i||!s)return-1}return 0}function ta(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;while(++r<a){var u=ea(o[r],i[r]);if(u){if(r>=l)return u;var s=n[r];return u*("desc"==s?-1:1)}}return e.index-t.index}function na(e,t,r,o){var i=-1,a=e.length,l=r.length,u=-1,s=t.length,c=zt(a-l,0),f=n(s+c),d=!o;while(++u<s)f[u]=t[u];while(++i<l)(d||i<a)&&(f[r[i]]=e[i]);while(c--)f[u++]=e[i++];return f}function ra(e,t,r,o){var i=-1,a=e.length,l=-1,u=r.length,s=-1,c=t.length,f=zt(a-u,0),d=n(f+c),p=!o;while(++i<f)d[i]=e[i];var h=i;while(++s<c)d[h+s]=t[s];while(++l<u)(p||i<a)&&(d[h+r[l]]=e[i++]);return d}function oa(e,t){var r=-1,o=e.length;t||(t=n(o));while(++r<o)t[r]=e[r];return t}function ia(e,t,n,r){var i=!n;n||(n={});var a=-1,l=t.length;while(++a<l){var u=t[a],s=r?r(n[u],e[u],u,n,e):o;s===o&&(s=e[u]),i?go(n,u,s):so(n,u,s)}return n}function aa(e,t){return ia(e,Ya(e),t)}function la(e,t){return ia(e,Za(e),t)}function ua(e,t){return function(n,r){var o=uc(n)?wn:fo,i=t?t():{};return o(n,e,Ha(r,2),i)}}function sa(e){return xi((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,l=i>2?n[2]:o;a=e.length>3&&"function"==typeof a?(i--,a):o,l&&ll(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=nt(t);while(++r<i){var u=n[r];u&&e(t,u,r,a)}return t}))}function ca(e,t){return function(n,r){if(null==n)return n;if(!cc(n))return e(n,r);var o=n.length,i=t?o:-1,a=nt(n);while(t?i--:++i<o)if(!1===r(a[i],i,a))break;return n}}function fa(e){return function(t,n,r){var o=-1,i=nt(t),a=r(t),l=a.length;while(l--){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}function da(e,t,n){var r=t&y,o=ga(e);function i(){var t=this&&this!==ln&&this instanceof i?o:e;return t.apply(r?n:this,arguments)}return i}function pa(e){return function(t){t=Qc(t);var n=ir(t)?vr(t):o,r=n?n[0]:t.charAt(0),i=n?qi(n,1).join(""):t.slice(1);return r[e]()+i}}function ha(e){return function(t){return _n(Cd(Yf(t).replace($t,"")),e,"")}}function ga(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=kr(e.prototype),r=e.apply(n,t);return kc(r)?r:n}}function va(e,t,r){var i=ga(e);function a(){var l=arguments.length,u=n(l),s=l,c=Ua(a);while(s--)u[s]=arguments[s];var f=l<3&&u[0]!==c&&u[l-1]!==c?[]:cr(u,c);if(l-=f.length,l<r)return Aa(e,t,ba,a.placeholder,o,u,f,o,o,r-l);var d=this&&this!==ln&&this instanceof a?i:e;return bn(d,this,u)}return a}function ma(e){return function(t,n,r){var i=nt(t);if(!cc(t)){var a=Ha(n,3);t=Ef(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,r);return l>-1?i[a?t[l]:l]:o}}function ya(e){return La((function(t){var n=t.length,r=n,i=Dr.prototype.thru;e&&t.reverse();while(r--){var a=t[r];if("function"!=typeof a)throw new it(u);if(i&&!l&&"wrapper"==$a(a))var l=new Dr([],!0)}r=l?r:n;while(++r<n){a=t[r];var s=$a(a),c="wrapper"==s?Va(a):o;l=c&&cl(c[0])&&c[1]==(S|x|E|D)&&!c[4].length&&1==c[9]?l[$a(c[0])].apply(l,c[3]):1==a.length&&cl(a)?l[s]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&uc(r))return l.plant(r).value();var o=0,i=n?t[o].apply(this,e):r;while(++o<n)i=t[o].call(this,i);return i}}))}function ba(e,t,r,i,a,l,u,s,c,f){var d=t&S,p=t&y,h=t&b,g=t&(x|C),v=t&A,m=h?o:ga(e);function w(){var o=arguments.length,y=n(o),b=o;while(b--)y[b]=arguments[b];if(g)var x=Ua(w),C=er(y,x);if(i&&(y=na(y,i,a,g)),l&&(y=ra(y,l,u,g)),o-=C,g&&o<f){var E=cr(y,x);return Aa(e,t,ba,w.placeholder,r,y,E,s,c,f-o)}var k=p?r:this,S=h?k[e]:e;return o=y.length,s?y=Cl(y,s):v&&o>1&&y.reverse(),d&&c<o&&(y.length=c),this&&this!==ln&&this instanceof w&&(S=m||ga(S)),S.apply(k,y)}return w}function wa(e,t){return function(n,r){return Uo(n,e,t(r),{})}}function xa(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=Ti(n),r=Ti(r)):(n=Pi(n),r=Pi(r)),i=e(n,r)}return i}}function Ca(e){return La((function(t){return t=An(t,Yn(Ha())),xi((function(n){var r=this;return e(t,(function(e){return bn(e,r,n)}))}))}))}function Ea(e,t){t=t===o?" ":Ti(t);var n=t.length;if(n<2)return n?wi(t,e):t;var r=wi(t,Pt(e/gr(t)));return ir(t)?qi(vr(r),0,e).join(""):r.slice(0,e)}function ka(e,t,r,o){var i=t&y,a=ga(e);function l(){var t=-1,u=arguments.length,s=-1,c=o.length,f=n(c+u),d=this&&this!==ln&&this instanceof l?a:e;while(++s<c)f[s]=o[s];while(u--)f[s++]=arguments[++t];return bn(d,i?r:this,f)}return l}function Sa(e){return function(t,n,r){return r&&"number"!=typeof r&&ll(t,n,r)&&(n=r=o),t=Kc(t),n===o?(n=t,t=0):n=Kc(n),r=r===o?t<n?1:-1:Kc(r),bi(t,n,r,e)}}function Da(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Zc(t),n=Zc(n)),e(t,n)}}function Aa(e,t,n,r,i,a,l,u,s,c){var f=t&x,d=f?l:o,p=f?o:l,h=f?a:o,g=f?o:a;t|=f?E:k,t&=~(f?k:E),t&w||(t&=~(y|b));var v=[e,t,i,h,d,g,p,u,s,c],m=n.apply(o,v);return cl(e)&&kl(m,v),m.placeholder=r,Al(m,e,t)}function Oa(e){var t=tt[e];return function(e,n){if(e=Zc(e),n=null==n?0:Vt(Gc(n),292),n&&Mt(e)){var r=(Qc(e)+"e").split("e"),o=t(r[0]+"e"+(+r[1]+n));return r=(Qc(o)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var _a=tn&&1/fr(new tn([,-0]))[1]==N?function(e){return new tn(e)}:Rd;function Ba(e){return function(t){var n=Ja(t);return n==X?ur(t):n==ie?dr(t):Kn(t,e(t))}}function Fa(e,t,n,r,i,a,l,s){var c=t&b;if(!c&&"function"!=typeof e)throw new it(u);var f=r?r.length:0;if(f||(t&=~(E|k),r=i=o),l=l===o?l:zt(Gc(l),0),s=s===o?s:Gc(s),f-=i?i.length:0,t&k){var d=r,p=i;r=i=o}var h=c?o:Va(e),g=[e,t,n,r,i,d,p,a,l,s];if(h&&ml(g,h),e=g[0],t=g[1],n=g[2],r=g[3],i=g[4],s=g[9]=g[9]===o?c?0:e.length:zt(g[9]-f,0),!s&&t&(x|C)&&(t&=~(x|C)),t&&t!=y)v=t==x||t==C?va(e,t,s):t!=E&&t!=(y|E)||i.length?ba.apply(o,g):ka(e,t,n,r);else var v=da(e,t,n);var m=h?Si:kl;return Al(m(v,g),e,t)}function ja(e,t,n,r){return e===o||oc(e,ut[n])&&!ft.call(r,n)?t:e}function Pa(e,t,n,r,i,a){return kc(e)&&kc(t)&&(a.set(t,e),si(e,t,o,Pa,a),a["delete"](t)),e}function Ta(e){return Tc(e)?o:e}function Na(e,t,n,r,i,a){var l=n&v,u=e.length,s=t.length;if(u!=s&&!(l&&s>u))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=n&m?new Yr:o;a.set(e,t),a.set(t,e);while(++d<u){var g=e[d],y=t[d];if(r)var b=l?r(y,g,d,t,e,a):r(g,y,d,e,t,a);if(b!==o){if(b)continue;p=!1;break}if(h){if(!Fn(t,(function(e,t){if(!Jn(h,t)&&(g===e||i(g,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(g!==y&&!i(g,y,n,r,a)){p=!1;break}}return a["delete"](e),a["delete"](t),p}function Ia(e,t,n,r,o,i,a){switch(n){case de:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fe:return!(e.byteLength!=t.byteLength||!i(new wt(e),new wt(t)));case q:case K:case Q:return oc(+e,+t);case Y:return e.name==t.name&&e.message==t.message;case oe:case ae:return e==t+"";case X:var l=ur;case ie:var u=r&v;if(l||(l=fr),e.size!=t.size&&!u)return!1;var s=a.get(e);if(s)return s==t;r|=m,a.set(e,t);var c=Na(l(e),l(t),r,o,i,a);return a["delete"](e),c;case le:if(br)return br.call(e)==br.call(t)}return!1}function Ma(e,t,n,r,i,a){var l=n&v,u=Ra(e),s=u.length,c=Ra(t),f=c.length;if(s!=f&&!l)return!1;var d=s;while(d--){var p=u[d];if(!(l?p in t:ft.call(t,p)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);var y=l;while(++d<s){p=u[d];var b=e[p],w=t[p];if(r)var x=l?r(w,b,p,t,e,a):r(b,w,p,e,t,a);if(!(x===o?b===w||i(b,w,n,r,a):x)){m=!1;break}y||(y="constructor"==p)}if(m&&!y){var C=e.constructor,E=t.constructor;C==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof C&&C instanceof C&&"function"==typeof E&&E instanceof E||(m=!1)}return a["delete"](e),a["delete"](t),m}function La(e){return Dl(wl(e,o,Gl),e+"")}function Ra(e){return Io(e,Ef,Ya)}function za(e){return Io(e,kf,Za)}var Va=un?function(e){return un.get(e)}:Rd;function $a(e){var t=e.name+"",n=sn[t],r=ft.call(sn,t)?n.length:0;while(r--){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Ua(e){var t=ft.call(Cr,"placeholder")?Cr:e;return t.placeholder}function Ha(){var e=Cr.iteratee||jd;return e=e===jd?ni:e,arguments.length?e(arguments[0],arguments[1]):e}function Wa(e,t){var n=e.__data__;return sl(t)?n["string"==typeof t?"string":"hash"]:n.map}function qa(e){var t=Ef(e),n=t.length;while(n--){var r=t[n],o=e[r];t[n]=[r,o,hl(o)]}return t}function Ka(e,t){var n=or(e,t);return Xo(n)?n:o}function Ga(e){var t=ft.call(e,Ot),n=e[Ot];try{e[Ot]=o;var r=!0}catch(a){}var i=ht.call(e);return r&&(t?e[Ot]=n:delete e[Ot]),i}var Ya=Nt?function(e){return null==e?[]:(e=nt(e),kn(Nt(e),(function(t){return kt.call(e,t)})))}:Gd,Za=Nt?function(e){var t=[];while(e)On(t,Ya(e)),e=Ct(e);return t}:Gd,Ja=Mo;function Xa(e,t,n){var r=-1,o=n.length;while(++r<o){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Vt(t,e+a);break;case"takeRight":e=zt(e,t-a);break}}return{start:e,end:t}}function Qa(e){var t=e.match(ze);return t?t[1].split(Ve):[]}function el(e,t,n){t=Hi(t,e);var r=-1,o=t.length,i=!1;while(++r<o){var a=Fl(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=null==e?0:e.length,!!o&&Ec(o)&&al(a,o)&&(uc(e)||lc(e)))}function tl(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ft.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function nl(e){return"function"!=typeof e.constructor||pl(e)?{}:kr(Ct(e))}function rl(e,t,n){var r=e.constructor;switch(t){case fe:return Yi(e);case q:case K:return new r(+e);case de:return Zi(e,n);case pe:case he:case ge:case ve:case me:case ye:case be:case we:case xe:return Qi(e,n);case X:return new r;case Q:case ae:return new r(e);case oe:return Ji(e);case ie:return new r;case le:return Xi(e)}}function ol(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Re,"{\n/* [wrapped with "+t+"] */\n")}function il(e){return uc(e)||lc(e)||!!(Dt&&e&&e[Dt])}function al(e,t){var n=typeof e;return t=null==t?I:t,!!t&&("number"==n||"symbol"!=n&&Je.test(e))&&e>-1&&e%1==0&&e<t}function ll(e,t,n){if(!kc(n))return!1;var r=typeof t;return!!("number"==r?cc(n)&&al(t,n.length):"string"==r&&t in n)&&oc(n[t],e)}function ul(e,t){if(uc(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Rc(e))||(Pe.test(e)||!je.test(e)||null!=t&&e in nt(t))}function sl(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function cl(e){var t=$a(e),n=Cr[t];if("function"!=typeof n||!(t in Ar.prototype))return!1;if(e===n)return!0;var r=Va(n);return!!r&&e===r[0]}function fl(e){return!!pt&&pt in e}(Xt&&Ja(new Xt(new ArrayBuffer(1)))!=de||Qt&&Ja(new Qt)!=X||en&&Ja(en.resolve())!=ne||tn&&Ja(new tn)!=ie||on&&Ja(new on)!=se)&&(Ja=function(e){var t=Mo(e),n=t==te?e.constructor:o,r=n?jl(n):"";if(r)switch(r){case fn:return de;case dn:return X;case jn:return ne;case Pn:return ie;case $n:return se}return t});var dl=st?xc:Yd;function pl(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ut;return e===n}function hl(e){return e===e&&!kc(e)}function gl(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in nt(n)))}}function vl(e){var t=zs(e,(function(e){return n.size===f&&n.clear(),e})),n=t.cache;return t}function ml(e,t){var n=e[1],r=t[1],o=n|r,i=o<(y|b|S),a=r==S&&n==x||r==S&&n==D&&e[7].length<=t[8]||r==(S|D)&&t[7].length<=t[8]&&n==x;if(!i&&!a)return e;r&y&&(e[2]=t[2],o|=n&y?0:w);var l=t[3];if(l){var u=e[3];e[3]=u?na(u,l,t[4]):l,e[4]=u?cr(e[3],d):t[4]}return l=t[5],l&&(u=e[5],e[5]=u?ra(u,l,t[6]):l,e[6]=u?cr(e[5],d):t[6]),l=t[7],l&&(e[7]=l),r&S&&(e[8]=null==e[8]?t[8]:Vt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function yl(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function bl(e){return ht.call(e)}function wl(e,t,r){return t=zt(t===o?e.length-1:t,0),function(){var o=arguments,i=-1,a=zt(o.length-t,0),l=n(a);while(++i<a)l[i]=o[t+i];i=-1;var u=n(t+1);while(++i<t)u[i]=o[i];return u[t]=r(l),bn(e,this,u)}}function xl(e,t){return t.length<2?e:No(e,Oi(t,0,-1))}function Cl(e,t){var n=e.length,r=Vt(t.length,n),i=oa(e);while(r--){var a=t[r];e[r]=al(a,n)?i[a]:o}return e}function El(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var kl=Ol(Si),Sl=jt||function(e,t){return ln.setTimeout(e,t)},Dl=Ol(Di);function Al(e,t,n){var r=t+"";return Dl(e,ol(r,Pl(Qa(r),n)))}function Ol(e){var t=0,n=0;return function(){var r=Ht(),i=F-(r-n);if(n=r,i>0){if(++t>=B)return arguments[0]}else t=0;return e.apply(o,arguments)}}function _l(e,t){var n=-1,r=e.length,i=r-1;t=t===o?r:t;while(++n<t){var a=yi(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var Bl=vl((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Te,(function(e,n,r,o){t.push(r?o.replace(He,"$1"):n||e)})),t}));function Fl(e){if("string"==typeof e||Rc(e))return e;var t=e+"";return"0"==t&&1/e==-N?"-0":t}function jl(e){if(null!=e){try{return ct.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Pl(e,t){return xn($,(function(n){var r="_."+n[0];t&n[1]&&!Sn(e,r)&&e.push(r)})),e.sort()}function Tl(e){if(e instanceof Ar)return e.clone();var t=new Dr(e.__wrapped__,e.__chain__);return t.__actions__=oa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Nl(e,t,r){t=(r?ll(e,t,r):t===o)?1:zt(Gc(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];var a=0,l=0,u=n(Pt(i/t));while(a<i)u[l++]=Oi(e,a,a+=t);return u}function Il(e){var t=-1,n=null==e?0:e.length,r=0,o=[];while(++t<n){var i=e[t];i&&(o[r++]=i)}return o}function Ml(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],o=e;while(o--)t[o-1]=arguments[o];return On(uc(r)?oa(r):[r],_o(t,1))}var Ll=xi((function(e,t){return fc(e)?Co(e,_o(t,1,fc,!0)):[]})),Rl=xi((function(e,t){var n=iu(t);return fc(n)&&(n=o),fc(e)?Co(e,_o(t,1,fc,!0),Ha(n,2)):[]})),zl=xi((function(e,t){var n=iu(t);return fc(n)&&(n=o),fc(e)?Co(e,_o(t,1,fc,!0),o,n):[]}));function Vl(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Gc(t),Oi(e,t<0?0:t,r)):[]}function $l(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Gc(t),t=r-t,Oi(e,0,t<0?0:t)):[]}function Ul(e,t){return e&&e.length?Li(e,Ha(t,3),!0,!0):[]}function Hl(e,t){return e&&e.length?Li(e,Ha(t,3),!0):[]}function Wl(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&ll(e,t,n)&&(n=0,r=o),Ao(e,t,n,r)):[]}function ql(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Gc(n);return o<0&&(o=zt(r+o,0)),In(e,Ha(t,3),o)}function Kl(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=Gc(n),i=n<0?zt(r+i,0):Vt(i,r-1)),In(e,Ha(t,3),i,!0)}function Gl(e){var t=null==e?0:e.length;return t?_o(e,1):[]}function Yl(e){var t=null==e?0:e.length;return t?_o(e,N):[]}function Zl(e,t){var n=null==e?0:e.length;return n?(t=t===o?1:Gc(t),_o(e,t)):[]}function Jl(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var o=e[t];r[o[0]]=o[1]}return r}function Xl(e){return e&&e.length?e[0]:o}function Ql(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Gc(n);return o<0&&(o=zt(r+o,0)),Mn(e,t,o)}function eu(e){var t=null==e?0:e.length;return t?Oi(e,0,-1):[]}var tu=xi((function(e){var t=An(e,$i);return t.length&&t[0]===e[0]?$o(t):[]})),nu=xi((function(e){var t=iu(e),n=An(e,$i);return t===iu(n)?t=o:n.pop(),n.length&&n[0]===e[0]?$o(n,Ha(t,2)):[]})),ru=xi((function(e){var t=iu(e),n=An(e,$i);return t="function"==typeof t?t:o,t&&n.pop(),n.length&&n[0]===e[0]?$o(n,o,t):[]}));function ou(e,t){return null==e?"":Lt.call(e,t)}function iu(e){var t=null==e?0:e.length;return t?e[t-1]:o}function au(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=Gc(n),i=i<0?zt(r+i,0):Vt(i,r-1)),t===t?hr(e,t,i):In(e,Rn,i,!0)}function lu(e,t){return e&&e.length?fi(e,Gc(t)):o}var uu=xi(su);function su(e,t){return e&&e.length&&t&&t.length?vi(e,t):e}function cu(e,t,n){return e&&e.length&&t&&t.length?vi(e,t,Ha(n,2)):e}function fu(e,t,n){return e&&e.length&&t&&t.length?vi(e,t,o,n):e}var du=La((function(e,t){var n=null==e?0:e.length,r=vo(e,t);return mi(e,An(t,(function(e){return al(e,n)?+e:e})).sort(ea)),r}));function pu(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;t=Ha(t,3);while(++r<i){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return mi(e,o),n}function hu(e){return null==e?e:Kt.call(e)}function gu(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ll(e,t,n)?(t=0,n=r):(t=null==t?0:Gc(t),n=n===o?r:Gc(n)),Oi(e,t,n)):[]}function vu(e,t){return Bi(e,t)}function mu(e,t,n){return Fi(e,t,Ha(n,2))}function yu(e,t){var n=null==e?0:e.length;if(n){var r=Bi(e,t);if(r<n&&oc(e[r],t))return r}return-1}function bu(e,t){return Bi(e,t,!0)}function wu(e,t,n){return Fi(e,t,Ha(n,2),!0)}function xu(e,t){var n=null==e?0:e.length;if(n){var r=Bi(e,t,!0)-1;if(oc(e[r],t))return r}return-1}function Cu(e){return e&&e.length?ji(e):[]}function Eu(e,t){return e&&e.length?ji(e,Ha(t,2)):[]}function ku(e){var t=null==e?0:e.length;return t?Oi(e,1,t):[]}function Su(e,t,n){return e&&e.length?(t=n||t===o?1:Gc(t),Oi(e,0,t<0?0:t)):[]}function Du(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Gc(t),t=r-t,Oi(e,t<0?0:t,r)):[]}function Au(e,t){return e&&e.length?Li(e,Ha(t,3),!1,!0):[]}function Ou(e,t){return e&&e.length?Li(e,Ha(t,3)):[]}var _u=xi((function(e){return Ni(_o(e,1,fc,!0))})),Bu=xi((function(e){var t=iu(e);return fc(t)&&(t=o),Ni(_o(e,1,fc,!0),Ha(t,2))})),Fu=xi((function(e){var t=iu(e);return t="function"==typeof t?t:o,Ni(_o(e,1,fc,!0),o,t)}));function ju(e){return e&&e.length?Ni(e):[]}function Pu(e,t){return e&&e.length?Ni(e,Ha(t,2)):[]}function Tu(e,t){return t="function"==typeof t?t:o,e&&e.length?Ni(e,o,t):[]}function Nu(e){if(!e||!e.length)return[];var t=0;return e=kn(e,(function(e){if(fc(e))return t=zt(e.length,t),!0})),qn(t,(function(t){return An(e,Vn(t))}))}function Iu(e,t){if(!e||!e.length)return[];var n=Nu(e);return null==t?n:An(n,(function(e){return bn(t,o,e)}))}var Mu=xi((function(e,t){return fc(e)?Co(e,t):[]})),Lu=xi((function(e){return zi(kn(e,fc))})),Ru=xi((function(e){var t=iu(e);return fc(t)&&(t=o),zi(kn(e,fc),Ha(t,2))})),zu=xi((function(e){var t=iu(e);return t="function"==typeof t?t:o,zi(kn(e,fc),o,t)})),Vu=xi(Nu);function $u(e,t){return Vi(e||[],t||[],so)}function Uu(e,t){return Vi(e||[],t||[],ki)}var Hu=xi((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,Iu(e,n)}));function Wu(e){var t=Cr(e);return t.__chain__=!0,t}function qu(e,t){return t(e),e}function Ku(e,t){return t(e)}var Gu=La((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return vo(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Ar&&al(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Ku,args:[i],thisArg:o}),new Dr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));function Yu(){return Wu(this)}function Zu(){return new Dr(this.value(),this.__chain__)}function Ju(){this.__values__===o&&(this.__values__=qc(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function Xu(){return this}function Qu(e){var t,n=this;while(n instanceof Sr){var r=Tl(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function es(){var e=this.__wrapped__;if(e instanceof Ar){var t=e;return this.__actions__.length&&(t=new Ar(this)),t=t.reverse(),t.__actions__.push({func:Ku,args:[hu],thisArg:o}),new Dr(t,this.__chain__)}return this.thru(hu)}function ts(){return Ri(this.__wrapped__,this.__actions__)}var ns=ua((function(e,t,n){ft.call(e,n)?++e[n]:go(e,n,1)}));function rs(e,t,n){var r=uc(e)?En:So;return n&&ll(e,t,n)&&(t=o),r(e,Ha(t,3))}function os(e,t){var n=uc(e)?kn:Oo;return n(e,Ha(t,3))}var is=ma(ql),as=ma(Kl);function ls(e,t){return _o(vs(e,t),1)}function us(e,t){return _o(vs(e,t),N)}function ss(e,t,n){return n=n===o?1:Gc(n),_o(vs(e,t),n)}function cs(e,t){var n=uc(e)?xn:Eo;return n(e,Ha(t,3))}function fs(e,t){var n=uc(e)?Cn:ko;return n(e,Ha(t,3))}var ds=ua((function(e,t,n){ft.call(e,n)?e[n].push(t):go(e,n,[t])}));function ps(e,t,n,r){e=cc(e)?e:$f(e),n=n&&!r?Gc(n):0;var o=e.length;return n<0&&(n=zt(o+n,0)),Lc(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Mn(e,t,n)>-1}var hs=xi((function(e,t,r){var o=-1,i="function"==typeof t,a=cc(e)?n(e.length):[];return Eo(e,(function(e){a[++o]=i?bn(t,e,r):Ho(e,t,r)})),a})),gs=ua((function(e,t,n){go(e,n,t)}));function vs(e,t){var n=uc(e)?An:ai;return n(e,Ha(t,3))}function ms(e,t,n,r){return null==e?[]:(uc(t)||(t=null==t?[]:[t]),n=r?o:n,uc(n)||(n=null==n?[]:[n]),di(e,t,n))}var ys=ua((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function bs(e,t,n){var r=uc(e)?_n:Un,o=arguments.length<3;return r(e,Ha(t,4),n,o,Eo)}function ws(e,t,n){var r=uc(e)?Bn:Un,o=arguments.length<3;return r(e,Ha(t,4),n,o,ko)}function xs(e,t){var n=uc(e)?kn:Oo;return n(e,Vs(Ha(t,3)))}function Cs(e){var t=uc(e)?io:Ci;return t(e)}function Es(e,t,n){t=(n?ll(e,t,n):t===o)?1:Gc(t);var r=uc(e)?ao:Ei;return r(e,t)}function ks(e){var t=uc(e)?lo:Ai;return t(e)}function Ss(e){if(null==e)return 0;if(cc(e))return Lc(e)?gr(e):e.length;var t=Ja(e);return t==X||t==ie?e.size:ri(e).length}function Ds(e,t,n){var r=uc(e)?Fn:_i;return n&&ll(e,t,n)&&(t=o),r(e,Ha(t,3))}var As=xi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ll(e,t[0],t[1])?t=[]:n>2&&ll(t[0],t[1],t[2])&&(t=[t[0]]),di(e,_o(t,1),[])})),Os=Ft||function(){return ln.Date.now()};function _s(e,t){if("function"!=typeof t)throw new it(u);return e=Gc(e),function(){if(--e<1)return t.apply(this,arguments)}}function Bs(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Fa(e,S,o,o,o,o,t)}function Fs(e,t){var n;if("function"!=typeof t)throw new it(u);return e=Gc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var js=xi((function(e,t,n){var r=y;if(n.length){var o=cr(n,Ua(js));r|=E}return Fa(e,r,t,n,o)})),Ps=xi((function(e,t,n){var r=y|b;if(n.length){var o=cr(n,Ua(Ps));r|=E}return Fa(t,r,e,n,o)}));function Ts(e,t,n){t=n?o:t;var r=Fa(e,x,o,o,o,o,o,t);return r.placeholder=Ts.placeholder,r}function Ns(e,t,n){t=n?o:t;var r=Fa(e,C,o,o,o,o,o,t);return r.placeholder=Ns.placeholder,r}function Is(e,t,n){var r,i,a,l,s,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new it(u);function g(t){var n=r,a=i;return r=i=o,f=t,l=e.apply(a,n),l}function v(e){return f=e,s=Sl(b,t),d?g(e):l}function m(e){var n=e-c,r=e-f,o=t-n;return p?Vt(o,a-r):o}function y(e){var n=e-c,r=e-f;return c===o||n>=t||n<0||p&&r>=a}function b(){var e=Os();if(y(e))return w(e);s=Sl(b,m(e))}function w(e){return s=o,h&&r?g(e):(r=i=o,l)}function x(){s!==o&&Ki(s),f=0,r=c=i=s=o}function C(){return s===o?l:w(Os())}function E(){var e=Os(),n=y(e);if(r=arguments,i=this,c=e,n){if(s===o)return v(c);if(p)return Ki(s),s=Sl(b,t),g(c)}return s===o&&(s=Sl(b,t)),l}return t=Zc(t)||0,kc(n)&&(d=!!n.leading,p="maxWait"in n,a=p?zt(Zc(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),E.cancel=x,E.flush=C,E}var Ms=xi((function(e,t){return xo(e,1,t)})),Ls=xi((function(e,t,n){return xo(e,Zc(t)||0,n)}));function Rs(e){return Fa(e,A)}function zs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(zs.Cache||Ur),n}function Vs(e){if("function"!=typeof e)throw new it(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function $s(e){return Fs(2,e)}zs.Cache=Ur;var Us=Wi((function(e,t){t=1==t.length&&uc(t[0])?An(t[0],Yn(Ha())):An(_o(t,1),Yn(Ha()));var n=t.length;return xi((function(r){var o=-1,i=Vt(r.length,n);while(++o<i)r[o]=t[o].call(this,r[o]);return bn(e,this,r)}))})),Hs=xi((function(e,t){var n=cr(t,Ua(Hs));return Fa(e,E,o,t,n)})),Ws=xi((function(e,t){var n=cr(t,Ua(Ws));return Fa(e,k,o,t,n)})),qs=La((function(e,t){return Fa(e,D,o,o,o,t)}));function Ks(e,t){if("function"!=typeof e)throw new it(u);return t=t===o?t:Gc(t),xi(e,t)}function Gs(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:zt(Gc(t),0),xi((function(n){var r=n[t],o=qi(n,0,t);return r&&On(o,r),bn(e,this,o)}))}function Ys(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new it(u);return kc(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Is(e,t,{leading:r,maxWait:t,trailing:o})}function Zs(e){return Bs(e,1)}function Js(e,t){return Hs(Ui(t),e)}function Xs(){if(!arguments.length)return[];var e=arguments[0];return uc(e)?e:[e]}function Qs(e){return yo(e,g)}function ec(e,t){return t="function"==typeof t?t:o,yo(e,g,t)}function tc(e){return yo(e,p|g)}function nc(e,t){return t="function"==typeof t?t:o,yo(e,p|g,t)}function rc(e,t){return null==t||wo(e,t,Ef(t))}function oc(e,t){return e===t||e!==e&&t!==t}var ic=Da(Lo),ac=Da((function(e,t){return e>=t})),lc=Wo(function(){return arguments}())?Wo:function(e){return Sc(e)&&ft.call(e,"callee")&&!kt.call(e,"callee")},uc=n.isArray,sc=pn?Yn(pn):qo;function cc(e){return null!=e&&Ec(e.length)&&!xc(e)}function fc(e){return Sc(e)&&cc(e)}function dc(e){return!0===e||!1===e||Sc(e)&&Mo(e)==q}var pc=It||Yd,hc=hn?Yn(hn):Ko;function gc(e){return Sc(e)&&1===e.nodeType&&!Tc(e)}function vc(e){if(null==e)return!0;if(cc(e)&&(uc(e)||"string"==typeof e||"function"==typeof e.splice||pc(e)||zc(e)||lc(e)))return!e.length;var t=Ja(e);if(t==X||t==ie)return!e.size;if(pl(e))return!ri(e).length;for(var n in e)if(ft.call(e,n))return!1;return!0}function mc(e,t){return Go(e,t)}function yc(e,t,n){n="function"==typeof n?n:o;var r=n?n(e,t):o;return r===o?Go(e,t,o,n):!!r}function bc(e){if(!Sc(e))return!1;var t=Mo(e);return t==Y||t==G||"string"==typeof e.message&&"string"==typeof e.name&&!Tc(e)}function wc(e){return"number"==typeof e&&Mt(e)}function xc(e){if(!kc(e))return!1;var t=Mo(e);return t==Z||t==J||t==W||t==re}function Cc(e){return"number"==typeof e&&e==Gc(e)}function Ec(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=I}function kc(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Sc(e){return null!=e&&"object"==typeof e}var Dc=gn?Yn(gn):Zo;function Ac(e,t){return e===t||Jo(e,t,qa(t))}function Oc(e,t,n){return n="function"==typeof n?n:o,Jo(e,t,qa(t),n)}function _c(e){return Pc(e)&&e!=+e}function Bc(e){if(dl(e))throw new Le(l);return Xo(e)}function Fc(e){return null===e}function jc(e){return null==e}function Pc(e){return"number"==typeof e||Sc(e)&&Mo(e)==Q}function Tc(e){if(!Sc(e)||Mo(e)!=te)return!1;var t=Ct(e);if(null===t)return!0;var n=ft.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==gt}var Nc=vn?Yn(vn):Qo;function Ic(e){return Cc(e)&&e>=-I&&e<=I}var Mc=mn?Yn(mn):ei;function Lc(e){return"string"==typeof e||!uc(e)&&Sc(e)&&Mo(e)==ae}function Rc(e){return"symbol"==typeof e||Sc(e)&&Mo(e)==le}var zc=yn?Yn(yn):ti;function Vc(e){return e===o}function $c(e){return Sc(e)&&Ja(e)==se}function Uc(e){return Sc(e)&&Mo(e)==ce}var Hc=Da(ii),Wc=Da((function(e,t){return e<=t}));function qc(e){if(!e)return[];if(cc(e))return Lc(e)?vr(e):oa(e);if(At&&e[At])return lr(e[At]());var t=Ja(e),n=t==X?ur:t==ie?fr:$f;return n(e)}function Kc(e){if(!e)return 0===e?e:0;if(e=Zc(e),e===N||e===-N){var t=e<0?-1:1;return t*M}return e===e?e:0}function Gc(e){var t=Kc(e),n=t%1;return t===t?n?t-n:t:0}function Yc(e){return e?mo(Gc(e),0,R):0}function Zc(e){if("number"==typeof e)return e;if(Rc(e))return L;if(kc(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=kc(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gn(e);var n=Ge.test(e);return n||Ze.test(e)?rn(e.slice(2),n?2:8):Ke.test(e)?L:+e}function Jc(e){return ia(e,kf(e))}function Xc(e){return e?mo(Gc(e),-I,I):0===e?e:0}function Qc(e){return null==e?"":Ti(e)}var ef=sa((function(e,t){if(pl(t)||cc(t))ia(t,Ef(t),e);else for(var n in t)ft.call(t,n)&&so(e,n,t[n])})),tf=sa((function(e,t){ia(t,kf(t),e)})),nf=sa((function(e,t,n,r){ia(t,kf(t),e,r)})),rf=sa((function(e,t,n,r){ia(t,Ef(t),e,r)})),of=La(vo);function af(e,t){var n=kr(e);return null==t?n:po(n,t)}var lf=xi((function(e,t){e=nt(e);var n=-1,r=t.length,i=r>2?t[2]:o;i&&ll(t[0],t[1],i)&&(r=1);while(++n<r){var a=t[n],l=kf(a),u=-1,s=l.length;while(++u<s){var c=l[u],f=e[c];(f===o||oc(f,ut[c])&&!ft.call(e,c))&&(e[c]=a[c])}}return e})),uf=xi((function(e){return e.push(o,Pa),bn(Of,o,e)}));function sf(e,t){return Nn(e,Ha(t,3),jo)}function cf(e,t){return Nn(e,Ha(t,3),Po)}function ff(e,t){return null==e?e:Bo(e,Ha(t,3),kf)}function df(e,t){return null==e?e:Fo(e,Ha(t,3),kf)}function pf(e,t){return e&&jo(e,Ha(t,3))}function hf(e,t){return e&&Po(e,Ha(t,3))}function gf(e){return null==e?[]:To(e,Ef(e))}function vf(e){return null==e?[]:To(e,kf(e))}function mf(e,t,n){var r=null==e?o:No(e,t);return r===o?n:r}function yf(e,t){return null!=e&&el(e,t,Ro)}function bf(e,t){return null!=e&&el(e,t,zo)}var wf=wa((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ht.call(t)),e[t]=n}),Ad(Fd)),xf=wa((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ht.call(t)),ft.call(e,t)?e[t].push(n):e[t]=[n]}),Ha),Cf=xi(Ho);function Ef(e){return cc(e)?oo(e):ri(e)}function kf(e){return cc(e)?oo(e,!0):oi(e)}function Sf(e,t){var n={};return t=Ha(t,3),jo(e,(function(e,r,o){go(n,t(e,r,o),e)})),n}function Df(e,t){var n={};return t=Ha(t,3),jo(e,(function(e,r,o){go(n,r,t(e,r,o))})),n}var Af=sa((function(e,t,n){si(e,t,n)})),Of=sa((function(e,t,n,r){si(e,t,n,r)})),_f=La((function(e,t){var n={};if(null==e)return n;var r=!1;t=An(t,(function(t){return t=Hi(t,e),r||(r=t.length>1),t})),ia(e,za(e),n),r&&(n=yo(n,p|h|g,Ta));var o=t.length;while(o--)Ii(n,t[o]);return n}));function Bf(e,t){return jf(e,Vs(Ha(t)))}var Ff=La((function(e,t){return null==e?{}:pi(e,t)}));function jf(e,t){if(null==e)return{};var n=An(za(e),(function(e){return[e]}));return t=Ha(t),hi(e,n,(function(e,n){return t(e,n[0])}))}function Pf(e,t,n){t=Hi(t,e);var r=-1,i=t.length;i||(i=1,e=o);while(++r<i){var a=null==e?o:e[Fl(t[r])];a===o&&(r=i,a=n),e=xc(a)?a.call(e):a}return e}function Tf(e,t,n){return null==e?e:ki(e,t,n)}function Nf(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ki(e,t,n,r)}var If=Ba(Ef),Mf=Ba(kf);function Lf(e,t,n){var r=uc(e),o=r||pc(e)||zc(e);if(t=Ha(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:kc(e)&&xc(i)?kr(Ct(e)):{}}return(o?xn:jo)(e,(function(e,r,o){return t(n,e,r,o)})),n}function Rf(e,t){return null==e||Ii(e,t)}function zf(e,t,n){return null==e?e:Mi(e,t,Ui(n))}function Vf(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Mi(e,t,Ui(n),r)}function $f(e){return null==e?[]:Zn(e,Ef(e))}function Uf(e){return null==e?[]:Zn(e,kf(e))}function Hf(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=Zc(n),n=n===n?n:0),t!==o&&(t=Zc(t),t=t===t?t:0),mo(Zc(e),t,n)}function Wf(e,t,n){return t=Kc(t),n===o?(n=t,t=0):n=Kc(n),e=Zc(e),Vo(e,t,n)}function qf(e,t,n){if(n&&"boolean"!=typeof n&&ll(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=Kc(e),t===o?(t=e,e=0):t=Kc(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=qt();return Vt(e+i*(t-e+nn("1e-"+((i+"").length-1))),t)}return yi(e,t)}var Kf=ha((function(e,t,n){return t=t.toLowerCase(),e+(n?Gf(t):t)}));function Gf(e){return xd(Qc(e).toLowerCase())}function Yf(e){return e=Qc(e),e&&e.replace(Xe,tr).replace(Ut,"")}function Zf(e,t,n){e=Qc(e),t=Ti(t);var r=e.length;n=n===o?r:mo(Gc(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Jf(e){return e=Qc(e),e&&Oe.test(e)?e.replace(De,nr):e}function Xf(e){return e=Qc(e),e&&Ie.test(e)?e.replace(Ne,"\\$&"):e}var Qf=ha((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ed=ha((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),td=pa("toLowerCase");function nd(e,t,n){e=Qc(e),t=Gc(t);var r=t?gr(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ea(Tt(o),n)+e+Ea(Pt(o),n)}function rd(e,t,n){e=Qc(e),t=Gc(t);var r=t?gr(e):0;return t&&r<t?e+Ea(t-r,n):e}function od(e,t,n){e=Qc(e),t=Gc(t);var r=t?gr(e):0;return t&&r<t?Ea(t-r,n)+e:e}function id(e,t,n){return n||null==t?t=0:t&&(t=+t),Wt(Qc(e).replace(Me,""),t||0)}function ad(e,t,n){return t=(n?ll(e,t,n):t===o)?1:Gc(t),wi(Qc(e),t)}function ld(){var e=arguments,t=Qc(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ud=ha((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function sd(e,t,n){return n&&"number"!=typeof n&&ll(e,t,n)&&(t=n=o),n=n===o?R:n>>>0,n?(e=Qc(e),e&&("string"==typeof t||null!=t&&!Nc(t))&&(t=Ti(t),!t&&ir(e))?qi(vr(e),0,n):e.split(t,n)):[]}var cd=ha((function(e,t,n){return e+(n?" ":"")+xd(t)}));function fd(e,t,n){return e=Qc(e),n=null==n?0:mo(Gc(n),0,e.length),t=Ti(t),e.slice(n,n+t.length)==t}function dd(e,t,n){var r=Cr.templateSettings;n&&ll(e,t,n)&&(t=o),e=Qc(e),t=nf({},t,r,ja);var i,a,l=nf({},t.imports,r.imports,ja),u=Ef(l),c=Zn(l,u),f=0,d=t.interpolate||Qe,p="__p += '",h=rt((t.escape||Qe).source+"|"+d.source+"|"+(d===Fe?We:Qe).source+"|"+(t.evaluate||Qe).source+"|$","g"),g="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yt+"]")+"\n";e.replace(h,(function(t,n,r,o,l,u){return r||(r=o),p+=e.slice(f,u).replace(et,rr),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),l&&(a=!0,p+="';\n"+l+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=u+t.length,t})),p+="';\n";var v=ft.call(t,"variable")&&t.variable;if(v){if(Ue.test(v))throw new Le(s)}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(Ce,""):p).replace(Ee,"$1").replace(ke,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Ed((function(){return $e(u,g+"return "+p).apply(o,c)}));if(m.source=p,bc(m))throw m;return m}function pd(e){return Qc(e).toLowerCase()}function hd(e){return Qc(e).toUpperCase()}function gd(e,t,n){if(e=Qc(e),e&&(n||t===o))return Gn(e);if(!e||!(t=Ti(t)))return e;var r=vr(e),i=vr(t),a=Xn(r,i),l=Qn(r,i)+1;return qi(r,a,l).join("")}function vd(e,t,n){if(e=Qc(e),e&&(n||t===o))return e.slice(0,mr(e)+1);if(!e||!(t=Ti(t)))return e;var r=vr(e),i=Qn(r,vr(t))+1;return qi(r,0,i).join("")}function md(e,t,n){if(e=Qc(e),e&&(n||t===o))return e.replace(Me,"");if(!e||!(t=Ti(t)))return e;var r=vr(e),i=Xn(r,vr(t));return qi(r,i).join("")}function yd(e,t){var n=O,r=_;if(kc(t)){var i="separator"in t?t.separator:i;n="length"in t?Gc(t.length):n,r="omission"in t?Ti(t.omission):r}e=Qc(e);var a=e.length;if(ir(e)){var l=vr(e);a=l.length}if(n>=a)return e;var u=n-gr(r);if(u<1)return r;var s=l?qi(l,0,u).join(""):e.slice(0,u);if(i===o)return s+r;if(l&&(u+=s.length-u),Nc(i)){if(e.slice(u).search(i)){var c,f=s;i.global||(i=rt(i.source,Qc(qe.exec(i))+"g")),i.lastIndex=0;while(c=i.exec(f))var d=c.index;s=s.slice(0,d===o?u:d)}}else if(e.indexOf(Ti(i),u)!=u){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r}function bd(e){return e=Qc(e),e&&Ae.test(e)?e.replace(Se,yr):e}var wd=ha((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),xd=pa("toUpperCase");function Cd(e,t,n){return e=Qc(e),t=n?o:t,t===o?ar(e)?xr(e):Tn(e):e.match(t)||[]}var Ed=xi((function(e,t){try{return bn(e,o,t)}catch(n){return bc(n)?n:new Le(n)}})),kd=La((function(e,t){return xn(t,(function(t){t=Fl(t),go(e,t,js(e[t],e))})),e}));function Sd(e){var t=null==e?0:e.length,n=Ha();return e=t?An(e,(function(e){if("function"!=typeof e[1])throw new it(u);return[n(e[0]),e[1]]})):[],xi((function(n){var r=-1;while(++r<t){var o=e[r];if(bn(o[0],this,n))return bn(o[1],this,n)}}))}function Dd(e){return bo(yo(e,p))}function Ad(e){return function(){return e}}function Od(e,t){return null==e||e!==e?t:e}var _d=ya(),Bd=ya(!0);function Fd(e){return e}function jd(e){return ni("function"==typeof e?e:yo(e,p))}function Pd(e){return li(yo(e,p))}function Td(e,t){return ui(e,yo(t,p))}var Nd=xi((function(e,t){return function(n){return Ho(n,e,t)}})),Id=xi((function(e,t){return function(n){return Ho(e,n,t)}}));function Md(e,t,n){var r=Ef(t),o=To(t,r);null!=n||kc(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=To(t,Ef(t)));var i=!(kc(n)&&"chain"in n)||!!n.chain,a=xc(e);return xn(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=oa(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,On([this.value()],arguments))})})),e}function Ld(){return ln._===this&&(ln._=vt),this}function Rd(){}function zd(e){return e=Gc(e),xi((function(t){return fi(t,e)}))}var Vd=Ca(An),$d=Ca(En),Ud=Ca(Fn);function Hd(e){return ul(e)?Vn(Fl(e)):gi(e)}function Wd(e){return function(t){return null==e?o:No(e,t)}}var qd=Sa(),Kd=Sa(!0);function Gd(){return[]}function Yd(){return!1}function Zd(){return{}}function Jd(){return""}function Xd(){return!0}function Qd(e,t){if(e=Gc(e),e<1||e>I)return[];var n=R,r=Vt(e,R);t=Ha(t),e-=R;var o=qn(r,t);while(++n<e)t(n);return o}function ep(e){return uc(e)?An(e,Fl):Rc(e)?[e]:oa(Bl(Qc(e)))}function tp(e){var t=++dt;return Qc(e)+t}var np=xa((function(e,t){return e+t}),0),rp=Oa("ceil"),op=xa((function(e,t){return e/t}),1),ip=Oa("floor");function ap(e){return e&&e.length?Do(e,Fd,Lo):o}function lp(e,t){return e&&e.length?Do(e,Ha(t,2),Lo):o}function up(e){return zn(e,Fd)}function sp(e,t){return zn(e,Ha(t,2))}function cp(e){return e&&e.length?Do(e,Fd,ii):o}function fp(e,t){return e&&e.length?Do(e,Ha(t,2),ii):o}var dp=xa((function(e,t){return e*t}),1),pp=Oa("round"),hp=xa((function(e,t){return e-t}),0);function gp(e){return e&&e.length?Wn(e,Fd):0}function vp(e,t){return e&&e.length?Wn(e,Ha(t,2)):0}return Cr.after=_s,Cr.ary=Bs,Cr.assign=ef,Cr.assignIn=tf,Cr.assignInWith=nf,Cr.assignWith=rf,Cr.at=of,Cr.before=Fs,Cr.bind=js,Cr.bindAll=kd,Cr.bindKey=Ps,Cr.castArray=Xs,Cr.chain=Wu,Cr.chunk=Nl,Cr.compact=Il,Cr.concat=Ml,Cr.cond=Sd,Cr.conforms=Dd,Cr.constant=Ad,Cr.countBy=ns,Cr.create=af,Cr.curry=Ts,Cr.curryRight=Ns,Cr.debounce=Is,Cr.defaults=lf,Cr.defaultsDeep=uf,Cr.defer=Ms,Cr.delay=Ls,Cr.difference=Ll,Cr.differenceBy=Rl,Cr.differenceWith=zl,Cr.drop=Vl,Cr.dropRight=$l,Cr.dropRightWhile=Ul,Cr.dropWhile=Hl,Cr.fill=Wl,Cr.filter=os,Cr.flatMap=ls,Cr.flatMapDeep=us,Cr.flatMapDepth=ss,Cr.flatten=Gl,Cr.flattenDeep=Yl,Cr.flattenDepth=Zl,Cr.flip=Rs,Cr.flow=_d,Cr.flowRight=Bd,Cr.fromPairs=Jl,Cr.functions=gf,Cr.functionsIn=vf,Cr.groupBy=ds,Cr.initial=eu,Cr.intersection=tu,Cr.intersectionBy=nu,Cr.intersectionWith=ru,Cr.invert=wf,Cr.invertBy=xf,Cr.invokeMap=hs,Cr.iteratee=jd,Cr.keyBy=gs,Cr.keys=Ef,Cr.keysIn=kf,Cr.map=vs,Cr.mapKeys=Sf,Cr.mapValues=Df,Cr.matches=Pd,Cr.matchesProperty=Td,Cr.memoize=zs,Cr.merge=Af,Cr.mergeWith=Of,Cr.method=Nd,Cr.methodOf=Id,Cr.mixin=Md,Cr.negate=Vs,Cr.nthArg=zd,Cr.omit=_f,Cr.omitBy=Bf,Cr.once=$s,Cr.orderBy=ms,Cr.over=Vd,Cr.overArgs=Us,Cr.overEvery=$d,Cr.overSome=Ud,Cr.partial=Hs,Cr.partialRight=Ws,Cr.partition=ys,Cr.pick=Ff,Cr.pickBy=jf,Cr.property=Hd,Cr.propertyOf=Wd,Cr.pull=uu,Cr.pullAll=su,Cr.pullAllBy=cu,Cr.pullAllWith=fu,Cr.pullAt=du,Cr.range=qd,Cr.rangeRight=Kd,Cr.rearg=qs,Cr.reject=xs,Cr.remove=pu,Cr.rest=Ks,Cr.reverse=hu,Cr.sampleSize=Es,Cr.set=Tf,Cr.setWith=Nf,Cr.shuffle=ks,Cr.slice=gu,Cr.sortBy=As,Cr.sortedUniq=Cu,Cr.sortedUniqBy=Eu,Cr.split=sd,Cr.spread=Gs,Cr.tail=ku,Cr.take=Su,Cr.takeRight=Du,Cr.takeRightWhile=Au,Cr.takeWhile=Ou,Cr.tap=qu,Cr.throttle=Ys,Cr.thru=Ku,Cr.toArray=qc,Cr.toPairs=If,Cr.toPairsIn=Mf,Cr.toPath=ep,Cr.toPlainObject=Jc,Cr.transform=Lf,Cr.unary=Zs,Cr.union=_u,Cr.unionBy=Bu,Cr.unionWith=Fu,Cr.uniq=ju,Cr.uniqBy=Pu,Cr.uniqWith=Tu,Cr.unset=Rf,Cr.unzip=Nu,Cr.unzipWith=Iu,Cr.update=zf,Cr.updateWith=Vf,Cr.values=$f,Cr.valuesIn=Uf,Cr.without=Mu,Cr.words=Cd,Cr.wrap=Js,Cr.xor=Lu,Cr.xorBy=Ru,Cr.xorWith=zu,Cr.zip=Vu,Cr.zipObject=$u,Cr.zipObjectDeep=Uu,Cr.zipWith=Hu,Cr.entries=If,Cr.entriesIn=Mf,Cr.extend=tf,Cr.extendWith=nf,Md(Cr,Cr),Cr.add=np,Cr.attempt=Ed,Cr.camelCase=Kf,Cr.capitalize=Gf,Cr.ceil=rp,Cr.clamp=Hf,Cr.clone=Qs,Cr.cloneDeep=tc,Cr.cloneDeepWith=nc,Cr.cloneWith=ec,Cr.conformsTo=rc,Cr.deburr=Yf,Cr.defaultTo=Od,Cr.divide=op,Cr.endsWith=Zf,Cr.eq=oc,Cr.escape=Jf,Cr.escapeRegExp=Xf,Cr.every=rs,Cr.find=is,Cr.findIndex=ql,Cr.findKey=sf,Cr.findLast=as,Cr.findLastIndex=Kl,Cr.findLastKey=cf,Cr.floor=ip,Cr.forEach=cs,Cr.forEachRight=fs,Cr.forIn=ff,Cr.forInRight=df,Cr.forOwn=pf,Cr.forOwnRight=hf,Cr.get=mf,Cr.gt=ic,Cr.gte=ac,Cr.has=yf,Cr.hasIn=bf,Cr.head=Xl,Cr.identity=Fd,Cr.includes=ps,Cr.indexOf=Ql,Cr.inRange=Wf,Cr.invoke=Cf,Cr.isArguments=lc,Cr.isArray=uc,Cr.isArrayBuffer=sc,Cr.isArrayLike=cc,Cr.isArrayLikeObject=fc,Cr.isBoolean=dc,Cr.isBuffer=pc,Cr.isDate=hc,Cr.isElement=gc,Cr.isEmpty=vc,Cr.isEqual=mc,Cr.isEqualWith=yc,Cr.isError=bc,Cr.isFinite=wc,Cr.isFunction=xc,Cr.isInteger=Cc,Cr.isLength=Ec,Cr.isMap=Dc,Cr.isMatch=Ac,Cr.isMatchWith=Oc,Cr.isNaN=_c,Cr.isNative=Bc,Cr.isNil=jc,Cr.isNull=Fc,Cr.isNumber=Pc,Cr.isObject=kc,Cr.isObjectLike=Sc,Cr.isPlainObject=Tc,Cr.isRegExp=Nc,Cr.isSafeInteger=Ic,Cr.isSet=Mc,Cr.isString=Lc,Cr.isSymbol=Rc,Cr.isTypedArray=zc,Cr.isUndefined=Vc,Cr.isWeakMap=$c,Cr.isWeakSet=Uc,Cr.join=ou,Cr.kebabCase=Qf,Cr.last=iu,Cr.lastIndexOf=au,Cr.lowerCase=ed,Cr.lowerFirst=td,Cr.lt=Hc,Cr.lte=Wc,Cr.max=ap,Cr.maxBy=lp,Cr.mean=up,Cr.meanBy=sp,Cr.min=cp,Cr.minBy=fp,Cr.stubArray=Gd,Cr.stubFalse=Yd,Cr.stubObject=Zd,Cr.stubString=Jd,Cr.stubTrue=Xd,Cr.multiply=dp,Cr.nth=lu,Cr.noConflict=Ld,Cr.noop=Rd,Cr.now=Os,Cr.pad=nd,Cr.padEnd=rd,Cr.padStart=od,Cr.parseInt=id,Cr.random=qf,Cr.reduce=bs,Cr.reduceRight=ws,Cr.repeat=ad,Cr.replace=ld,Cr.result=Pf,Cr.round=pp,Cr.runInContext=e,Cr.sample=Cs,Cr.size=Ss,Cr.snakeCase=ud,Cr.some=Ds,Cr.sortedIndex=vu,Cr.sortedIndexBy=mu,Cr.sortedIndexOf=yu,Cr.sortedLastIndex=bu,Cr.sortedLastIndexBy=wu,Cr.sortedLastIndexOf=xu,Cr.startCase=cd,Cr.startsWith=fd,Cr.subtract=hp,Cr.sum=gp,Cr.sumBy=vp,Cr.template=dd,Cr.times=Qd,Cr.toFinite=Kc,Cr.toInteger=Gc,Cr.toLength=Yc,Cr.toLower=pd,Cr.toNumber=Zc,Cr.toSafeInteger=Xc,Cr.toString=Qc,Cr.toUpper=hd,Cr.trim=gd,Cr.trimEnd=vd,Cr.trimStart=md,Cr.truncate=yd,Cr.unescape=bd,Cr.uniqueId=tp,Cr.upperCase=wd,Cr.upperFirst=xd,Cr.each=cs,Cr.eachRight=fs,Cr.first=Xl,Md(Cr,function(){var e={};return jo(Cr,(function(t,n){ft.call(Cr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Cr.VERSION=i,xn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Cr[e].placeholder=Cr})),xn(["drop","take"],(function(e,t){Ar.prototype[e]=function(n){n=n===o?1:zt(Gc(n),0);var r=this.__filtered__&&!t?new Ar(this):this.clone();return r.__filtered__?r.__takeCount__=Vt(n,r.__takeCount__):r.__views__.push({size:Vt(n,R),type:e+(r.__dir__<0?"Right":"")}),r},Ar.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==j||n==T;Ar.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ha(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),xn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Ar.prototype[e]=function(){return this[n](1).value()[0]}})),xn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Ar.prototype[e]=function(){return this.__filtered__?new Ar(this):this[n](1)}})),Ar.prototype.compact=function(){return this.filter(Fd)},Ar.prototype.find=function(e){return this.filter(e).head()},Ar.prototype.findLast=function(e){return this.reverse().find(e)},Ar.prototype.invokeMap=xi((function(e,t){return"function"==typeof e?new Ar(this):this.map((function(n){return Ho(n,e,t)}))})),Ar.prototype.reject=function(e){return this.filter(Vs(Ha(e)))},Ar.prototype.slice=function(e,t){e=Gc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Ar(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(t=Gc(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Ar.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ar.prototype.toArray=function(){return this.take(R)},jo(Ar.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Cr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Cr.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,u=t instanceof Ar,s=l[0],c=u||uc(t),f=function(e){var t=i.apply(Cr,On([e],l));return r&&d?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,g=u&&!p;if(!a&&c){t=g?t:new Ar(this);var v=e.apply(t,l);return v.__actions__.push({func:Ku,args:[f],thisArg:o}),new Dr(v,d)}return h&&g?e.apply(this,l):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})})),xn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Cr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(uc(o)?o:[],e)}return this[n]((function(n){return t.apply(uc(n)?n:[],e)}))}})),jo(Ar.prototype,(function(e,t){var n=Cr[t];if(n){var r=n.name+"";ft.call(sn,r)||(sn[r]=[]),sn[r].push({name:t,func:n})}})),sn[ba(o,b).name]=[{name:"wrapper",func:o}],Ar.prototype.clone=Or,Ar.prototype.reverse=_r,Ar.prototype.value=Br,Cr.prototype.at=Gu,Cr.prototype.chain=Yu,Cr.prototype.commit=Zu,Cr.prototype.next=Ju,Cr.prototype.plant=Qu,Cr.prototype.reverse=es,Cr.prototype.toJSON=Cr.prototype.valueOf=Cr.prototype.value=ts,Cr.prototype.first=Cr.prototype.head,At&&(Cr.prototype[At]=Xu),Cr},Er=Cr();ln._=Er,r=function(){return Er}.call(t,n,t,e),r===o||(e.exports=r)}.call(this)},1980:function(e){const t=["24-hours-fill","24-hours-line","4k-fill","4k-line","a-b","account-box-fill","account-box-line","account-circle-fill","account-circle-line","account-pin-box-fill","account-pin-box-line","account-pin-circle-fill","account-pin-circle-line","add-box-fill","add-box-line","add-circle-fill","add-circle-line","add-fill","add-line","admin-fill","admin-line","airplay-fill","airplay-line","alarm-fill","alarm-line","alarm-warning-fill","alarm-warning-line","album-fill","album-line","alert-fill","alert-line","aliens-fill","aliens-line","align-bottom","align-center","align-justify","align-left","align-right","align-top","align-vertically","alipay-fill","alipay-line","amazon-fill","amazon-line","anchor-fill","anchor-line","ancient-gate-fill","ancient-gate-line","ancient-pavilion-fill","ancient-pavilion-line","android-fill","android-line","angularjs-fill","angularjs-line","anticlockwise-2-fill","anticlockwise-2-line","anticlockwise-fill","anticlockwise-line","app-store-fill","app-store-line","apple-fill","apple-line","apps-2-fill","apps-2-line","apps-fill","apps-line","archive-drawer-fill","archive-drawer-line","archive-fill","archive-line","arrow-down-circle-fill","arrow-down-circle-line","arrow-down-fill","arrow-down-line","arrow-down-s-fill","arrow-down-s-line","arrow-drop-down-fill","arrow-drop-down-line","arrow-drop-left-fill","arrow-drop-left-line","arrow-drop-right-fill","arrow-drop-right-line","arrow-drop-up-fill","arrow-drop-up-line","arrow-go-back-fill","arrow-go-back-line","arrow-go-forward-fill","arrow-go-forward-line","arrow-left-circle-fill","arrow-left-circle-line","arrow-left-down-fill","arrow-left-down-line","arrow-left-fill","arrow-left-line","arrow-left-right-fill","arrow-left-right-line","arrow-left-s-fill","arrow-left-s-line","arrow-left-up-fill","arrow-left-up-line","arrow-right-circle-fill","arrow-right-circle-line","arrow-right-down-fill","arrow-right-down-line","arrow-right-fill","arrow-right-line","arrow-right-s-fill","arrow-right-s-line","arrow-right-up-fill","arrow-right-up-line","arrow-up-circle-fill","arrow-up-circle-line","arrow-up-down-fill","arrow-up-down-line","arrow-up-fill","arrow-up-line","arrow-up-s-fill","arrow-up-s-line","artboard-2-fill","artboard-2-line","artboard-fill","artboard-line","article-fill","article-line","aspect-ratio-fill","aspect-ratio-line","asterisk","at-fill","at-line","attachment-2","attachment-fill","attachment-line","auction-fill","auction-line","award-fill","award-line","baidu-fill","baidu-line","ball-pen-fill","ball-pen-line","bank-card-2-fill","bank-card-2-line","bank-card-fill","bank-card-line","bank-fill","bank-line","bar-chart-2-fill","bar-chart-2-line","bar-chart-box-fill","bar-chart-box-line","bar-chart-fill","bar-chart-grouped-fill","bar-chart-grouped-line","bar-chart-horizontal-fill","bar-chart-horizontal-line","bar-chart-line","barcode-box-fill","barcode-box-line","barcode-fill","barcode-line","barricade-fill","barricade-line","base-station-fill","base-station-line","basketball-fill","basketball-line","battery-2-charge-fill","battery-2-charge-line","battery-2-fill","battery-2-line","battery-charge-fill","battery-charge-line","battery-fill","battery-line","battery-low-fill","battery-low-line","battery-saver-fill","battery-saver-line","battery-share-fill","battery-share-line","bear-smile-fill","bear-smile-line","behance-fill","behance-line","bell-fill","bell-line","bike-fill","bike-line","bilibili-fill","bilibili-line","bill-fill","bill-line","billiards-fill","billiards-line","bit-coin-fill","bit-coin-line","blaze-fill","blaze-line","bluetooth-connect-fill","bluetooth-connect-line","bluetooth-fill","bluetooth-line","blur-off-fill","blur-off-line","body-scan-fill","body-scan-line","bold","book-2-fill","book-2-line","book-3-fill","book-3-line","book-fill","book-line","book-mark-fill","book-mark-line","book-open-fill","book-open-line","book-read-fill","book-read-line","booklet-fill","booklet-line","bookmark-2-fill","bookmark-2-line","bookmark-3-fill","bookmark-3-line","bookmark-fill","bookmark-line","boxing-fill","boxing-line","braces-fill","braces-line","brackets-fill","brackets-line","briefcase-2-fill","briefcase-2-line","briefcase-3-fill","briefcase-3-line","briefcase-4-fill","briefcase-4-line","briefcase-5-fill","briefcase-5-line","briefcase-fill","briefcase-line","bring-forward","bring-to-front","broadcast-fill","broadcast-line","brush-2-fill","brush-2-line","brush-3-fill","brush-3-line","brush-4-fill","brush-4-line","brush-fill","brush-line","bubble-chart-fill","bubble-chart-line","bug-2-fill","bug-2-line","bug-fill","bug-line","building-2-fill","building-2-line","building-3-fill","building-3-line","building-4-fill","building-4-line","building-fill","building-line","bus-2-fill","bus-2-line","bus-fill","bus-line","bus-wifi-fill","bus-wifi-line","cactus-fill","cactus-line","cake-2-fill","cake-2-line","cake-3-fill","cake-3-line","cake-fill","cake-line","calculator-fill","calculator-line","calendar-2-fill","calendar-2-line","calendar-check-fill","calendar-check-line","calendar-event-fill","calendar-event-line","calendar-fill","calendar-line","calendar-todo-fill","calendar-todo-line","camera-2-fill","camera-2-line","camera-3-fill","camera-3-line","camera-fill","camera-lens-fill","camera-lens-line","camera-line","camera-off-fill","camera-off-line","camera-switch-fill","camera-switch-line","capsule-fill","capsule-line","car-fill","car-line","car-washing-fill","car-washing-line","caravan-fill","caravan-line","cast-fill","cast-line","cellphone-fill","cellphone-line","celsius-fill","celsius-line","centos-fill","centos-line","character-recognition-fill","character-recognition-line","charging-pile-2-fill","charging-pile-2-line","charging-pile-fill","charging-pile-line","chat-1-fill","chat-1-line","chat-2-fill","chat-2-line","chat-3-fill","chat-3-line","chat-4-fill","chat-4-line","chat-check-fill","chat-check-line","chat-delete-fill","chat-delete-line","chat-download-fill","chat-download-line","chat-follow-up-fill","chat-follow-up-line","chat-forward-fill","chat-forward-line","chat-heart-fill","chat-heart-line","chat-history-fill","chat-history-line","chat-new-fill","chat-new-line","chat-off-fill","chat-off-line","chat-poll-fill","chat-poll-line","chat-private-fill","chat-private-line","chat-quote-fill","chat-quote-line","chat-settings-fill","chat-settings-line","chat-smile-2-fill","chat-smile-2-line","chat-smile-3-fill","chat-smile-3-line","chat-smile-fill","chat-smile-line","chat-upload-fill","chat-upload-line","chat-voice-fill","chat-voice-line","check-double-fill","check-double-line","check-fill","check-line","checkbox-blank-circle-fill","checkbox-blank-circle-line","checkbox-blank-fill","checkbox-blank-line","checkbox-circle-fill","checkbox-circle-line","checkbox-fill","checkbox-indeterminate-fill","checkbox-indeterminate-line","checkbox-line","checkbox-multiple-blank-fill","checkbox-multiple-blank-line","checkbox-multiple-fill","checkbox-multiple-line","china-railway-fill","china-railway-line","chrome-fill","chrome-line","clapperboard-fill","clapperboard-line","clipboard-fill","clipboard-line","clockwise-2-fill","clockwise-2-line","clockwise-fill","clockwise-line","close-circle-fill","close-circle-line","close-fill","close-line","closed-captioning-fill","closed-captioning-line","cloud-fill","cloud-line","cloud-off-fill","cloud-off-line","cloud-windy-fill","cloud-windy-line","cloudy-2-fill","cloudy-2-line","cloudy-fill","cloudy-line","code-box-fill","code-box-line","code-fill","code-line","code-s-fill","code-s-line","code-s-slash-fill","code-s-slash-line","code-view","codepen-fill","codepen-line","coin-fill","coin-line","coins-fill","coins-line","collage-fill","collage-line","command-fill","command-line","community-fill","community-line","compass-2-fill","compass-2-line","compass-3-fill","compass-3-line","compass-4-fill","compass-4-line","compass-discover-fill","compass-discover-line","compass-fill","compass-line","compasses-2-fill","compasses-2-line","compasses-fill","compasses-line","computer-fill","computer-line","contacts-book-2-fill","contacts-book-2-line","contacts-book-fill","contacts-book-line","contacts-book-upload-fill","contacts-book-upload-line","contacts-fill","contacts-line","contrast-2-fill","contrast-2-line","contrast-drop-2-fill","contrast-drop-2-line","contrast-drop-fill","contrast-drop-line","contrast-fill","contrast-line","copper-coin-fill","copper-coin-line","copper-diamond-fill","copper-diamond-line","copyleft-fill","copyleft-line","copyright-fill","copyright-line","coreos-fill","coreos-line","coupon-2-fill","coupon-2-line","coupon-3-fill","coupon-3-line","coupon-4-fill","coupon-4-line","coupon-5-fill","coupon-5-line","coupon-fill","coupon-line","cpu-fill","cpu-line","creative-commons-by-fill","creative-commons-by-line","creative-commons-fill","creative-commons-line","creative-commons-nc-fill","creative-commons-nc-line","creative-commons-nd-fill","creative-commons-nd-line","creative-commons-sa-fill","creative-commons-sa-line","creative-commons-zero-fill","creative-commons-zero-line","criminal-fill","criminal-line","crop-2-fill","crop-2-line","crop-fill","crop-line","css3-fill","css3-line","cup-fill","cup-line","currency-fill","currency-line","cursor-fill","cursor-line","customer-service-2-fill","customer-service-2-line","customer-service-fill","customer-service-line","dashboard-2-fill","dashboard-2-line","dashboard-3-fill","dashboard-3-line","dashboard-fill","dashboard-line","database-2-fill","database-2-line","database-fill","database-line","delete-back-2-fill","delete-back-2-line","delete-back-fill","delete-back-line","delete-bin-2-fill","delete-bin-2-line","delete-bin-3-fill","delete-bin-3-line","delete-bin-4-fill","delete-bin-4-line","delete-bin-5-fill","delete-bin-5-line","delete-bin-6-fill","delete-bin-6-line","delete-bin-7-fill","delete-bin-7-line","delete-bin-fill","delete-bin-line","delete-column","delete-row","device-fill","device-line","device-recover-fill","device-recover-line","dingding-fill","dingding-line","direction-fill","direction-line","disc-fill","disc-line","discord-fill","discord-line","discuss-fill","discuss-line","dislike-fill","dislike-line","disqus-fill","disqus-line","divide-fill","divide-line","donut-chart-fill","donut-chart-line","door-closed-fill","door-closed-line","door-fill","door-line","door-lock-box-fill","door-lock-box-line","door-lock-fill","door-lock-line","door-open-fill","door-open-line","dossier-fill","dossier-line","douban-fill","douban-line","double-quotes-l","double-quotes-r","download-2-fill","download-2-line","download-cloud-2-fill","download-cloud-2-line","download-cloud-fill","download-cloud-line","download-fill","download-line","draft-fill","draft-line","drag-drop-fill","drag-drop-line","drag-move-2-fill","drag-move-2-line","drag-move-fill","drag-move-line","dribbble-fill","dribbble-line","drive-fill","drive-line","drizzle-fill","drizzle-line","drop-fill","drop-line","dropbox-fill","dropbox-line","dual-sim-1-fill","dual-sim-1-line","dual-sim-2-fill","dual-sim-2-line","dv-fill","dv-line","dvd-fill","dvd-line","e-bike-2-fill","e-bike-2-line","e-bike-fill","e-bike-line","earth-fill","earth-line","earthquake-fill","earthquake-line","edge-fill","edge-line","edit-2-fill","edit-2-line","edit-box-fill","edit-box-line","edit-circle-fill","edit-circle-line","edit-fill","edit-line","eject-fill","eject-line","emotion-2-fill","emotion-2-line","emotion-fill","emotion-happy-fill","emotion-happy-line","emotion-laugh-fill","emotion-laugh-line","emotion-line","emotion-normal-fill","emotion-normal-line","emotion-sad-fill","emotion-sad-line","emotion-unhappy-fill","emotion-unhappy-line","empathize-fill","empathize-line","emphasis-cn","emphasis","english-input","equalizer-fill","equalizer-line","eraser-fill","eraser-line","error-warning-fill","error-warning-line","evernote-fill","evernote-line","exchange-box-fill","exchange-box-line","exchange-cny-fill","exchange-cny-line","exchange-dollar-fill","exchange-dollar-line","exchange-fill","exchange-funds-fill","exchange-funds-line","exchange-line","external-link-fill","external-link-line","eye-2-fill","eye-2-line","eye-close-fill","eye-close-line","eye-fill","eye-line","eye-off-fill","eye-off-line","facebook-box-fill","facebook-box-line","facebook-circle-fill","facebook-circle-line","facebook-fill","facebook-line","fahrenheit-fill","fahrenheit-line","feedback-fill","feedback-line","file-2-fill","file-2-line","file-3-fill","file-3-line","file-4-fill","file-4-line","file-add-fill","file-add-line","file-chart-2-fill","file-chart-2-line","file-chart-fill","file-chart-line","file-cloud-fill","file-cloud-line","file-code-fill","file-code-line","file-copy-2-fill","file-copy-2-line","file-copy-fill","file-copy-line","file-damage-fill","file-damage-line","file-download-fill","file-download-line","file-edit-fill","file-edit-line","file-excel-2-fill","file-excel-2-line","file-excel-fill","file-excel-line","file-fill","file-forbid-fill","file-forbid-line","file-gif-fill","file-gif-line","file-history-fill","file-history-line","file-hwp-fill","file-hwp-line","file-info-fill","file-info-line","file-line","file-list-2-fill","file-list-2-line","file-list-3-fill","file-list-3-line","file-list-fill","file-list-line","file-lock-fill","file-lock-line","file-mark-fill","file-mark-line","file-music-fill","file-music-line","file-paper-2-fill","file-paper-2-line","file-paper-fill","file-paper-line","file-pdf-fill","file-pdf-line","file-ppt-2-fill","file-ppt-2-line","file-ppt-fill","file-ppt-line","file-reduce-fill","file-reduce-line","file-search-fill","file-search-line","file-settings-fill","file-settings-line","file-shield-2-fill","file-shield-2-line","file-shield-fill","file-shield-line","file-shred-fill","file-shred-line","file-text-fill","file-text-line","file-transfer-fill","file-transfer-line","file-unknow-fill","file-unknow-line","file-upload-fill","file-upload-line","file-user-fill","file-user-line","file-warning-fill","file-warning-line","file-word-2-fill","file-word-2-line","file-word-fill","file-word-line","file-zip-fill","file-zip-line","film-fill","film-line","filter-2-fill","filter-2-line","filter-3-fill","filter-3-line","filter-fill","filter-line","filter-off-fill","filter-off-line","find-replace-fill","find-replace-line","finder-fill","finder-line","fingerprint-2-fill","fingerprint-2-line","fingerprint-fill","fingerprint-line","fire-fill","fire-line","firefox-fill","firefox-line","first-aid-kit-fill","first-aid-kit-line","flag-2-fill","flag-2-line","flag-fill","flag-line","flashlight-fill","flashlight-line","flask-fill","flask-line","flight-land-fill","flight-land-line","flight-takeoff-fill","flight-takeoff-line","flood-fill","flood-line","flow-chart","flutter-fill","flutter-line","focus-2-fill","focus-2-line","focus-3-fill","focus-3-line","focus-fill","focus-line","foggy-fill","foggy-line","folder-2-fill","folder-2-line","folder-3-fill","folder-3-line","folder-4-fill","folder-4-line","folder-5-fill","folder-5-line","folder-add-fill","folder-add-line","folder-chart-2-fill","folder-chart-2-line","folder-chart-fill","folder-chart-line","folder-download-fill","folder-download-line","folder-fill","folder-forbid-fill","folder-forbid-line","folder-history-fill","folder-history-line","folder-info-fill","folder-info-line","folder-keyhole-fill","folder-keyhole-line","folder-line","folder-lock-fill","folder-lock-line","folder-music-fill","folder-music-line","folder-open-fill","folder-open-line","folder-received-fill","folder-received-line","folder-reduce-fill","folder-reduce-line","folder-settings-fill","folder-settings-line","folder-shared-fill","folder-shared-line","folder-shield-2-fill","folder-shield-2-line","folder-shield-fill","folder-shield-line","folder-transfer-fill","folder-transfer-line","folder-unknow-fill","folder-unknow-line","folder-upload-fill","folder-upload-line","folder-user-fill","folder-user-line","folder-warning-fill","folder-warning-line","folder-zip-fill","folder-zip-line","folders-fill","folders-line","font-color","font-size-2","font-size","football-fill","football-line","footprint-fill","footprint-line","forbid-2-fill","forbid-2-line","forbid-fill","forbid-line","format-clear","fridge-fill","fridge-line","fullscreen-exit-fill","fullscreen-exit-line","fullscreen-fill","fullscreen-line","function-fill","function-line","functions","funds-box-fill","funds-box-line","funds-fill","funds-line","gallery-fill","gallery-line","gallery-upload-fill","gallery-upload-line","game-fill","game-line","gamepad-fill","gamepad-line","gas-station-fill","gas-station-line","gatsby-fill","gatsby-line","genderless-fill","genderless-line","ghost-2-fill","ghost-2-line","ghost-fill","ghost-line","ghost-smile-fill","ghost-smile-line","gift-2-fill","gift-2-line","gift-fill","gift-line","git-branch-fill","git-branch-line","git-commit-fill","git-commit-line","git-merge-fill","git-merge-line","git-pull-request-fill","git-pull-request-line","git-repository-commits-fill","git-repository-commits-line","git-repository-fill","git-repository-line","git-repository-private-fill","git-repository-private-line","github-fill","github-line","gitlab-fill","gitlab-line","global-fill","global-line","globe-fill","globe-line","goblet-fill","goblet-line","google-fill","google-line","google-play-fill","google-play-line","government-fill","government-line","gps-fill","gps-line","gradienter-fill","gradienter-line","grid-fill","grid-line","group-2-fill","group-2-line","group-fill","group-line","guide-fill","guide-line","h-1","h-2","h-3","h-4","h-5","h-6","hail-fill","hail-line","hammer-fill","hammer-line","hand-coin-fill","hand-coin-line","hand-heart-fill","hand-heart-line","hand-sanitizer-fill","hand-sanitizer-line","handbag-fill","handbag-line","hard-drive-2-fill","hard-drive-2-line","hard-drive-fill","hard-drive-line","hashtag","haze-2-fill","haze-2-line","haze-fill","haze-line","hd-fill","hd-line","heading","headphone-fill","headphone-line","health-book-fill","health-book-line","heart-2-fill","heart-2-line","heart-3-fill","heart-3-line","heart-add-fill","heart-add-line","heart-fill","heart-line","heart-pulse-fill","heart-pulse-line","hearts-fill","hearts-line","heavy-showers-fill","heavy-showers-line","history-fill","history-line","home-2-fill","home-2-line","home-3-fill","home-3-line","home-4-fill","home-4-line","home-5-fill","home-5-line","home-6-fill","home-6-line","home-7-fill","home-7-line","home-8-fill","home-8-line","home-fill","home-gear-fill","home-gear-line","home-heart-fill","home-heart-line","home-line","home-smile-2-fill","home-smile-2-line","home-smile-fill","home-smile-line","home-wifi-fill","home-wifi-line","honor-of-kings-fill","honor-of-kings-line","honour-fill","honour-line","hospital-fill","hospital-line","hotel-bed-fill","hotel-bed-line","hotel-fill","hotel-line","hotspot-fill","hotspot-line","hq-fill","hq-line","html5-fill","html5-line","ie-fill","ie-line","image-2-fill","image-2-line","image-add-fill","image-add-line","image-edit-fill","image-edit-line","image-fill","image-line","inbox-archive-fill","inbox-archive-line","inbox-fill","inbox-line","inbox-unarchive-fill","inbox-unarchive-line","increase-decrease-fill","increase-decrease-line","indent-decrease","indent-increase","indeterminate-circle-fill","indeterminate-circle-line","information-fill","information-line","infrared-thermometer-fill","infrared-thermometer-line","ink-bottle-fill","ink-bottle-line","input-cursor-move","input-method-fill","input-method-line","insert-column-left","insert-column-right","insert-row-bottom","insert-row-top","instagram-fill","instagram-line","install-fill","install-line","invision-fill","invision-line","italic","kakao-talk-fill","kakao-talk-line","key-2-fill","key-2-line","key-fill","key-line","keyboard-box-fill","keyboard-box-line","keyboard-fill","keyboard-line","keynote-fill","keynote-line","knife-blood-fill","knife-blood-line","knife-fill","knife-line","landscape-fill","landscape-line","layout-2-fill","layout-2-line","layout-3-fill","layout-3-line","layout-4-fill","layout-4-line","layout-5-fill","layout-5-line","layout-6-fill","layout-6-line","layout-bottom-2-fill","layout-bottom-2-line","layout-bottom-fill","layout-bottom-line","layout-column-fill","layout-column-line","layout-fill","layout-grid-fill","layout-grid-line","layout-left-2-fill","layout-left-2-line","layout-left-fill","layout-left-line","layout-line","layout-masonry-fill","layout-masonry-line","layout-right-2-fill","layout-right-2-line","layout-right-fill","layout-right-line","layout-row-fill","layout-row-line","layout-top-2-fill","layout-top-2-line","layout-top-fill","layout-top-line","leaf-fill","leaf-line","lifebuoy-fill","lifebuoy-line","lightbulb-fill","lightbulb-flash-fill","lightbulb-flash-line","lightbulb-line","line-chart-fill","line-chart-line","line-fill","line-height","line-line","link-m","link-unlink-m","link-unlink","link","linkedin-box-fill","linkedin-box-line","linkedin-fill","linkedin-line","links-fill","links-line","list-check-2","list-check","list-ordered","list-settings-fill","list-settings-line","list-unordered","live-fill","live-line","loader-2-fill","loader-2-line","loader-3-fill","loader-3-line","loader-4-fill","loader-4-line","loader-5-fill","loader-5-line","loader-fill","loader-line","lock-2-fill","lock-2-line","lock-fill","lock-line","lock-password-fill","lock-password-line","lock-unlock-fill","lock-unlock-line","login-box-fill","login-box-line","login-circle-fill","login-circle-line","logout-box-fill","logout-box-line","logout-box-r-fill","logout-box-r-line","logout-circle-fill","logout-circle-line","logout-circle-r-fill","logout-circle-r-line","luggage-cart-fill","luggage-cart-line","luggage-deposit-fill","luggage-deposit-line","lungs-fill","lungs-line","mac-fill","mac-line","macbook-fill","macbook-line","magic-fill","magic-line","mail-add-fill","mail-add-line","mail-check-fill","mail-check-line","mail-close-fill","mail-close-line","mail-download-fill","mail-download-line","mail-fill","mail-forbid-fill","mail-forbid-line","mail-line","mail-lock-fill","mail-lock-line","mail-open-fill","mail-open-line","mail-send-fill","mail-send-line","mail-settings-fill","mail-settings-line","mail-star-fill","mail-star-line","mail-unread-fill","mail-unread-line","mail-volume-fill","mail-volume-line","map-2-fill","map-2-line","map-fill","map-line","map-pin-2-fill","map-pin-2-line","map-pin-3-fill","map-pin-3-line","map-pin-4-fill","map-pin-4-line","map-pin-5-fill","map-pin-5-line","map-pin-add-fill","map-pin-add-line","map-pin-fill","map-pin-line","map-pin-range-fill","map-pin-range-line","map-pin-time-fill","map-pin-time-line","map-pin-user-fill","map-pin-user-line","mark-pen-fill","mark-pen-line","markdown-fill","markdown-line","markup-fill","markup-line","mastercard-fill","mastercard-line","mastodon-fill","mastodon-line","medal-2-fill","medal-2-line","medal-fill","medal-line","medicine-bottle-fill","medicine-bottle-line","medium-fill","medium-line","men-fill","men-line","mental-health-fill","mental-health-line","menu-2-fill","menu-2-line","menu-3-fill","menu-3-line","menu-4-fill","menu-4-line","menu-5-fill","menu-5-line","menu-add-fill","menu-add-line","menu-fill","menu-fold-fill","menu-fold-line","menu-line","menu-unfold-fill","menu-unfold-line","merge-cells-horizontal","merge-cells-vertical","message-2-fill","message-2-line","message-3-fill","message-3-line","message-fill","message-line","messenger-fill","messenger-line","meteor-fill","meteor-line","mic-2-fill","mic-2-line","mic-fill","mic-line","mic-off-fill","mic-off-line","mickey-fill","mickey-line","microscope-fill","microscope-line","microsoft-fill","microsoft-line","mind-map","mini-program-fill","mini-program-line","mist-fill","mist-line","money-cny-box-fill","money-cny-box-line","money-cny-circle-fill","money-cny-circle-line","money-dollar-box-fill","money-dollar-box-line","money-dollar-circle-fill","money-dollar-circle-line","money-euro-box-fill","money-euro-box-line","money-euro-circle-fill","money-euro-circle-line","money-pound-box-fill","money-pound-box-line","money-pound-circle-fill","money-pound-circle-line","moon-clear-fill","moon-clear-line","moon-cloudy-fill","moon-cloudy-line","moon-fill","moon-foggy-fill","moon-foggy-line","moon-line","more-2-fill","more-2-line","more-fill","more-line","motorbike-fill","motorbike-line","mouse-fill","mouse-line","movie-2-fill","movie-2-line","movie-fill","movie-line","music-2-fill","music-2-line","music-fill","music-line","mv-fill","mv-line","navigation-fill","navigation-line","netease-cloud-music-fill","netease-cloud-music-line","netflix-fill","netflix-line","newspaper-fill","newspaper-line","node-tree","notification-2-fill","notification-2-line","notification-3-fill","notification-3-line","notification-4-fill","notification-4-line","notification-badge-fill","notification-badge-line","notification-fill","notification-line","notification-off-fill","notification-off-line","npmjs-fill","npmjs-line","number-0","number-1","number-2","number-3","number-4","number-5","number-6","number-7","number-8","number-9","numbers-fill","numbers-line","nurse-fill","nurse-line","oil-fill","oil-line","omega","open-arm-fill","open-arm-line","open-source-fill","open-source-line","opera-fill","opera-line","order-play-fill","order-play-line","organization-chart","outlet-2-fill","outlet-2-line","outlet-fill","outlet-line","page-separator","pages-fill","pages-line","paint-brush-fill","paint-brush-line","paint-fill","paint-line","palette-fill","palette-line","pantone-fill","pantone-line","paragraph","parent-fill","parent-line","parentheses-fill","parentheses-line","parking-box-fill","parking-box-line","parking-fill","parking-line","passport-fill","passport-line","patreon-fill","patreon-line","pause-circle-fill","pause-circle-line","pause-fill","pause-line","pause-mini-fill","pause-mini-line","paypal-fill","paypal-line","pen-nib-fill","pen-nib-line","pencil-fill","pencil-line","pencil-ruler-2-fill","pencil-ruler-2-line","pencil-ruler-fill","pencil-ruler-line","percent-fill","percent-line","phone-camera-fill","phone-camera-line","phone-fill","phone-find-fill","phone-find-line","phone-line","phone-lock-fill","phone-lock-line","picture-in-picture-2-fill","picture-in-picture-2-line","picture-in-picture-exit-fill","picture-in-picture-exit-line","picture-in-picture-fill","picture-in-picture-line","pie-chart-2-fill","pie-chart-2-line","pie-chart-box-fill","pie-chart-box-line","pie-chart-fill","pie-chart-line","pin-distance-fill","pin-distance-line","ping-pong-fill","ping-pong-line","pinterest-fill","pinterest-line","pinyin-input","pixelfed-fill","pixelfed-line","plane-fill","plane-line","plant-fill","plant-line","play-circle-fill","play-circle-line","play-fill","play-line","play-list-2-fill","play-list-2-line","play-list-add-fill","play-list-add-line","play-list-fill","play-list-line","play-mini-fill","play-mini-line","playstation-fill","playstation-line","plug-2-fill","plug-2-line","plug-fill","plug-line","polaroid-2-fill","polaroid-2-line","polaroid-fill","polaroid-line","police-car-fill","police-car-line","price-tag-2-fill","price-tag-2-line","price-tag-3-fill","price-tag-3-line","price-tag-fill","price-tag-line","printer-cloud-fill","printer-cloud-line","printer-fill","printer-line","product-hunt-fill","product-hunt-line","profile-fill","profile-line","projector-2-fill","projector-2-line","projector-fill","projector-line","psychotherapy-fill","psychotherapy-line","pulse-fill","pulse-line","pushpin-2-fill","pushpin-2-line","pushpin-fill","pushpin-line","qq-fill","qq-line","qr-code-fill","qr-code-line","qr-scan-2-fill","qr-scan-2-line","qr-scan-fill","qr-scan-line","question-answer-fill","question-answer-line","question-fill","question-line","question-mark","questionnaire-fill","questionnaire-line","quill-pen-fill","quill-pen-line","radar-fill","radar-line","radio-2-fill","radio-2-line","radio-button-fill","radio-button-line","radio-fill","radio-line","rainbow-fill","rainbow-line","rainy-fill","rainy-line","reactjs-fill","reactjs-line","record-circle-fill","record-circle-line","record-mail-fill","record-mail-line","recycle-fill","recycle-line","red-packet-fill","red-packet-line","reddit-fill","reddit-line","refresh-fill","refresh-line","refund-2-fill","refund-2-line","refund-fill","refund-line","registered-fill","registered-line","remixicon-fill","remixicon-line","remote-control-2-fill","remote-control-2-line","remote-control-fill","remote-control-line","repeat-2-fill","repeat-2-line","repeat-fill","repeat-line","repeat-one-fill","repeat-one-line","reply-all-fill","reply-all-line","reply-fill","reply-line","reserved-fill","reserved-line","rest-time-fill","rest-time-line","restart-fill","restart-line","restaurant-2-fill","restaurant-2-line","restaurant-fill","restaurant-line","rewind-fill","rewind-line","rewind-mini-fill","rewind-mini-line","rhythm-fill","rhythm-line","riding-fill","riding-line","road-map-fill","road-map-line","roadster-fill","roadster-line","robot-fill","robot-line","rocket-2-fill","rocket-2-line","rocket-fill","rocket-line","rotate-lock-fill","rotate-lock-line","rounded-corner","route-fill","route-line","router-fill","router-line","rss-fill","rss-line","ruler-2-fill","ruler-2-line","ruler-fill","ruler-line","run-fill","run-line","safari-fill","safari-line","safe-2-fill","safe-2-line","safe-fill","safe-line","sailboat-fill","sailboat-line","save-2-fill","save-2-line","save-3-fill","save-3-line","save-fill","save-line","scales-2-fill","scales-2-line","scales-3-fill","scales-3-line","scales-fill","scales-line","scan-2-fill","scan-2-line","scan-fill","scan-line","scissors-2-fill","scissors-2-line","scissors-cut-fill","scissors-cut-line","scissors-fill","scissors-line","screenshot-2-fill","screenshot-2-line","screenshot-fill","screenshot-line","sd-card-fill","sd-card-line","sd-card-mini-fill","sd-card-mini-line","search-2-fill","search-2-line","search-eye-fill","search-eye-line","search-fill","search-line","secure-payment-fill","secure-payment-line","seedling-fill","seedling-line","send-backward","send-plane-2-fill","send-plane-2-line","send-plane-fill","send-plane-line","send-to-back","sensor-fill","sensor-line","separator","server-fill","server-line","service-fill","service-line","settings-2-fill","settings-2-line","settings-3-fill","settings-3-line","settings-4-fill","settings-4-line","settings-5-fill","settings-5-line","settings-6-fill","settings-6-line","settings-fill","settings-line","shape-2-fill","shape-2-line","shape-fill","shape-line","share-box-fill","share-box-line","share-circle-fill","share-circle-line","share-fill","share-forward-2-fill","share-forward-2-line","share-forward-box-fill","share-forward-box-line","share-forward-fill","share-forward-line","share-line","shield-check-fill","shield-check-line","shield-cross-fill","shield-cross-line","shield-fill","shield-flash-fill","shield-flash-line","shield-keyhole-fill","shield-keyhole-line","shield-line","shield-star-fill","shield-star-line","shield-user-fill","shield-user-line","ship-2-fill","ship-2-line","ship-fill","ship-line","shirt-fill","shirt-line","shopping-bag-2-fill","shopping-bag-2-line","shopping-bag-3-fill","shopping-bag-3-line","shopping-bag-fill","shopping-bag-line","shopping-basket-2-fill","shopping-basket-2-line","shopping-basket-fill","shopping-basket-line","shopping-cart-2-fill","shopping-cart-2-line","shopping-cart-fill","shopping-cart-line","showers-fill","showers-line","shuffle-fill","shuffle-line","shut-down-fill","shut-down-line","side-bar-fill","side-bar-line","signal-tower-fill","signal-tower-line","signal-wifi-1-fill","signal-wifi-1-line","signal-wifi-2-fill","signal-wifi-2-line","signal-wifi-3-fill","signal-wifi-3-line","signal-wifi-error-fill","signal-wifi-error-line","signal-wifi-fill","signal-wifi-line","signal-wifi-off-fill","signal-wifi-off-line","sim-card-2-fill","sim-card-2-line","sim-card-fill","sim-card-line","single-quotes-l","single-quotes-r","sip-fill","sip-line","skip-back-fill","skip-back-line","skip-back-mini-fill","skip-back-mini-line","skip-forward-fill","skip-forward-line","skip-forward-mini-fill","skip-forward-mini-line","skull-2-fill","skull-2-line","skull-fill","skull-line","skype-fill","skype-line","slack-fill","slack-line","slice-fill","slice-line","slideshow-2-fill","slideshow-2-line","slideshow-3-fill","slideshow-3-line","slideshow-4-fill","slideshow-4-line","slideshow-fill","slideshow-line","smartphone-fill","smartphone-line","snapchat-fill","snapchat-line","snowy-fill","snowy-line","sort-asc","sort-desc","sound-module-fill","sound-module-line","soundcloud-fill","soundcloud-line","space-ship-fill","space-ship-line","space","spam-2-fill","spam-2-line","spam-3-fill","spam-3-line","spam-fill","spam-line","speaker-2-fill","speaker-2-line","speaker-3-fill","speaker-3-line","speaker-fill","speaker-line","spectrum-fill","spectrum-line","speed-fill","speed-line","speed-mini-fill","speed-mini-line","split-cells-horizontal","split-cells-vertical","spotify-fill","spotify-line","spy-fill","spy-line","stack-fill","stack-line","stack-overflow-fill","stack-overflow-line","stackshare-fill","stackshare-line","star-fill","star-half-fill","star-half-line","star-half-s-fill","star-half-s-line","star-line","star-s-fill","star-s-line","star-smile-fill","star-smile-line","steam-fill","steam-line","steering-2-fill","steering-2-line","steering-fill","steering-line","stethoscope-fill","stethoscope-line","sticky-note-2-fill","sticky-note-2-line","sticky-note-fill","sticky-note-line","stock-fill","stock-line","stop-circle-fill","stop-circle-line","stop-fill","stop-line","stop-mini-fill","stop-mini-line","store-2-fill","store-2-line","store-3-fill","store-3-line","store-fill","store-line","strikethrough-2","strikethrough","subscript-2","subscript","subtract-fill","subtract-line","subway-fill","subway-line","subway-wifi-fill","subway-wifi-line","suitcase-2-fill","suitcase-2-line","suitcase-3-fill","suitcase-3-line","suitcase-fill","suitcase-line","sun-cloudy-fill","sun-cloudy-line","sun-fill","sun-foggy-fill","sun-foggy-line","sun-line","superscript-2","superscript","surgical-mask-fill","surgical-mask-line","surround-sound-fill","surround-sound-line","survey-fill","survey-line","swap-box-fill","swap-box-line","swap-fill","swap-line","switch-fill","switch-line","sword-fill","sword-line","syringe-fill","syringe-line","t-box-fill","t-box-line","t-shirt-2-fill","t-shirt-2-line","t-shirt-air-fill","t-shirt-air-line","t-shirt-fill","t-shirt-line","table-2","table-alt-fill","table-alt-line","table-fill","table-line","tablet-fill","tablet-line","takeaway-fill","takeaway-line","taobao-fill","taobao-line","tape-fill","tape-line","task-fill","task-line","taxi-fill","taxi-line","taxi-wifi-fill","taxi-wifi-line","team-fill","team-line","telegram-fill","telegram-line","temp-cold-fill","temp-cold-line","temp-hot-fill","temp-hot-line","terminal-box-fill","terminal-box-line","terminal-fill","terminal-line","terminal-window-fill","terminal-window-line","test-tube-fill","test-tube-line","text-direction-l","text-direction-r","text-spacing","text-wrap","text","thermometer-fill","thermometer-line","thumb-down-fill","thumb-down-line","thumb-up-fill","thumb-up-line","thunderstorms-fill","thunderstorms-line","ticket-2-fill","ticket-2-line","ticket-fill","ticket-line","time-fill","time-line","timer-2-fill","timer-2-line","timer-fill","timer-flash-fill","timer-flash-line","timer-line","todo-fill","todo-line","toggle-fill","toggle-line","tools-fill","tools-line","tornado-fill","tornado-line","trademark-fill","trademark-line","traffic-light-fill","traffic-light-line","train-fill","train-line","train-wifi-fill","train-wifi-line","translate-2","translate","travesti-fill","travesti-line","treasure-map-fill","treasure-map-line","trello-fill","trello-line","trophy-fill","trophy-line","truck-fill","truck-line","tumblr-fill","tumblr-line","tv-2-fill","tv-2-line","tv-fill","tv-line","twitch-fill","twitch-line","twitter-fill","twitter-line","typhoon-fill","typhoon-line","u-disk-fill","u-disk-line","ubuntu-fill","ubuntu-line","umbrella-fill","umbrella-line","underline","uninstall-fill","uninstall-line","unsplash-fill","unsplash-line","upload-2-fill","upload-2-line","upload-cloud-2-fill","upload-cloud-2-line","upload-cloud-fill","upload-cloud-line","upload-fill","upload-line","usb-fill","usb-line","user-2-fill","user-2-line","user-3-fill","user-3-line","user-4-fill","user-4-line","user-5-fill","user-5-line","user-6-fill","user-6-line","user-add-fill","user-add-line","user-fill","user-follow-fill","user-follow-line","user-heart-fill","user-heart-line","user-line","user-location-fill","user-location-line","user-received-2-fill","user-received-2-line","user-received-fill","user-received-line","user-search-fill","user-search-line","user-settings-fill","user-settings-line","user-shared-2-fill","user-shared-2-line","user-shared-fill","user-shared-line","user-smile-fill","user-smile-line","user-star-fill","user-star-line","user-unfollow-fill","user-unfollow-line","user-voice-fill","user-voice-line","video-add-fill","video-add-line","video-chat-fill","video-chat-line","video-download-fill","video-download-line","video-fill","video-line","video-upload-fill","video-upload-line","vidicon-2-fill","vidicon-2-line","vidicon-fill","vidicon-line","vimeo-fill","vimeo-line","vip-crown-2-fill","vip-crown-2-line","vip-crown-fill","vip-crown-line","vip-diamond-fill","vip-diamond-line","vip-fill","vip-line","virus-fill","virus-line","visa-fill","visa-line","voice-recognition-fill","voice-recognition-line","voiceprint-fill","voiceprint-line","volume-down-fill","volume-down-line","volume-mute-fill","volume-mute-line","volume-off-vibrate-fill","volume-off-vibrate-line","volume-up-fill","volume-up-line","volume-vibrate-fill","volume-vibrate-line","vuejs-fill","vuejs-line","walk-fill","walk-line","wallet-2-fill","wallet-2-line","wallet-3-fill","wallet-3-line","wallet-fill","wallet-line","water-flash-fill","water-flash-line","webcam-fill","webcam-line","wechat-2-fill","wechat-2-line","wechat-fill","wechat-line","wechat-pay-fill","wechat-pay-line","weibo-fill","weibo-line","whatsapp-fill","whatsapp-line","wheelchair-fill","wheelchair-line","wifi-fill","wifi-line","wifi-off-fill","wifi-off-line","window-2-fill","window-2-line","window-fill","window-line","windows-fill","windows-line","windy-fill","windy-line","wireless-charging-fill","wireless-charging-line","women-fill","women-line","wubi-input","xbox-fill","xbox-line","xing-fill","xing-line","youtube-fill","youtube-line","zcool-fill","zcool-line","zhihu-fill","zhihu-line","zoom-in-fill","zoom-in-line","zoom-out-fill","zoom-out-line","zzz-fill","zzz-line"];e.exports={iconList:t}},2343:function(e){const t={isObject(e){return"[object Object]"==={}.toString.call(e)},hasObject(e){return this.isObject(e)&&Object.keys(e).length>0},isFunction(e){return"[object Function]"==={}.toString.call(e)},isArray(e){return"[object Array]"==={}.toString.call(e)},hasArray(e){return this.isArray(e)&&e.length>0},isString(e){return"[object String]"==={}.toString.call(e)},isNumber(e){return"[object Number]"==={}.toString.call(e)},isValid(e){return void 0!==e&&""!==e&&null!==e||0===e||!1===e},sleep(e){return new Promise((t=>setTimeout(t,e)))},isData(e){return this.hasArray(e)||this.hasObject(e)||this.isValid(e)},$local(e,t){const r=e||"userInfo";if(!this.isValid(t)){const e=n.get(r);return e||!1}n.set(r,t)},$localRemove(e){const t=e||"userInfo";n.remove(t),r.remove(t)},copy(e){return JSON.parse(JSON.stringify(e))},$getName(e,n){let r="";return t.hasArray(e)&&(e.map((e=>{r+=e[n]+"、"})),r=r.substring(0,r.length-1)),r},delArrValue(e,t){return e.forEach(((n,r)=>{n===t&&e.splice(r,1)})),e},setEmpty(e){if(this.hasObject(e))for(const t in e)null!=e[t]&&void 0!==e[t]||(e[t]="");return e},getBody(e){for(var t in e){const n=e[t];this.isValid(n)||delete e[t]}return e}},n={set(e,n){let r=n;(t.isObject(n)||t.isArray(r))&&(r=JSON.stringify(r)),localStorage.setItem(e,r)},get(e){const n=localStorage.getItem(e);return!!t.isValid(n)&&JSON.parse(n)},output(){console.log(localStorage)},remove(e){t.hasArray(e)?e.map((e=>{localStorage.removeItem(e)})):localStorage.removeItem(e)},clear(){localStorage.clear()}},r={set(e,n){let r=n;(t.isObject(r)||t.isArray(r))&&(r=JSON.stringify(r)),sessionStorage.setItem(e,r)},get(e){const n=sessionStorage.getItem(e);return!!t.isValid(n)&&JSON.parse(n)},output(){console.log(sessionStorage)},remove(e){t.hasArray(e)?e.map((e=>{sessionStorage.removeItem(e)})):sessionStorage.removeItem(e)},clear(){sessionStorage.clear()}};e.exports={F:t,LS:n,SS:r}},3744:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},1534:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return F}});var r=n(7203);const o=e=>((0,r.pushScopeId)("data-v-695b272e"),e=e(),(0,r.popScopeId)(),e),i={class:"fx area-dropdown-wraper"},a={class:"scrollbar-item"},l=["onClick"],u=["onClick"],s=o((()=>(0,r.createElementVNode)("span",{class:"el-checkbox__inner"},null,-1))),c=[s],f={class:"el-cascader-node__label ex"},d=o((()=>(0,r.createElementVNode)("i",{class:"el-icon-arrow-right"},null,-1))),p={class:"scrollbar-item"},h=["onClick"],g=["onClick"],v=o((()=>(0,r.createElementVNode)("span",{class:"el-checkbox__inner"},null,-1))),m=[v],y={class:"el-cascader-node__label ex"},b=o((()=>(0,r.createElementVNode)("i",{class:"el-icon-arrow-right"},null,-1))),w={class:"scrollbar-item"},x=["onClick"],C=["onClick"],E=o((()=>(0,r.createElementVNode)("span",{class:"el-checkbox__inner"},null,-1))),k=[E],S={class:"el-cascader-node__label ex"},D=o((()=>(0,r.createElementVNode)("i",{class:"el-icon-arrow-right"},null,-1)));function A(e,t,n,o,s,v){const E=(0,r.resolveComponent)("el-scrollbar"),A=(0,r.resolveComponent)("el-popover");return(0,r.openBlock)(),(0,r.createBlock)(A,{ref:"popper","append-to-body":!0,"fallback-placements":["bottom-start","top-start","right","left"],"gpu-acceleration":!1,placement:"bottom-start","popper-class":"is-pure el-cascader__dropdown","popper-options":e.popperOptions,pure:"","stop-popper-mouse-event":!1,transition:"el-zoom-in-top",trigger:"click",width:e.popoverWidth,onHide:t[0]||(t[0]=t=>e.popperVisible=!1),onShow:t[1]||(t[1]=t=>e.popperVisible=!0)},{reference:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["fxmj select-wrapper",[e.popperVisible&&"select-wrapper-active"]])},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["omit plr10 ex",[!e.selectText&&"c4"]])},(0,r.toDisplayString)(e.selectText?e.selectText:"请选择"),3),(0,r.createElementVNode)("i",{key:"arrow-down",class:(0,r.normalizeClass)(["el-input__icon","el-icon-arrow-down",e.popperVisible&&"reverse-icon"])},null,2)],2)])),default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",i,[(0,r.createVNode)(E,{height:240},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("ul",a,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.areaList,((t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:n,class:(0,r.normalizeClass)(["fxmj",{"is-active-node":e.provinceIndex===n||2===t.checked}]),onClick:r=>e.handleProvice(t,n)},[(0,r.createElementVNode)("label",{class:"el-checkbox el-checkbox--medium",onClick:(0,r.withModifiers)((r=>e.handleProvice(t,n,"checked")),["stop"])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["el-checkbox__input",{"is-indeterminate":1===t.checked,"is-checked":2===t.checked}])},c,2)],8,u),(0,r.createElementVNode)("span",f,(0,r.toDisplayString)(t.name),1),d],10,l)))),128))])])),_:1}),""!==e.provinceIndex?((0,r.openBlock)(),(0,r.createBlock)(E,{key:0,height:240},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("ul",p,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.cityList,((t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:n,class:(0,r.normalizeClass)(["fxmj",{"is-active-node":e.cityIndex===n}]),onClick:r=>e.handleCity(t,n)},[(0,r.createElementVNode)("label",{class:"el-checkbox el-checkbox--medium",onClick:(0,r.withModifiers)((r=>e.handleCity(t,n,"checked")),["stop"])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["el-checkbox__input",{"is-indeterminate":1===t.checked,"is-checked":2===t.checked}])},m,2)],8,g),(0,r.createElementVNode)("span",y,(0,r.toDisplayString)(t.name),1),b],10,h)))),128))])])),_:1})):(0,r.createCommentVNode)("",!0),""!==e.cityIndex?((0,r.openBlock)(),(0,r.createBlock)(E,{key:1,height:240},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("ul",w,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.countyList,((t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:n,class:"fxmj",onClick:r=>e.handleCounty(t,n)},[(0,r.createElementVNode)("label",{class:"el-checkbox el-checkbox--medium",onClick:(0,r.withModifiers)((r=>e.handleCounty(t,n,"checked")),["stop"])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["el-checkbox__input",{"is-indeterminate":1===t.checked,"is-checked":2===t.checked}])},k,2)],8,C),(0,r.createElementVNode)("span",S,(0,r.toDisplayString)(t.name),1),D],8,x)))),128))])])),_:1})):(0,r.createCommentVNode)("",!0)])])),_:1},8,["popper-options","width"])}n(6699);var O=(0,r.defineComponent)({name:"JwtCascaderArea",props:{modelValue:{type:String,default:""},options:{type:Array,default:()=>[]}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){(0,r.watch)(e,(e=>{e.modelValue&&l(e.modelValue)}));const n=(0,r.computed)((()=>e.options)),o=(0,r.computed)((()=>{const e={};return n.value.forEach((t=>{const{id:n}=t;e[n]=t,t?.children?.length&&t.children.forEach((t=>{const{id:n}=t;e[n]=t,t?.children?.length&&t.children.forEach((t=>{const{id:n}=t;e[n]=t}))}))})),e})),i=(0,r.reactive)({popperVisible:!1,provinceIndex:"",cityIndex:"",countyIndex:"",cityList:[],countyList:[],popoverWidth:150,selectText:"",selectId:[],checkedSatus:{0:"",1:"is-indeterminate",2:"is-checked"}}),a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{const{modifiersData:t,placement:n}=e;["right","left"].includes(n)||(t.arrow.x=35)},requires:["arrow"]}]},l=e=>{const t=e.split(",").map((e=>+e));setTimeout((()=>{i.selectText||(n.value.forEach((e=>{const{id:n}=e;t.includes(n)&&(e.checked=2,e.children=u(e.children,2)),e?.children?.length&&e.children.forEach((n=>{const{id:r}=n;t.includes(r)&&(n.checked=2,n.children=u(n.children,2),e.checked=1),n?.children?.length&&n.children.forEach((r=>{const{id:o}=r;t.includes(o)&&(r.checked=2,n.checked=1,e.checked=1)}))}))})),i.selectText=t.map((e=>o.value[e].name)).join(" | "))}),0)},u=(e,t)=>{let n=e.map((e=>(e.checked=t,e?.children?.length&&(e.children=u(e?.children,t)),e)));return n},s=(e,t,n)=>{if(n){const t=e.checked?0:2;e.checked=t,e.children=u(e.children,t)}i.provinceIndex=t,i.cityList=e.children,i.countyIndex="",i.cityIndex="",i.popoverWidth=300,n&&p()},c=(e,t,r)=>{if(r){const t=e.checked?0:2;e.checked=t,e.children=u(e.children,t)}const o=i.cityList.filter((e=>2===e.checked));0===o.length?n.value[i.provinceIndex].checked=0:o.length===i.cityList.length?n.value[i.provinceIndex].checked=2:n.value[i.provinceIndex].checked=1,i.cityIndex=t,i.countyList=e.children,i.countyIndex="",i.popoverWidth=450,r&&p()},f=(e,t,r)=>{if(r){const t=e.checked?0:2;e.checked=t}const o=i.countyList.filter((e=>2===e.checked));0===o.length?i.cityList[i.cityIndex].checked=0:o.length===i.countyList.length?i.cityList[i.cityIndex].checked=2:i.cityList[i.cityIndex].checked=1;const a=i.cityList.filter((e=>2===e.checked));if(0===a.length){const e=i.cityList.filter((e=>1===e.checked));e.length?n.value[i.provinceIndex].checked=1:n.value[i.provinceIndex].checked=0}else a.length===i.cityList.length?n.value[i.provinceIndex].checked=2:n.value[i.provinceIndex].checked=1;i.countyIndex=t,r&&p()},d=(e=n.value)=>{const t=e.length;for(let n=0;n<t;n++){const t=e[n];2===t.checked?i.selectId.push(t.id):1===t.checked&&t?.children?.length&&d(t?.children)}},p=()=>{i.selectId=[],d(),i.selectText=i.selectId.map((e=>o.value[e].name)).join(" | "),t("update:modelValue",i.selectId),t("onChange",i.selectId)};return{...(0,r.toRefs)(i),areaList:n,areaListObj:o,popperOptions:a,initData:l,handleProvice:s,handleCity:c,handleCounty:f,setItemChildrenCheck:u,handleSelectResult:d,handleSelectText:p}}}),_=n(3744);const B=(0,_.Z)(O,[["render",A],["__scopeId","data-v-695b272e"]]);var F=B},9838:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return kse}});var r=n(7203);const o={class:"base-wang-editor-wrapper",style:{border:"1px solid #ccc"}};function i(e,t,n,i,a,l){const u=(0,r.resolveComponent)("Toolbar"),s=(0,r.resolveComponent)("Editor");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(u,{"default-config":e.toolbarConfig,editor:e.editorRef,mode:e.mode,style:{"border-bottom":"1px solid #ccc"}},null,8,["default-config","editor","mode"]),(0,r.createVNode)(s,{"default-config":e.editorConfig,"default-html":e.defaultHtml,mode:e.mode,style:{height:"500px","overflow-y":"hidden"},onCustomAlert:e.customAlert,onOnBlur:e.handleBlur,onOnChange:e.handleChange,onOnCreated:e.handleCreated,onOnDestroyed:e.handleDestroyed,onOnFocus:e.handleFocus},null,8,["default-config","default-html","mode","onCustomAlert","onOnBlur","onOnChange","onOnCreated","onOnDestroyed","onOnFocus"])])}var a;if("undefined"===typeof n.g){if("ActiveXObject"in window){var l="抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器";l+="\n Sorry, wangEditor V5+ versions do not support IE browser.",console.error(l)}u(),s()}else n.g&&(null===(a=n.g.navigator)||void 0===a?void 0:a.userAgent.match("QQBrowser"))&&(u(),s());function u(){"undefined"===typeof globalThis&&(window.globalThis=window)}function s(){"undefined"===typeof AggregateError&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}if("object"===typeof n.g){var c=Object.getOwnPropertyDescriptor(n.g,"window");n.g.window&&!c.set||(n.g.window=n.g,n.g.requestAnimationFrame=function(){},n.g.navigator={userAgent:""},n.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},n.g.btoa=function(){},n.g.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=n.g.document&&null==n.g.document.getElementsByTagName&&(n.g.document.getElementsByTagName=function(){return[]})}
|
|
10
|
+
/*!
|
|
11
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
14
|
+
* Released under the MIT License.
|
|
15
|
+
*/function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){var t,n;return!1!==f(e)&&(t=e.constructor,void 0===t||(n=t.prototype,!1!==f(n)&&!1!==n.hasOwnProperty("isPrototypeOf")))}function p(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=ne[e],i=o?"function"==typeof o?o.apply(null,n):o:"unknown error nr: "+e;throw Error("[Immer] "+i)}function h(e){return!!e&&!!e[te]}function g(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===re}(e)||Array.isArray(e)||!!e[ee]||!!e.constructor[ee]||C(e)||E(e))}function v(e,t,n){void 0===n&&(n=!1),0===m(e)?(n?Object.keys:oe)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function m(e){var t=e[te];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:C(e)?2:E(e)?3:0}function y(e,t){return 2===m(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function b(e,t){return 2===m(e)?e.get(t):e[t]}function w(e,t,n){var r=m(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function x(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function C(e){return Z&&e instanceof Map}function E(e){return J&&e instanceof Set}function k(e){return e.o||e.t}function S(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ie(e);delete t[te];for(var n=oe(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function D(e,t){return void 0===t&&(t=!1),O(e)||h(e)||!g(e)||(m(e)>1&&(e.set=e.add=e.clear=e.delete=A),Object.freeze(e),t&&v(e,(function(e,t){return D(t,!0)}),!0)),e}function A(){p(2)}function O(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function _(e){var t=ae[e];return t||p(18,e),t}function B(){return G||p(0),G}function F(e,t){t&&(_("Patches"),e.u=[],e.s=[],e.v=t)}function j(e){P(e),e.p.forEach(N),e.p=null}function P(e){e===G&&(G=e.l)}function T(e){return G={p:[],l:G,h:e,m:!0,_:0}}function N(e){var t=e[te];0===t.i||1===t.i?t.j():t.O=!0}function I(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||_("ES5").S(t,e,r),r?(n[te].P&&(j(t),p(4)),g(e)&&(e=M(t,e),t.l||R(t,e)),t.u&&_("Patches").M(n[te],e,t.u,t.s)):e=M(t,n,[]),j(t),t.u&&t.v(t.u,t.s),e!==Q?e:void 0}function M(e,t,n){if(O(t))return t;var r=t[te];if(!r)return v(t,(function(o,i){return L(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return R(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=S(r.k):r.o;v(3===r.i?new Set(o):o,(function(t,i){return L(e,r,o,t,i,n)})),R(e,o,!1),n&&e.u&&_("Patches").R(r,n,e.u,e.s)}return r.o}function L(e,t,n,r,o,i){if(o===n&&p(5),h(o)){var a=M(e,o,i&&t&&3!==t.i&&!y(t.D,r)?i.concat(r):void 0);if(w(n,r,a),!h(a))return;e.m=!1}if(g(o)&&!O(o)){if(!e.h.F&&e._<1)return;M(e,o),t&&t.A.l||R(e,o)}}function R(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&D(t,n)}function z(e,t){var n=e[te];return(n?k(n):e)[t]}function V(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function $(e){e.P||(e.P=!0,e.l&&$(e.l))}function U(e){e.o||(e.o=S(e.t))}function H(e,t,n){var r=C(t)?_("MapSet").N(t,n):E(t)?_("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:B(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=le;n&&(o=[r],i=ue);var a=Proxy.revocable(o,i),l=a.revoke,u=a.proxy;return r.k=u,r.j=l,u}(t,n):_("ES5").J(t,n);return(n?n.A:B()).p.push(r),r}function W(e){return h(e)||p(22,e),function e(t){if(!g(t))return t;var n,r=t[te],o=m(t);if(r){if(!r.P&&(r.i<4||!_("ES5").K(r)))return r.t;r.I=!0,n=q(t,o),r.I=!1}else n=q(t,o);return v(n,(function(t,o){r&&b(r.t,t)===o||w(n,t,e(o))})),3===o?new Set(n):n}(e)}function q(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return S(e)}var K,G,Y="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Z="undefined"!=typeof Map,J="undefined"!=typeof Set,X="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Q=Y?Symbol.for("immer-nothing"):((K={})["immer-nothing"]=!0,K),ee=Y?Symbol.for("immer-draftable"):"__$immer_draftable",te=Y?Symbol.for("immer-state"):"__$immer_state",ne={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},re=""+Object.prototype.constructor,oe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ie=Object.getOwnPropertyDescriptors||function(e){var t={};return oe(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},ae={},le={get:function(e,t){if(t===te)return e;var n=k(e);if(!y(n,t))return function(e,t,n){var r,o=V(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!g(r)?r:r===z(e.t,t)?(U(e),e.o[t]=H(e.A.h,r,e)):r},has:function(e,t){return t in k(e)},ownKeys:function(e){return Reflect.ownKeys(k(e))},set:function(e,t,n){var r=V(k(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=z(k(e),t),i=null==o?void 0:o[te];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(x(n,o)&&(void 0!==n||y(e.t,t)))return!0;U(e),$(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==z(e.t,t)||t in e.t?(e.D[t]=!1,U(e),$(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=k(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){p(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){p(12)}},ue={};v(le,(function(e,t){ue[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ue.deleteProperty=function(e,t){return isNaN(parseInt(t))&&p(13),le.deleteProperty.call(this,e[0],t)},ue.set=function(e,t,n){return"length"!==t&&isNaN(parseInt(t))&&p(14),le.set.call(this,e[0],t,n,e[0])};var se=function(){function e(e){var t=this;this.g=X,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&p(6),void 0!==r&&"function"!=typeof r&&p(7),g(e)){var l=T(t),u=H(t,e,void 0),s=!0;try{a=n(u),s=!1}finally{s?j(l):P(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return F(l,r),I(e,l)}),(function(e){throw j(l),e})):(F(l,r),I(a,l))}if(!e||"object"!=typeof e){if((a=n(e))===Q)return;return void 0===a&&(a=e),t.F&&D(a,!0),a}p(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){g(e)||p(8),h(e)&&(e=W(e));var t=T(this),n=H(this,e,void 0);return n[te].C=!0,P(t),n},t.finishDraft=function(e,t){var n=e&&e[te];n&&n.C||p(9),n.I&&p(10);var r=n.A;return F(r,t),I(void 0,r)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!X&&p(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=_("Patches").$;return h(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),ce=new se,fe=ce.produce;ce.produceWithPatches.bind(ce),ce.setAutoFreeze.bind(ce),ce.setUseProxies.bind(ce),ce.applyPatches.bind(ce);var de=ce.createDraft.bind(ce),pe=ce.finishDraft.bind(ce);function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ge=new WeakMap,ve=new WeakMap,me=new WeakMap,ye=new WeakMap,be=new WeakMap,we=new WeakMap;function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ee=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of ut.pathRefs(e))yt.transform(n,t);for(var r of ut.pointRefs(e))Ct.transform(r,t);for(var o of ut.rangeRefs(e))At.transform(o,t);var i=new Set,a=[],l=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},u=ge.get(e)||[],s=ke(t);for(var c of u){var f=mt.transform(c,t);l(f)}for(var d of s)l(d);ge.set(e,a),Xt.transform(e,t),e.operations.push(t),ut.normalize(e),"set_selection"===t.type&&(e.marks=null),ve.get(e)||(ve.set(e,!0),Promise.resolve().then((()=>{ve.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Dt.isExpanded(r))Xt.setNodes(e,{[t]:n},{match:Pt.isText,split:!0});else{var o=Ce(Ce({},ut.marks(e)||{}),{},{[t]:n});e.marks=o,ve.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Dt.isCollapsed(n)&&Xt.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Dt.isCollapsed(n)&&Xt.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Dt.isExpanded(n)&&Xt.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?pt.fragment(e,t):[]},insertBreak:()=>{Xt.splitNodes(e,{always:!0})},insertFragment:t=>{Xt.insertFragment(e,t)},insertNode:t=>{Xt.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Ce({text:t},r);Xt.insertNodes(e,o)}else Xt.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Pt.isText(n))if(nt.isElement(n)&&0===n.children.length){var o={text:""};Xt.insertNodes(e,o,{at:r.concat(0),voids:!0})}else for(var i=!ut.isEditor(n)&&(nt.isElement(n)&&(e.isInline(n)||0===n.children.length||Pt.isText(n.children[0])||e.isInline(n.children[0]))),a=0,l=0;l<n.children.length;l++,a++){var u=pt.get(e,r);if(!Pt.isText(u)){var s=n.children[l],c=u.children[a-1],f=l===n.children.length-1,d=Pt.isText(s)||nt.isElement(s)&&e.isInline(s);if(d!==i)Xt.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(nt.isElement(s)){if(e.isInline(s))if(null!=c&&Pt.isText(c)){if(f){var p={text:""};Xt.insertNodes(e,p,{at:r.concat(a+1),voids:!0}),a++}}else{var h={text:""};Xt.insertNodes(e,h,{at:r.concat(a),voids:!0}),a++}}else null!=c&&Pt.isText(c)&&(Pt.equals(s,c,{loose:!0})?(Xt.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):""===c.text?(Xt.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):""===s.text&&(Xt.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Dt.isExpanded(n))Xt.unsetNodes(e,t,{match:Pt.isText,split:!0});else{var r=Ce({},ut.marks(e)||{});delete r[t],e.marks=r,ve.get(e)||e.onChange()}}};return e},ke=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return mt.levels(t);case"insert_node":var{node:n,path:r}=e,o=mt.levels(r),i=Pt.isText(n)?[]:Array.from(pt.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e,l=mt.ancestors(a),u=mt.previous(a);return[...l,u];case"move_node":var{path:s,newPath:c}=e;if(mt.equals(s,c))return[];var f=[],d=[];for(var p of mt.ancestors(s)){var h=mt.transform(p,e);f.push(h)}for(var g of mt.ancestors(c)){var v=mt.transform(g,e);d.push(v)}var m=d[d.length-1],y=c[c.length-1],b=m.concat(y);return[...f,...d,b];case"remove_node":var{path:w}=e,x=mt.ancestors(w);return[...x];case"split_node":var{path:C}=e,E=mt.levels(C),k=mt.next(C);return[...E,k];default:return[]}};function Se(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function De(e,t){if(null==e)return{};var n,r,o=Se(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ae,Oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Ne(e):e,o=Ae.None,i=Ae.None,a=0,l=null,u=null;for(var s of r){var c=s.codePointAt(0);if(!c)break;var f=Ke(s,c);if([o,i]=n?[i,f]:[f,o],Ge(o,Ae.ZWJ)&&Ge(i,Ae.ExtPict)&&(l=Xe(n?e.substring(0,a):e.substring(0,e.length-a)),!l))break;if(Ge(o,Ae.RI)&&Ge(i,Ae.RI)&&(u=null!==u?!u:!!n||et(e.substring(0,e.length-a)),!u))break;if(o!==Ae.None&&i!==Ae.None&&Ze(o,i))break;a+=s.length}return a||1},_e=/\s/,Be=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Fe=/['\u2018\u2019]/,je=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;while(e.length>0){var o=Oe(e,t),[i,a]=Pe(e,o,t);if(Te(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n},Pe=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Te=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(_e.test(t))return!1;if(Fe.test(t)){var o=Oe(n,r),[i,a]=Pe(n,o,r);if(e(i,a,r))return!0}return!Be.test(t)},Ne=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Me(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(Ie(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},Ie=e=>e>=55296&&e<=56319,Me=e=>e>=56320&&e<=57343;(function(e){e[e["None"]=0]="None",e[e["Extend"]=1]="Extend",e[e["ZWJ"]=2]="ZWJ",e[e["RI"]=4]="RI",e[e["Prepend"]=8]="Prepend",e[e["SpacingMark"]=16]="SpacingMark",e[e["L"]=32]="L",e[e["V"]=64]="V",e[e["T"]=128]="T",e[e["LV"]=256]="LV",e[e["LVT"]=512]="LVT",e[e["ExtPict"]=1024]="ExtPict",e[e["Any"]=2048]="Any"})(Ae||(Ae={}));var Le=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Re=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,ze=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Ve=/^[\u1100-\u115F\uA960-\uA97C]$/,$e=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Ue=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,He=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,We=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,qe=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Ke=(e,t)=>{var n=Ae.Any;return-1!==e.search(Le)&&(n|=Ae.Extend),8205===t&&(n|=Ae.ZWJ),t>=127462&&t<=127487&&(n|=Ae.RI),-1!==e.search(Re)&&(n|=Ae.Prepend),-1!==e.search(ze)&&(n|=Ae.SpacingMark),-1!==e.search(Ve)&&(n|=Ae.L),-1!==e.search($e)&&(n|=Ae.V),-1!==e.search(Ue)&&(n|=Ae.T),-1!==e.search(He)&&(n|=Ae.LV),-1!==e.search(We)&&(n|=Ae.LVT),-1!==e.search(qe)&&(n|=Ae.ExtPict),n};function Ge(e,t){return 0!==(e&t)}var Ye=[[Ae.L,Ae.L|Ae.V|Ae.LV|Ae.LVT],[Ae.LV|Ae.V,Ae.V|Ae.T],[Ae.LVT|Ae.T,Ae.T],[Ae.Any,Ae.Extend|Ae.ZWJ],[Ae.Any,Ae.SpacingMark],[Ae.Prepend,Ae.Any],[Ae.ZWJ,Ae.ExtPict],[Ae.RI,Ae.RI]];function Ze(e,t){return-1===Ye.findIndex((n=>Ge(e,n[0])&&Ge(t,n[1])))}var Je=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Xe=e=>-1!==e.search(Je),Qe=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,et=e=>{var t=e.match(Qe);if(null===t)return!1;var n=t[0].length/2;return n%2===1},tt=e=>d(e)&&pt.isNodeList(e.children)&&!ut.isEditor(e),nt={isAncestor(e){return d(e)&&pt.isNodeList(e.children)},isElement:tt,isElementList(e){return Array.isArray(e)&&e.every((e=>nt.isElement(e)))},isElementProps(e){return void 0!==e.children},isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return tt(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},rt=["text"],ot=["text"];function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lt=new WeakMap,ut={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=ut.path(e,o),l="lowest"===r;for(var[u,s]of ut.levels(e,{at:a,voids:n,match:i,reverse:l}))if(!Pt.isText(u)&&!mt.equals(a,s))return[u,s]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=ut.point(e,t,{edge:"end"}),i=ut.end(e,[]),a={anchor:o,focus:i},{distance:l=1}=r,u=0;for(var s of ut.positions(e,at(at({},r),{},{at:a}))){if(u>l)break;0!==u&&(n=s),u++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=ut.start(e,[]),i=ut.point(e,t,{edge:"start"}),a={anchor:o,focus:i},{distance:l=1}=r,u=0;for(var s of ut.positions(e,at(at({},r),{},{at:a,reverse:!0}))){if(u>l)break;0!==u&&(n=s),u++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges(e,t){return[ut.start(e,t),ut.end(e,t)]},end(e,t){return ut.point(e,t,{edge:"end"})},first(e,t){var n=ut.path(e,t,{edge:"start"});return ut.node(e,n)},fragment(e,t){var n=ut.range(e,t),r=pt.fragment(e,n);return r},hasBlocks(e,t){return t.children.some((t=>ut.isBlock(e,t)))},hasInlines(e,t){return t.children.some((t=>Pt.isText(t)||ut.isInline(e,t)))},hasTexts(e,t){return t.children.every((e=>Pt.isText(e)))},insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock(e,t){return nt.isElement(t)&&!e.isInline(t)},isEditor(e){if(!d(e))return!1;var t=lt.get(e);if(void 0!==t)return t;var n="function"===typeof e.addMark&&"function"===typeof e.apply&&"function"===typeof e.deleteBackward&&"function"===typeof e.deleteForward&&"function"===typeof e.deleteFragment&&"function"===typeof e.insertBreak&&"function"===typeof e.insertFragment&&"function"===typeof e.insertNode&&"function"===typeof e.insertText&&"function"===typeof e.isInline&&"function"===typeof e.isVoid&&"function"===typeof e.normalizeNode&&"function"===typeof e.onChange&&"function"===typeof e.removeMark&&(null===e.marks||d(e.marks))&&(null===e.selection||Dt.isRange(e.selection))&&pt.isNodeList(e.children)&&vt.isOperationList(e.operations);return lt.set(e,n),n},isEnd(e,t,n){var r=ut.end(e,n);return xt.equals(t,r)},isEdge(e,t,n){return ut.isStart(e,t,n)||ut.isEnd(e,t,n)},isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Pt.isText(r)&&""===r.text&&!e.isVoid(t)},isInline(e,t){return nt.isElement(t)&&e.isInline(t)},isNormalizing(e){var t=me.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=ut.start(e,n);return xt.equals(t,r)},isVoid(e,t){return nt.isElement(t)&&e.isVoid(t)},last(e,t){var n=ut.path(e,t,{edge:"end"});return ut.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ut.path(e,t,n),o=pt.leaf(e,r);return[o,r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],l=ut.path(e,n);for(var[u,s]of pt.levels(e,l))if(i(u,s)&&(a.push([u,s]),!o&&ut.isVoid(e,u)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Dt.isExpanded(n)){var[r]=ut.nodes(e,{match:Pt.isText});if(r){var[o]=r,i=De(o,rt);return i}return{}}var{anchor:a}=n,{path:l}=a,[u]=ut.leaf(e,l);if(0===a.offset){var s=ut.previous(e,{at:l,match:Pt.isText}),c=ut.above(e,{match:t=>ut.isBlock(e,t)});if(s&&c){var[f,d]=s,[,p]=c;mt.isAncestor(p,d)&&(u=f)}}var h=De(u,ot);return h},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=ut.after(e,i,{voids:r});if(a){var[,l]=ut.last(e,[]),u=[a.path,l];if(mt.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(mt.isPath(i)){var[s]=ut.parent(e,i);o=e=>s.children.includes(e)}else o=()=>!0;var[c]=ut.nodes(e,{at:u,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ut.path(e,t,n),o=pt.get(e,r);return[o,r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:l}=t;if(l||(l=()=>!0),n){var u,s;if(st.isSpan(n))u=n[0],s=n[1];else{var c=ut.path(e,n,{edge:"start"}),f=ut.path(e,n,{edge:"end"});u=i?f:c,s=i?c:f}var d,p=pt.nodes(e,{reverse:i,from:u,to:s,pass:t=>{var[n]=t;return!a&&ut.isVoid(e,n)}}),h=[];for(var[g,v]of p){var m=d&&0===mt.compare(v,d[1]);if("highest"!==r||!m)if(l(g,v))if("lowest"===r&&m)d=[g,v];else{var y="lowest"===r?d:[g,v];y&&(o?h.push(y):yield y),d=[g,v]}else if(o&&!m&&Pt.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>ge.get(e)||[];if(ut.isNormalizing(e)){if(n){var o=Array.from(pt.nodes(e),(e=>{var[,t]=e;return t}));ge.set(e,o)}0!==r(e).length&&ut.withoutNormalizing(e,(()=>{for(var t of r(e))if(pt.has(e,t)){var n=ut.node(e,t),[o,i]=n;nt.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}var a=42*r(e).length,l=0;while(0!==r(e).length){if(l>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var u=r(e).pop();if(pt.has(e,u)){var s=ut.node(e,u);e.normalizeNode(s)}l++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ut.path(e,t,n),o=mt.parent(r),i=ut.node(e,o);return i},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(mt.isPath(t))if("start"===o){var[,i]=pt.first(e,t);t=i}else if("end"===o){var[,a]=pt.last(e,t);t=a}return Dt.isRange(t)&&(t="start"===o?Dt.start(t):"end"===o?Dt.end(t):mt.common(t.anchor.path,t.focus.path)),xt.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath(e,t){return pt.has(e,t)},pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o,n=ut.pathRefs(e);return n.delete(o),o.current=null,t}},i=ut.pathRefs(e);return i.add(o),o},pathRefs(e){var t=ye.get(e);return t||(t=new Set,ye.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(mt.isPath(t)){var o;if("end"===r){var[,i]=pt.last(e,t);o=i}else{var[,a]=pt.first(e,t);o=a}var l=pt.get(e,o);if(!Pt.isText(l))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?l.text.length:0}}if(Dt.isRange(t)){var[u,s]=Dt.edges(t);return"start"===r?u:s}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o,n=ut.pointRefs(e);return n.delete(o),o.current=null,t}},i=ut.pointRefs(e);return i.add(o),o},pointRefs(e){var t=be.get(e);return t||(t=new Set,be.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=ut.range(e,n),[l,u]=Dt.edges(a),s=o?u:l,c=!1,f="",d=0,p=0,h=0;for(var[g,v]of ut.nodes(e,{at:n,reverse:o,voids:i})){if(nt.isElement(g)){if(!i&&e.isVoid(g)){yield ut.start(e,v);continue}if(e.isInline(g))continue;if(ut.hasInlines(e,g)){var m=mt.isAncestor(v,u.path)?u:ut.end(e,v),y=mt.isAncestor(v,l.path)?l:ut.start(e,v);f=ut.string(e,{anchor:y,focus:m},{voids:i}),c=!0}}if(Pt.isText(g)){var b=mt.equals(v,s.path);b?(p=o?s.offset:g.text.length-s.offset,h=s.offset):(p=g.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:h},c=!1);while(1){if(0===d){if(""===f)break;d=w(f,r,o),f=Pe(f,d,o)[1]}if(h=o?h-d:h+d,p-=d,p<0){d=-p;break}d=0,yield{path:v,offset:h}}}}}function w(e,t,n){return"character"===t?Oe(e,n):"word"===t?je(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=ut.before(e,i,{voids:r});if(a){var[,l]=ut.first(e,[]),u=[a.path,l];if(mt.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(mt.isPath(i)){var[s]=ut.parent(e,i);o=e=>s.children.includes(e)}else o=()=>!0;var[c]=ut.nodes(e,{reverse:!0,at:u,match:o,mode:n,voids:r});return c}}},range(e,t,n){if(Dt.isRange(t)&&!n)return t;var r=ut.start(e,t),o=ut.end(e,n||t);return{anchor:r,focus:o}},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o,n=ut.rangeRefs(e);return n.delete(o),o.current=null,t}},i=ut.rangeRefs(e);return i.add(o),o},rangeRefs(e){var t=we.get(e);return t||(t=new Set,we.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){me.set(e,t)},start(e,t){return ut.point(e,t,{edge:"start"})},string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=ut.range(e,t),[i,a]=Dt.edges(o),l="";for(var[u,s]of ut.nodes(e,{at:o,match:Pt.isText,voids:r})){var c=u.text;mt.equals(s,a.path)&&(c=c.slice(0,a.offset)),mt.equals(s,i.path)&&(c=c.slice(i.offset)),l+=c}return l},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Dt.edges(t);if(0!==o.offset||0!==i.offset||Dt.isCollapsed(t))return t;var a=ut.above(e,{at:i,match:t=>ut.isBlock(e,t)}),l=a?a[1]:[],u=ut.start(e,[]),s={anchor:u,focus:i},c=!0;for(var[f,d]of ut.nodes(e,{at:s,match:Pt.isText,reverse:!0,voids:r}))if(c)c=!1;else if(""!==f.text||mt.isBefore(d,l)){i={path:d,offset:f.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ut.above(e,at(at({},t),{},{match:t=>ut.isVoid(e,t)}))},withoutNormalizing(e,t){var n=ut.isNormalizing(e);ut.setNormalizing(e,!1);try{t()}finally{ut.setNormalizing(e,n)}ut.normalize(e)}},st={isSpan(e){return Array.isArray(e)&&2===e.length&&e.every(mt.isPath)}},ct=["children"],ft=["text"],dt=new WeakMap,pt={ancestor(e,t){var n=pt.get(e,t);if(Pt.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of mt.ancestors(t,n)){var o=pt.ancestor(e,r),i=[o,r];yield i}},child(e,t){if(Pt.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=pt.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;while(r?a>=0:a<i.length){var l=pt.child(o,a),u=t.concat(a);yield[l,u],a=r?a-1:a+1}},common(e,t,n){var r=mt.common(t,n),o=pt.get(e,r);return[o,r]},descendant(e,t){var n=pt.get(e,t);if(ut.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of pt.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of pt.nodes(e,t))nt.isElement(n)&&(yield[n,r])},extractProps(e){if(nt.isAncestor(e)){var t=De(e,ct);return t}t=De(e,ft);return t},first(e,t){var n=t.slice(),r=pt.get(e,n);while(r){if(Pt.isText(r)||0===r.children.length)break;r=r.children[0],n.push(0)}return[r,n]},fragment(e,t){if(Pt.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=fe({children:e.children},(e=>{var[n,r]=Dt.edges(t),o=pt.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Dt.includes(t,n)}});for(var[,i]of o){if(!Dt.includes(t,i)){var a=pt.parent(e,i),l=i[i.length-1];a.children.splice(l,1)}if(mt.equals(i,r.path)){var u=pt.leaf(e,i);u.text=u.text.slice(0,r.offset)}if(mt.equals(i,n.path)){var s=pt.leaf(e,i);s.text=s.text.slice(n.offset)}}ut.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Pt.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Pt.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return Pt.isText(e)||nt.isElement(e)||ut.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=dt.get(e);if(void 0!==t)return t;var n=e.every((e=>pt.isNode(e)));return dt.set(e,n),n},last(e,t){var n=t.slice(),r=pt.get(e,n);while(r){if(Pt.isText(r)||0===r.children.length)break;var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=pt.get(e,t);if(!Pt.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of mt.levels(t,n)){var o=pt.get(e,r);yield[o,r]}},matches(e,t){return nt.isElement(e)&&nt.isElementProps(t)&&nt.matches(e,t)||Pt.isText(e)&&Pt.isTextProps(t)&&Pt.matches(e,t)},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,l=[],u=e;while(1){if(i&&(r?mt.isBefore(l,i):mt.isAfter(l,i)))break;if(a.has(u)||(yield[u,l]),a.has(u)||Pt.isText(u)||0===u.children.length||null!=n&&!1!==n([u,l])){if(0===l.length)break;if(!r){var s=mt.next(l);if(pt.has(e,s)){l=s,u=pt.get(e,l);continue}}if(r&&0!==l[l.length-1]){var c=mt.previous(l);l=c,u=pt.get(e,l)}else l=mt.parent(l),u=pt.get(e,l),a.add(u)}else{a.add(u);var f=r?u.children.length-1:0;mt.isAncestor(l,o)&&(f=o[l.length]),l=l.concat(f),u=pt.get(e,l)}}},parent(e,t){var n=mt.parent(t),r=pt.get(e,n);if(Pt.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return Pt.isText(e)?e.text:e.children.map(pt.string).join("")},*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of pt.nodes(e,t))Pt.isText(n)&&(yield[n,r])}};function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vt={isNodeOperation(e){return vt.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!d(e))return!1;switch(e.type){case"insert_node":return mt.isPath(e.path)&&pt.isNode(e.node);case"insert_text":return"number"===typeof e.offset&&"string"===typeof e.text&&mt.isPath(e.path);case"merge_node":return"number"===typeof e.position&&mt.isPath(e.path)&&d(e.properties);case"move_node":return mt.isPath(e.path)&&mt.isPath(e.newPath);case"remove_node":return mt.isPath(e.path)&&pt.isNode(e.node);case"remove_text":return"number"===typeof e.offset&&"string"===typeof e.text&&mt.isPath(e.path);case"set_node":return mt.isPath(e.path)&&d(e.properties)&&d(e.newProperties);case"set_selection":return null===e.properties&&Dt.isRange(e.newProperties)||null===e.newProperties&&Dt.isRange(e.properties)||d(e.properties)&&d(e.newProperties);case"split_node":return mt.isPath(e.path)&&"number"===typeof e.position&&d(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every((e=>vt.isOperation(e)))},isSelectionOperation(e){return vt.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return vt.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return gt(gt({},e),{},{type:"remove_node"});case"insert_text":return gt(gt({},e),{},{type:"remove_text"});case"merge_node":return gt(gt({},e),{},{type:"split_node",path:mt.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(mt.equals(t,n))return e;if(mt.isSibling(n,t))return gt(gt({},e),{},{path:t,newPath:n});var r=mt.transform(n,e),o=mt.transform(mt.next(n),e);return gt(gt({},e),{},{path:r,newPath:o});case"remove_node":return gt(gt({},e),{},{type:"insert_node"});case"remove_text":return gt(gt({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return gt(gt({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:l,newProperties:u}=e;return gt(gt({},e),{},null==l?{properties:u,newProperties:null}:null==u?{properties:null,newProperties:l}:{properties:u,newProperties:l});case"split_node":return gt(gt({},e),{},{type:"merge_node",path:mt.next(e.path)})}}},mt={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=mt.levels(e,t);return r=n?r.slice(1):r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r],i=t[r];if(o!==i)break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return mt.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return mt.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return mt.equals(r,o)&&i<a},equals(e,t){return e.length===t.length&&e.every(((e,n)=>e===t[n]))},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return 1===mt.compare(e,t)},isAncestor(e,t){return e.length<t.length&&0===mt.compare(e,t)},isBefore(e,t){return-1===mt.compare(e,t)},isChild(e,t){return e.length===t.length+1&&0===mt.compare(e,t)},isCommon(e,t){return e.length<=t.length&&0===mt.compare(e,t)},isDescendant(e,t){return e.length>t.length&&0===mt.compare(e,t)},isParent(e,t){return e.length+1===t.length&&0===mt.compare(e,t)},isPath(e){return Array.isArray(e)&&(0===e.length||"number"===typeof e[0])},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),o=e[e.length-1],i=t[t.length-1];return o!==i&&mt.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!mt.isAncestor(t,e)&&!mt.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fe(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null===e||void 0===e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(mt.equals(i,r)||mt.endsBefore(i,r)||mt.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(mt.equals(a,r)||mt.isAncestor(a,r))return null;mt.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:l,position:u}=t;mt.equals(l,r)||mt.endsBefore(l,r)?r[l.length-1]-=1:mt.isAncestor(l,r)&&(r[l.length-1]-=1,r[l.length]+=u);break;case"split_node":var{path:s,position:c}=t;if(mt.equals(s,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else mt.endsBefore(s,r)?r[s.length-1]+=1:mt.isAncestor(s,r)&&e[s.length]>=c&&(r[s.length-1]+=1,r[s.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(mt.equals(f,d))return;if(mt.isAncestor(f,r)||mt.equals(f,r)){var p=d.slice();return mt.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}mt.isSibling(f,d)&&(mt.isAncestor(d,r)||mt.equals(d,r))?mt.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:mt.endsBefore(d,r)||mt.equals(d,r)||mt.isAncestor(d,r)?(mt.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):mt.endsBefore(f,r)&&(mt.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1);break}}}))}},yt={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=mt.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xt={compare(e,t){var n=mt.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return 1===xt.compare(e,t)},isBefore(e,t){return-1===xt.compare(e,t)},equals(e,t){return e.offset===t.offset&&mt.equals(e.path,t.path)},isPoint(e){return d(e)&&"number"===typeof e.offset&&mt.isPath(e.path)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fe(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=mt.transform(o,t,n);break;case"insert_text":mt.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":mt.equals(t.path,o)&&(e.offset+=t.position),e.path=mt.transform(o,t,n);break;case"remove_text":mt.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(mt.equals(t.path,o)||mt.isAncestor(t.path,o))return null;e.path=mt.transform(o,t,n);break;case"split_node":if(mt.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=mt.transform(o,t,wt(wt({},n),{},{affinity:"forward"})))}else e.path=mt.transform(o,t,n);break}}))}},Ct={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=xt.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Et=["anchor","focus"];function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dt={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Dt.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Dt.edges(e);return t},equals(e,t){return xt.equals(e.anchor,t.anchor)&&xt.equals(e.focus,t.focus)},includes(e,t){if(Dt.isRange(t)){if(Dt.includes(e,t.anchor)||Dt.includes(e,t.focus))return!0;var[n,r]=Dt.edges(e),[o,i]=Dt.edges(t);return xt.isBefore(n,o)&&xt.isAfter(r,i)}var[a,l]=Dt.edges(e),u=!1,s=!1;return xt.isPoint(t)?(u=xt.compare(t,a)>=0,s=xt.compare(t,l)<=0):(u=mt.compare(t,a.path)>=0,s=mt.compare(t,l.path)<=0),u&&s},intersection(e,t){var n=De(e,Et),[r,o]=Dt.edges(e),[i,a]=Dt.edges(t),l=xt.isBefore(r,i)?i:r,u=xt.isBefore(o,a)?o:a;return xt.isBefore(u,l)?null:St({anchor:l,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return xt.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return xt.equals(t,n)},isExpanded(e){return!Dt.isCollapsed(e)},isForward(e){return!Dt.isBackward(e)},isRange(e){return d(e)&&xt.isPoint(e.anchor)&&xt.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Dt.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fe(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Dt.isCollapsed(e);Dt.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Dt.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var l=xt.transform(e.anchor,t,{affinity:r}),u=xt.transform(e.focus,t,{affinity:o});if(!l||!u)return null;e.anchor=l,e.focus=u}))}},At={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Dt.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Ot=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(d(r)&&d(o)){if(!Ot(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},_t=["text"],Bt=["anchor","focus"];function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pt={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){var t=De(e,_t);return t}return Ot(r?o(e):e,r?o(t):t)},isText(e){return d(e)&&"string"===typeof e.text},isTextList(e){return Array.isArray(e)&&e.every((e=>Pt.isText(e)))},isTextProps(e){return void 0!==e.text},matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[jt({},e)];for(var r of t){var o=De(r,Bt),[i,a]=Dt.edges(r),l=[],u=0;for(var s of n){var{length:c}=s.text,f=u;if(u+=c,i.offset<=f&&a.offset>=u)Object.assign(s,o),l.push(s);else if(i.offset!==a.offset&&(i.offset===u||a.offset===f)||i.offset>u||a.offset<f||a.offset===f&&0!==f)l.push(s);else{var d=s,p=void 0,h=void 0;if(a.offset<u){var g=a.offset-f;h=jt(jt({},d),{},{text:d.text.slice(g)}),d=jt(jt({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=jt(jt({},d),{},{text:d.text.slice(0,v)}),d=jt(jt({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&l.push(p),l.push(d),h&&l.push(h)}}n=l}return n}};function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var It=(e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=pt.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[l,u]of Dt.points(t))t[u]=xt.transform(l,n);break;case"insert_text":var{path:s,offset:c,text:f}=n;if(0===f.length)break;var d=pt.leaf(e,s),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of Dt.points(t))t[v]=xt.transform(g,n);break;case"merge_node":var{path:m}=n,y=pt.get(e,m),b=mt.previous(m),w=pt.get(e,b),x=pt.parent(e,m),C=m[m.length-1];if(Pt.isText(y)&&Pt.isText(w))w.text+=y.text;else{if(Pt.isText(y)||Pt.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(m,"] to nodes of different interfaces: ").concat(y," ").concat(w));w.children.push(...y.children)}if(x.children.splice(C,1),t)for(var[E,k]of Dt.points(t))t[k]=xt.transform(E,n);break;case"move_node":var{path:S,newPath:D}=n;if(mt.isAncestor(S,D))throw new Error("Cannot move a path [".concat(S,"] to new path [").concat(D,"] because the destination is inside itself."));var A=pt.get(e,S),O=pt.parent(e,S),_=S[S.length-1];O.children.splice(_,1);var B=mt.transform(S,n),F=pt.get(e,mt.parent(B)),j=B[B.length-1];if(F.children.splice(j,0,A),t)for(var[P,T]of Dt.points(t))t[T]=xt.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1],M=pt.parent(e,N);if(M.children.splice(I,1),t)for(var[L,R]of Dt.points(t)){var z=xt.transform(L,n);if(null!=t&&null!=z)t[R]=z;else{var V=void 0,$=void 0;for(var[U,H]of pt.texts(e)){if(-1!==mt.compare(H,N)){$=[U,H];break}V=[U,H]}var W=!1;V&&$&&(W=mt.equals($[1],N)?!mt.hasPrevious($[1]):mt.common(V[1],N).length<mt.common($[1],N).length),V&&!W?(L.path=V[1],L.offset=V[0].text.length):$?(L.path=$[1],L.offset=0):t=null}}break;case"remove_text":var{path:q,offset:K,text:G}=n;if(0===G.length)break;var Y=pt.leaf(e,q),Z=Y.text.slice(0,K),J=Y.text.slice(K+G.length);if(Y.text=Z+J,t)for(var[X,Q]of Dt.points(t))t[Q]=xt.transform(X,n);break;case"set_node":var{path:ee,properties:te,newProperties:ne}=n;if(0===ee.length)throw new Error("Cannot set properties on the root node!");var re=pt.get(e,ee);for(var oe in ne){if("children"===oe||"text"===oe)throw new Error('Cannot set the "'.concat(oe,'" property of nodes!'));var ie=ne[oe];null==ie?delete re[oe]:re[oe]=ie}for(var ae in te)ne.hasOwnProperty(ae)||delete re[ae];break;case"set_selection":var{newProperties:le}=n;if(null==le)t=le;else{if(null==t){if(!Dt.isRange(le))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(le)," when there is no current selection."));t=Nt({},le)}for(var ue in le){var se=le[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:ce,position:fe,properties:de}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var pe,he=pt.get(e,ce),ge=pt.parent(e,ce),ve=ce[ce.length-1];if(Pt.isText(he)){var me=he.text.slice(0,fe),ye=he.text.slice(fe);he.text=me,pe=Nt(Nt({},de),{},{text:ye})}else{var be=he.children.slice(0,fe),we=he.children.slice(fe);he.children=be,pe=Nt(Nt({},de),{},{children:we})}if(ge.children.splice(ve+1,0,pe),t)for(var[xe,Ce]of Dt.points(t))t[Ce]=xt.transform(xe,n);break}return t},Mt={transform(e,t){e.children=de(e.children);var n=e.selection&&de(e.selection);try{n=It(e,n,t)}finally{e.children=pe(e.children),e.selection=n?h(n)?pe(n):n:null}}},Lt=["text"],Rt=["children"];function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $t={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ut.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:l,select:u}=n;if(pt.isNode(t)&&(t=[t]),0!==t.length){var[s]=t;if(a||(a=e.selection?e.selection:e.children.length>0?ut.end(e,[]):[0],u=!0),null==u&&(u=!1),Dt.isRange(a))if(r||(a=ut.unhangRange(e,a)),Dt.isCollapsed(a))a=a.anchor;else{var[,c]=Dt.edges(a),f=ut.pointRef(e,c);Xt.delete(e,{at:a}),a=f.unref()}if(xt.isPoint(a)){null==l&&(l=Pt.isText(s)?e=>Pt.isText(e):e.isInline(s)?t=>Pt.isText(t)||ut.isInline(e,t):t=>ut.isBlock(e,t));var[d]=ut.nodes(e,{at:a.path,match:l,mode:i,voids:o});if(!d)return;var[,p]=d,h=ut.pathRef(e,p),g=ut.isEnd(e,a,p);Xt.splitNodes(e,{at:a,match:l,mode:i,voids:o});var v=h.unref();a=g?mt.next(v):v}var m=mt.parent(a),y=a[a.length-1];if(o||!ut.void(e,{at:m})){for(var b of t){var w=m.concat(y);y++,e.apply({type:"insert_node",path:w,node:b}),a=mt.next(a)}if(a=mt.previous(a),u){var x=ut.end(e,a);x&&Xt.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ut.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=mt.isPath(n)?Wt(e,n):t=>ut.isBlock(e,t)),n){var a=ut.nodes(e,{at:n,match:i,mode:r,voids:o}),l=Array.from(a,(t=>{var[,n]=t;return ut.pathRef(e,n)}));for(var u of l){var s=u.unref();if(s.length<2)throw new Error("Cannot lift node at a path [".concat(s,"] because it has a depth of less than `2`."));var c=ut.node(e,mt.parent(s)),[f,d]=c,p=s[s.length-1],{length:h}=f.children;if(1===h){var g=mt.next(d);Xt.moveNodes(e,{at:s,to:g,voids:o}),Xt.removeNodes(e,{at:d,voids:o})}else if(0===p)Xt.moveNodes(e,{at:s,to:d,voids:o});else if(p===h-1){var v=mt.next(d);Xt.moveNodes(e,{at:s,to:v,voids:o})}else{var m=mt.next(s),y=mt.next(d);Xt.splitNodes(e,{at:m,voids:o}),Xt.moveNodes(e,{at:s,to:y,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ut.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(mt.isPath(r)){var[l]=ut.parent(e,r);n=e=>l.children.includes(e)}else n=t=>ut.isBlock(e,t);if(!o&&Dt.isRange(r)&&(r=ut.unhangRange(e,r)),Dt.isRange(r))if(Dt.isCollapsed(r))r=r.anchor;else{var[,u]=Dt.edges(r),s=ut.pointRef(e,u);Xt.delete(e,{at:r}),r=s.unref(),null==t.at&&Xt.select(e,r)}var[c]=ut.nodes(e,{at:r,match:n,voids:i,mode:a}),f=ut.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,m,y=mt.next(g),b=mt.common(p,g),w=mt.isSibling(p,g),x=Array.from(ut.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),C=ut.above(e,{at:p,mode:"highest",match:t=>x.includes(t)&&Ut(e,t)}),E=C&&ut.pathRef(e,C[1]);if(Pt.isText(d)&&Pt.isText(h)){var k=De(d,Lt);m=h.text.length,v=k}else{if(!nt.isElement(d)||!nt.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));k=De(d,Rt);m=h.children.length,v=k}w||Xt.moveNodes(e,{at:p,to:y,voids:i}),E&&Xt.removeNodes(e,{at:E.current,voids:i}),nt.isElement(h)&&ut.isEmpty(e,h)||Pt.isText(h)&&""===h.text&&0!==g[g.length-1]?Xt.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:y,position:m,properties:v}),E&&E.unref()}}}}))},moveNodes(e,t){ut.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=mt.isPath(r)?Wt(e,r):t=>ut.isBlock(e,t));var l=ut.pathRef(e,n),u=ut.nodes(e,{at:r,match:a,mode:o,voids:i}),s=Array.from(u,(t=>{var[,n]=t;return ut.pathRef(e,n)}));for(var c of s){var f=c.unref(),d=l.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),l.current&&mt.isSibling(d,f)&&mt.isAfter(d,f)&&(l.current=mt.next(l.current))}l.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ut.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=mt.isPath(i)?Wt(e,i):t=>ut.isBlock(e,t)),!n&&Dt.isRange(i)&&(i=ut.unhangRange(e,i));var l=ut.nodes(e,{at:i,match:a,mode:o,voids:r}),u=Array.from(l,(t=>{var[,n]=t;return ut.pathRef(e,n)}));for(var s of u){var c=s.unref();if(c){var[f]=ut.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ut.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:l=!1,voids:u=!1}=n;if(o){if(null==r&&(r=mt.isPath(o)?Wt(e,o):t=>ut.isBlock(e,t)),!i&&Dt.isRange(o)&&(o=ut.unhangRange(e,o)),l&&Dt.isRange(o)){if(Dt.isCollapsed(o)&&ut.leaf(e,o.anchor)[0].text.length>0)return;var s=ut.rangeRef(e,o,{affinity:"inward"}),[c,f]=Dt.edges(o),d="lowest"===a?"lowest":"highest",p=ut.isEnd(e,f,f.path);Xt.splitNodes(e,{at:f,match:r,mode:d,voids:u,always:!p});var h=ut.isStart(e,c,c.path);Xt.splitNodes(e,{at:c,match:r,mode:d,voids:u,always:!h}),o=s.unref(),null==n.at&&Xt.select(e,o)}for(var[g,v]of ut.nodes(e,{at:o,match:r,mode:a,voids:u})){var m={},y={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(m[w]=g[w]),null!=t[w]&&(y[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:m,newProperties:y})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ut.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:l=!1}=t;if(null==o&&(o=t=>ut.isBlock(e,t)),Dt.isRange(i)&&(i=Ht(e,i)),mt.isPath(i)){var u=i,s=ut.point(e,u),[c]=ut.parent(e,u);o=e=>e===c,a=s.path.length-u.length+1,i=s,l=!0}if(i){var f=ut.pointRef(e,i,{affinity:"backward"}),[d]=ut.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=ut.void(e,{at:i,mode:"highest"}),h=0;if(!r&&p){var[g,v]=p;if(nt.isElement(g)&&e.isInline(g)){var m=ut.after(e,v);if(!m){var y={text:""},b=mt.next(v);Xt.insertNodes(e,y,{at:b,voids:r}),m=ut.point(e,b)}i=m,l=!0}var w=i.path.length-v.length;a=w+1,l=!0}var x=ut.pointRef(e,i),C=i.path.length-a,[,E]=d,k=i.path.slice(0,C),S=0===a?i.offset:i.path[C]+h;for(var[D,A]of ut.levels(e,{at:k,reverse:!0,voids:r})){var O=!1;if(A.length<E.length||0===A.length||!r&&ut.isVoid(e,D))break;var _=f.current,B=ut.isEnd(e,_,A);if(l||!f||!ut.isEdge(e,_,A)){O=!0;var F=pt.extractProps(D);e.apply({type:"split_node",path:A,position:S,properties:F})}S=A[A.length-1]+(O||B?1:0)}if(null==t.at){var j=x.current||ut.end(e,[]);Xt.select(e,j)}f.unref(),x.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Xt.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ut.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=mt.isPath(i)?Wt(e,i):t=>ut.isBlock(e,t)),mt.isPath(i)&&(i=ut.range(e,i));var l=Dt.isRange(i)?ut.rangeRef(e,i):null,u=ut.nodes(e,{at:i,match:a,mode:n,voids:o}),s=Array.from(u,(t=>{var[,n]=t;return ut.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=ut.node(e,n),a=ut.range(e,n);r&&l&&(a=Dt.intersection(l.current,a)),Xt.liftNodes(e,{at:a,match:e=>nt.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of s)c(f);l&&l.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ut.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:l=e.selection}=n;if(l){if(null==a&&(a=mt.isPath(l)?Wt(e,l):e.isInline(t)?t=>ut.isInline(e,t)||Pt.isText(t):t=>ut.isBlock(e,t)),o&&Dt.isRange(l)){var[u,s]=Dt.edges(l),c=ut.rangeRef(e,l,{affinity:"inward"});Xt.splitNodes(e,{at:s,match:a,voids:i}),Xt.splitNodes(e,{at:u,match:a,voids:i}),l=c.unref(),null==n.at&&Xt.select(e,l)}var f=Array.from(ut.nodes(e,{at:l,match:e.isInline(t)?t=>ut.isBlock(e,t):e=>ut.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=Dt.isRange(l)?Dt.intersection(l,ut.range(e,d)):l;if(p){var h=Array.from(ut.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var g=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var l=mt.equals(o,a)?mt.parent(o):mt.common(o,a),u=ut.range(e,o,a),s=ut.node(e,l),[c]=s,f=l.length+1,d=mt.next(a.slice(0,f)),p=Vt(Vt({},t),{},{children:[]});Xt.insertNodes(e,p,{at:d,voids:i}),Xt.moveNodes(e,{at:u,match:e=>nt.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===g)continue}}}}}))}},Ut=(e,t)=>{if(nt.isElement(t)){var n=t;return!!ut.isVoid(e,t)||1===n.children.length&&Ut(e,n.children[0])}return!ut.isEditor(t)},Ht=(e,t)=>{if(Dt.isCollapsed(t))return t.anchor;var[,n]=Dt.edges(t),r=ut.pointRef(e,n);return Xt.delete(e,{at:t}),r.unref()},Wt=(e,t)=>{var[n]=ut.node(e,t);return e=>e===n};function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gt={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Xt.select(e,r.anchor);else if("focus"===n)Xt.select(e,r.focus);else if("start"===n){var[o]=Dt.edges(r);Xt.select(e,o)}else if("end"===n){var[,i]=Dt.edges(r);Xt.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Dt.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Dt.isBackward(n)?"anchor":"focus");var{anchor:l,focus:u}=n,s={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?ut.before(e,l,s):ut.after(e,l,s);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?ut.before(e,u,s):ut.after(e,u,s);d&&(c.focus=d)}Xt.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=ut.range(e,t),n)Xt.setSelection(e,t);else{if(!Dt.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Dt.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Dt.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,l="anchor"===o?i:a;Xt.setSelection(e,{["anchor"===o?"anchor":"focus"]:Kt(Kt({},l),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!xt.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!xt.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},Yt={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ut.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:l=!1}=t;if(a){if(Dt.isRange(a)&&Dt.isCollapsed(a)&&(a=a.anchor),xt.isPoint(a)){var u=ut.void(e,{at:a,mode:"highest"});if(!i&&u){var[,s]=u;a=s}else{var c={unit:r,distance:o},f=n?ut.before(e,a,c)||ut.start(e,[]):ut.after(e,a,c)||ut.end(e,[]);a={anchor:a,focus:f},l=!0}}if(mt.isPath(a))Xt.removeNodes(e,{at:a,voids:i});else if(!Dt.isCollapsed(a)){if(!l){var[,d]=Dt.edges(a),p=ut.end(e,[]);xt.equals(d,p)||(a=ut.unhangRange(e,a,{voids:i}))}var[h,g]=Dt.edges(a),v=ut.above(e,{match:t=>ut.isBlock(e,t),at:h,voids:i}),m=ut.above(e,{match:t=>ut.isBlock(e,t),at:g,voids:i}),y=v&&m&&!mt.equals(v[1],m[1]),b=mt.equals(h.path,g.path),w=i?null:ut.void(e,{at:h,mode:"highest"}),x=i?null:ut.void(e,{at:g,mode:"highest"});if(w){var C=ut.before(e,h);C&&v&&mt.isAncestor(v[1],C.path)&&(h=C)}if(x){var E=ut.after(e,g);E&&m&&mt.isAncestor(m[1],E.path)&&(g=E)}var k,S=[];for(var D of ut.nodes(e,{at:a,voids:i})){var[A,O]=D;k&&0===mt.compare(O,k)||(!i&&ut.isVoid(e,A)||!mt.isCommon(O,h.path)&&!mt.isCommon(O,g.path))&&(S.push(D),k=O)}var _=Array.from(S,(t=>{var[,n]=t;return ut.pathRef(e,n)})),B=ut.pointRef(e,h),F=ut.pointRef(e,g);if(!b&&!w){var j=B.current,[P]=ut.leaf(e,j),{path:T}=j,{offset:N}=h,I=P.text.slice(N);I.length>0&&e.apply({type:"remove_text",path:T,offset:N,text:I})}for(var M of _){var L=M.unref();Xt.removeNodes(e,{at:L,voids:i})}if(!x){var R=F.current,[z]=ut.leaf(e,R),{path:V}=R,$=b?h.offset:0,U=z.text.slice($,g.offset);U.length>0&&e.apply({type:"remove_text",path:V,offset:$,text:U})}!b&&y&&F.current&&B.current&&Xt.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var H=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&H&&Xt.select(e,H)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ut.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Dt.isRange(i))if(r||(i=ut.unhangRange(e,i)),Dt.isCollapsed(i))i=i.anchor;else{var[,a]=Dt.edges(i);if(!o&&ut.void(e,{at:a}))return;var l=ut.pointRef(e,a);Xt.delete(e,{at:i}),i=l.unref()}else mt.isPath(i)&&(i=ut.start(e,i));if(o||!ut.void(e,{at:i})){var u=ut.above(e,{at:i,match:t=>ut.isInline(e,t),mode:"highest",voids:o});if(u){var[,s]=u;if(ut.isEnd(e,i,s)){var c=ut.after(e,s);i=c}else if(ut.isStart(e,i,s)){var f=ut.before(e,s);i=f}}var d=ut.above(e,{match:t=>ut.isBlock(e,t),at:i,voids:o}),[,p]=d,h=ut.isStart(e,i,p),g=ut.isEnd(e,i,p),v=h&&g,m=!h||h&&g,y=!g,[,b]=pt.first({children:t},[]),[,w]=pt.last({children:t},[]),x=[],C=t=>{var[n,r]=t,o=0===r.length;return!o&&(!!v||!(m&&mt.isAncestor(r,b)&&nt.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(y&&mt.isAncestor(r,w)&&nt.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of pt.nodes({children:t},{pass:C}))C(E)&&x.push(E);var k=[],S=[],D=[],A=!0,O=!1;for(var[_]of x)nt.isElement(_)&&!e.isInline(_)?(A=!1,O=!0,S.push(_)):A?k.push(_):D.push(_);var[B]=ut.nodes(e,{at:i,match:t=>Pt.isText(t)||ut.isInline(e,t),mode:"highest",voids:o}),[,F]=B,j=ut.isStart(e,i,F),P=ut.isEnd(e,i,F),T=ut.pathRef(e,g?mt.next(p):p),N=ut.pathRef(e,P?mt.next(F):F),I=ut.pathRef(e,p);Xt.splitNodes(e,{at:i,match:t=>O?ut.isBlock(e,t):Pt.isText(t)||ut.isInline(e,t),mode:O?"lowest":"highest",voids:o});var M=ut.pathRef(e,!j||j&&P?mt.next(F):F);if(Xt.insertNodes(e,k,{at:M.current,match:t=>Pt.isText(t)||ut.isInline(e,t),mode:"highest",voids:o}),v&&S.length&&Xt.delete(e,{at:I.unref(),voids:o}),Xt.insertNodes(e,S,{at:T.current,match:t=>ut.isBlock(e,t),mode:"lowest",voids:o}),Xt.insertNodes(e,D,{at:N.current,match:t=>Pt.isText(t)||ut.isInline(e,t),mode:"highest",voids:o}),!n.at){var L;L=D.length>0?mt.previous(N.current):S.length>0?mt.previous(T.current):mt.previous(M.current);var R=ut.end(e,L);Xt.select(e,R)}M.unref(),T.unref(),N.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ut.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(mt.isPath(o)&&(o=ut.range(e,o)),Dt.isRange(o))if(Dt.isCollapsed(o))o=o.anchor;else{var i=Dt.end(o);if(!r&&ut.void(e,{at:i}))return;var a=ut.pointRef(e,i);Xt.delete(e,{at:o,voids:r}),o=a.unref(),Xt.setSelection(e,{anchor:o,focus:o})}if(r||!ut.void(e,{at:o})){var{path:l,offset:u}=o;t.length>0&&e.apply({type:"insert_text",path:l,offset:u,text:t})}}}))}};function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xt=Jt(Jt(Jt(Jt({},Mt),$t),Gt),Yt),Qt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function en(e){var t={exports:{}};return e(t,t.exports),t.exports}var tn=9007199254740991,nn="[object Arguments]",rn="[object Function]",on="[object GeneratorFunction]",an="[object Map]",ln="[object Object]",un="[object Promise]",sn="[object Set]",cn="[object String]",fn="[object WeakMap]",dn="[object DataView]",pn=/[\\^$.*+?()[\]{}|]/g,hn=/^\[object .+?Constructor\]$/,gn=/^(?:0|[1-9]\d*)$/,vn="\\ud800-\\udfff",mn="\\u0300-\\u036f\\ufe20-\\ufe23",yn="\\u20d0-\\u20f0",bn="\\ufe0e\\ufe0f",wn="["+vn+"]",xn="["+mn+yn+"]",Cn="\\ud83c[\\udffb-\\udfff]",En="(?:"+xn+"|"+Cn+")",kn="[^"+vn+"]",Sn="(?:\\ud83c[\\udde6-\\uddff]){2}",Dn="[\\ud800-\\udbff][\\udc00-\\udfff]",An="\\u200d",On=En+"?",_n="["+bn+"]?",Bn="(?:"+An+"(?:"+[kn,Sn,Dn].join("|")+")"+_n+On+")*",Fn=_n+On+Bn,jn="(?:"+[kn+xn+"?",xn,Sn,Dn,wn].join("|")+")",Pn=RegExp(Cn+"(?="+Cn+")|"+jn+Fn,"g"),Tn=RegExp("["+An+vn+mn+yn+bn+"]"),Nn="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,In="object"==typeof self&&self&&self.Object===Object&&self,Mn=Nn||In||Function("return this")();function Ln(e,t){var n=-1,r=e?e.length:0,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}function Rn(e){return e.split("")}function zn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Vn(e,t){return Ln(t,(function(t){return e[t]}))}function $n(e,t){return null==e?void 0:e[t]}function Un(e){return Tn.test(e)}function Hn(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function Wn(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function qn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Kn(e,t){return function(n){return e(t(n))}}function Gn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Yn(e){return Un(e)?Zn(e):Rn(e)}function Zn(e){return e.match(Pn)||[]}var Jn=Function.prototype,Xn=Object.prototype,Qn=Mn["__core-js_shared__"],er=function(){var e=/[^.]+$/.exec(Qn&&Qn.keys&&Qn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),tr=Jn.toString,nr=Xn.hasOwnProperty,rr=Xn.toString,or=RegExp("^"+tr.call(nr).replace(pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ir=Mn.Symbol,ar=ir?ir.iterator:void 0,lr=Xn.propertyIsEnumerable,ur=Kn(Object.keys,Object),sr=kr(Mn,"DataView"),cr=kr(Mn,"Map"),fr=kr(Mn,"Promise"),dr=kr(Mn,"Set"),pr=kr(Mn,"WeakMap"),hr=_r(sr),gr=_r(cr),vr=_r(fr),mr=_r(dr),yr=_r(pr);function br(e,t){var n=Fr(e)||Br(e)?zn(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!nr.call(e,i)||o&&("length"==i||Dr(i,r))||n.push(i);return n}function wr(e){return rr.call(e)}function xr(e){if(!Ir(e)||Ar(e))return!1;var t=Tr(e)||Hn(e)?or:hn;return t.test(_r(e))}function Cr(e){if(!Or(e))return ur(e);var t=[];for(var n in Object(e))nr.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Er(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}function kr(e,t){var n=$n(e,t);return xr(n)?n:void 0}var Sr=wr;function Dr(e,t){return t=null==t?tn:t,!!t&&("number"==typeof e||gn.test(e))&&e>-1&&e%1==0&&e<t}function Ar(e){return!!er&&er in e}function Or(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Xn;return e===n}function _r(e){if(null!=e){try{return tr.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Br(e){return Pr(e)&&nr.call(e,"callee")&&(!lr.call(e,"callee")||rr.call(e)==nn)}(sr&&Sr(new sr(new ArrayBuffer(1)))!=dn||cr&&Sr(new cr)!=an||fr&&Sr(fr.resolve())!=un||dr&&Sr(new dr)!=sn||pr&&Sr(new pr)!=fn)&&(Sr=function(e){var t=rr.call(e),n=t==ln?e.constructor:void 0,r=n?_r(n):void 0;if(r)switch(r){case hr:return dn;case gr:return an;case vr:return un;case mr:return sn;case yr:return fn}return t});var Fr=Array.isArray;function jr(e){return null!=e&&Nr(e.length)&&!Tr(e)}function Pr(e){return Mr(e)&&jr(e)}function Tr(e){var t=Ir(e)?rr.call(e):"";return t==rn||t==on}function Nr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=tn}function Ir(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Mr(e){return!!e&&"object"==typeof e}function Lr(e){return"string"==typeof e||!Fr(e)&&Mr(e)&&rr.call(e)==cn}function Rr(e){if(!e)return[];if(jr(e))return Lr(e)?Yn(e):Er(e);if(ar&&e[ar])return Wn(e[ar]());var t=Sr(e),n=t==an?qn:t==sn?Gn:Vr;return n(e)}function zr(e){return jr(e)?br(e):Cr(e)}function Vr(e){return e?Vn(e,zr(e)):[]}var $r=Rr;function Ur(e){return null!==e&&"object"===typeof e&&"constructor"in e&&e.constructor===Object}function Hr(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){"undefined"===typeof e[n]?e[n]=t[n]:Ur(t[n])&&Ur(e[n])&&Object.keys(t[n]).length>0&&Hr(e[n],t[n])}))}var Wr={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function qr(){var e="undefined"!==typeof document?document:{};return Hr(e,Wr),e}var Kr={document:Wr,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!==typeof setTimeout&&clearTimeout(e)}};function Gr(){var e="undefined"!==typeof window?window:{};return Hr(e,Kr),e}function Yr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Zr(e){return Zr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zr(e)}function Jr(e,t){return Jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jr(e,t)}function Xr(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Qr(e,t,n){return Qr=Xr()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&Jr(i,n.prototype),i},Qr.apply(null,arguments)}function eo(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function to(e){var t="function"===typeof Map?new Map:void 0;return to=function(e){if(null===e||!eo(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Qr(e,arguments,Zr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Jr(n,e)},to(e)}function no(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ro(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(e){t.__proto__=e}})}var oo=function(e){function t(t){var n;return n=e.call.apply(e,[this].concat(t))||this,ro(no(n)),n}return Yr(t,e),t}(to(Array));function io(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,io(e)):t.push(e)})),t}function ao(e,t){return Array.prototype.filter.call(e,t)}function lo(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function uo(e){return e.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function so(e,t){if("string"!==typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}function co(e,t){var n=Gr(),r=qr(),o=[];if(!t&&e instanceof oo)return e;if(!e)return new oo(o);if("string"===typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var l=r.createElement(a);l.innerHTML=i;for(var u=0;u<l.childNodes.length;u+=1)o.push(l.childNodes[u])}else o=so(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof oo)return e;o=e}return new oo(lo(o))}function fo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=io(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function po(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=io(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function ho(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=io(t.map((function(e){return e.split(" ")})));return ao(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function go(e,t){if(1===arguments.length&&"string"===typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function vo(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function mo(){var e=this[0];if(e){var t={};if(e.dataset)for(var n in e.dataset)t[n]=e.dataset[n];else for(var r=0;r<e.attributes.length;r+=1){var o=e.attributes[r];o.name.indexOf("data-")>=0&&(t[uo(o.name.split("data-")[1])]=o.value)}for(var i in t)"false"===t[i]?t[i]=!1:"true"===t[i]?t[i]=!0:parseFloat(t[i])===1*t[i]&&(t[i]*=1);return t}}function yo(e){if("undefined"===typeof e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function bo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function l(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),co(t).is(o))i.apply(t,n);else for(var r=co(t).parents(),a=0;a<r.length;a+=1)co(r[a]).is(o)&&i.apply(r[a],n)}}function u(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"===typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var s,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(s=0;s<c.length;s+=1){var p=c[s];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:l}),d.addEventListener(p,l,a)}else for(s=0;s<c.length;s+=1){var h=c[s];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:u}),d.addEventListener(h,u,a)}}return this}function wo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"===typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l=r.split(" "),u=0;u<l.length;u+=1)for(var s=l[u],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[s]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[s]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(s,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(s,h.proxyListener,a),d.splice(p,1))}}return this}function xo(){var e=Gr();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Co(){var e=Gr();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Eo(){if(this.length>0){var e=Gr(),t=qr(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,l=n===e?e.scrollY:n.scrollTop,u=n===e?e.scrollX:n.scrollLeft;return{top:r.top+l-i,left:r.left+u-a}}return null}function ko(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function So(){for(var e=Gr(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Do(e,t){var n,r=Gr();if(1===arguments.length){if("string"!==typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"===typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Ao(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Oo(e){var t=ao(this,e);return co(t)}function _o(e){if("undefined"===typeof e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Bo(e){if("undefined"===typeof e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Fo(e){var t,n,r=Gr(),o=qr(),i=this[0];if(!i||"undefined"===typeof e)return!1;if("string"===typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=co(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof oo){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function jo(){for(var e,t=qr(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"===typeof e){var o=t.createElement("div");o.innerHTML=e;while(o.firstChild)this[r].appendChild(o.firstChild)}else if(e instanceof oo)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Po(e){var t,n,r=qr();for(t=0;t<this.length;t+=1)if("string"===typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof oo)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function To(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?co(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return co(t)}function No(e){for(var t=[],n=0;n<this.length;n+=1){var r=this[n].parentNode;while(r)e?co(r).is(e)&&t.push(r):t.push(r),r=r.parentNode}return co(t)}function Io(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return co(t)}function Mo(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!co(r[o]).is(e)||t.push(r[o]);return co(t)}function Lo(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Ro(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}co.fn=oo.prototype;var zo="resize scroll".split(" ");function Vo(e){function t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if("undefined"===typeof n[0]){for(var o=0;o<this.length;o+=1)zo.indexOf(e)<0&&(e in this[o]?this[o][e]():co(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}return t}var $o=Vo("click"),Uo=Vo("focus"),Ho=9007199254740991,Wo="[object Arguments]",qo="[object Function]",Ko="[object GeneratorFunction]",Go=/^(?:0|[1-9]\d*)$/;function Yo(e,t){var n=-1,r=e?e.length:0;while(++n<r)if(!1===t(e[n],n,e))break;return e}function Zo(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Jo(e,t){return function(n){return e(t(n))}}var Xo=Object.prototype,Qo=Xo.hasOwnProperty,ei=Xo.toString,ti=Xo.propertyIsEnumerable,ni=Jo(Object.keys,Object);function ri(e,t){var n=hi(e)||pi(e)?Zo(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Qo.call(e,i)||o&&("length"==i||ci(i,r))||n.push(i);return n}var oi=ui(ai),ii=si();function ai(e,t){return e&&ii(e,t,xi)}function li(e){if(!fi(e))return ni(e);var t=[];for(var n in Object(e))Qo.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ui(e,t){return function(n,r){if(null==n)return n;if(!gi(n))return e(n,r);var o=n.length,i=t?o:-1,a=Object(n);while(t?i--:++i<o)if(!1===r(a[i],i,a))break;return n}}function si(e){return function(t,n,r){var o=-1,i=Object(t),a=r(t),l=a.length;while(l--){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}function ci(e,t){return t=null==t?Ho:t,!!t&&("number"==typeof e||Go.test(e))&&e>-1&&e%1==0&&e<t}function fi(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Xo;return e===n}function di(e,t){var n=hi(e)?Yo:oi;return n(e,"function"==typeof t?t:Ci)}function pi(e){return vi(e)&&Qo.call(e,"callee")&&(!ti.call(e,"callee")||ei.call(e)==Wo)}var hi=Array.isArray;function gi(e){return null!=e&&yi(e.length)&&!mi(e)}function vi(e){return wi(e)&&gi(e)}function mi(e){var t=bi(e)?ei.call(e):"";return t==qo||t==Ko}function yi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ho}function bi(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function wi(e){return!!e&&"object"==typeof e}function xi(e){return gi(e)?ri(e):li(e)}function Ci(e){return e}var Ei=di;if("undefined"!==typeof navigator&&"ReactNative"===navigator.product&&"undefined"===typeof crypto)throw new Error("React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if("undefined"!==typeof msCrypto&&"undefined"===typeof crypto)throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if("undefined"===typeof crypto)throw new Error("Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure.");let ki=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));while(e--){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Si="Expected a function",Di=NaN,Ai="[object Symbol]",Oi=/^\s+|\s+$/g,_i=/^[-+]0x[0-9a-f]+$/i,Bi=/^0b[01]+$/i,Fi=/^0o[0-7]+$/i,ji=parseInt,Pi="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,Ti="object"==typeof self&&self&&self.Object===Object&&self,Ni=Pi||Ti||Function("return this")(),Ii=Object.prototype,Mi=Ii.toString,Li=Math.max,Ri=Math.min,zi=function(){return Ni.Date.now()};function Vi(e,t,n){var r,o,i,a,l,u,s=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError(Si);function p(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n),a}function h(e){return s=e,l=setTimeout(m,t),c?p(e):a}function g(e){var n=e-u,r=e-s,o=t-n;return f?Ri(o,i-r):o}function v(e){var n=e-u,r=e-s;return void 0===u||n>=t||n<0||f&&r>=i}function m(){var e=zi();if(v(e))return y(e);l=setTimeout(m,g(e))}function y(e){return l=void 0,d&&r?p(e):(r=o=void 0,a)}function b(){void 0!==l&&clearTimeout(l),s=0,r=u=o=l=void 0}function w(){return void 0===l?a:y(zi())}function x(){var e=zi(),n=v(e);if(r=arguments,o=this,u=e,n){if(void 0===l)return h(u);if(f)return l=setTimeout(m,t),p(u)}return void 0===l&&(l=setTimeout(m,t)),a}return t=qi(t)||0,Ui(n)&&(c=!!n.leading,f="maxWait"in n,i=f?Li(qi(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),x.cancel=b,x.flush=w,x}function $i(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(Si);return Ui(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Vi(e,t,{leading:r,maxWait:t,trailing:o})}function Ui(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Hi(e){return!!e&&"object"==typeof e}function Wi(e){return"symbol"==typeof e||Hi(e)&&Mi.call(e)==Ai}function qi(e){if("number"==typeof e)return e;if(Wi(e))return Di;if(Ui(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ui(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Oi,"");var n=Bi.test(e);return n||Fi.test(e)?ji(e.slice(2),n?2:8):_i.test(e)?Di:+e}var Ki=$i;function Gi(e,t){return document.createElement(e,t)}function Yi(e,t,n){return document.createElementNS(e,t,n)}function Zi(e){return document.createTextNode(e)}function Ji(e){return document.createComment(e)}function Xi(e,t,n){e.insertBefore(t,n)}function Qi(e,t){e.removeChild(t)}function ea(e,t){e.appendChild(t)}function ta(e){return e.parentNode}function na(e){return e.nextSibling}function ra(e){return e.tagName}function oa(e,t){e.textContent=t}function ia(e){return e.textContent}function aa(e){return 1===e.nodeType}function la(e){return 3===e.nodeType}function ua(e){return 8===e.nodeType}const sa={createElement:Gi,createElementNS:Yi,createTextNode:Zi,createComment:Ji,insertBefore:Xi,removeChild:Qi,appendChild:ea,parentNode:ta,nextSibling:na,tagName:ra,setTextContent:oa,getTextContent:ia,isElement:aa,isText:la,isComment:ua};function ca(e,t,n,r,o){const i=void 0===t?void 0:t.key;return{sel:e,data:t,children:n,text:r,elm:o,key:i}}const fa=Array.isArray;function da(e){return"string"===typeof e||"number"===typeof e||e instanceof String||e instanceof Number}function pa(e){return void 0===e}function ha(e){return void 0!==e}const ga=ca("",{},[],void 0,void 0);function va(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is),a=e.sel===t.sel;return a&&o&&i}function ma(e){return void 0!==e.sel}function ya(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const ba=["create","update","remove","destroy","pre","post"];function wa(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:sa;for(const d of ba)for(const t of e){const e=t[d];void 0!==e&&n[d].push(e)}function o(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return ca(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}function i(e,t){return function(){if(0===--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function a(e,t){var o,i;let l,u=e.data;if(void 0!==u){const t=null===(o=u.hook)||void 0===o?void 0:o.init;ha(t)&&(t(e),u=e.data)}const s=e.children,c=e.sel;if("!"===c)pa(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=ha(u)&&ha(l=u.ns)?r.createElementNS(l,h,u):r.createElement(h,u);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),l=0;l<n.create.length;++l)n.create[l](ga,e);if(fa(s))for(l=0;l<s.length;++l){const e=s[l];null!=e&&r.appendChild(g,a(e,t))}else da(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;ha(v)&&(null===(i=v.create)||void 0===i||i.call(v,ga,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function l(e,t,n,o,i,l){for(;o<=i;++o){const i=n[o];null!=i&&r.insertBefore(e,a(i,l),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null===o||void 0===o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!==typeof n&&u(n)}}}function s(e,t,o,a){for(var l,s;o<=a;++o){let a,c;const f=t[o];if(null!=f)if(ha(f.sel)){u(f),a=n.remove.length+1,c=i(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(s=null===(l=null===f||void 0===f?void 0:f.data)||void 0===l?void 0:l.hook)||void 0===s?void 0:s.remove;ha(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function c(e,t,n,o){let i,u,c,d,p=0,h=0,g=t.length-1,v=t[0],m=t[g],y=n.length-1,b=n[0],w=n[y];while(p<=g&&h<=y)null==v?v=t[++p]:null==m?m=t[--g]:null==b?b=n[++h]:null==w?w=n[--y]:va(v,b)?(f(v,b,o),v=t[++p],b=n[++h]):va(m,w)?(f(m,w,o),m=t[--g],w=n[--y]):va(v,w)?(f(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(m.elm)),v=t[++p],w=n[--y]):va(m,b)?(f(m,b,o),r.insertBefore(e,m.elm,v.elm),m=t[--g],b=n[++h]):(void 0===i&&(i=ya(t,p,g)),u=i[b.key],pa(u)?r.insertBefore(e,a(b,o),v.elm):(c=t[u],c.sel!==b.sel?r.insertBefore(e,a(b,o),v.elm):(f(c,b,o),t[u]=void 0,r.insertBefore(e,c.elm,v.elm))),b=n[++h]);(p<=g||h<=y)&&(p>g?(d=null==n[y+1]?null:n[y+1].elm,l(e,d,n,h,y,o)):s(e,t,p,g))}function f(e,t,o){var i,a,u,f,d;const p=null===(i=t.data)||void 0===i?void 0:i.hook;null===(a=null===p||void 0===p?void 0:p.prepatch)||void 0===a||a.call(p,e,t);const h=t.elm=e.elm,g=e.children,v=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(f=null===(u=t.data.hook)||void 0===u?void 0:u.update)||void 0===f||f.call(u,e,t)}pa(t.text)?ha(g)&&ha(v)?g!==v&&c(h,g,v,o):ha(v)?(ha(e.text)&&r.setTextContent(h,""),l(h,null,v,0,v.length-1,o)):ha(g)?s(h,g,0,g.length-1):ha(e.text)&&r.setTextContent(h,""):e.text!==t.text&&(ha(g)&&s(h,g,0,g.length-1),r.setTextContent(h,t.text)),null===(d=null===p||void 0===p?void 0:p.postpatch)||void 0===d||d.call(p,e,t)}}return function(e,t){let i,l,u;const c=[];for(i=0;i<n.pre.length;++i)n.pre[i]();for(ma(e)||(e=o(e)),va(e,t)?f(e,t,c):(l=e.elm,u=r.parentNode(l),a(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(l)),s(u,[e],0,0))),i=0;i<c.length;++i)c[i].data.hook.insert(c[i]);for(i=0;i<n.post.length;++i)n.post[i]();return t}}function xa(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r].data;void 0!==e&&xa(e,t[r].children,t[r].sel)}}function Ca(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),fa(n)?r=n:da(n)?o=n.toString():n&&n.sel&&(r=[n])):void 0!==t&&null!==t&&(fa(t)?r=t:da(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)da(r[i])&&(r[i]=ca(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||xa(a,r,e),ca(e,a,r,o,void 0)}function Ea(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const ka={create:Ea,update:Ea},Sa=/[A-Z]/g;function Da(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(Sa,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Sa,"-$&").toLowerCase(),i[r]))}const Aa={create:Da,update:Da};function Oa(e,t,n){if("function"===typeof e)e.call(t,n,t);else if("object"===typeof e)for(let r=0;r<e.length;r++)Oa(e[r],t,n)}function _a(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Oa(r[n],t,e)}function Ba(){return function e(t){_a(t,e.vnode)}}function Fa(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let l;if(n!==i){if(n&&r)if(i)for(l in n)i[l]||o.removeEventListener(l,r,!1);else for(l in n)o.removeEventListener(l,r,!1);if(i){const r=t.listener=e.listener||Ba();if(r.vnode=t,n)for(l in i)n[l]||a.addEventListener(l,r,!1);else for(l in i)a.addEventListener(l,r,!1)}}}const ja={create:Fa,update:Fa,destroy:Fa};function Pa(e,t){let n,r,o;const i=t.elm;let a=e.data.props,l=t.data.props;if((a||l)&&a!==l)for(n in a=a||{},l=l||{},l)r=l[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const Ta={create:Pa,update:Pa},Na="undefined"!==typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,Ia=function(e){Na((function(){Na(e)}))};let Ma=!1;function La(e,t,n){Ia((function(){e[t]=n}))}function Ra(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const l="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],l&&n===i.delayed[e]||La(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}function za(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]}function Va(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Ma||(e.elm.offsetLeft,Ma=!0);const o=e.elm;let i=0;const a=n.remove;let l=0;const u=[];for(r in a)u.push(r),o.style[r]=a[r];const s=getComputedStyle(o),c=s["transition-property"].split(", ");for(;i<c.length;++i)-1!==u.indexOf(c[i])&&l++;o.addEventListener("transitionend",(function(e){e.target===o&&--l,0===l&&t()}))}function $a(){Ma=!1}const Ua={pre:$a,create:Ra,update:Ra,destroy:za,remove:Va};function Ha(e,t){for(const n of e)void 0!==n&&null!==n&&!1!==n&&""!==n&&(Array.isArray(n)?Ha(n,t):"string"===typeof n||"number"===typeof n||"boolean"===typeof n?t.push(ca(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Wa(e,t,...n){const r=Ha(n,[]);return"function"===typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Ca(e,t,r[0].text):Ca(e,t,r)}Wa||(Wa={});var qa=1/0,Ka="[object Symbol]",Ga=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ya=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Za="\\ud800-\\udfff",Ja="\\u0300-\\u036f\\ufe20-\\ufe23",Xa="\\u20d0-\\u20f0",Qa="\\u2700-\\u27bf",el="a-z\\xdf-\\xf6\\xf8-\\xff",tl="\\xac\\xb1\\xd7\\xf7",nl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rl="\\u2000-\\u206f",ol=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",il="A-Z\\xc0-\\xd6\\xd8-\\xde",al="\\ufe0e\\ufe0f",ll=tl+nl+rl+ol,ul="['’]",sl="["+Za+"]",cl="["+ll+"]",fl="["+Ja+Xa+"]",dl="\\d+",pl="["+Qa+"]",hl="["+el+"]",gl="[^"+Za+ll+dl+Qa+el+il+"]",vl="\\ud83c[\\udffb-\\udfff]",ml="(?:"+fl+"|"+vl+")",yl="[^"+Za+"]",bl="(?:\\ud83c[\\udde6-\\uddff]){2}",wl="[\\ud800-\\udbff][\\udc00-\\udfff]",xl="["+il+"]",Cl="\\u200d",El="(?:"+hl+"|"+gl+")",kl="(?:"+xl+"|"+gl+")",Sl="(?:"+ul+"(?:d|ll|m|re|s|t|ve))?",Dl="(?:"+ul+"(?:D|LL|M|RE|S|T|VE))?",Al=ml+"?",Ol="["+al+"]?",_l="(?:"+Cl+"(?:"+[yl,bl,wl].join("|")+")"+Ol+Al+")*",Bl=Ol+Al+_l,Fl="(?:"+[pl,bl,wl].join("|")+")"+Bl,jl="(?:"+[yl+fl+"?",fl,bl,wl,sl].join("|")+")",Pl=RegExp(ul,"g"),Tl=RegExp(fl,"g"),Nl=RegExp(vl+"(?="+vl+")|"+jl+Bl,"g"),Il=RegExp([xl+"?"+hl+"+"+Sl+"(?="+[cl,xl,"$"].join("|")+")",kl+"+"+Dl+"(?="+[cl,xl+El,"$"].join("|")+")",xl+"?"+El+"+"+Sl,xl+"+"+Dl,dl,Fl].join("|"),"g"),Ml=RegExp("["+Cl+Za+Ja+Xa+al+"]"),Ll=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rl={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},zl="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,Vl="object"==typeof self&&self&&self.Object===Object&&self,$l=zl||Vl||Function("return this")();function Ul(e,t,n,r){var o=-1,i=e?e.length:0;r&&i&&(n=e[++o]);while(++o<i)n=t(n,e[o],o,e);return n}function Hl(e){return e.split("")}function Wl(e){return e.match(Ga)||[]}function ql(e){return function(t){return null==e?void 0:e[t]}}var Kl=ql(Rl);function Gl(e){return Ml.test(e)}function Yl(e){return Ll.test(e)}function Zl(e){return Gl(e)?Jl(e):Hl(e)}function Jl(e){return e.match(Nl)||[]}function Xl(e){return e.match(Il)||[]}var Ql=Object.prototype,eu=Ql.toString,tu=$l.Symbol,nu=tu?tu.prototype:void 0,ru=nu?nu.toString:void 0;function ou(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;var i=Array(o);while(++r<o)i[r]=e[r+t];return i}function iu(e){if("string"==typeof e)return e;if(cu(e))return ru?ru.call(e):"";var t=e+"";return"0"==t&&1/e==-qa?"-0":t}function au(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:ou(e,t,n)}function lu(e){return function(t){t=fu(t);var n=Gl(t)?Zl(t):void 0,r=n?n[0]:t.charAt(0),o=n?au(n,1).join(""):t.slice(1);return r[e]()+o}}function uu(e){return function(t){return Ul(vu(hu(t).replace(Pl,"")),e,"")}}function su(e){return!!e&&"object"==typeof e}function cu(e){return"symbol"==typeof e||su(e)&&eu.call(e)==Ka}function fu(e){return null==e?"":iu(e)}var du=uu((function(e,t,n){return t=t.toLowerCase(),e+(n?pu(t):t)}));function pu(e){return gu(fu(e).toLowerCase())}function hu(e){return e=fu(e),e&&e.replace(Ya,Kl).replace(Tl,"")}var gu=lu("toUpperCase");function vu(e,t,n){return e=fu(e),t=n?void 0:t,void 0===t?Yl(e)?Xl(e):Wl(e):e.match(t)||[]}for(var mu=du,yu="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),bu={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},wu={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:yu?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},xu={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Cu=1;Cu<20;Cu++)xu["f"+Cu]=111+Cu;function Eu(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return Su(e,t)})),o=function(e){return r.some((function(t){return Du(t,e)}))},i=null==n?o:o(n);return i}function ku(e,t){return Eu(e,{byKey:!0},t)}function Su(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),i=o.length;for(var a in bu)r[bu[a]]=!1;var l=!0,u=!1,s=void 0;try{for(var c,f=o[Symbol.iterator]();!(l=(c=f.next()).done);l=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Ou(d),g=bu[h];if(d.length>1&&!g&&!wu[d]&&!xu[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=Au(d)),g&&(r[g]=!p||null)}}catch(v){u=!0,s=v}finally{try{!l&&f.return&&f.return()}finally{if(u)throw s}}return r}function Du(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n],(null!=o||!1!==r)&&o!==r))return!1}return!0}function Au(e){e=Ou(e);var t=xu[e]||e.toUpperCase().charCodeAt(0);return t}function Ou(e){return e=e.toLowerCase(),e=wu[e]||e,e}var _u=Eu,Bu=ku,Fu="Expected a function",ju=NaN,Pu="[object Symbol]",Tu=/^\s+|\s+$/g,Nu=/^[-+]0x[0-9a-f]+$/i,Iu=/^0b[01]+$/i,Mu=/^0o[0-7]+$/i,Lu=parseInt,Ru="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,zu="object"==typeof self&&self&&self.Object===Object&&self,Vu=Ru||zu||Function("return this")(),$u=Object.prototype,Uu=$u.toString,Hu=Math.max,Wu=Math.min,qu=function(){return Vu.Date.now()};function Ku(e,t,n){var r,o,i,a,l,u,s=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError(Fu);function p(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n),a}function h(e){return s=e,l=setTimeout(m,t),c?p(e):a}function g(e){var n=e-u,r=e-s,o=t-n;return f?Wu(o,i-r):o}function v(e){var n=e-u,r=e-s;return void 0===u||n>=t||n<0||f&&r>=i}function m(){var e=qu();if(v(e))return y(e);l=setTimeout(m,g(e))}function y(e){return l=void 0,d&&r?p(e):(r=o=void 0,a)}function b(){void 0!==l&&clearTimeout(l),s=0,r=u=o=l=void 0}function w(){return void 0===l?a:y(qu())}function x(){var e=qu(),n=v(e);if(r=arguments,o=this,u=e,n){if(void 0===l)return h(u);if(f)return l=setTimeout(m,t),p(u)}return void 0===l&&(l=setTimeout(m,t)),a}return t=Ju(t)||0,Gu(n)&&(c=!!n.leading,f="maxWait"in n,i=f?Hu(Ju(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),x.cancel=b,x.flush=w,x}function Gu(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Yu(e){return!!e&&"object"==typeof e}function Zu(e){return"symbol"==typeof e||Yu(e)&&Uu.call(e)==Pu}function Ju(e){if("number"==typeof e)return e;if(Zu(e))return ju;if(Gu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Gu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Tu,"");var n=Iu.test(e);return n||Mu.test(e)?Lu(e.slice(2),n?2:8):Nu.test(e)?ju:+e}var Xu,Qu=Ku,es=en((function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",l="[object Boolean]",u="[object Date]",s="[object Error]",c="[object Function]",f="[object GeneratorFunction]",d="[object Map]",p="[object Number]",h="[object Object]",g="[object Promise]",v="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",w="[object WeakMap]",x="[object ArrayBuffer]",C="[object DataView]",E="[object Float32Array]",k="[object Float64Array]",S="[object Int8Array]",D="[object Int16Array]",A="[object Int32Array]",O="[object Uint8Array]",_="[object Uint8ClampedArray]",B="[object Uint16Array]",F="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,P=/\w*$/,T=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,I={};I[i]=I[a]=I[x]=I[C]=I[l]=I[u]=I[E]=I[k]=I[S]=I[D]=I[A]=I[d]=I[p]=I[h]=I[v]=I[m]=I[y]=I[b]=I[O]=I[_]=I[B]=I[F]=!0,I[s]=I[c]=I[w]=!1;var M="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,L="object"==typeof self&&self&&self.Object===Object&&self,R=M||L||Function("return this")(),z=t&&!t.nodeType&&t,V=z&&e&&!e.nodeType&&e,$=V&&V.exports===z;function U(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function W(e,t){var n=-1,r=e?e.length:0;while(++n<r)if(!1===t(e[n],n,e))break;return e}function q(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}function K(e,t,n,r){var o=-1,i=e?e.length:0;r&&i&&(n=e[++o]);while(++o<i)n=t(n,e[o],o,e);return n}function G(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Y(e,t){return null==e?void 0:e[t]}function Z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function J(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function X(e,t){return function(n){return e(t(n))}}function Q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var ee=Array.prototype,te=Function.prototype,ne=Object.prototype,re=R["__core-js_shared__"],oe=function(){var e=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ie=te.toString,ae=ne.hasOwnProperty,le=ne.toString,ue=RegExp("^"+ie.call(ae).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),se=$?R.Buffer:void 0,ce=R.Symbol,fe=R.Uint8Array,de=X(Object.getPrototypeOf,Object),pe=Object.create,he=ne.propertyIsEnumerable,ge=ee.splice,ve=Object.getOwnPropertySymbols,me=se?se.isBuffer:void 0,ye=X(Object.keys,Object),be=St(R,"DataView"),we=St(R,"Map"),xe=St(R,"Promise"),Ce=St(R,"Set"),Ee=St(R,"WeakMap"),ke=St(Object,"create"),Se=Nt(be),De=Nt(we),Ae=Nt(xe),Oe=Nt(Ce),_e=Nt(Ee),Be=ce?ce.prototype:void 0,Fe=Be?Be.valueOf:void 0;function je(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Pe(){this.__data__=ke?ke(null):{}}function Te(e){return this.has(e)&&delete this.__data__[e]}function Ne(e){var t=this.__data__;if(ke){var n=t[e];return n===r?void 0:n}return ae.call(t,e)?t[e]:void 0}function Ie(e){var t=this.__data__;return ke?void 0!==t[e]:ae.call(t,e)}function Me(e,t){var n=this.__data__;return n[e]=ke&&void 0===t?r:t,this}function Le(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Re(){this.__data__=[]}function ze(e){var t=this.__data__,n=ot(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ge.call(t,n,1),!0}function Ve(e){var t=this.__data__,n=ot(t,e);return n<0?void 0:t[n][1]}function $e(e){return ot(this.__data__,e)>-1}function Ue(e,t){var n=this.__data__,r=ot(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function He(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function We(){this.__data__={hash:new je,map:new(we||Le),string:new je}}function qe(e){return kt(this,e)["delete"](e)}function Ke(e){return kt(this,e).get(e)}function Ge(e){return kt(this,e).has(e)}function Ye(e,t){return kt(this,e).set(e,t),this}function Ze(e){this.__data__=new Le(e)}function Je(){this.__data__=new Le}function Xe(e){return this.__data__["delete"](e)}function Qe(e){return this.__data__.get(e)}function et(e){return this.__data__.has(e)}function tt(e,t){var r=this.__data__;if(r instanceof Le){var o=r.__data__;if(!we||o.length<n-1)return o.push([e,t]),this;r=this.__data__=new He(o)}return r.set(e,t),this}function nt(e,t){var n=Rt(e)||Lt(e)?G(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!ae.call(e,i)||o&&("length"==i||Ft(i,r))||n.push(i);return n}function rt(e,t,n){var r=e[t];ae.call(e,t)&&Mt(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function ot(e,t){var n=e.length;while(n--)if(Mt(e[n][0],t))return n;return-1}function it(e,t){return e&&xt(t,Kt(t),e)}function at(e,t,n,r,o,a,l){var u;if(r&&(u=a?r(e,o,a,l):r(e)),void 0!==u)return u;if(!Wt(e))return e;var s=Rt(e);if(s){if(u=Ot(e),!t)return wt(e,u)}else{var d=At(e),p=d==c||d==f;if($t(e))return dt(e,t);if(d==h||d==i||p&&!a){if(Z(e))return a?e:{};if(u=_t(p?{}:e),!t)return Ct(e,it(u,e))}else{if(!I[d])return a?e:{};u=Bt(e,d,at,t)}}l||(l=new Ze);var g=l.get(e);if(g)return g;if(l.set(e,u),!s)var v=n?Et(e):Kt(e);return W(v||e,(function(o,i){v&&(i=o,o=e[i]),rt(u,i,at(o,t,n,r,i,e,l))})),u}function lt(e){return Wt(e)?pe(e):{}}function ut(e,t,n){var r=t(e);return Rt(e)?r:q(r,n(e))}function st(e){return le.call(e)}function ct(e){if(!Wt(e)||Pt(e))return!1;var t=Ut(e)||Z(e)?ue:T;return t.test(Nt(e))}function ft(e){if(!Tt(e))return ye(e);var t=[];for(var n in Object(e))ae.call(e,n)&&"constructor"!=n&&t.push(n);return t}function dt(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function pt(e){var t=new e.constructor(e.byteLength);return new fe(t).set(new fe(e)),t}function ht(e,t){var n=t?pt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function gt(e,t,n){var r=t?n(J(e),!0):J(e);return K(r,U,new e.constructor)}function vt(e){var t=new e.constructor(e.source,P.exec(e));return t.lastIndex=e.lastIndex,t}function mt(e,t,n){var r=t?n(Q(e),!0):Q(e);return K(r,H,new e.constructor)}function yt(e){return Fe?Object(Fe.call(e)):{}}function bt(e,t){var n=t?pt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function wt(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}function xt(e,t,n,r){n||(n={});var o=-1,i=t.length;while(++o<i){var a=t[o],l=r?r(n[a],e[a],a,n,e):void 0;rt(n,a,void 0===l?e[a]:l)}return n}function Ct(e,t){return xt(e,Dt(e),t)}function Et(e){return ut(e,Kt,Dt)}function kt(e,t){var n=e.__data__;return jt(t)?n["string"==typeof t?"string":"hash"]:n.map}function St(e,t){var n=Y(e,t);return ct(n)?n:void 0}je.prototype.clear=Pe,je.prototype["delete"]=Te,je.prototype.get=Ne,je.prototype.has=Ie,je.prototype.set=Me,Le.prototype.clear=Re,Le.prototype["delete"]=ze,Le.prototype.get=Ve,Le.prototype.has=$e,Le.prototype.set=Ue,He.prototype.clear=We,He.prototype["delete"]=qe,He.prototype.get=Ke,He.prototype.has=Ge,He.prototype.set=Ye,Ze.prototype.clear=Je,Ze.prototype["delete"]=Xe,Ze.prototype.get=Qe,Ze.prototype.has=et,Ze.prototype.set=tt;var Dt=ve?X(ve,Object):Gt,At=st;function Ot(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&ae.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function _t(e){return"function"!=typeof e.constructor||Tt(e)?{}:lt(de(e))}function Bt(e,t,n,r){var o=e.constructor;switch(t){case x:return pt(e);case l:case u:return new o(+e);case C:return ht(e,r);case E:case k:case S:case D:case A:case O:case _:case B:case F:return bt(e,r);case d:return gt(e,r,n);case p:case y:return new o(e);case v:return vt(e);case m:return mt(e,r,n);case b:return yt(e)}}function Ft(e,t){return t=null==t?o:t,!!t&&("number"==typeof e||N.test(e))&&e>-1&&e%1==0&&e<t}function jt(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Pt(e){return!!oe&&oe in e}function Tt(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ne;return e===n}function Nt(e){if(null!=e){try{return ie.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function It(e){return at(e,!0,!0)}function Mt(e,t){return e===t||e!==e&&t!==t}function Lt(e){return Vt(e)&&ae.call(e,"callee")&&(!he.call(e,"callee")||le.call(e)==i)}(be&&At(new be(new ArrayBuffer(1)))!=C||we&&At(new we)!=d||xe&&At(xe.resolve())!=g||Ce&&At(new Ce)!=m||Ee&&At(new Ee)!=w)&&(At=function(e){var t=le.call(e),n=t==h?e.constructor:void 0,r=n?Nt(n):void 0;if(r)switch(r){case Se:return C;case De:return d;case Ae:return g;case Oe:return m;case _e:return w}return t});var Rt=Array.isArray;function zt(e){return null!=e&&Ht(e.length)&&!Ut(e)}function Vt(e){return qt(e)&&zt(e)}var $t=me||Yt;function Ut(e){var t=Wt(e)?le.call(e):"";return t==c||t==f}function Ht(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Wt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qt(e){return!!e&&"object"==typeof e}function Kt(e){return zt(e)?nt(e):ft(e)}function Gt(){return[]}function Yt(){return!1}e.exports=It})),ts=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function ns(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rs=0;function os(e){return"__private_"+rs+++"_"+e}function is(e,t,n){const r=[];return e.forEach((e=>"string"!==typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r}
|
|
16
|
+
/**
|
|
17
|
+
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
|
18
|
+
* and replaces it with values from options `{smart_count: 5}`
|
|
19
|
+
*
|
|
20
|
+
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
|
21
|
+
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
|
22
|
+
*
|
|
23
|
+
* @param {string} phrase that needs interpolation, with placeholders
|
|
24
|
+
* @param {object} options with values that will be used to replace placeholders
|
|
25
|
+
* @returns {any[]} interpolated
|
|
26
|
+
*/function as(e,t){const n=/\$/g,r="$$$$";let o=[e];if(null==t)return o;for(const i of Object.keys(t))if("_"!==i){let e=t[i];"string"===typeof e&&(e=n[Symbol.replace](e,r)),o=is(o,new RegExp(`%\\{${i}\\}`,"g"),e)}return o}var ls=(Xu=os("apply"),class{constructor(e){Object.defineProperty(this,Xu,{value:us}),this.locale={strings:{},pluralize(e){return 1===e?0:1}},Array.isArray(e)?e.forEach(ns(this,Xu)[Xu],this):ns(this,Xu)[Xu](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!ts(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e],r="object"===typeof n;if(r){if(t&&"undefined"!==typeof t.smart_count){const e=this.locale.pluralize(t.smart_count);return as(n[e],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return as(n,t)}});function us(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var ss=function(){var e={},t=e._fns={};function n(e){var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,l=i.length;for(a;a<l;a++){var u=i[a];if("*"===u&&(n=n.concat(t[u])),2===o.length&&o[0]===u){n=n.concat(t[u]);break}}return n}function r(e,t,n){var r=0,o=t.length;for(r;r<o;r++){if(!t[r])break;t[r].event=e,t[r].apply(t[r],n)}}return e.emit=function(e,t,o,i,a,l,u){var s=n(e);s.length&&r(e,s,[t,o,i,a,l,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){function r(){n.apply(this,arguments),e.off(t,r)}this.on(t,r)},e.off=function(e,t){var n=[];if(e&&t){var r=this._fns[e],o=0,i=r?r.length:0;for(o;o<i;o++)r[o]!==t&&n.push(r[o])}n.length?this._fns[e]=n:delete this._fns[e]},e};let cs="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var fs={urlAlphabet:cs};let{urlAlphabet:ds}=fs;if("undefined"!==typeof navigator&&"ReactNative"===navigator.product&&"undefined"===typeof crypto)throw new Error("React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if("undefined"!==typeof msCrypto&&"undefined"===typeof crypto)throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if("undefined"===typeof crypto)throw new Error("Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure.");let ps=e=>crypto.getRandomValues(new Uint8Array(e)),hs=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";while(1){let a=n(o),l=o;while(l--)if(i+=e[a[l]&r]||"",i.length===t)return i}}},gs=(e,t)=>hs(e,t,ps),vs=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));while(e--){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var ms={nanoid:vs,customAlphabet:gs,customRandom:hs,urlAlphabet:ds,random:ps},ys=function(e){if("number"!==typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1===0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function bs(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}bs.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var ws=function(e,t,n){var r=new bs(e,n||/[\/\.]/);return"undefined"!=typeof t?r.match(t):r},xs=/[\/\+\.]/,Cs=function(e,t){function n(t){var n=ws(t,e,xs);return n&&n.length>=2}return t?n(t.split(";")[0]):n};function Es(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ks=0;function Ss(e){return"__private_"+ks+++"_"+e}var Ds=Ss("publish");class As{constructor(){Object.defineProperty(this,Ds,{value:Os}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,Es(this,Ds)[Ds](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Os(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}As.VERSION="2.0.3";var _s=function(){return new As},Bs=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Fs={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"},js=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Bs(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Fs?Fs[n]:"application/octet-stream"};function Ps(e){return e.charCodeAt(0).toString(32)}function Ts(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${Ps(e)}`,"/")))+t}var Ns=function(e){let t="uppy";return"string"===typeof e.name&&(t+=`-${Ts(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"===typeof e.meta.relativePath&&(t+=`-${Ts(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t},Is=function(e){if(null==e&&(e="undefined"!==typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||(r>18||18===r&&o>=18218)},Ms=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"};function Ls(e){return e<10?`0${e}`:e.toString()}var Rs=function(){const e=new Date,t=Ls(e.getHours()),n=Ls(e.getMinutes()),r=Ls(e.getSeconds());return`${t}:${n}:${r}`};const zs={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Rs()}]`,...t)}},Vs={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Rs()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Rs()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Rs()}]`,...t)}};var $s={justErrorsLogger:zs,debugLogger:Vs},Us={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},Hs=ms;let Ws,qs;function Ks(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Gs=0;function Ys(e){return"__private_"+Gs+++"_"+e}const{nanoid:Zs}=Hs,{justErrorsLogger:Js,debugLogger:Xs}=$s;class Qs extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"===typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class ec extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var tc=Ys("plugins"),nc=Ys("storeUnsubscribe"),rc=Ys("emitter"),oc=Ys("preProcessors"),ic=Ys("uploaders"),ac=Ys("postProcessors"),lc=Ys("checkRestrictions"),uc=Ys("checkMinNumberOfFiles"),sc=Ys("checkRequiredMetaFieldsOnFile"),cc=Ys("checkRequiredMetaFields"),fc=Ys("showOrLogErrorAndThrow"),dc=Ys("assertNewUploadAllowed"),pc=Ys("checkAndCreateFileStateObject"),hc=Ys("startIfAutoProceed"),gc=Ys("addListeners"),vc=Ys("updateOnlineStatus"),mc=Ys("createUpload"),yc=Ys("getUpload"),bc=Ys("removeUpload"),wc=Ys("runUpload");Ws=Symbol.for("uppy test: getPlugins"),qs=Symbol.for("uppy test: createUpload");class xc{constructor(e){Object.defineProperty(this,wc,{value:Tc}),Object.defineProperty(this,bc,{value:Pc}),Object.defineProperty(this,yc,{value:jc}),Object.defineProperty(this,mc,{value:Fc}),Object.defineProperty(this,gc,{value:Bc}),Object.defineProperty(this,hc,{value:_c}),Object.defineProperty(this,pc,{value:Oc}),Object.defineProperty(this,dc,{value:Ac}),Object.defineProperty(this,fc,{value:Dc}),Object.defineProperty(this,cc,{value:Sc}),Object.defineProperty(this,sc,{value:kc}),Object.defineProperty(this,uc,{value:Ec}),Object.defineProperty(this,lc,{value:Cc}),Object.defineProperty(this,tc,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,nc,{writable:!0,value:void 0}),Object.defineProperty(this,rc,{writable:!0,value:ss()}),Object.defineProperty(this,oc,{writable:!0,value:new Set}),Object.defineProperty(this,ic,{writable:!0,value:new Set}),Object.defineProperty(this,ac,{writable:!0,value:new Set}),Object.defineProperty(this,vc,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Us;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:_s(),logger:Js,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Xs),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Ki(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Is(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Ks(this,nc)[nc]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!==typeof window&&(window[this.opts.id]=this),Ks(this,gc)[gc]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Ks(this,rc)[rc].emit(e,...n)}on(e,t){return Ks(this,rc)[rc].on(e,t),this}once(e,t){return Ks(this,rc)[rc].once(e,t),this}off(e,t){return Ks(this,rc)[rc].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new ls([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Ks(this,oc)[oc].add(e)}removePreProcessor(e){return Ks(this,oc)[oc].delete(e)}addPostProcessor(e){Ks(this,ac)[ac].add(e)}removePostProcessor(e){return Ks(this,ac)[ac].delete(e)}addUploader(e){Ks(this,ic)[ic].add(e)}removeUploader(e){return Ks(this,ic)[ic].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),l=r.filter((e=>e.progress.uploadStarted)),u=r.filter((e=>e.isPaused)),s=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:l,pausedFiles:u,completeFiles:s,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:l.length>0,isAllComplete:100===t&&s.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&u.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return Ks(this,lc)[lc](e,t),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Ks(this,dc)[dc](e);const{files:t}=this.getState();let n=Ks(this,pc)[pc](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Ks(this,hc)[hc](),n.id}addFiles(e){Ks(this,dc)[dc]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=Ks(this,pc)[pc](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(o){o.isRestriction||r.push(o)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&Ks(this,hc)[hc](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"===typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function l(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(l);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const u={currentUploads:i,files:o};0===Object.keys(o).length&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();const s=Object.keys(a);s.forEach((e=>{this.emit("file-removed",a[e],t)})),s.length>5?this.log(`Removed ${s.length} files`):this.log(`Removed files: ${s.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=this.getFile(e).isPaused||!1,n=!t;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted));t.forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted));t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Ks(this,mc)[mc](t,{forceAllowNewUpload:!0});return Ks(this,wc)[wc](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Ks(this,mc)[mc]([e],{forceAllowNewUpload:!0});return Ks(this,wc)[wc](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles(),t=e.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===t.length)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter((e=>null!=e.progress.bytesTotal)),r=t.filter((e=>null==e.progress.bytesTotal));if(0===n.length){const e=100*t.length,n=r.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(n/e*100);return void this.setState({totalProgress:o})}let o=n.reduce(((e,t)=>e+t.progress.bytesTotal),0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach((e=>{a+=e.progress.bytesUploaded})),r.forEach((e=>{a+=i*(e.progress.percentage||0)/100}));let l=0===o?0:Math.round(a/o*100);l>100&&(l=100),this.setState({totalProgress:l}),this.emit("progress",l)}updateOnlineStatus(){const e="undefined"===typeof window.navigator.onLine||window.navigator.onLine;e?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!==typeof e){const t=`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(t)}const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Ks(this,tc)[tc]?Ks(this,tc)[tc][n.type].push(n):Ks(this,tc)[tc][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Ks(this,tc)[tc])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[Ws](e){return Ks(this,tc)[tc][e]}iteratePlugins(e){Object.values(Ks(this,tc)[tc]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Ks(this,tc)[tc][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r=this.getState(),o={plugins:{...r.plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Ks(this,nc)[nc](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!==typeof window&&window.removeEventListener&&(window.removeEventListener("online",Ks(this,vc)[vc]),window.removeEventListener("offline",Ks(this,vc)[vc]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"===typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e);break}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Ks(this,wc)[wc](e):(Ks(this,bc)[bc](e),Promise.reject(new Error("Nonexistent upload")))}[qs](){return Ks(this,mc)[mc](...arguments)}addResultData(e,t){if(!Ks(this,yc)[yc](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Ks(this,tc)[tc].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"===typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{Ks(this,uc)[uc](t),Ks(this,cc)[cc](t)})).catch((e=>{Ks(this,fc)[fc](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=Ks(this,mc)[mc](r);return Ks(this,wc)[wc](o)})).catch((e=>{Ks(this,fc)[fc](e,{showInformer:!1})})))}}function Cc(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new Qs(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a){const t=a.some((t=>t.indexOf("/")>-1?!!e.type&&Cs(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()));if(!t){const e=a.join(", ");throw new Qs(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new Qs(this.i18n("exceedsSize",{size:ys(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Qs(this.i18n("exceedsSize",{size:ys(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Qs(this.i18n("inferiorSize",{size:ys(r)}))}function Ec(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Qs(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function kc(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new Qs(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),Ks(this,fc)[fc](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Sc(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return Ks(this,sc)[sc](t)}));if(t.length)throw new ec(t,`${this.i18n("missingRequiredMetaField")}`)}function Dc(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"===typeof e?e.message:e,a="object"===typeof e&&e.details?e.details:"";let l=i;if(a&&(l+=` ${a}`),e.isRestriction?(this.log(l),this.emit("restriction-failed",r,e)):this.log(l,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"===typeof e?e:new Error(e)}function Ac(e){const{allowNewUpload:t}=this.getState();!1===t&&Ks(this,fc)[fc](new Qs(this.i18n("noMoreFilesAllowed")),{file:e})}function Oc(e,t){const n=js(t),r=Ms(n,t),o=Bs(r).extension,i=Boolean(t.isRemote),a=Ns({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new Qs(this.i18n("noDuplicates",{fileName:r}));Ks(this,fc)[fc](e,{file:t})}const l=t.meta||{};l.name=r,l.type=n;const u=Number.isFinite(t.data.size)?t.data.size:null;let s={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...l},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:u,uploadComplete:!1,uploadStarted:null},size:u,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(s,e);!1===c?Ks(this,fc)[fc](new Qs("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"===typeof c&&null!==c&&(s=c);try{const t=Object.keys(e).map((t=>e[t]));Ks(this,lc)[lc](s,t)}catch(f){Ks(this,fc)[fc](f,{file:s})}return s}function _c(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Bc(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"===typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),Ks(this,fc)[fc](e,{throwErr:!1})}else Ks(this,fc)[fc](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Ks(this,ac)[ac].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&Ks(this,sc)[sc](e)})),"undefined"!==typeof window&&window.addEventListener&&(window.addEventListener("online",Ks(this,vc)[vc]),window.addEventListener("offline",Ks(this,vc)[vc]),setTimeout(Ks(this,vc)[vc],3e3))}function Fc(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=Zs();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function jc(e){const{currentUploads:t}=this.getState();return t[e]}function Pc(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Tc(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Ks(this,oc)[oc],...Ks(this,ic)[ic],...Ks(this,ac)[ac]];try{for(let i=r;i<o.length;i++){if(!n)break;const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),Ks(this,bc)[bc](e),a}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Ks(this,bc)[bc](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}xc.VERSION="2.1.3";var Nc=xc,Ic=en((function(e,t){var n,r,o,i,a,l,u,s,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,l={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:l[a]=t[a];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===l[a]&&(l[a]=e.defaultProps[a]);return v(e,l,o,i,null)}function v(e,t,n,i,a){var l={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(l),l}function m(e){return e.children}function y(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!C.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||l)(C)}function C(){for(var e;C.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,F(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),j(n,o),o.__e!=i&&w(o)))}))}function E(e,t,n,r,o,i,a,l,u,s){var d,p,h,g,y,w,x,C=r&&r.__k||f,E=C.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(m,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=C[d])||h&&g.key==h.key&&g.type===h.type)C[d]=void 0;else for(p=0;p<E;p++){if((h=C[p])&&g.key==h.key&&g.type===h.type){C[p]=void 0;break}h=null}F(e,g,h=h||c,o,i,a,l,u,s),y=g.__e,(p=g.ref)&&h.ref!=p&&(x||(x=[]),h.ref&&x.push(h.ref,null,g),x.push(p,g.__c||y,g)),null!=y?(null==w&&(w=y),"function"==typeof g.type&&g.__k===h.__k?g.__d=u=k(g,u,e):u=S(e,g,h,C,y,u),"function"==typeof n.type&&(n.__d=u)):u&&h.__e==u&&u.parentNode!=e&&(u=b(h))}for(n.__e=w,d=E;d--;)null!=C[d]&&("function"==typeof n.type&&null!=C[d].__e&&C[d].__e==n.__d&&(n.__d=b(r,d+1)),N(C[d],C[d]));if(x)for(d=0;d<x.length;d++)T(x[d],x[++d],x[++d])}function k(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?k(r,t,n):S(n,r,r,o,r.__e,t));return t}function S(e,t,n,r,o,i){var a,l,u;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(l=i,u=0;(l=l.nextSibling)&&u<r.length;u+=2)if(l==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function D(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:_,i):e.removeEventListener(t,i?B:_,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function _(e){this.l[e.type+!1](r.event?r.event(e):e)}function B(e){this.l[e.type+!0](r.event?r.event(e):e)}function F(e,t,n,o,i,a,l,u,s){var c,f,d,h,g,v,b,w,x,C,k,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(s=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(c=r.__b)&&c(t);try{e:if("function"==typeof S){if(w=t.props,x=(c=S.contextType)&&o[c.__c],C=c?x?x.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in S&&S.prototype.render?t.__c=f=new S(w,C):(t.__c=f=new y(w,C),f.constructor=S,f.render=I),x&&x.sub(f),f.props=w,f.state||(f.state={}),f.context=C,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,S.getDerivedStateFromProps(w,f.__s))),h=f.props,g=f.state,d)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==S.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,C),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,C)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&l.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,C),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,g,v)}))}f.context=C,f.props=w,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,g)),k=null!=c&&c.type===m&&null==c.key?c.props.children:c,E(e,Array.isArray(k)?k:[k],t,n,o,i,a,l,u,s),f.base=t.__e,t.__h=null,f.__h.length&&l.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=P(n.__e,t,n,o,i,a,l,s);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(s||null!=a)&&(t.__e=u,t.__h=!!s,a[a.indexOf(u)]=null),r.__e(e,t,n)}}function j(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function P(e,t,r,o,i,a,l,u){var s,f,d,p=r.props,g=t.props,v=t.type,m=0;if("svg"===v&&(i=!0),null!=a)for(;m<a.length;m++)if((s=a[m])&&"setAttribute"in s==!!v&&(v?s.localName===v:3===s.nodeType)){e=s,a[m]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,u=!1}if(null===v)p===g||u&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!u){if(null!=a)for(p={},m=0;m<e.attributes.length;m++)p[e.attributes[m].name]=e.attributes[m].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(D(e,g,p,i,u),d)t.__k=[];else if(m=t.props.children,E(e,Array.isArray(m)?m:[m],t,r,o,i&&"foreignObject"!==v,a,l,a?a[0]:r.__k&&b(r,0),u),null!=a)for(m=a.length;m--;)null!=a[m]&&h(a[m]);u||("value"in g&&void 0!==(m=g.value)&&(m!==p.value||m!==e.value||"progress"===v&&!m)&&O(e,"value",m,p.value,!1),"checked"in g&&void 0!==(m=g.checked)&&m!==e.checked&&O(e,"checked",m,p.checked,!1))}return e}function T(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function N(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||T(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&N(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function I(e,t,n){return this.constructor(e,n)}function M(e,t,o){var i,a,l;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,l=[],F(t,e=(!i&&o||t).__k=g(m,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,l,!i&&o?o:a?a.__e:t.firstChild,i),j(l,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},y.prototype.render=m,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,C.__r=0,s=0,t.Component=y,t.Fragment=m,t.cloneElement=function(e,t,r){var o,i,a,l=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:l[a]=t[a];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),v(e.type,l,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){M(t,n,e)},t.isValidElement=i,t.options=r,t.render=M,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Mc=function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE},Lc=function(e,t){return void 0===t&&(t=document),"string"===typeof e?t.querySelector(e):Mc(e)?e:null},Rc=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new ls([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function zc(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Vc=0;function $c(e){return"__private_"+Vc+++"_"+e}const{render:Uc}=Ic;function Hc(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}var Wc=$c("updateUI");class qc extends Rc{constructor(){super(...arguments),Object.defineProperty(this,Wc,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=Lc(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return zc(this,Wc)[Wc]=Hc((e=>{this.uppy.getPlugin(this.id)&&(Uc(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Uc(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"===typeof e&&e instanceof qc)o=e;else if("function"===typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"===typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=zc(this,Wc))[Wc])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}var Kc=qc;const{debugLogger:Gc}=$s;var Yc=Nc,Zc=Nc,Jc=Kc,Xc=Rc,Qc=Gc;Yc.Uppy=Zc,Yc.UIPlugin=Jc,Yc.BasePlugin=Xc,Yc.debugLogger=Qc;class ef extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var tf=ef,nf=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new tf(e)}))};class rf extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var of,af,lf,uf,sf,cf=rf;function ff(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var df=0;function pf(e){return"__private_"+df+++"_"+e}function hf(e){return e.replace(/\/$/,"")}async function gf(e){if(401===e.status)throw new cf;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var vf=(af=pf("getPostResponseFunc"),lf=pf("getUrl"),uf=pf("errorHandler"),sf=of=class e{constructor(e,t){Object.defineProperty(this,uf,{value:yf}),Object.defineProperty(this,lf,{value:mf}),Object.defineProperty(this,af,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return hf(e&&e[t]?e[t]:t)}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState(),n=t.companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(ff(this,lf)[lf](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){const n="get";return this.preflightAndHeaders(e).then((t=>nf(ff(this,lf)[lf](e),{method:n,headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(ff(this,af)[af](t)).then(gf).catch(ff(this,uf)[uf](n,e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>nf(ff(this,lf)[lf](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(ff(this,af)[af](n)).then(gf).catch(ff(this,uf)[uf](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>nf(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(ff(this,af)[af](n)).then(gf).catch(ff(this,uf)[uf](r,e))}},of.VERSION="2.0.4",of.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${of.VERSION}`},sf);function mf(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function yf(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${ff(this,lf)[lf](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var bf=(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),wf=e=>Promise.resolve(localStorage.getItem(e)),xf=e=>new Promise((t=>{localStorage.removeItem(e),t()})),Cf={setItem:bf,getItem:wf,removeItem:xf};const Ef=e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ");var kf=class extends vf{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||Ef(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated,r=n?401!==e.status:e.status<400;return t.setPluginState({authenticated:r}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if("string"!==typeof n&&!Array.isArray(n)&&!(n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||Cf}};const Sf=e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ");var Df,Af,Of,_f,Bf,Ff=class extends vf{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||Sf(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}};let jf,Pf;function Tf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nf=0;function If(e){return"__private_"+Nf+++"_"+e}var Mf=(Df=If("queued"),Af=If("emitter"),Of=If("isOpen"),_f=If("socket"),Bf=If("handleMessage"),jf=Symbol.for("uppy test: getSocket"),Pf=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Df,{writable:!0,value:[]}),Object.defineProperty(this,Af,{writable:!0,value:ss()}),Object.defineProperty(this,Of,{writable:!0,value:!1}),Object.defineProperty(this,_f,{writable:!0,value:void 0}),Object.defineProperty(this,Bf,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(t){console.log(t)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return Tf(this,Of)[Of]}[jf](){return Tf(this,_f)[_f]}[Pf](){return Tf(this,Df)[Df]}open(){Tf(this,_f)[_f]=new WebSocket(this.opts.target),Tf(this,_f)[_f].onopen=()=>{Tf(this,Of)[Of]=!0;while(Tf(this,Df)[Df].length>0&&Tf(this,Of)[Of]){const e=Tf(this,Df)[Df].shift();this.send(e.action,e.payload)}},Tf(this,_f)[_f].onclose=()=>{Tf(this,Of)[Of]=!1},Tf(this,_f)[_f].onmessage=Tf(this,Bf)[Bf]}close(){var e;null==(e=Tf(this,_f)[_f])||e.close()}send(e,t){Tf(this,Of)[Of]?Tf(this,_f)[_f].send(JSON.stringify({action:e,payload:t})):Tf(this,Df)[Df].push({action:e,payload:t})}on(e,t){Tf(this,Af)[Af].on(e,t)}emit(e,t){Tf(this,Af)[Af].emit(e,t)}once(e,t){Tf(this,Af)[Af].once(e,t)}}),Lf={RequestClient:vf,Provider:kf,SearchProvider:Ff,Socket:Mf};function Rf(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}var zf,Vf,$f=Ki(Rf,300,{leading:!0,trailing:!0}),Uf=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i,n=t.exec(e)[1],r=/^http:\/\//i.test(e)?"ws":"wss";return`${r}://${n}`},Hf=function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}const i=Promise.all(e.map((e=>e.then(r,o))));return i.then((()=>({successful:t,failed:n})))};function Wf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qf=0;function Kf(e){return"__private_"+qf+++"_"+e}var Gf=(zf=Kf("emitter"),Vf=Kf("events"),class{constructor(e){Object.defineProperty(this,zf,{writable:!0,value:void 0}),Object.defineProperty(this,Vf,{writable:!0,value:[]}),Wf(this,zf)[zf]=e}on(e,t){return Wf(this,Vf)[Vf].push([e,t]),Wf(this,zf)[zf].on(e,t)}remove(){for(const[e,t]of Wf(this,Vf)[Vf].splice(0))Wf(this,zf)[zf].off(e,t)}});function Yf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Zf=0;function Jf(e){return"__private_"+Zf+++"_"+e}var Xf=Jf("aliveTimer"),Qf=Jf("isDone"),ed=Jf("onTimedOut"),td=Jf("timeout");class nd{constructor(e,t){Object.defineProperty(this,Xf,{writable:!0,value:void 0}),Object.defineProperty(this,Qf,{writable:!0,value:!1}),Object.defineProperty(this,ed,{writable:!0,value:void 0}),Object.defineProperty(this,td,{writable:!0,value:void 0}),Yf(this,td)[td]=e,Yf(this,ed)[ed]=t}progress(){Yf(this,Qf)[Qf]||Yf(this,td)[td]>0&&(clearTimeout(Yf(this,Xf)[Xf]),Yf(this,Xf)[Xf]=setTimeout(Yf(this,ed)[ed],Yf(this,td)[td]))}done(){Yf(this,Qf)[Qf]||(clearTimeout(Yf(this,Xf)[Xf]),Yf(this,Xf)[Xf]=null,Yf(this,Qf)[Qf]=!0)}}var rd=nd;function od(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var id=0;function ad(e){return"__private_"+id+++"_"+e}function ld(){return new Error("Cancelled")}var ud=ad("activeRequests"),sd=ad("queuedHandlers"),cd=ad("call"),fd=ad("queueNext"),dd=ad("next"),pd=ad("queue"),hd=ad("dequeue");class gd{constructor(e){Object.defineProperty(this,hd,{value:wd}),Object.defineProperty(this,pd,{value:bd}),Object.defineProperty(this,dd,{value:yd}),Object.defineProperty(this,fd,{value:md}),Object.defineProperty(this,cd,{value:vd}),Object.defineProperty(this,ud,{writable:!0,value:0}),Object.defineProperty(this,sd,{writable:!0,value:[]}),this.limit="number"!==typeof e||0===e?1/0:e}run(e,t){return od(this,ud)[ud]<this.limit?od(this,cd)[cd](e):od(this,pd)[pd](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const l=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(l){n=Promise.reject(l)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=ld()}}),t)}));return l.abort=()=>{a.abort()},l}}}function vd(e){od(this,ud)[ud]+=1;let t,n=!1;try{t=e()}catch(r){throw od(this,ud)[ud]-=1,r}return{abort:()=>{n||(n=!0,od(this,ud)[ud]-=1,t(),od(this,fd)[fd]())},done:()=>{n||(n=!0,od(this,ud)[ud]-=1,od(this,fd)[fd]())}}}function md(){queueMicrotask((()=>od(this,dd)[dd]()))}function yd(){if(od(this,ud)[ud]>=this.limit)return;if(0===od(this,sd)[sd].length)return;const e=od(this,sd)[sd].shift(),t=od(this,cd)[cd](e.fn);e.abort=t.abort,e.done=t.done}function bd(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{od(this,hd)[hd](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=od(this,sd)[sd].findIndex((e=>n.priority>e.priority));return-1===r?od(this,sd)[sd].push(n):od(this,sd)[sd].splice(r,0,n),n}function wd(e){const t=od(this,sd)[sd].indexOf(e);-1!==t&&od(this,sd)[sd].splice(t,1)}var xd={RateLimitedQueue:gd,internalRateLimitedQueue:Symbol("__queue")};function Cd(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)}var Ed,kd,Sd=Cd,Dd={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Ad}=Hs,{Provider:Od,RequestClient:_d,Socket:Bd}=Lf,{RateLimitedQueue:Fd,internalRateLimitedQueue:jd}=xd;function Pd(e,t){let n=t;return n||(n=new Error("Upload error")),"string"===typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Sd(e)?(n=new tf(n,e),n):(n.request=e,n)}function Td(e){const t=e.data.slice(0,e.data.size,e.meta.type);return t}var Nd=(kd=Ed=class extends Rc{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Dd;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(r){e.log(r)}return n},getResponseError(e,t){let n=new Error("Upload error");return Sd(t)&&(n=new tf(n,t)),n},validateStatus(e){return e>=200&&e<300}};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),jd in this.opts?this.requests=this.opts[jd]:this.requests=new Fd(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"===typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){const r=Array.isArray(n.metaFields)?n.metaFields:Object.keys(t);r.forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=Td(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=Td(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new Gf(this.uppy);const a=new rd(r.timeout,(()=>{i.abort(),u.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),l=Ad();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${l} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${l} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),a.done(),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],l={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,l),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const s=r.getResponseData(i.responseText,i),c=Pd(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:s};return this.uppy.emit("upload-error",e,c,f),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${l} errored`),a.done(),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=Pd(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const u=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{u.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{u.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={},i=Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta);i.forEach((t=>{o[t]=e.meta[t]}));const a=e.remote.providerOptions.provider?Od:_d,l=new a(this.uppy,e.remote.providerOptions);l.post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=Uf(e.remote.companionUrl),l=new Bd({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Gf(this.uppy),this.onFileRemove(e.id,(()=>{l.send("cancel",{}),u.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{l.send("cancel",{}),u.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{l.send("pause",{}),l.send("resume",{})})),this.onRetryAll(e.id,(()=>{l.send("pause",{}),l.send("resume",{})})),l.on("progress",(t=>$f(this,t,e))),l.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),l.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const u=this.requests.run((()=>(l.open(),e.isPaused&&l.send("pause",{}),()=>l.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),l=new XMLHttpRequest,u=new rd(this.opts.timeout,(()=>{l.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));s(e),n(e)})),s=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};l.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),u.progress()})),l.upload.addEventListener("progress",(t=>{u.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),l.addEventListener("load",(r=>{if(u.done(),this.opts.validateStatus(r.target.status,l.responseText,l)){const n=this.opts.getResponseData(l.responseText,l),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(l.responseText,l)||new Error("Upload error");return o.request=l,s(o),n(o)})),l.addEventListener("error",(()=>{u.done();const e=this.opts.getResponseError(l.responseText,l)||new Error("Upload error");return s(e),n(e)})),this.uppy.on("cancel-all",(()=>{u.done(),l.abort()})),l.open(o.toUpperCase(),r,!0),l.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(l.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{l.setRequestHeader(e,this.opts.headers[e])})),l.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return Hf(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[jd]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){const e=t.some((e=>e.isRemote));if(e)throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"===typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Ed.VERSION="2.0.6",kd),Id="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Md(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ld,Rd,zd=function(e){return e&&e.Math==Math&&e},Vd=zd("object"==typeof globalThis&&globalThis)||zd("object"==typeof window&&window)||zd("object"==typeof self&&self)||zd("object"==typeof Id&&Id)||function(){return this}()||Function("return this")(),$d=Object.defineProperty,Ud=function(e,t){try{$d(Vd,e,{value:t,configurable:!0,writable:!0})}catch(p){Vd[e]=t}return t},Hd=Vd["__core-js_shared__"]||Ud("__core-js_shared__",{}),Wd=Md((function(e){(e.exports=function(e,t){return Hd[e]||(Hd[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),qd=Function.prototype,Kd=qd.bind,Gd=qd.call,Yd=Kd&&Kd.bind(Gd),Zd=Kd?function(e){return e&&Yd(Gd,e)}:function(e){return e&&function(){return Gd.apply(e,arguments)}},Jd=Vd.TypeError,Xd=function(e){if(null==e)throw Jd("Can't call method on "+e);return e},Qd=Vd.Object,ep=function(e){return Qd(Xd(e))},tp=Zd({}.hasOwnProperty),np=Object.hasOwn||function(e,t){return tp(ep(e),t)},rp=0,op=Math.random(),ip=Zd(1..toString),ap=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ip(++rp+op,36)},lp=function(e){return"function"==typeof e},up=function(e){return lp(e)?e:void 0},sp=function(e,t){return arguments.length<2?up(Vd[e]):Vd[e]&&Vd[e][t]},cp=sp("navigator","userAgent")||"",fp=Vd.process,dp=Vd.Deno,pp=fp&&fp.versions||dp&&dp.version,hp=pp&&pp.v8;hp&&(Rd=(Ld=hp.split("."))[0]>0&&Ld[0]<4?1:+(Ld[0]+Ld[1])),!Rd&&cp&&(!(Ld=cp.match(/Edge\/(\d+)/))||Ld[1]>=74)&&(Ld=cp.match(/Chrome\/(\d+)/))&&(Rd=+Ld[1]);var gp=Rd,vp=function(e){try{return!!e()}catch(e){return!0}},mp=!!Object.getOwnPropertySymbols&&!vp((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gp&&gp<41})),yp=mp&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bp=Wd("wks"),wp=Vd.Symbol,xp=wp&&wp.for,Cp=yp?wp:wp&&wp.withoutSetter||ap,Ep=function(e){if(!np(bp,e)||!mp&&"string"!=typeof bp[e]){var t="Symbol."+e;mp&&np(wp,e)?bp[e]=wp[e]:bp[e]=yp&&xp?xp(t):Cp(t)}return bp[e]},kp={};kp[Ep("toStringTag")]="z";var Sp="[object z]"===String(kp),Dp=!vp((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ap=function(e){return"object"==typeof e?null!==e:lp(e)},Op=Vd.document,_p=Ap(Op)&&Ap(Op.createElement),Bp=function(e){return _p?Op.createElement(e):{}},Fp=!Dp&&!vp((function(){return 7!=Object.defineProperty(Bp("div"),"a",{get:function(){return 7}}).a})),jp=Vd.String,Pp=Vd.TypeError,Tp=function(e){if(Ap(e))return e;throw Pp(jp(e)+" is not an object")},Np=Function.prototype.call,Ip=Np.bind?Np.bind(Np):function(){return Np.apply(Np,arguments)},Mp=Zd({}.isPrototypeOf),Lp=Vd.Object,Rp=yp?function(e){return"symbol"==typeof e}:function(e){var t=sp("Symbol");return lp(t)&&Mp(t.prototype,Lp(e))},zp=Vd.String,Vp=function(e){try{return zp(e)}catch(e){return"Object"}},$p=Vd.TypeError,Up=function(e){if(lp(e))return e;throw $p(Vp(e)+" is not a function")},Hp=function(e,t){var n=e[t];return null==n?void 0:Up(n)},Wp=Vd.TypeError,qp=Vd.TypeError,Kp=Ep("toPrimitive"),Gp=function(e,t){if(!Ap(e)||Rp(e))return e;var n,r=Hp(e,Kp);if(r){if(void 0===t&&(t="default"),n=Ip(r,e,t),!Ap(n)||Rp(n))return n;throw qp("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&lp(n=e.toString)&&!Ap(r=Ip(n,e)))return r;if(lp(n=e.valueOf)&&!Ap(r=Ip(n,e)))return r;if("string"!==t&&lp(n=e.toString)&&!Ap(r=Ip(n,e)))return r;throw Wp("Can't convert object to primitive value")}(e,t)},Yp=function(e){var t=Gp(e,"string");return Rp(t)?t:t+""},Zp=Vd.TypeError,Jp=Object.defineProperty,Xp={f:Dp?Jp:function(e,t,n){if(Tp(e),t=Yp(t),Tp(n),Fp)try{return Jp(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Zp("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Qp=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},eh=Dp?function(e,t,n){return Xp.f(e,t,Qp(1,n))}:function(e,t,n){return e[t]=n,e},th=Zd(Function.toString);lp(Hd.inspectSource)||(Hd.inspectSource=function(e){return th(e)});var nh,rh,oh,ih=Hd.inspectSource,ah=Vd.WeakMap,lh=lp(ah)&&/native code/.test(ih(ah)),uh=Wd("keys"),sh=function(e){return uh[e]||(uh[e]=ap(e))},ch={},fh=Vd.TypeError,dh=Vd.WeakMap;if(lh||Hd.state){var ph=Hd.state||(Hd.state=new dh),hh=Zd(ph.get),gh=Zd(ph.has),vh=Zd(ph.set);nh=function(e,t){if(gh(ph,e))throw new fh("Object already initialized");return t.facade=e,vh(ph,e,t),t},rh=function(e){return hh(ph,e)||{}},oh=function(e){return gh(ph,e)}}else{var mh=sh("state");ch[mh]=!0,nh=function(e,t){if(np(e,mh))throw new fh("Object already initialized");return t.facade=e,eh(e,mh,t),t},rh=function(e){return np(e,mh)?e[mh]:{}},oh=function(e){return np(e,mh)}}var yh={set:nh,get:rh,has:oh,enforce:function(e){return oh(e)?rh(e):nh(e,{})},getterFor:function(e){return function(t){var n;if(!Ap(t)||(n=rh(t)).type!==e)throw fh("Incompatible receiver, "+e+" required");return n}}},bh=Function.prototype,wh=Dp&&Object.getOwnPropertyDescriptor,xh=np(bh,"name"),Ch={EXISTS:xh,PROPER:xh&&"something"===function(){}.name,CONFIGURABLE:xh&&(!Dp||Dp&&wh(bh,"name").configurable)},Eh=Md((function(e){var t=Ch.CONFIGURABLE,n=yh.get,r=yh.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;lp(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!np(i,"name")||t&&i.name!==f)&&eh(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==Vd?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:eh(e,n,i)):s?e[n]=i:Ud(n,i)})(Function.prototype,"toString",(function(){return lp(this)&&n(this).source||ih(this)}))})),kh=Zd({}.toString),Sh=Zd("".slice),Dh=function(e){return Sh(kh(e),8,-1)},Ah=Ep("toStringTag"),Oh=Vd.Object,_h="Arguments"==Dh(function(){return arguments}()),Bh=Sp?Dh:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Oh(e),Ah))?n:_h?Dh(t):"Object"==(r=Dh(t))&&lp(t.callee)?"Arguments":r},Fh=Sp?{}.toString:function(){return"[object "+Bh(this)+"]"};Sp||Eh(Object.prototype,"toString",Fh,{unsafe:!0});var jh={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ph=Bp("span").classList,Th=Ph&&Ph.constructor&&Ph.constructor.prototype,Nh=Th===Object.prototype?void 0:Th,Ih=Zd(Zd.bind),Mh=function(e,t){return Up(e),void 0===t?e:Ih?Ih(e,t):function(){return e.apply(t,arguments)}},Lh=Vd.Object,Rh=Zd("".split),zh=vp((function(){return!Lh("z").propertyIsEnumerable(0)}))?function(e){return"String"==Dh(e)?Rh(e,""):Lh(e)}:Lh,Vh=Math.ceil,$h=Math.floor,Uh=function(e){var t=+e;return t!=t||0===t?0:(t>0?$h:Vh)(t)},Hh=Math.min,Wh=function(e){return e>0?Hh(Uh(e),9007199254740991):0},qh=function(e){return Wh(e.length)},Kh=Array.isArray||function(e){return"Array"==Dh(e)},Gh=function(){},Yh=[],Zh=sp("Reflect","construct"),Jh=/^\s*(?:class|function)\b/,Xh=Zd(Jh.exec),Qh=!Jh.exec(Gh),eg=function(e){if(!lp(e))return!1;try{return Zh(Gh,Yh,e),!0}catch(e){return!1}},tg=!Zh||vp((function(){var e;return eg(eg.call)||!eg(Object)||!eg((function(){e=!0}))||e}))?function(e){if(!lp(e))return!1;switch(Bh(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Qh||!!Xh(Jh,ih(e))}:eg,ng=Ep("species"),rg=Vd.Array,og=function(e,t){return new(function(e){var t;return Kh(e)&&(t=e.constructor,(tg(t)&&(t===rg||Kh(t.prototype))||Ap(t)&&null===(t=t[ng]))&&(t=void 0)),void 0===t?rg:t}(e))(0===t?0:t)},ig=Zd([].push),ag=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=ep(u),g=zh(h),v=Mh(s,c),m=qh(g),y=0,b=f||og,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:ig(w,d)}else switch(e){case 4:return!1;case 7:ig(w,d)}return i?-1:r||o?o:w}},lg={forEach:ag(0),map:ag(1),filter:ag(2),some:ag(3),every:ag(4),find:ag(5),findIndex:ag(6),filterReject:ag(7)},ug=function(e,t){var n=[][e];return!!n&&vp((function(){n.call(null,t||function(){throw 1},1)}))},sg=lg.forEach,cg=ug("forEach")?[].forEach:function(e){return sg(this,e,arguments.length>1?arguments[1]:void 0)},fg=function(e){if(e&&e.forEach!==cg)try{eh(e,"forEach",cg)}catch(h){e.forEach=cg}};for(var dg in jh)jh[dg]&&fg(Vd[dg]&&Vd[dg].prototype);fg(Nh);var pg={}.propertyIsEnumerable,hg=Object.getOwnPropertyDescriptor,gg=hg&&!pg.call({1:2},1)?function(e){var t=hg(this,e);return!!t&&t.enumerable}:pg,vg={f:gg},mg=function(e){return zh(Xd(e))},yg=Object.getOwnPropertyDescriptor,bg={f:Dp?yg:function(e,t){if(e=mg(e),t=Yp(t),Fp)try{return yg(e,t)}catch(e){}if(np(e,t))return Qp(!Ip(vg.f,e,t),e[t])}},wg=Math.max,xg=Math.min,Cg=function(e,t){var n=Uh(e);return n<0?wg(n+t,0):xg(n,t)},Eg=function(e){return function(t,n,r){var o,i=mg(t),a=qh(i),l=Cg(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},kg={includes:Eg(!0),indexOf:Eg(!1)},Sg=kg.indexOf,Dg=Zd([].push),Ag=function(e,t){var n,r=mg(e),o=0,i=[];for(n in r)!np(ch,n)&&np(r,n)&&Dg(i,n);for(;t.length>o;)np(r,n=t[o++])&&(~Sg(i,n)||Dg(i,n));return i},Og=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_g=Og.concat("length","prototype"),Bg={f:Object.getOwnPropertyNames||function(e){return Ag(e,_g)}},Fg={f:Object.getOwnPropertySymbols},jg=Zd([].concat),Pg=sp("Reflect","ownKeys")||function(e){var t=Bg.f(Tp(e)),n=Fg.f;return n?jg(t,n(e)):t},Tg=function(e,t){for(var n=Pg(t),r=Xp.f,o=bg.f,i=0;i<n.length;i++){var a=n[i];np(e,a)||r(e,a,o(t,a))}},Ng=/#|\.prototype\./,Ig=function(e,t){var n=Lg[Mg(e)];return n==zg||n!=Rg&&(lp(t)?vp(t):!!t)},Mg=Ig.normalize=function(e){return String(e).replace(Ng,".").toLowerCase()},Lg=Ig.data={},Rg=Ig.NATIVE="N",zg=Ig.POLYFILL="P",Vg=Ig,$g=bg.f,Ug=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?Vd:s?Vd[l]||Ud(l,{}):(Vd[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=$g(n,r))&&a.value:n[r],!Vg(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Tg(i,o)}(e.sham||o&&o.sham)&&eh(i,"sham",!0),Eh(n,r,i,e)}},Hg=Ep("species"),Wg=function(e){return gp>=51||!vp((function(){var t=[];return(t.constructor={})[Hg]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},qg=lg.map,Kg=Wg("map");Ug({target:"Array",proto:!0,forced:!Kg},{map:function(e){return qg(this,e,arguments.length>1?arguments[1]:void 0)}});var Gg=function(e,t,n){var r,o;Tp(e);try{if(!(r=Hp(e,"return"))){if("throw"===t)throw n;return n}r=Ip(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Tp(r),n},Yg=function(e,t,n,r){try{return r?t(Tp(n)[0],n[1]):t(n)}catch(t){Gg(e,"throw",t)}},Zg={},Jg=Ep("iterator"),Xg=Array.prototype,Qg=function(e){return void 0!==e&&(Zg.Array===e||Xg[Jg]===e)},ev=function(e,t,n){var r=Yp(t);r in e?Xp.f(e,r,Qp(0,n)):e[r]=n},tv=Ep("iterator"),nv=function(e){if(null!=e)return Hp(e,tv)||Hp(e,"@@iterator")||Zg[Bh(e)]},rv=Vd.TypeError,ov=function(e,t){var n=arguments.length<2?nv(e):t;if(Up(n))return Tp(Ip(n,e));throw rv(Vp(e)+" is not iterable")},iv=Vd.Array,av=Ep("iterator"),lv=!1;try{var uv=0,sv={next:function(){return{done:!!uv++}},return:function(){lv=!0}};sv[av]=function(){return this},Array.from(sv,(function(){throw 2}))}catch(Sse){}var cv=function(e,t){if(!t&&!lv)return!1;var n=!1;try{var r={};r[av]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},fv=!cv((function(e){Array.from(e)}));Ug({target:"Array",stat:!0,forced:fv},{from:function(e){var t=ep(e),n=tg(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Mh(o,r>2?arguments[2]:void 0));var a,l,u,s,c,f,d=nv(t),p=0;if(!d||this==iv&&Qg(d))for(a=qh(t),l=n?new this(a):iv(a);a>p;p++)f=i?o(t[p],p):t[p],ev(l,p,f);else for(c=(s=ov(t,d)).next,l=n?new this:[];!(u=Ip(c,s)).done;p++)f=i?Yg(s,o,[u.value,p],!0):u.value,ev(l,p,f);return l.length=p,l}});var dv,pv=Vd.String,hv=function(e){if("Symbol"===Bh(e))throw TypeError("Cannot convert a Symbol value to a string");return pv(e)},gv=Zd("".charAt),vv=Zd("".charCodeAt),mv=Zd("".slice),yv=function(e){return function(t,n){var r,o,i=hv(Xd(t)),a=Uh(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=vv(i,a))<55296||r>56319||a+1===l||(o=vv(i,a+1))<56320||o>57343?e?gv(i,a):r:e?mv(i,a,a+2):o-56320+(r-55296<<10)+65536}},bv={codeAt:yv(!1),charAt:yv(!0)},wv=Object.keys||function(e){return Ag(e,Og)},xv=Dp?Object.defineProperties:function(e,t){Tp(e);for(var n,r=mg(t),o=wv(t),i=o.length,a=0;i>a;)Xp.f(e,n=o[a++],r[n]);return e},Cv=sp("document","documentElement"),Ev=sh("IE_PROTO"),kv=function(){},Sv=function(e){return"<script>"+e+"<\/script>"},Dv=function(e){e.write(Sv("")),e.close();var t=e.parentWindow.Object;return e=null,t},Av=function(){try{dv=new ActiveXObject("htmlfile")}catch(e){}var e,t;Av="undefined"!=typeof document?document.domain&&dv?Dv(dv):((t=Bp("iframe")).style.display="none",Cv.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Sv("document.F=Object")),e.close(),e.F):Dv(dv);for(var n=Og.length;n--;)delete Av.prototype[Og[n]];return Av()};ch[Ev]=!0;var Ov,_v,Bv,Fv=Object.create||function(e,t){var n;return null!==e?(kv.prototype=Tp(e),n=new kv,kv.prototype=null,n[Ev]=e):n=Av(),void 0===t?n:xv(n,t)},jv=!vp((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Pv=sh("IE_PROTO"),Tv=Vd.Object,Nv=Tv.prototype,Iv=jv?Tv.getPrototypeOf:function(e){var t=ep(e);if(np(t,Pv))return t[Pv];var n=t.constructor;return lp(n)&&t instanceof n?n.prototype:t instanceof Tv?Nv:null},Mv=Ep("iterator"),Lv=!1;[].keys&&("next"in(Bv=[].keys())?(_v=Iv(Iv(Bv)))!==Object.prototype&&(Ov=_v):Lv=!0);var Rv=null==Ov||vp((function(){var e={};return Ov[Mv].call(e)!==e}));Rv&&(Ov={}),lp(Ov[Mv])||Eh(Ov,Mv,(function(){return this}));var zv={IteratorPrototype:Ov,BUGGY_SAFARI_ITERATORS:Lv},Vv=Xp.f,$v=Ep("toStringTag"),Uv=function(e,t,n){e&&!np(e=n?e:e.prototype,$v)&&Vv(e,$v,{configurable:!0,value:t})},Hv=zv.IteratorPrototype,Wv=function(){return this},qv=Vd.String,Kv=Vd.TypeError,Gv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Zd(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Tp(n),function(e){if("object"==typeof e||lp(e))return e;throw Kv("Can't set "+qv(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Yv=Ch.PROPER,Zv=Ch.CONFIGURABLE,Jv=zv.IteratorPrototype,Xv=zv.BUGGY_SAFARI_ITERATORS,Qv=Ep("iterator"),em=function(){return this},tm=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Fv(Hv,{next:Qp(+!r,n)}),Uv(e,o,!1),Zg[o]=Wv}(n,t,r);var l,u,s,c=function(e){if(e===o&&g)return g;if(!Xv&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Qv]||p["@@iterator"]||o&&p[o],g=!Xv&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(l=Iv(v.call(new e)))!==Object.prototype&&l.next&&(Iv(l)!==Jv&&(Gv?Gv(l,Jv):lp(l[Qv])||Eh(l,Qv,em)),Uv(l,f,!0)),Yv&&"values"==o&&h&&"values"!==h.name&&(Zv?eh(p,"name","values"):(d=!0,g=function(){return Ip(h,this)})),o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(s in u)(Xv||d||!(s in p))&&Eh(p,s,u[s]);else Ug({target:t,proto:!0,forced:Xv||d},u);return p[Qv]!==g&&Eh(p,Qv,g,{name:o}),Zg[t]=g,u},nm=bv.charAt,rm=yh.set,om=yh.getterFor("String Iterator");tm(String,"String",(function(e){rm(this,{type:"String Iterator",string:hv(e),index:0})}),(function(){var e,t=om(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=nm(n,r),t.index+=e.length,{value:e,done:!1})}));var im=vp((function(){wv(1)}));
|
|
27
|
+
/*!
|
|
28
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
31
|
+
* Released under the MIT License.
|
|
32
|
+
*/function am(e){return"[object Object]"===Object.prototype.toString.call(e)}Ug({target:"Object",stat:!0,forced:im},{keys:function(e){return wv(ep(e))}});var lm={isHistory(e){return!1!==am(t=e)&&(void 0===(n=t.constructor)||!1!==am(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||vt.isOperationList(e.redos[0]))&&(0===e.undos.length||vt.isOperationList(e.undos[0]));var t,n,r}},um=new WeakMap,sm=new WeakMap,cm={isHistoryEditor:e=>lm.isHistory(e.history)&&ut.isEditor(e),isMerging:e=>sm.get(e),isSaving:e=>um.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=cm.isMerging(e);sm.set(e,!1),t(),sm.set(e,n)},withoutSaving(e,t){var n=cm.isSaving(e);um.set(e,!1),t(),um.set(e,n)}},fm=(e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!mt.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!mt.equals(e.path,t.path)),dm=(e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties,pm=(e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type),hm=e=>"set_selection"!==e.type,gm=function(){var e=Tp(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},vm=Ch.PROPER,mm=RegExp.prototype,ym=mm.toString,bm=Zd(gm),wm=vp((function(){return"/a/b"!=ym.call({source:"a",flags:"b"})})),xm=vm&&"toString"!=ym.name;(wm||xm)&&Eh(RegExp.prototype,"toString",(function(){var e=Tp(this),t=hv(e.source),n=e.flags;return"/"+t+"/"+hv(void 0===n&&Mp(mm,e)&&!("flags"in mm)?bm(e):n)}),{unsafe:!0});var Cm=Ep("unscopables"),Em=Array.prototype;null==Em[Cm]&&Xp.f(Em,Cm,{configurable:!0,value:Fv(null)});var km=function(e){Em[Cm][e]=!0},Sm=kg.includes;Ug({target:"Array",proto:!0},{includes:function(e){return Sm(this,e,arguments.length>1?arguments[1]:void 0)}}),km("includes");var Dm=Ep("match"),Am=function(e){var t;return Ap(e)&&(void 0!==(t=e[Dm])?!!t:"RegExp"==Dh(e))},Om=Vd.TypeError,_m=function(e){if(Am(e))throw Om("The method doesn't accept regular expressions");return e},Bm=Ep("match"),Fm=function(e){var t=/./;try{"/./"[e](t)}catch(p){try{return t[Bm]=!1,"/./"[e](t)}catch(e){}}return!1},jm=Zd("".indexOf);Ug({target:"String",proto:!0,forced:!Fm("includes")},{includes:function(e){return!!~jm(hv(Xd(this)),hv(_m(e)),arguments.length>1?arguments[1]:void 0)}});var Pm,Tm=/"/g,Nm=Zd("".replace);Ug({target:"String",proto:!0,forced:(Pm="anchor",vp((function(){var e=""[Pm]('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return t="a",n="name",r=e,o=hv(Xd(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+Nm(hv(r),Tm,""")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var Im,Mm=bg.f,Lm=Zd("".endsWith),Rm=Zd("".slice),zm=Math.min,Vm=Fm("endsWith"),$m=!(Vm||(Im=Mm(String.prototype,"endsWith"),!Im||Im.writable));Ug({target:"String",proto:!0,forced:!$m&&!Vm},{endsWith:function(e){var t=hv(Xd(this));_m(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:zm(Wh(n),r),i=hv(e);return Lm?Lm(t,i,o):Rm(t,o-i.length,o)===i}});var Um=Zd([].join),Hm=zh!=Object,Wm=ug("join",",");Ug({target:"Array",proto:!0,forced:Hm||!Wm},{join:function(e){return Um(mg(this),void 0===e?",":e)}});var qm=Vd.RegExp,Km=vp((function(){var e=qm("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Gm=Km||vp((function(){return!qm("a","y").sticky})),Ym={BROKEN_CARET:Km||vp((function(){var e=qm("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Gm,UNSUPPORTED_Y:Km},Zm=Vd.RegExp,Jm=vp((function(){var e=Zm(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Xm=Vd.RegExp,Qm=vp((function(){var e=Xm("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ey=yh.get,ty=Wd("native-string-replace",String.prototype.replace),ny=RegExp.prototype.exec,ry=ny,oy=Zd("".charAt),iy=Zd("".indexOf),ay=Zd("".replace),ly=Zd("".slice),uy=function(){var e=/a/,t=/b*/g;return Ip(ny,e,"a"),Ip(ny,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),sy=Ym.BROKEN_CARET,cy=void 0!==/()??/.exec("")[1];(uy||cy||sy||Jm||Qm)&&(ry=function(e){var t,n,r,o,i,a,l,u=this,s=ey(u),c=hv(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=Ip(ry,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=sy&&u.sticky,h=Ip(gm,u),g=u.source,v=0,m=c;if(p&&(h=ay(h,"y",""),-1===iy(h,"g")&&(h+="g"),m=ly(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==oy(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),cy&&(n=new RegExp("^"+g+"$(?!\\s)",h)),uy&&(r=u.lastIndex),o=Ip(ny,p?n:u,m),p?o?(o.input=ly(o.input,v),o[0]=ly(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:uy&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),cy&&o&&o.length>1&&Ip(ty,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Fv(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var fy=ry;Ug({target:"RegExp",proto:!0,forced:/./.exec!==fy},{exec:fy});var dy=Function.prototype,py=dy.apply,hy=dy.bind,gy=dy.call,vy="object"==typeof Reflect&&Reflect.apply||(hy?gy.bind(py):function(){return gy.apply(py,arguments)}),my=Ep("species"),yy=RegExp.prototype,by=function(e,t,n,r){var o=Ep(e),i=!vp((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!vp((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[my]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=Zd(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=Zd(e),u=t.exec;return u===fy||u===yy.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Eh(String.prototype,e,u[0]),Eh(yy,o,u[1])}r&&eh(yy[o],"sham",!0)},wy=bv.charAt,xy=function(e,t,n){return t+(n?wy(e,t).length:1)},Cy=Math.floor,Ey=Zd("".charAt),ky=Zd("".replace),Sy=Zd("".slice),Dy=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ay=/\$([$&'`]|\d{1,2})/g,Oy=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,u=Ay;return void 0!==o&&(o=ep(o),u=Dy),ky(i,u,(function(i,u){var s;switch(Ey(u,0)){case"$":return"$";case"&":return e;case"`":return Sy(t,0,n);case"'":return Sy(t,a);case"<":s=o[Sy(u,1,-1)];break;default:var c=+u;if(0===c)return i;if(c>l){var f=Cy(c/10);return 0===f?i:f<=l?void 0===r[f-1]?Ey(u,1):r[f-1]+Ey(u,1):i}s=r[c-1]}return void 0===s?"":s}))},_y=Vd.TypeError,By=function(e,t){var n=e.exec;if(lp(n)){var r=Ip(n,e,t);return null!==r&&Tp(r),r}if("RegExp"===Dh(e))return Ip(fy,e,t);throw _y("RegExp#exec called on incompatible receiver")},Fy=Ep("replace"),jy=Math.max,Py=Math.min,Ty=Zd([].concat),Ny=Zd([].push),Iy=Zd("".indexOf),My=Zd("".slice),Ly="$0"==="a".replace(/./,"$0"),Ry=!!/./[Fy]&&""===/./[Fy]("a","$0");by("replace",(function(e,t,n){var r=Ry?"$":"$0";return[function(e,n){var r=Xd(this),o=null==e?void 0:Hp(e,Fy);return o?Ip(o,e,r,n):Ip(t,hv(r),e,n)},function(e,o){var i=Tp(this),a=hv(e);if("string"==typeof o&&-1===Iy(o,r)&&-1===Iy(o,"$<")){var l=n(t,i,a,o);if(l.done)return l.value}var u=lp(o);u||(o=hv(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=By(i,a);if(null===d)break;if(Ny(f,d),!s)break;""===hv(d[0])&&(i.lastIndex=xy(a,Wh(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var m=hv((d=f[v])[0]),y=jy(Py(Uh(d.index),a.length),0),b=[],w=1;w<d.length;w++)Ny(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(u){var C=Ty([m],b,y,a);void 0!==x&&Ny(C,x);var E=hv(vy(o,void 0,C))}else E=Oy(m,a,y,b,x,o);y>=g&&(h+=My(a,g,y)+E,g=y+m.length)}return h+My(a,g)}]}),!!vp((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Ly||Ry);
|
|
33
|
+
/*! *****************************************************************************
|
|
34
|
+
Copyright (c) Microsoft Corporation.
|
|
35
|
+
|
|
36
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
37
|
+
purpose with or without fee is hereby granted.
|
|
38
|
+
|
|
39
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
40
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
41
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
42
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
43
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
44
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
45
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
46
|
+
***************************************************************************** */
|
|
47
|
+
var zy=function(e,t){return zy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},zy(e,t)};function Vy(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}zy(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var $y=function(){return $y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$y.apply(this,arguments)};function Uy(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Hy(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Wy(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var qy=0,Ky=function(){this.id=""+qy++},Gy=yh.set,Yy=yh.getterFor("Array Iterator"),Zy=tm(Array,"Array",(function(e,t){Gy(this,{type:"Array Iterator",target:mg(e),index:0,kind:t})}),(function(){var e=Yy(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Zg.Arguments=Zg.Array,km("keys"),km("values"),km("entries");var Jy=function(e,t,n){for(var r in t)Eh(e,r,t[r],n);return e},Xy=Vd.Array,Qy=Math.max,eb=function(e,t,n){for(var r=qh(e),o=Cg(t,r),i=Cg(void 0===n?r:n,r),a=Xy(Qy(i-o,0)),l=0;o<i;o++,l++)ev(a,l,e[o]);return a.length=l,a},tb=Bg.f,nb="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rb={f:function(e){return nb&&"Window"==Dh(e)?function(e){try{return tb(e)}catch(e){return eb(nb)}}(e):tb(mg(e))}},ob=vp((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ib=Object.isExtensible,ab=vp((function(){ib(1)}))||ob?function(e){return!!Ap(e)&&(!ob||"ArrayBuffer"!=Dh(e))&&(!ib||ib(e))}:ib,lb=!vp((function(){return Object.isExtensible(Object.preventExtensions({}))})),ub=Md((function(e){var t=Xp.f,n=!1,r=ap("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Bg.f,t=Zd([].splice),o={};o[r]=1,e(o).length&&(Bg.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Ug({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:rb.f}))},fastKey:function(e,t){if(!Ap(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!np(e,r)){if(!ab(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!np(e,r)){if(!ab(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return lb&&n&&ab(e)&&!np(e,r)&&i(e),e}};ch[r]=!0})),sb=Vd.TypeError,cb=function(e,t){this.stopped=e,this.result=t},fb=cb.prototype,db=function(e,t,n){var r,o,i,a,l,u,s,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Mh(t,c),g=function(e){return r&&Gg(r,"normal",e),new cb(!0,e)},v=function(e){return f?(Tp(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=nv(e)))throw sb(Vp(e)+" is not iterable");if(Qg(o)){for(i=0,a=qh(e);a>i;i++)if((l=v(e[i]))&&Mp(fb,l))return l;return new cb(!1)}r=ov(e,o)}for(u=r.next;!(s=Ip(u,r)).done;){try{l=v(s.value)}catch(e){Gg(r,"throw",e)}if("object"==typeof l&&l&&Mp(fb,l))return l}return new cb(!1)},pb=Vd.TypeError,hb=function(e,t){if(Mp(t,e))return e;throw pb("Incorrect invocation")},gb=function(e,t,n){var r,o;return Gv&&lp(r=t.constructor)&&r!==n&&Ap(o=r.prototype)&&o!==n.prototype&&Gv(e,o),e},vb=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Vd[e],l=a&&a.prototype,u=a,s={},c=function(e){var t=Zd(l[e]);Eh(l,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Ap(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Ap(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Ap(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Vg(e,!lp(a)||!(o||l.forEach&&!vp((function(){(new a).entries().next()})))))u=n.getConstructor(t,e,r,i),ub.enable();else if(Vg(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=vp((function(){f.has(1)})),h=cv((function(e){new a(e)})),g=!o&&vp((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((u=t((function(e,t){hb(e,l);var n=gb(new a,e,u);return null!=t&&db(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=l,l.constructor=u),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&l.clear&&delete l.clear}return s[e]=u,Ug({global:!0,forced:u!=a},s),Uv(u,e),o||n.setStrong(u,e,r),u},mb=ub.getWeakData,yb=yh.set,bb=yh.getterFor,wb=lg.find,xb=lg.findIndex,Cb=Zd([].splice),Eb=0,kb=function(e){return e.frozen||(e.frozen=new Sb)},Sb=function(){this.entries=[]},Db=function(e,t){return wb(e.entries,(function(e){return e[0]===t}))};Sb.prototype={get:function(e){var t=Db(this,e);if(t)return t[1]},has:function(e){return!!Db(this,e)},set:function(e,t){var n=Db(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=xb(this.entries,(function(t){return t[0]===e}));return~t&&Cb(this.entries,t,1),!!~t}};var Ab,Ob={getConstructor:function(e,t,n,r){var o=e((function(e,o){hb(e,i),yb(e,{type:t,id:Eb++,frozen:void 0}),null!=o&&db(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=bb(t),l=function(e,t,n){var r=a(e),o=mb(Tp(t),!0);return!0===o?kb(r).set(t,n):o[r.id]=n,e};return Jy(i,{delete:function(e){var t=a(this);if(!Ap(e))return!1;var n=mb(e);return!0===n?kb(t).delete(e):n&&np(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Ap(e))return!1;var n=mb(e);return!0===n?kb(t).has(e):n&&np(n,t.id)}}),Jy(i,n?{get:function(e){var t=a(this);if(Ap(e)){var n=mb(e);return!0===n?kb(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return l(this,e,t)}}:{add:function(e){return l(this,e,!0)}}),o}},_b=yh.enforce,Bb=!Vd.ActiveXObject&&"ActiveXObject"in Vd,Fb=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},jb=vb("WeakMap",Fb,Ob);if(lh&&Bb){Ab=Ob.getConstructor(Fb,"WeakMap",!0),ub.enable();var Pb=jb.prototype,Tb=Zd(Pb.delete),Nb=Zd(Pb.has),Ib=Zd(Pb.get),Mb=Zd(Pb.set);Jy(Pb,{delete:function(e){if(Ap(e)&&!ab(e)){var t=_b(this);return t.frozen||(t.frozen=new Ab),Tb(this,e)||t.frozen.delete(e)}return Tb(this,e)},has:function(e){if(Ap(e)&&!ab(e)){var t=_b(this);return t.frozen||(t.frozen=new Ab),Nb(this,e)||t.frozen.has(e)}return Nb(this,e)},get:function(e){if(Ap(e)&&!ab(e)){var t=_b(this);return t.frozen||(t.frozen=new Ab),Nb(this,e)?Ib(this,e):t.frozen.get(e)}return Ib(this,e)},set:function(e,t){if(Ap(e)&&!ab(e)){var n=_b(this);n.frozen||(n.frozen=new Ab),Nb(this,e)?Mb(this,e,t):n.frozen.set(e,t)}else Mb(this,e,t);return this}})}var Lb=Ep("iterator"),Rb=Ep("toStringTag"),zb=Zy.values,Vb=function(e,t){if(e){if(e[Lb]!==zb)try{eh(e,Lb,zb)}catch(t){e[Lb]=zb}if(e[Rb]||eh(e,Rb,t),jh[t])for(var n in Zy)if(e[n]!==Zy[n])try{eh(e,n,Zy[n])}catch(t){e[n]=Zy[n]}}};for(var $b in jh)Vb(Vd[$b]&&Vd[$b].prototype,$b);Vb(Nh,"DOMTokenList");var Ub=new WeakMap,Hb=new WeakMap,Wb=new WeakMap,qb=new WeakMap,Kb=new WeakMap,Gb=new WeakMap,Yb=new WeakMap,Zb=new WeakMap,Jb=new WeakMap,Xb=new WeakMap,Qb=new WeakMap,ew=new WeakMap,tw=new WeakMap,nw=new WeakMap,rw=new WeakMap,ow=new WeakMap,iw=new WeakMap,aw=new WeakMap,lw=new WeakMap,uw=new WeakMap,sw=new WeakMap,cw=new WeakMap,fw=new WeakMap,dw=new WeakMap,pw=new WeakMap,hw=lg.find,gw=!0;"find"in[]&&Array(1).find((function(){gw=!1})),Ug({target:"Array",proto:!0,forced:gw},{find:function(e){return hw(this,e,arguments.length>1?arguments[1]:void 0)}}),km("find"),Ug({global:!0},{globalThis:Vd});const vw=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Do&&(co.fn.css=Do),jo&&(co.fn.append=jo),fo&&(co.fn.addClass=fo),po&&(co.fn.removeClass=po),ho&&(co.fn.hasClass=ho),bo&&(co.fn.on=bo),Uo&&(co.fn.focus=Uo),go&&(co.fn.attr=go),vo&&(co.fn.removeAttr=vo),ko&&(co.fn.hide=ko),So&&(co.fn.show=So),Eo&&(co.fn.offset=Eo),xo&&(co.fn.width=xo),Co&&(co.fn.height=Co),To&&(co.fn.parent=To),No&&(co.fn.parents=No),Fo&&(co.fn.is=Fo),mo&&(co.fn.dataset=mo),yo&&(co.fn.val=yo),Bo&&(co.fn.text=Bo),_o&&(co.fn.html=_o),Mo&&(co.fn.children=Mo),Lo&&(co.fn.remove=Lo),Io&&(co.fn.find=Io),Ao&&(co.fn.each=Ao),Ro&&(co.fn.empty=Ro);var mw,yw=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},bw=function(e){return ww(e)&&1===e.nodeType},ww=function(e){var t=yw(e);return!!t&&e instanceof t.Node},xw=function(e){var t=e&&e.anchorNode&&yw(e.anchorNode);return!!t&&e instanceof t.Selection},Cw=function(e){return ww(e)&&3===e.nodeType},Ew=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},kw=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,l=!1,u=!1;(ww(r=i)&&8===r.nodeType||bw(i)&&0===i.childNodes.length||bw(i)&&"false"===i.getAttribute("contenteditable"))&&(!l||!u);)a>=o.length?(l=!0,a=t-1,n="backward"):a<0?(u=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},Sw=function(e,t,n){return Hy(kw(e,t,n),1)[0]},Dw=function e(t){var n,r,o="";if(Cw(t)&&t.nodeValue)return t.nodeValue;if(bw(t)){try{for(var i=Uy(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var l=getComputedStyle(t).getPropertyValue("display");"block"!==l&&"list"!==l&&"table-row"!==l&&"BR"!==t.tagName||(o+="\n")}return o};function Aw(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||Aw(o,t)}}function Ow(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==mw.ELEMENT_NODE?"":t.tagName.toLowerCase()}!function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(mw||(mw={})),void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var _w="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),Bw="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var Fw="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),jw="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Pw="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Tw="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var Nw=!Pw&&!jw&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,Iw={getWindow:function(e){var t=sw.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=uw.get(t);return n||(n=new Ky,uw.set(t,n)),n},setNewKey:function(e){var t=new Ky;uw.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=rw.get(r);if(null==o){if(ut.isEditor(r))return n;break}var i=nw.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=Iw.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return rw.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=Iw.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[Iw.findPath(e,t)[0]];return pt.get(e,n)},toDOMNode:function(e,t){var n;if(ut.isEditor(t))n=ow.get(e);else{var r=Iw.findKey(e,t);n=aw.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=Iw.toDOMNode(e,e);try{r=bw(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Dt.isBackward(t),i=Iw.toDOMPoint(e,n),a=Dt.isCollapsed(t)?i:Iw.toDOMPoint(e,r),l=Iw.getWindow(e).document.createRange(),u=Hy(o?a:i,2),s=u[0],c=u[1],f=Hy(o?i:a,2),d=f[0],p=f[1],h=!!(bw(s)?s:s.parentElement).getAttribute("data-slate-zero-width"),g=!!(bw(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return l.setStart(s,h?1:c),l.setEnd(d,g?1:p),l},toDOMPoint:function(e,t){var n,r,o,i=Hy(ut.node(e,t.path),1)[0],a=Iw.toDOMNode(e,i);ut.void(e,{at:t})&&(t={path:t.path,offset:0});var l=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var s=Uy(l),c=s.next();!c.done;c=s.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=u+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-u))];break}u=g}}}catch(Sse){n={error:Sse}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=bw(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?iw.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=Iw.toSlateNode(e,t.target),l=Iw.findPath(e,a);if(ut.isVoid(e,a)){var u=o.getBoundingClientRect(),s=e.isInline(a)?n-u.left<u.left+u.width-n:r-u.top<u.top+u.height-r,c=ut.point(e,l,{edge:s?"start":"end"}),f=s?ut.before(e,c):ut.after(e,c);if(f)return ut.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return Iw.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,l,u=n.exactMatch,s=n.suppressThrow;if((xw(t)?t.anchorNode:t.startContainer)&&(xw(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,l=Tw&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,l=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=Iw.toSlatePoint(e,[r,o],{exactMatch:u,suppressThrow:s});if(!c)return null;var f=l?c:Iw.toSlatePoint(e,[i,a],{exactMatch:u,suppressThrow:s});if(!f)return null;var d={anchor:c,focus:f};return Dt.isExpanded(d)&&Dt.isForward(d)&&bw(i)&&ut.void(e,{at:d.focus,mode:"highest"})&&(d=ut.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Hy(o?t:function(e){var t,n=Hy(e,2),r=n[0],o=n[1];if(bw(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=Hy(kw(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;bw(r)&&r.childNodes.length;){var l=i?r.childNodes.length-1:0;r=Sw(r,l,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),l=a[0],u=a[1],s=l.parentNode,c=null,f=0;if(s){var d=s.closest('[data-slate-void="true"]'),p=s.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=Iw.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(l,u);var v=g.cloneContents();Wy(Wy([],Hy($r(v.querySelectorAll("[data-slate-zero-width]")))),Hy($r(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(s.hasAttribute("data-slate-zero-width")||Bw&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var m=Iw.toSlateNode(e,c);return{path:Iw.findPath(e,m),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return ut.hasPath(e,n.path)&&ut.hasPath(e,r.path)},getNodeType:function(e){return nt.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return pt.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=ut.nodes(e,{universal:!0});try{for(var i=Uy(o),a=i.next();!a.done;a=i.next()){var l=Hy(a.value,1)[0];nt.isElement(l)&&r.push(l)}}catch(Sse){t={error:Sse}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=Hy(ut.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=Hy(ut.nodes(e,{match:function(e){return Pt.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=Hy(ut.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&Hy(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(ut.isEnd(e,n.anchor,t)||ut.isEnd(e,n.focus,t))},getTextarea:function(e){var t=Ub.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return qb.get(e)||null},getHoverbar:function(e){return Gb.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=Iw.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var l=Uy(Array.from(a)),u=l.next();!u.done;u=l.next()){var s=u.value;if(3!==s.nodeType)break;s.remove()}}catch(Sse){t={error:Sse}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}var c=ut.nodes(e,{match:function(t){return!(!nt.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=Uy(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];Aw(Iw.toDOMNode(e,h),(function(e,t){var n=co(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||t.removeChild(e)}))}}}catch(Sse){r={error:Sse}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=ut.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=Uy(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(Sse){t={error:Sse}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(Dt.isExpanded(t))return!1;var n=Iw.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=ut.node(e,t);if(null==n)return!1;var r=Hy(n,1)[0].children;return 1===r.length&&""===r[0].text}},Mw=1,Lw={},Rw={};function zw(e,t){var n=e.key,r=e.factory,o=e.config,i=$y($y({},o),t||{});if(null!=Rw[n])throw new Error("Duplicated key '"+n+"' in menu items");Rw[n]=r,function(e,t){null!=t&&(Lw[e]=t)}(n,i)}var Vw=Ep("species"),$w=function(e){var t=sp(e),n=Xp.f;Dp&&t&&!t[Vw]&&n(t,Vw,{configurable:!0,get:function(){return this}})},Uw=Xp.f,Hw=ub.fastKey,Ww=yh.set,qw=yh.getterFor,Kw={getConstructor:function(e,t,n,r){var o=e((function(e,o){hb(e,i),Ww(e,{type:t,index:Fv(null),first:void 0,last:void 0,size:0}),Dp||(e.size=0),null!=o&&db(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=qw(t),l=function(e,t,n){var r,o,i=a(e),l=u(e,t);return l?l.value=n:(i.last=l={index:o=Hw(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=l),r&&(r.next=l),Dp?i.size++:e.size++,"F"!==o&&(i.index[o]=l)),e},u=function(e,t){var n,r=a(e),o=Hw(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Jy(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Dp?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=u(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),Dp?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=Mh(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),Jy(i,n?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return l(this,0===e?0:e,t)}}:{add:function(e){return l(this,e=0===e?0:e,e)}}),Dp&&Uw(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=qw(t),i=qw(r);tm(e,t,(function(e,t){Ww(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),$w(t)}};vb("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Kw);var Gw=lg.filter,Yw=Wg("filter");Ug({target:"Array",proto:!0,forced:!Yw},{filter:function(e){return Gw(this,e,arguments.length>1?arguments[1]:void 0)}});var Zw="\t\n\v\f\r \u2028\u2029\ufeff",Jw=Zd("".replace),Xw="["+Zw+"]",Qw=RegExp("^"+Xw+Xw+"*"),ex=RegExp(Xw+Xw+"*$"),tx=function(e){return function(t){var n=hv(Xd(t));return 1&e&&(n=Jw(n,Qw,"")),2&e&&(n=Jw(n,ex,"")),n}},nx={start:tx(1),end:tx(2),trim:tx(3)},rx=Ch.PROPER,ox=nx.trim;Ug({target:"String",proto:!0,forced:function(e){return vp((function(){return!!Zw[e]()||"
"!=="
"[e]()||rx&&Zw[e].name!==e}))}("trim")},{trim:function(){return ox(this)}});var ix=[];function ax(e){ix.push(e)}var lx={};function ux(e){var t=e.type,n=e.elemToHtml;lx[t||""]=n}function sx(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function cx(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=ut.isVoid(t,e),l="";a||(l=i.map((function(e){return HC(e,t)})).join(""));var u=function(e){return lx[e]||sx}(r),s=u(e,l,t);return a||ix.forEach((function(t){return s=t(e,s)})),s}var fx,dx,px,hx,gx=Vd.Promise,vx=Vd.TypeError,mx=Ep("species"),yx=function(e,t){var n,r=Tp(e).constructor;return void 0===r||null==(n=Tp(r)[mx])?t:function(e){if(tg(e))return e;throw vx(Vp(e)+" is not a constructor")}(n)},bx=Zd([].slice),wx=/(?:ipad|iphone|ipod).*applewebkit/i.test(cp),xx="process"==Dh(Vd.process),Cx=Vd.setImmediate,Ex=Vd.clearImmediate,kx=Vd.process,Sx=Vd.Dispatch,Dx=Vd.Function,Ax=Vd.MessageChannel,Ox=Vd.String,_x=0,Bx={};try{fx=Vd.location}catch(Sse){}var Fx=function(e){if(np(Bx,e)){var t=Bx[e];delete Bx[e],t()}},jx=function(e){return function(){Fx(e)}},Px=function(e){Fx(e.data)},Tx=function(e){Vd.postMessage(Ox(e),fx.protocol+"//"+fx.host)};Cx&&Ex||(Cx=function(e){var t=bx(arguments,1);return Bx[++_x]=function(){vy(lp(e)?e:Dx(e),void 0,t)},dx(_x),_x},Ex=function(e){delete Bx[e]},xx?dx=function(e){kx.nextTick(jx(e))}:Sx&&Sx.now?dx=function(e){Sx.now(jx(e))}:Ax&&!wx?(hx=(px=new Ax).port2,px.port1.onmessage=Px,dx=Mh(hx.postMessage,hx)):Vd.addEventListener&&lp(Vd.postMessage)&&!Vd.importScripts&&fx&&"file:"!==fx.protocol&&!vp(Tx)?(dx=Tx,Vd.addEventListener("message",Px,!1)):dx="onreadystatechange"in Bp("script")?function(e){Cv.appendChild(Bp("script")).onreadystatechange=function(){Cv.removeChild(this),Fx(e)}}:function(e){setTimeout(jx(e),0)});var Nx,Ix,Mx,Lx,Rx,zx,Vx,$x,Ux={set:Cx,clear:Ex},Hx=/ipad|iphone|ipod/i.test(cp)&&void 0!==Vd.Pebble,Wx=/web0s(?!.*chrome)/i.test(cp),qx=bg.f,Kx=Ux.set,Gx=Vd.MutationObserver||Vd.WebKitMutationObserver,Yx=Vd.document,Zx=Vd.process,Jx=Vd.Promise,Xx=qx(Vd,"queueMicrotask"),Qx=Xx&&Xx.value;Qx||(Nx=function(){var e,t;for(xx&&(e=Zx.domain)&&e.exit();Ix;){t=Ix.fn,Ix=Ix.next;try{t()}catch(e){throw Ix?Lx():Mx=void 0,e}}Mx=void 0,e&&e.enter()},wx||xx||Wx||!Gx||!Yx?!Hx&&Jx&&Jx.resolve?((Vx=Jx.resolve(void 0)).constructor=Jx,$x=Mh(Vx.then,Vx),Lx=function(){$x(Nx)}):xx?Lx=function(){Zx.nextTick(Nx)}:(Kx=Mh(Kx,Vd),Lx=function(){Kx(Nx)}):(Rx=!0,zx=Yx.createTextNode(""),new Gx(Nx).observe(zx,{characterData:!0}),Lx=function(){zx.data=Rx=!Rx}));var eC,tC,nC,rC,oC=Qx||function(e){var t={fn:e,next:void 0};Mx&&(Mx.next=t),Ix||(Ix=t,Lx()),Mx=t},iC=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Up(t),this.reject=Up(n)},aC={f:function(e){return new iC(e)}},lC=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},uC="object"==typeof window,sC=Ux.set,cC=Ep("species"),fC="Promise",dC=yh.getterFor(fC),pC=yh.set,hC=yh.getterFor(fC),gC=gx&&gx.prototype,vC=gx,mC=gC,yC=Vd.TypeError,bC=Vd.document,wC=Vd.process,xC=aC.f,CC=xC,EC=!!(bC&&bC.createEvent&&Vd.dispatchEvent),kC=lp(Vd.PromiseRejectionEvent),SC=!1,DC=Vg(fC,(function(){var e=ih(vC),t=e!==String(vC);if(!t&&66===gp)return!0;if(gp>=51&&/native code/.test(e))return!1;var n=new vC((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[cC]=r,!(SC=n.then((function(){}))instanceof r)||!t&&uC&&!kC})),AC=DC||!cv((function(e){vC.all(e).catch((function(){}))})),OC=function(e){var t;return!(!Ap(e)||!lp(t=e.then))&&t},_C=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;oC((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,l,u,s=n[i++],c=o?s.ok:s.fail,f=s.resolve,d=s.reject,p=s.domain;try{c?(o||(2===e.rejection&&PC(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),u=!0)),a===s.promise?d(yC("Promise-chain cycle")):(l=OC(a))?Ip(l,a,f,d):f(a)):d(r)}catch(e){p&&!u&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&FC(e)}))}},BC=function(e,t,n){var r,o;EC?((r=bC.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Vd.dispatchEvent(r)):r={promise:t,reason:n},!kC&&(o=Vd["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Vd.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},FC=function(e){Ip(sC,Vd,(function(){var t,n=e.facade,r=e.value;if(jC(e)&&(t=lC((function(){xx?wC.emit("unhandledRejection",r,n):BC("unhandledrejection",n,r)})),e.rejection=xx||jC(e)?2:1,t.error))throw t.value}))},jC=function(e){return 1!==e.rejection&&!e.parent},PC=function(e){Ip(sC,Vd,(function(){var t=e.facade;xx?wC.emit("rejectionHandled",t):BC("rejectionhandled",t,e.value)}))},TC=function(e,t,n){return function(r){e(t,r,n)}},NC=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,_C(e,!0))},IC=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw yC("Promise can't be resolved itself");var r=OC(t);r?oC((function(){var n={done:!1};try{Ip(r,t,TC(IC,n,e),TC(NC,n,e))}catch(t){NC(n,t,e)}})):(e.value=t,e.state=1,_C(e,!1))}catch(t){NC({done:!1},t,e)}}};if(DC&&(mC=(vC=function(e){hb(this,mC),Up(e),Ip(eC,this);var t=dC(this);try{e(TC(IC,t),TC(NC,t))}catch(e){NC(t,e)}}).prototype,(eC=function(e){pC(this,{type:fC,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Jy(mC,{then:function(e,t){var n=hC(this),r=n.reactions,o=xC(yx(this,vC));return o.ok=!lp(e)||e,o.fail=lp(t)&&t,o.domain=xx?wC.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&_C(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),tC=function(){var e=new eC,t=dC(e);this.promise=e,this.resolve=TC(IC,t),this.reject=TC(NC,t)},aC.f=xC=function(e){return e===vC||e===nC?new tC(e):CC(e)},lp(gx)&&gC!==Object.prototype)){rC=gC.then,SC||(Eh(gC,"then",(function(e,t){var n=this;return new vC((function(e,t){Ip(rC,n,e,t)})).then(e,t)}),{unsafe:!0}),Eh(gC,"catch",mC.catch,{unsafe:!0}));try{delete gC.constructor}catch(Sse){}Gv&&Gv(gC,mC)}Ug({global:!0,wrap:!0,forced:DC},{Promise:vC}),Uv(vC,fC,!1),$w(fC),nC=sp(fC),Ug({target:fC,stat:!0,forced:DC},{reject:function(e){var t=xC(this);return Ip(t.reject,void 0,e),t.promise}}),Ug({target:fC,stat:!0,forced:DC},{resolve:function(e){return function(e,t){if(Tp(e),Ap(t)&&t.constructor===e)return t;var n=aC.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Ug({target:fC,stat:!0,forced:AC},{all:function(e){var t=this,n=xC(t),r=n.resolve,o=n.reject,i=lC((function(){var n=Up(t.resolve),i=[],a=0,l=1;db(e,(function(e){var u=a++,s=!1;l++,Ip(n,t,e).then((function(e){s||(s=!0,i[u]=e,--l||r(i))}),o)})),--l||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=xC(t),r=n.reject,o=lC((function(){var o=Up(t.resolve);db(e,(function(e){Ip(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var MC=Ym.UNSUPPORTED_Y,LC=Math.min,RC=[].push,zC=Zd(/./.exec),VC=Zd(RC),$C=Zd("".slice);function UC(e){Promise.resolve().then(e)}function HC(e,t){return nt.isElement(e)?cx(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=Iw.getParentsNodes(t,e).some((function(e){return"pre"===Iw.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=Iw.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return ix.forEach((function(t){return r=t(e,r)})),r}(e,t)}function WC(e){return"w-e-element-"+e}by("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=hv(Xd(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!Am(e))return Ip(t,r,e,o);for(var i,a,l,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,s+"g");(i=Ip(fy,f,r))&&!((a=f.lastIndex)>c&&(VC(u,$C(r,c,i.index)),i.length>1&&i.index<r.length&&vy(RC,u,eb(i,1)),l=i[0].length,c=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!l&&zC(f,"")||VC(u,""):VC(u,$C(r,c)),u.length>o?eb(u,0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Ip(t,this,e,n)}:t,[function(t,n){var o=Xd(this),i=null==t?void 0:Hp(t,e);return i?Ip(i,t,o,n):Ip(r,hv(o),t,n)},function(e,o){var i=Tp(this),a=hv(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var u=yx(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(MC?"g":"y"),f=new u(MC?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===By(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=MC?0:h;var v,m=By(f,MC?$C(a,h):a);if(null===m||(v=LC(Wh(f.lastIndex+(MC?h:0)),a.length))===p)h=xy(a,h,s);else{if(VC(g,$C(a,p,h)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(VC(g,m[y]),g.length===d)return g;h=p=v}}return VC(g,$C(a,p)),g}]}),!!vp((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),MC);var qC=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},KC=function(e,t,n){var r=Iw.toDOMRange(e,t).getBoundingClientRect(),o=Iw.toDOMRange(e,n).getBoundingClientRect();return qC(r,o)&&qC(o,r)},GC=["span","b","strong","i","em","s","strike","u","font","sub","sup"],YC=[];function ZC(e){YC.push(e)}var JC=[];function XC(e){JC.push(e)}var QC={};function eE(e){var t=e.selector,n=e.parseElemHtml;QC[t]=n}var tE=Xp.f,nE=Bg.f,rE=yh.enforce,oE=Ep("match"),iE=Vd.RegExp,aE=iE.prototype,lE=Vd.SyntaxError,uE=Zd(gm),sE=Zd(aE.exec),cE=Zd("".charAt),fE=Zd("".replace),dE=Zd("".indexOf),pE=Zd("".slice),hE=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,gE=/a/g,vE=/a/g,mE=new iE(gE)!==gE,yE=Ym.MISSED_STICKY,bE=Ym.UNSUPPORTED_Y,wE=Dp&&(!mE||yE||Jm||Qm||vp((function(){return vE[oE]=!1,iE(gE)!=gE||iE(vE)==vE||"/a/i"!=iE(gE,"i")})));if(Vg("RegExp",wE)){for(var xE=function(e,t){var n,r,o,i,a,l,u=Mp(aE,this),s=Am(e),c=void 0===t,f=[],d=e;if(!u&&s&&c&&e.constructor===xE)return e;if((s||Mp(aE,e))&&(e=e.source,c&&(t="flags"in d?d.flags:uE(d))),e=void 0===e?"":hv(e),t=void 0===t?"":hv(t),d=e,Jm&&"dotAll"in gE&&(r=!!t&&dE(t,"s")>-1)&&(t=fE(t,/s/g,"")),n=t,yE&&"sticky"in gE&&(o=!!t&&dE(t,"y")>-1)&&bE&&(t=fE(t,/y/g,"")),Qm&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},l=!1,u=!1,s=0,c="";r<=n;r++){if("\\"===(t=cE(e,r)))t+=cE(e,++r);else if("]"===t)l=!1;else if(!l)switch(!0){case"["===t:l=!0;break;case"("===t:sE(hE,pE(e,r+1))&&(r+=2,u=!0),o+=t,s++;continue;case">"===t&&u:if(""===c||np(a,c))throw new lE("Invalid capture group name");a[c]=!0,i[i.length]=[c,s],u=!1,c="";continue}u?c+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=gb(iE(e,t),u?this:aE,xE),(r||o||f.length)&&(l=rE(a),r&&(l.dotAll=!0,l.raw=xE(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=cE(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+cE(e,++r);return o}(e),n)),o&&(l.sticky=!0),f.length&&(l.groups=f)),e!==d)try{eh(a,"source",""===d?"(?:)":d)}catch(e){}return a},CE=function(e){e in xE||tE(xE,e,{configurable:!0,get:function(){return iE[e]},set:function(t){iE[e]=t}})},EE=nE(iE),kE=0;EE.length>kE;)CE(EE[kE++]);aE.constructor=xE,xE.prototype=aE,Eh(Vd,"RegExp",xE)}$w("RegExp");var SE=new RegExp(String.fromCharCode(160),"g");function DE(e){return e.replace(SE," ")}function AE(e,t){var n=e.length;if(n){var r=e[n-1];if(Pt.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function OE(e,t,n){return{type:"paragraph",children:[{text:co(e).text().replace(/\s+/gm," ")}]}}function _E(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==mw.ELEMENT_NODE)if(e.nodeType!==mw.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=DE(r),AE(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(AE(n,"\n")||n.push({text:"\n"}));var o=co(e);n.push(FE(o,t))}})),n)}(e,t),r=function(e){for(var t in QC)if(e[0].matches(t))return QC[t];return OE}(e),o=r(e[0],n,t);return ut.isVoid(t,o)||(0===n.length&&(o.children=[{text:e.text().replace(/\s+/gm," ")}]),JC.forEach((function(n){o=n(e[0],o,t)}))),o}function BE(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(n);var r={text:n=DE(n)};return JC.forEach((function(n){r=n(e[0],r,t)})),r}function FE(e,t){YC.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=co(r(e[0])))}));var n=Ow(e);return"span"===n?e.attr("data-w-e-type")?_E(e,t):BE(e,t):"code"===n?"pre"===Ow(e.parent())?_E(e,t):BE(e,t):GC.includes(n)?BE(e,t):_E(e,t)}var jE=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]),PE=function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,l,u,s,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=Uy(ut.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=Hy(p.value,2),g=h[0],v=h[1],m=Iw.findKey(t,g);f.push([v,m])}}catch(Sse){n={error:Sse}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var y=Uy(ut.levels(t,{at:mt.parent(e.path)})),b=y.next();!b.done;b=y.next()){var w=Hy(b.value,2);g=w[0],v=w[1],m=Iw.findKey(t,g),f.push([v,m])}}catch(Sse){i={error:Sse}}finally{try{b&&!b.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}break;case"move_node":try{for(var x=Uy(ut.levels(t,{at:mt.common(mt.parent(e.path),mt.parent(e.newPath))})),C=x.next();!C.done;C=x.next()){var E=Hy(C.value,2);g=E[0],v=E[1],m=Iw.findKey(t,g),f.push([v,m])}}catch(Sse){l={error:Sse}}finally{try{C&&!C.done&&(u=x.return)&&u.call(x)}finally{if(l)throw l.error}}}o(e);try{for(var k=Uy(f),S=k.next();!S.done;S=k.next()){var D=Hy(S.value,2);v=D[0],m=D[1],g=Hy(ut.node(t,v),1)[0],uw.set(g,m)}}catch(Sse){s={error:Sse}}finally{try{S&&!S.done&&(c=k.return)&&c.call(k)}finally{if(s)throw s.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Dt.isCollapsed(e.selection)){var r=ut.above(e,{match:function(t){return ut.isBlock(e,t)},at:e.selection});if(r){var o=Hy(r,2)[1],a=ut.range(e,o,e.selection.anchor),l=function(e,t){var n=ut.range(e,Dt.end(t)),r=Array.from(ut.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(KC(e,ut.range(e,r[o]),n))return ut.range(e,r[o],n);if(r.length<2)return ut.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)KC(e,ut.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return ut.range(e,r[i],n)}(t,a);Dt.isCollapsed(l)||Xt.delete(e,{at:l})}}},t.onChange=function(){var e=t.selection;null!=e&&fw.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return HC(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return pt.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":ut.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=ut.nodes(t,{at:[],universal:!0});try{for(var l=Uy(a),u=l.next();!u.done;u=l.next()){var s=Hy(u.value,1)[0];if(nt.isElement(s)&&(n?s.type.indexOf(e)>=0:s.type===e)){var c=WC(Iw.findKey(t,s).id);i.push($y($y({},s),{id:c}))}}}catch(Sse){r={error:Sse}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(nt.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Pt.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){Xt.removeNodes(t,{at:{anchor:ut.start(t,[]),focus:ut.end(t,[])},mode:"highest"}),0===t.children.length&&Xt.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return Iw.getParentNode(t,e)},t.dangerouslyInsertHtml=function(n,r){if(void 0===n&&(n=""),void 0===r&&(r=!1),n){var o=document.createElement("div");o.innerHTML=n;var i=Array.from(o.childNodes);if(i=i.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===mw.TEXT_NODE||t===mw.ELEMENT_NODE&&!jE.has(n.toLowerCase())})),0!==i.length){var a=t.selection;if(null!=a){var l=null;Iw.isSelectedEmptyParagraph(t)&&!r&&(l=[a.focus.path[0]]),o.setAttribute("hidden","true"),document.body.appendChild(o);var u=0;i.forEach((function(n){var r=n.nodeType,o=n.nodeName,i=n.textContent,a=void 0===i?"":i;if(r!==mw.TEXT_NODE)if("BR"!==o){var l=n,s=!1;if(GC.includes(o.toLowerCase()))s=!0;else for(var c in QC)if(l.matches(c)){s=!0;break}if(s){var f=FE(co(l),t);return t.isInline(f)?t.insertNode(f):Xt.insertNodes(t,f,{mode:"highest"}),u++,void(Iw.isSelectedVoidNode(t)&&t.move(1))}var d=window.getComputedStyle(l).display;Iw.isSelectedEmptyParagraph(t)||d.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(l.innerHTML,!0)}else e.insertText("\n");else{if(!a||!a.trim())return;t.insertNode({text:a})}})),u&&l&&Iw.isEmptyPath(t,l)&&Xt.removeNodes(t,{at:l}),o.remove()}}}},t.setHtml=function(n){if(void 0===n&&(n=""),n){var r=t.isDisabled(),o=t.isFocused(),i=JSON.stringify(t.selection);if(t.enable(),t.focus(),t.select([]),t.deleteFragment(),Xt.setNodes(e,{type:"paragraph"},{mode:"highest"}),t.dangerouslyInsertHtml(n),o||(t.deselect(),t.blur()),r&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch(e){t.select(ut.start(t,[]))}}},t},TE=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=Hy(Dt.edges(n),2),o=r[0],i=r[1],a=ut.void(t,{at:o.path}),l=ut.void(t,{at:i.path});if(!Dt.isCollapsed(n)||a){var u=Iw.toDOMRange(t,n),s=u.cloneContents(),c=s.childNodes[0];if(s.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),l){var f=Hy(l,1)[0],d=u.cloneRange(),p=Iw.toDOMNode(t,f);d.setEndAfter(p),s=d.cloneContents()}if(a&&(c=s.querySelector("[data-slate-spacer]")),Array.from(s.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Cw(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),s.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),m=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",m),e.setData("application/x-slate-fragment",m);var y=s.ownerDocument.createElement("div");return y.appendChild(s),y.setAttribute("hidden","true"),s.ownerDocument.body.appendChild(y),e.setData("text/html",y.innerHTML),e.setData("text/plain",Dw(y)),s.ownerDocument.body.removeChild(y),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),l=JSON.parse(a);t.insertFragment(l)}else{var u=e.getData("text/plain"),s=e.getData("text/html");if(s)t.dangerouslyInsertHtml(s);else if(u){var c=u.split(/\r\n|\r|\n/),f=!1;try{for(var d=Uy(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&Xt.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},NE=function(e){return null!=e},IE={object:!0,function:!0,undefined:!0},ME=function(e){if(!function(e){return!!NE(e)&&hasOwnProperty.call(IE,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}},LE=/^\s*class[\s{/}]/,RE=Function.prototype.toString,zE=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!ME(e)}(e)&&!LE.test(RE.call(e))},VE=function(e){return null!=e},$E=Object.keys,UE=function(){try{return Object.keys("primitive"),!0}catch(Sse){return!1}}()?Object.keys:function(e){return $E(VE(e)?Object(e):e)},HE=function(e){if(!VE(e))throw new TypeError("Cannot use null or undefined");return e},WE=Math.max,qE=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=WE(arguments.length,2);for(e=Object(HE(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)UE(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},KE=Array.prototype.forEach,GE=Object.create,YE=function(e,t){var n;for(n in e)t[n]=e[n]},ZE=function(e){var t=GE(null);return KE.call(arguments,(function(e){VE(e)&&YE(Object(e),t)})),t},JE="razdwatrzy",XE=String.prototype.indexOf,QE="function"==typeof JE.contains&&!0===JE.contains("dwa")&&!1===JE.contains("foo")?String.prototype.contains:function(e){return XE.call(this,e,arguments[1])>-1},ek=Md((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],NE(e)?(n=QE.call(e,"c"),r=QE.call(e,"e"),o=QE.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?qE(ZE(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],NE(t)?zE(t)?NE(n)?zE(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,NE(e)?(r=QE.call(e,"c"),o=QE.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?qE(ZE(i),a):a}})),tk=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},nk=Md((function(e,t){var n,r,o,i,a,l,u,s=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return tk(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return tk(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),s.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(tk(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)s.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];s.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},l={on:ek(n),once:ek(r),off:ek(o),emit:ek(i)},u=p({},l),e.exports=t=function(e){return null==e?f(u):p(Object(e),l)},t.methods=a}));function rk(e){var t=dw.get(e);return null==t&&(t=nk(),dw.set(e,t)),t}var ok=new WeakMap;function ik(e,t){var n=ok.get(e);null==n&&(n=new Set,ok.set(e,n)),n.add(t)}function ak(e){return ok.get(e)||new Set}function lk(e){ok.set(e,new Set)}function uk(e){var t=Iw.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function sk(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=uk(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,l=r.height,u=Iw.toDOMRange(e,n).getClientRects()[0];if(null==u)return t;u.width;var s=u.height,c={},f=u.top-o,d=u.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>l/2){var h=l-f;c.bottom=h+5+"px"}else{var g=f+s;g<0&&(g=0),c.top=g+5+"px"}return c}function ck(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=nt.isElement(t)&&e.isVoid(t),i=nt.isElement(t)&&e.isInline(t),a=lw.get(t);if(null==a)return r;var l=a.getBoundingClientRect(),u=l.top,s=l.left,c=l.height,f=l.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(vw.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],l=a.length;if(l)for(var u=l-1;u>=0;u--)t.push(a[u])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();u=p.top,c=p.height}}var h=uk(e);if(null==h)return r;var g,v=h.top,m=h.left,y=h.width,b=h.height,w={},x=u-v,C=s-m;if("bar"===n)return w.left=C+"px",x>40?w.bottom=b-x+5+"px":w.top=x+c+5+"px",w;if("modal"===n)return o?i?C>(y-f)/2?w.right=y-C+5+"px":w.left=C+f+5+"px":w.left="20px":w.left=C+"px",o?((g=x)<0&&(g=0),w.top=g+"px"):x>(b-c)/2?w.bottom=b-x+5+"px":((g=x+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function fk(e,t){UC((function(){var n=uk(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,l=n.height,u=t.offset(),s=u.top,c=u.left,f=t.width(),d=t.height(),p=s-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-l)>0){var v=t.css("top"),m=parseInt(v.toString())-r;m<0&&(m=0),t.css("top",m+"px")}if(g.indexOf("bottom")>=0&&s<0){var y=t.css("bottom"),b=parseInt(y.toString())-Math.abs(s);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px")}if(g.indexOf("right")>=0&&c<0){var C=t.css("right"),E=parseInt(C.toString())-Math.abs(c);t.css("right",E+"px")}}}))}var dk=Wg("slice"),pk=Ep("species"),hk=Vd.Array,gk=Math.max;Ug({target:"Array",proto:!0,forced:!dk},{slice:function(e,t){var n,r,o,i=mg(this),a=qh(i),l=Cg(e,a),u=Cg(void 0===t?a:t,a);if(Kh(i)&&(n=i.constructor,(tg(n)&&(n===hk||Kh(n.prototype))||Ap(n)&&null===(n=n[pk]))&&(n=void 0),n===hk||void 0===n))return bx(i,l,u);for(r=new(void 0===n?hk:n)(gk(u-l,0)),o=0;l<u;l++,o++)l in i&&ev(r,o,i[l]);return r.length=o,r}});var vk=bg.f,mk=Zd("".startsWith),yk=Zd("".slice),bk=Math.min,wk=Fm("startsWith"),xk=!wk&&!!function(){var e=vk(String.prototype,"startsWith");return e&&!e.writable}();Ug({target:"String",proto:!0,forced:!xk&&!wk},{startsWith:function(e){var t=hv(Xd(this));_m(e);var n=Wh(bk(arguments.length>1?arguments[1]:void 0,t.length)),r=hv(e);return mk?mk(t,r,n):yk(t,n,n+r.length)===r}});var Ck=Object.assign,Ek=Object.defineProperty,kk=Zd([].concat),Sk=!Ck||vp((function(){if(Dp&&1!==Ck({b:1},Ck(Ek({},"a",{enumerable:!0,get:function(){Ek(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Ck({},e)[n]||wv(Ck({},t)).join("")!=r}))?function(e,t){for(var n=ep(e),r=arguments.length,o=1,i=Fg.f,a=vg.f;r>o;)for(var l,u=zh(arguments[o++]),s=i?kk(wv(u),i(u)):wv(u),c=s.length,f=0;c>f;)l=s[f++],Dp&&!Ip(a,u,l)||(n[l]=u[l]);return n}:Ck;Ug({target:"Object",stat:!0,forced:Object.assign!==Sk},{assign:Sk});var Dk=["props","attrs","style","dataset","on","hook"];function Ak(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!Dk.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=mu(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&Ak(e)}))}var Ok=[];function _k(e){Ok.push(e)}var Bk={};function Fk(e){var t=e.type,n=e.renderElem;Bk[t||""]=n}function jk(e,t,n){var r=n.isInline(e)?"span":"div";return Wa(r,null,t)}function Pk(e,t){var n,r=Iw.findKey(t,e),o=t.isInline(e),i=ut.isVoid(t,e),a=WC(r.id),l={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},u=e.type,s=e.children,c=void 0===s?[]:s,f=function(e){return Bk[e]||jk}(u);n=i?null:c.map((function(n,r){return Mk(n,r,e,t)}));var d=f(e,n,t);if(i){l["data-slate-void"]=!0;var p=o?"span":"div",h=Hy(pt.texts(e),1),g=Hy(h[0],1)[0],v=Mk(g,0,e,t),m=Wa(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},v);d=Wa(p,{style:{position:"relative"}},d,m),nw.set(g,0),rw.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,l),i||o||(d=function(e,t){var n=t;return Ok.forEach((function(r){n=r(e,t)})),n}(e,d)),UC((function(){var t=Ew(a);null!=t&&(aw.set(r,t),lw.set(e,t),iw.set(t,e))})),d}function Tk(e,t){return void 0===t&&(t=!1),Wa("span",{"data-slate-string":!0},t?e+"\n":e)}function Nk(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Wa("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Wa("br",null):null)}function Ik(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=Iw.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=Iw.findPath(n,e),a=o([e,i]),l=Pt.decorations(e,a),u=l.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=Iw.findPath(o,n),l=mt.parent(a);if(ut.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?Nk(pt.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==ut.string(o,l)?""===i?Nk():t&&"\n"===i.slice(-1)?Tk(i,!0):Tk(i):Nk(0,!0)}(r,o===l.length-1,e,t,n);return i=function(e,t){var n=t;return Ok.forEach((function(t){n=t(e,n)})),n}(r,i),Wa("span",{"data-slate-leaf":!0},i)})),s=function(e){return"w-e-text-"+e}(r.id),c=Wa("span",{"data-slate-node":"text",id:s,key:r.id},u);return UC((function(){var t=Ew(s);null!=t&&(aw.set(r,t),lw.set(e,t),iw.set(t,e))})),c}function Mk(e,t,n,r){return nw.set(e,t),rw.set(e,n),nt.isElement(e)?Pk(e,r):Ik(e,n,r)}function Lk(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,l=i.autoFocus,u=function(e,t){return void 0===t&&(t=!1),Ca("div#"+e,{props:{contentEditable:!t}})}(o,a),s=t.children||[];u.children=s.map((function(e,n){var r=Mk(e,n,t,t);return Ak(r),r}));var c=Qb.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return co('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=wa([ka,Ta,Ua,Aa,ja]))(n,u),Qb.set(e,!1),ew.set(e,p)}else{var d=tw.get(e),p=ew.get(e);if(null==d||null==p)return;n=d.elm,p(d,u)}if(null!=n||null!=(n=Ew(o))){if((c?l:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=yw(n);h&&sw.set(t,h)}ow.set(t,n),lw.set(t,n),iw.set(n,t),tw.set(e,u)}}function Rk(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function zk(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Vk(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return zk(n.overflowY,t)||zk(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function $k(e,t,n,r,o,i,a,l){return i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0}function Uk(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,l=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!Rk(e))throw new TypeError("Invalid target");for(var s=document.scrollingElement||document.documentElement,c=[],f=e;Rk(f)&&u(f);){if((f=f.parentElement)===s){c.push(f);break}null!=f&&f===document.body&&Vk(f)&&!Vk(document.documentElement)||null!=f&&Vk(f,l)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,y=v.width,b=v.top,w=v.right,x=v.bottom,C=v.left,E="start"===o||"nearest"===o?b:"end"===o?x:b+m/2,k="center"===i?C+y/2:"end"===i?w:C,S=[],D=0;D<c.length;D++){var A=c[D],O=A.getBoundingClientRect(),_=O.height,B=O.width,F=O.top,j=O.right,P=O.bottom,T=O.left;if("if-needed"===r&&b>=0&&C>=0&&x<=p&&w<=d&&b>=F&&x<=P&&C>=T&&w<=j)return S;var N=getComputedStyle(A),I=parseInt(N.borderLeftWidth,10),M=parseInt(N.borderTopWidth,10),L=parseInt(N.borderRightWidth,10),R=parseInt(N.borderBottomWidth,10),z=0,V=0,$="offsetWidth"in A?A.offsetWidth-A.clientWidth-I-L:0,U="offsetHeight"in A?A.offsetHeight-A.clientHeight-M-R:0;if(s===A)z="start"===o?E:"end"===o?E-p:"nearest"===o?$k(g,g+p,p,M,R,g+E,g+E+m,m):E-p/2,V="start"===i?k:"center"===i?k-d/2:"end"===i?k-d:$k(h,h+d,d,I,L,h+k,h+k+y,y),z=Math.max(0,z+g),V=Math.max(0,V+h);else{z="start"===o?E-F-M:"end"===o?E-P+R+U:"nearest"===o?$k(F,P,_,M,R+U,E,E+m,m):E-(F+_/2)+U/2,V="start"===i?k-T-I:"center"===i?k-(T+B/2)+$/2:"end"===i?k-j+L+$:$k(T,j,B,I,L+$,k,k+y,y);var H=A.scrollLeft,W=A.scrollTop;E+=W-(z=Math.max(0,Math.min(W+z,A.scrollHeight-_+U))),k+=H-(V=Math.max(0,Math.min(H+V,A.scrollWidth-B+$)))}S.push({el:A,top:z,left:V})}return S}function Hk(e){return e===Object(e)&&0!==Object.keys(e).length}function Wk(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(Hk(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:Uk(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:Hk(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(Uk(e,r),r.behavior)}}function qk(e,t){return ww(t)&&Iw.hasDOMNode(e,t,{editable:!0})}function Kk(e,t){if(e.getConfig().readOnly)return!1;var n=Gk(e,t)&&Iw.toSlateNode(e,t);return ut.isVoid(e,n)}function Gk(e,t){return ww(t)&&Iw.hasDOMNode(e,t)}function Yk(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=Iw.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var l=ow.get(t),u=!1;if(l.contains(i.anchorNode)&&l.contains(i.focusNode)&&(u=!0),a&&u&&r){var s=Iw.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(s&&Dt.equals(s,r)){var c=!0;if(Dt.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===l){var p=l.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||Iw.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&Iw.toDOMRange(t,r);if(g){Dt.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var m=document.body;Wk(v,{scrollMode:"if-needed",boundary:o.scroll?l.parentElement:m,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&Bw&&l.focus(),e.isUpdatingSelection=!1}))}else t.selection=Iw.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var Zk=new WeakMap,Jk=new WeakMap,Xk={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},Qk={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},eS={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},tS=function(e){var t=Xk[e],n=Qk[e],r=eS[e],o=t&&Bu(t),i=n&&Bu(n),a=r&&Bu(r);return function(e){return!(!o||!o(e))||!!(_w&&i&&i(e))||!(_w||!a||!a(e))}},nS={isBold:tS("bold"),isCompose:tS("compose"),isMoveBackward:tS("moveBackward"),isMoveForward:tS("moveForward"),isDeleteBackward:tS("deleteBackward"),isDeleteForward:tS("deleteForward"),isDeleteLineBackward:tS("deleteLineBackward"),isDeleteLineForward:tS("deleteLineForward"),isDeleteWordBackward:tS("deleteWordBackward"),isDeleteWordForward:tS("deleteWordForward"),isExtendBackward:tS("extendBackward"),isExtendForward:tS("extendForward"),isExtendLineBackward:tS("extendLineBackward"),isExtendLineForward:tS("extendLineForward"),isItalic:tS("italic"),isMoveLineBackward:tS("moveLineBackward"),isMoveLineForward:tS("moveLineForward"),isMoveWordBackward:tS("moveWordBackward"),isMoveWordForward:tS("moveWordForward"),isRedo:tS("redo"),isSplitBlock:tS("splitBlock"),isTransposeCharacter:tS("transposeCharacter"),isUndo:tS("undo"),isTab:tS("tab"),isSelectAll:tS("selectAll")};function rS(e){e.preventDefault()}var oS={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Nw&&!o&&qk(n,r.target)){var i=n.selection,a=r.inputType,l=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var u=Hy(r.getTargetRanges(),1)[0];if(u){var s=Iw.toSlateRange(n,u,{exactMatch:!1,suppressThrow:!1});i&&Dt.equals(i,s)||Xt.select(n,s)}}if(i&&Dt.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";ut.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":ut.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":ut.deleteForward(n);break;case"deleteContentBackward":ut.deleteBackward(n);break;case"deleteEntireSoftLine":ut.deleteBackward(n,{unit:"line"}),ut.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":ut.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":ut.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":ut.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":ut.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":ut.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":ut.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":ut.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!pw.get(n))break;l instanceof DataTransfer?n.insertData(l):"string"==typeof l&&ut.insertText(n,l)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&qk(n,r.target)){var a=Iw.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var l=r.relatedTarget;if(!(l===Iw.toDOMNode(n,n)||bw(l)&&l.hasAttribute("data-slate-spacer"))){if(null!=l&&ww(l)&&Iw.hasDOMNode(n,l)){var u=Iw.toSlateNode(n,l);if(nt.isElement(u)&&!n.isVoid(u))return}if(Fw){var s=a.getSelection();null==s||s.removeAllRanges()}cw.delete(n)}}}},focus:function(e,t,n){var r=Iw.toDOMNode(n,n),o=Iw.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,Bw&&e.target!==r?r.focus():cw.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Gk(n,e.target)&&ww(e.target)){var r=Iw.toSlateNode(n,e.target),o=Iw.findPath(n,r);if(ut.hasPath(n,o)&&pt.get(n,o)===r){var i=ut.start(n,o),a=ut.end(n,o),l=ut.void(n,{at:i}),u=ut.void(n,{at:a});if(l&&u&&mt.equals(l[1],u[1])){var s=ut.range(n,i);Xt.select(n,s)}}}},compositionstart:function(e,t,n){if(qk(n,e.target)){var r=n.selection;if(r&&Dt.isExpanded(r)&&(ut.deleteFragment(n),Promise.resolve().then((function(){Yk(t,n,!0)}))),r&&Dt.isCollapsed(r)){var o=Iw.toDOMRange(n,r).startContainer,i=o.textContent||"";Zk.set(n,i),Jk.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(qk(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(Tw||Bw)&&Iw.cleanExposedTexNodeInSelectionBlock(n);for(var i=Dt.isBackward(o)?o.focus:o.anchor,a=Hy(ut.node(n,[i.path[0]]),1)[0],l=0;l<i.path.length;l++){var u=Hy(ut.node(n,i.path.slice(0,l+1)),1)[0];if(nt.isElement(u)&&((Fw||Bw)&&"link"===u.type||"code"===u.type)){Iw.setNewKey(a);break}}var s=r.data;if(s){if(n.getConfig().maxLength){var c=Iw.getLeftLengthOfMaxLength(n);c<s.length?(Iw.toDOMRange(n,o).startContainer.textContent=Zk.get(n)||"",c>0&&ut.insertText(n,s.slice(0,c)),t.changeViewState()):ut.insertText(n,s)}else ut.insertText(n,s);Fw||setTimeout((function(){var e=n.selection;if(null!=e){var t=Jk.get(n);null!=t&&Iw.toDOMRange(n,e).startContainer!==t&&(t.textContent=Zk.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){qk(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&qk(n,r.target)){if(function(e,t){var n=qb.get(e),r=n&&n.getMenus(),o=Gb.get(e),i=o&&o.getMenus(),a=$y($y({},r),i);for(var l in a){var u=a[l],s=u.hotkey;if(s&&_u(s,t)&&!u.isDisabled(e)){var c=u.getValue(e);u.exec(e,c)}}}(n,r),nS.isTab(r))return rS(r),void n.handleTab();if(nS.isRedo(r))return rS(r),void("function"==typeof n.redo&&n.redo());if(nS.isUndo(r))return rS(r),void("function"==typeof n.undo&&n.undo());if(nS.isMoveLineBackward(r))return rS(r),void Xt.move(n,{unit:"line",reverse:!0});if(nS.isMoveLineForward(r))return rS(r),void Xt.move(n,{unit:"line"});if(nS.isExtendLineBackward(r))return rS(r),void Xt.move(n,{unit:"line",edge:"focus",reverse:!0});if(nS.isExtendLineForward(r))return rS(r),void Xt.move(n,{unit:"line",edge:"focus"});if(nS.isMoveBackward(r))return rS(r),void(o&&Dt.isCollapsed(o)?Xt.move(n,{reverse:!0}):Xt.collapse(n,{edge:"start"}));if(nS.isMoveForward(r))return rS(r),void(o&&Dt.isCollapsed(o)?Xt.move(n):Xt.collapse(n,{edge:"end"}));if(nS.isMoveWordBackward(r))return rS(r),o&&Dt.isExpanded(o)&&Xt.collapse(n,{edge:"focus"}),void Xt.move(n,{unit:"word",reverse:!0});if(nS.isMoveWordForward(r))return rS(r),o&&Dt.isExpanded(o)&&Xt.collapse(n,{edge:"focus"}),void Xt.move(n,{unit:"word"});if(nS.isSelectAll(r))return rS(r),void n.selectAll();if(Nw){if((Tw||Fw)&&o&&(nS.isDeleteBackward(r)||nS.isDeleteForward(r))&&Dt.isCollapsed(o)){var i=pt.parent(n,o.anchor.path);if(nt.isElement(i)&&ut.isVoid(n,i)&&ut.isInline(n,i))return r.preventDefault(),void Xt.delete(n,{unit:"block"})}}else{if(nS.isBold(r)||nS.isItalic(r)||nS.isTransposeCharacter(r))return void rS(r);if(nS.isSplitBlock(r))return rS(r),void ut.insertBreak(n);if(nS.isDeleteBackward(r))return rS(r),void(o&&Dt.isExpanded(o)?ut.deleteFragment(n,{direction:"backward"}):ut.deleteBackward(n));if(nS.isDeleteForward(r))return rS(r),void(o&&Dt.isExpanded(o)?ut.deleteFragment(n,{direction:"forward"}):ut.deleteForward(n));if(nS.isDeleteLineBackward(r))return rS(r),void(o&&Dt.isExpanded(o)?ut.deleteFragment(n,{direction:"backward"}):ut.deleteBackward(n,{unit:"line"}));if(nS.isDeleteLineForward(r))return rS(r),void(o&&Dt.isExpanded(o)?ut.deleteFragment(n,{direction:"forward"}):ut.deleteForward(n,{unit:"line"}));if(nS.isDeleteWordBackward(r))return rS(r),void(o&&Dt.isExpanded(o)?ut.deleteFragment(n,{direction:"backward"}):ut.deleteBackward(n,{unit:"word"}));if(nS.isDeleteWordForward(r))return rS(r),void(o&&Dt.isExpanded(o)?ut.deleteFragment(n,{direction:"forward"}):ut.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Nw&&!n.getConfig().readOnly&&qk(n,e.target)){e.preventDefault();var r=e.key;ut.insertText(n,r)}},copy:function(e,t,n){var r=e;if(qk(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&qk(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Dt.isExpanded(o))ut.deleteFragment(n);else{var a=pt.parent(n,o.anchor.path);ut.isVoid(n,a)&&Xt.delete(n)}}},paste:function(e,t,n){pw.set(n,!0);var r=e;if(!n.getConfig().readOnly&&qk(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void pw.set(n,!1);if(!Nw||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(Gk(n,e.target)){var r=Iw.toSlateNode(n,e.target);ut.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Gk(n,r.target)&&!n.getConfig().readOnly){var o=Iw.toSlateNode(n,r.target),i=Iw.findPath(n,o);if(ut.isVoid(n,o)||ut.void(n,{at:i,voids:!0})){var a=ut.range(n,i);Xt.select(n,a)}var l=r.dataTransfer;null!=l&&(t.isDraggingInternally=!0,n.setFragmentData(l))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&Gk(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&Gk(n,r.target)&&null!=o&&!(Nw&&Fw&&o.files.length>0)){r.preventDefault();var i=n.selection,a=Iw.findEventRange(n,r);Xt.select(n,a),t.isDraggingInternally&&(i&&Xt.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},iS=1,aS=function(){function e(e){var t=this;this.id=iS++,this.$textArea=null,this.$progressBar=co('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=co('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Ki((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=Iw.findDocumentOrShadowRoot(t),a=i.activeElement,l=Iw.toDOMNode(t,t),u=i.getSelection();if(a===l?(e.latestElement=a,cw.set(t,!0)):cw.delete(t),!u)return Xt.deselect(t);var s=u.anchorNode,c=u.focusNode,f=qk(t,s)||Kk(t,s),d=qk(t,c)||Kk(t,c);if(f&&d){var p=Iw.toSlateRange(t,u,{exactMatch:!1,suppressThrow:!1});Xt.select(t,p)}else Xt.deselect(t)}}(t,e)}),100);var n=co(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=co('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=co('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,UC((function(){var e=t.editorInstance,n=Iw.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=Hb.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(Ei(oS,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Ki((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?o&&o(t):null!=e.latestEditorSelection&&null==t.selection&&r&&r(t),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-Iw.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;Lk(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=co('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),UC((function(){Yk(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function lS(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&lS(t)}function uS(){return co('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function sS(){return co('<div class="w-e-bar-divider"></div>')}function cS(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=_w?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}by("match",(function(e,t,n){return[function(t){var n=Xd(this),r=null==t?void 0:Hp(t,e);return r?Ip(r,t,n):new RegExp(t)[e](hv(n))},function(e){var r=Tp(this),o=hv(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return By(r,o);var a=r.unicode;r.lastIndex=0;for(var l,u=[],s=0;null!==(l=By(r,o));){var c=hv(l[0]);u[s]=c,""===c&&(r.lastIndex=xy(o,Wh(r.lastIndex),a)),s++}return 0===s?null:u}]}));var fS=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.$elem=co('<div class="w-e-bar-item"></div>'),this.$button=co('<button type="button"></button>'),this.disabled=!1,this.menu=e;var r=e.tag,o=e.width;if("button"!==r)throw new Error("Invalid tag '"+r+"', expected 'button'");var i=e.title,a=e.hotkey,l=void 0===a?"":a,u=e.iconSvg,s=void 0===u?"":u,c=this.$button;if(s){var f=co(s);lS(f),c.append(f)}else c.text(i);cS(c,s,i,l,t),t&&s&&c.append(co('<span class="title">'+i+"</span>")),o&&c.css("width",o+"px"),this.$elem.append(c),UC((function(){return n.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),kS(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=kS(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=kS(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=kS(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),dS=function(e){function t(t,n){return void 0===n&&(n=!1),e.call(this,t,n)||this}return Vy(t,e),t.prototype.onButtonClick=function(){},t}(fS),pS=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=Zb.get(e);null==t&&(t=new Set,Zb.set(e,t)),t.add(this),Jb.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=Jb.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=Jb.get(this);e&&e.emit("modalOrPanelHide")}},e}(),hS=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=co('<div class="w-e-drop-panel"></div>'),n}return Vy(t,e),t.prototype.genSelfElem=function(){return null},t}(pS),gS=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this,t,n)||this;if(r.dropPanel=null,r.menu=t,t.showDropPanel){var o=uS();r.$button.append(o)}return r}return Vy(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=kS(this);if(null==this.dropPanel){var n=new hS(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,l=a.offset().left,u=a.parents(".w-e-bar");l-u.offset().left>=u.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(fS),vS=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=co('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return Vy(t,e),t.prototype.genSelfElem=function(){var e=this,t=co('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=Jb.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(pS);function mS(e,t,n){var r=co('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=co('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function yS(e,t){var n=co('<div class="button-container"></div>'),r=co('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var bS=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this,t,n)||this;return r.$body=co("body"),r.modal=null,r.menu=t,r}return Vy(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=kS(this),t=this.menu.getModalPositionNode(e);return nt.isElement(t)?ck(e,t,"modal"):sk(e)},t.prototype.handleModal=function(){var e=kS(this),t=this.menu;if(null==this.modal){var n=new vS(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=kS(this),r=this.menu;if(null!=r.getModalContentElem){var o=Iw.getTextarea(n),i=Iw.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,l=r.getModalContentElem(n);if(e.renderContent(l),a)e.setStyle({left:"0",right:"0"});else{var u=this.getPosition();e.setStyle(u)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||fk(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(fS),wS=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=co('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return Vy(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=co("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=co('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var l=co('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(l),a.addClass("selected")}a.append(co('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(pS),xS=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.$elem=co('<div class="w-e-bar-item"></div>'),this.$button=co('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var r=e.tag,o=e.title,i=e.width,a=e.iconSvg,l=void 0===a?"":a,u=e.hotkey,s=void 0===u?"":u;if("select"!==r)throw new Error("Invalid tag '"+r+"', expected 'select'");var c=this.$button;i&&c.css("width",i+"px"),cS(c,l,o,s,t),this.$elem.append(c),this.menu=e,UC((function(){return n.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),kS(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=kS(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new wS(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=co(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=kS(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=kS(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=uS();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=kS(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),CS=function(){function e(e){this.$elem=co('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=co('<div class="w-e-bar-item-menus-container"></div>'),this.$button=co('<button type="button"></button>');var t=e.iconSvg,n=e.title,r=this.$elem,o=this.$button;if(t){var i=co(t);lS(i),o.append(i)}else o.text(n);var a=uS();o.append(a),r.append(o);var l=this.$container;r.append(l);var u=this.createObserver();this.observe(u)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){co(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),ES=new WeakMap;function kS(e){var t=Yb.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function SS(e,t){void 0===t&&(t=!1);var n=ES.get(e);if(n)return n;var r=e.tag;if("button"===r){var o=e.showDropPanel,i=e.showModal;n=o?new gS(e,t):i?new bS(e,t):new dS(e,t)}if("select"===r&&(n=new xS(e,t)),null==n)throw new Error("Invalid tag in menu "+JSON.stringify(e));return ES.set(e,n),n}function DS(e,t){var n=e.selection;return null!=n&&!Dt.isCollapsed(n)&&!Iw.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Pt.isText(t)}var AS=function(){function e(){var e=this;this.$elem=co('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Qu((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&nt.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),UC((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()})),Iw.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;UC((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=sS();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=Rw[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=SS(r);this.hoverbarItems.push(i),Yb.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),nt.isElement(e)){var r=ck(t,e,"bar");return n.css(r),void fk(t,n)}if(Pt.isText(e))return r=sk(t),n.css(r),void fk(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,l=i.menuKeys,u=void 0===l?[]:l,s=a||function(e,t){return Iw.checkNodeType(t,o)},c=Hy(ut.nodes(e,{match:function(t){return s(e,t)},universal:!0}),1),f=c[0];if(null!=f)return n=f[0],r=u,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=Kb.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=DS),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=Iw.findPath(null,e),r=Iw.findPath(null,t);return mt.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function OS(e,t,n){var r=co(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function _S(e,t,n,r){if(nw.set(e,t),rw.set(e,n),nt.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return _S(t,n,e,r)})),ut.isVoid(r,e)){var i=Hy(pt.texts(e),1),a=Hy(i[0],1)[0];nw.set(a,0),rw.set(a,e)}}}function BS(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,l=e.plugins,u=void 0===l?[]:l,s=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];cm.withoutSaving(t,(()=>{ut.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];cm.withoutSaving(t,(()=>{ut.withoutNormalizing(t,(()=>{var e=r.map(vt.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],l=a&&a[a.length-1],u=pm(e,l),s=cm.isSaving(t),c=cm.isMerging(t);if(null==s&&(s=dm(e)),s){if(null==c&&(c=null!=a&&(0!==r.length||fm(e,l)||u)),a&&c)u&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();hm(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment;return t.insertText=function(e){if(t.getConfig().maxLength){var r=Iw.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=Iw.getLeftLengthOfMaxLength(t);n<=0||n<pt.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){t.getConfig().maxLength?e.forEach((function(e){t.insertNode(e)})):o(e)},t}(function(e){var t=e;return t.on=function(e,n){var r=rk(t);if(r.on(e,n),"destroyed"===e&&ik(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),ik(t,o)}},t.once=function(e,n){rk(t).once(e,n)},t.off=function(e,n){rk(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=rk(t);o.emit.apply(o,Wy([e],Hy(n))),"destroyed"===e&&(ak(t).forEach((function(e){return o.off("destroyed",e)})),lk(t))},t}(function(e){var t=e;return t.select=function(e){Xt.select(t,e)},t.deselect=function(){var n=t.selection,r=Iw.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&Xt.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||Xt.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=fw.get(t);null!=e&&(t.focus(),Xt.select(t,e))},t.getSelectionPosition=function(){return sk(t)},t.getNodePosition=function(e){return ck(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=Hy(Dt.edges(e),2),r=n[0],o=n[1],i=Hy(ut.edges(t,[]),2),a=i[0],l=i[1];return!(!xt.equals(r,a)||!xt.equals(o,l))},t.selectAll=function(){var e=ut.start(t,[]),n=ut.end(t,[]);Xt.select(t,{anchor:e,focus:n})},t}(PE(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in Rw)e.push(t);return e},t.getConfig=function(){var e=Xb.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=e;return t.id="wangEditor-"+Mw++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(Iw.toDOMNode(t,t).focus({preventScroll:!0}),cw.set(t,!0),e){var n=ut.end(t,[]);Xt.select(t,n)}else{var r=fw.get(t);r?Xt.select(t,r):Xt.select(t,ut.start(t,[]))}},t.isFocused=function(){return!!cw.get(t)},t.blur=function(){Iw.toDOMNode(t,t).blur(),Xt.deselect(t),cw.set(t,!1)},t.updateView=function(){Iw.getTextarea(t).changeViewState();var e=Iw.getToolbar(t);e&&e.changeToolbarState();var n=Iw.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=Iw.getTextarea(t);e.destroy(),Ub.delete(t),Hb.delete(e);var n=Iw.getToolbar(t);n&&(n.destroy(),qb.delete(t),Wb.delete(n));var r=Iw.getHoverbar(t);r&&(r.destroy(),Gb.delete(t),Kb.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=co("#"+e);if(0!==r.length){var o=r[0];if(!Iw.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=Iw.getTextarea(t),a=i.$textAreaContainer,l=i.$scroll,u=r.offset().top,s=a.offset().top;l[0].scrollBy({top:u-s,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||Iw.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=Zb.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return Iw.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=Iw.getToolbar(t);n&&(e=n.$box);var r=Iw.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=Iw.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return Iw.getTextarea(t).$textAreaContainer[0]},t}(TE(Ee()))))))));if(n&&function(e,t){return OS(e,"data-w-e-textarea",t)}(s,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=es(Lw),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Ei(t,(function(e,t){n[t]=$y($y({},e),o[t]||{})})),delete e.MENU_CONF,$y({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);Xb.set(s,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(u.forEach((function(e){s=e(s)})),a){var p=co("<div>"+a+"</div>");s.children=Array.from(p.children()).map((function(e){return FE(co(e),s)}))}if(i&&i.length&&(s.children=i),0===s.children.length&&(s.children=[{type:"paragraph",children:[{text:""}]}]),Iw.normalizeContent(s),n){var h=new aS(n);Ub.set(s,h),Hb.set(h,s),h.changeViewState(),UC((function(){var e=h.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var g=void 0;Object.keys(d).length>0&&(g=new AS,Kb.set(g,s),Gb.set(s,g)),s.on("change",(function(){s.hidePanelOrModal()})),s.on("scroll",(function(){s.hidePanelOrModal()}))}else s.children.forEach((function(e,t){return _S(e,t,s,s)}));var v=c.onCreated,m=c.onDestroyed;return v&&s.on("created",(function(){return v(s)})),m&&s.on("destroyed",(function(){return m(s)})),UC((function(){return s.emit("created")})),s}var FS=Wg("splice"),jS=Vd.TypeError,PS=Math.max,TS=Math.min;Ug({target:"Array",proto:!0,forced:!FS},{splice:function(e,t){var n,r,o,i,a,l,u=ep(this),s=qh(u),c=Cg(e,s),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=s-c):(n=f-2,r=TS(PS(Uh(t),0),s-c)),s+n-r>9007199254740991)throw jS("Maximum allowed length exceeded");for(o=og(u,r),i=0;i<r;i++)(a=c+i)in u&&ev(o,i,u[a]);if(o.length=r,n<r){for(i=c;i<s-r;i++)l=i+n,(a=i+r)in u?u[l]=u[a]:delete u[l];for(i=s;i>s-r+n;i--)delete u[i-1]}else if(n>r)for(i=s-r;i>c;i--)l=i+n-1,(a=i+r-1)in u?u[l]=u[a]:delete u[l];for(i=0;i<n;i++)u[i+c]=arguments[i+2];return u.length=s-r+n,o}});var NS=function(){function e(e,t){var n=this;this.$toolbar=co('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Qu((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=co(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()})),r.append(o),UC((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,l=void 0===a?{index:0,keys:[]}:a,u=r.excludeKeys,s=void 0===u?[]:u,c=es(i);l.keys.length>0&&("string"==typeof l.keys&&(l.keys=[l.keys]),l.keys.forEach((function(e,t){c.splice(l.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(s.includes(e))return!1}else if(s.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=sS();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new CS(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,l=void 0===a?[]:a;i.forEach((function(e){l.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof CS,o=this.menus,i=o[e];if(null==i){var a=Rw[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var l=SS(i,r);this.toolbarItems.push(l),Yb.set(l,n),r?t.appendBarItem(l):t.$toolbar.append(l.$elem)},e.prototype.getEditorInstance=function(){var e=Wb.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}();function IS(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return OS(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=$y({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new NS(n,i);return Wb.set(a,e),qb.set(e,a),a}var MS=Ch.EXISTS,LS=Xp.f,RS=Function.prototype,zS=Zd(RS.toString),VS=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,$S=Zd(VS.exec);function US(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,l=e.maxNumberOfFiles,u=void 0===l?100:l,s=e.meta,c=void 0===s?{}:s,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,m=e.timeout,y=void 0===m?1e4:m,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,x=e.onSuccess,C=void 0===x?function(e,t){}:x,E=e.onError,k=void 0===E?function(e,t,n){console.error(e.name+" upload error",t,n)}:E,S=e.onProgress,D=void 0===S?function(e){}:S;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var A=n;d&&(A=function(e,t){var n=Hy(e.split("#"),2),r=n[0],o=n[1],i=[];Ei(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(A,c));var O=new Yc({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:u},meta:c}).use(Nd,{endpoint:A,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:y});return O.on("upload-success",(function(e,t){var n=t.body;C(e,void 0===n?{}:n),O.removeFile(e.id)})),O.on("progress",(function(e){e<1||D(e)})),O.on("error",(function(e){console.error("wangEditor file upload error",e.stack)})),O.on("upload-error",(function(e,t,n){k(e,t,n),O.removeFile(e.id)})),O.on("restriction-failed",(function(e,t){k(e,t),O.removeFile(e.id)})),O}function HS(e){return HS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HS(e)}function WS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){WS(e,t,n[t])}))}return e}function KS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function YS(e,t,n){return t&&GS(e.prototype,t),n&&GS(e,n),e}function ZS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JS(e,t){if(t&&("object"===HS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ZS(e)}function XS(e){return XS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},XS(e)}function QS(e,t){return QS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},QS(e,t)}function eD(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&QS(e,t)}Dp&&!MS&&LS(RS,"name",{configurable:!0,get:function(){try{return $S(VS,zS(this))[1]}catch(Sse){return""}}});var tD={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},nD=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};KS(this,e),this.init(t,n)}return YS(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||tD,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,qS({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),rD=function(){function e(){KS(this,e),this.observers={}}return YS(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function oD(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function iD(e){return null==e?"":""+e}function aD(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function lD(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function uD(e,t,n){var r=lD(e,t,Object);r.obj[r.k]=n}function sD(e,t){var n=lD(e,t),r=n.obj,o=n.k;if(r)return r[o]}function cD(e,t,n){var r=sD(e,n);return void 0!==r?r:sD(t,n)}function fD(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):fD(e[r],t[r],n):e[r]=t[r]);return e}function dD(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var pD={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function hD(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return pD[e]})):e}var gD="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function vD(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,l=r.slice(i,i+a).join(n),u=o[l];void 0===u&&r.length>i+a;)a++,u=o[l=r.slice(i,i+a).join(n)];if(void 0===u)return;if("string"==typeof u)return u;if(l&&"string"==typeof u[l])return u[l];var s=r.slice(i+a).join(n);return s?vD(u,s,n):void 0}o=o[r[i]]}return o}}var mD=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return KS(this,t),n=JS(this,XS(t).call(this)),gD&&rD.call(ZS(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return eD(t,rD),YS(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var l=sD(this.data,a);return l||!i||"string"!=typeof n?l:vD(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),uD(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var l=sD(this.data,a)||{};r?fD(l,n,o):l=qS({},l,n),uD(this.data,a,l),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?qS({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),yD={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},bD={},wD=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return KS(this,t),n=JS(this,XS(t).call(this)),gD&&rD.call(ZS(n)),aD(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,ZS(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=nD.create("translator"),n}return eD(t,rD),YS(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==HS(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),l=a.key,u=a.namespaces,s=u[u.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return s+d+l}return l}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||l,v=p&&p.exactUsedKey||l,m=Object.prototype.toString.apply(h),y=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&x&&y.indexOf(m)<0&&("string"!=typeof b||"[object Array]"!==m)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,qS({},n,{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(i){var C="[object Array]"===m,E=C?[]:{},k=C?v:g;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var D="".concat(k).concat(i).concat(S);E[S]=this.translate(D,qS({},n,{joinArrays:!1,ns:u})),E[S]===D&&(E[S]=h[S])}h=E}}else if(w&&"string"==typeof b&&"[object Array]"===m)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var A=!1,O=!1,_=void 0!==n.count&&"string"!=typeof n.count,B=t.hasDefaultValue(n),F=_?this.pluralResolver.getSuffix(c,n.count):"",j=n["defaultValue".concat(F)]||n.defaultValue;!this.isValidLookup(h)&&B&&(A=!0,h=j),this.isValidLookup(h)||(O=!0,h=l);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,T=P&&O?void 0:h,N=B&&j!==h&&this.options.updateMissing;if(O||A||N){if(this.logger.log(N?"updateKey":"missingKey",c,s,l,N?j:h),i){var I=this.resolve(l,qS({},n,{keySeparator:!1}));I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var M=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var R=0;R<L.length;R++)M.push(L[R]);else"all"===this.options.saveMissingTo?M=this.languageUtils.toResolveHierarchy(n.lng||this.language):M.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,s,t,N?r:T,N,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,s,t,N?r:T,N,n),o.emit("missingKey",e,s,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?M.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],l+t,n["defaultValue".concat(t)]||j)}))})):z(M,l,j))}h=this.extendTranslation(h,e,n,p,r),O&&h===l&&this.options.appendNamespaceToMissingKey&&(h="".concat(s,":").concat(l)),(O||A)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(qS({},n,{interpolation:qS({},this.options.interpolation,n.interpolation)}));var a,l=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var u=e.match(this.interpolator.nestingRegexp);a=u&&u.length}var s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s=qS({},this.options.interpolation.defaultVariables,s)),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),l){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=yD.handle(d,e,t,this.options&&this.options.postProcessPassResolved?qS({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,l),s=u.key;n=s;var c=u.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==l.count&&"string"!=typeof l.count,d=void 0!==l.context&&("string"==typeof l.context||"number"==typeof l.context)&&""!==l.context,p=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!bD["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(bD["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,u,c=s,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,s,n,e,l):(f&&(i=a.pluralResolver.getSuffix(n,l.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(l.context)),f&&p.push(c+=i));u=p.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,l))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function xD(e){return e.charAt(0).toUpperCase()+e.slice(1)}var CD=function(){function e(t){KS(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nD.create("languageUtils")}return YS(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=xD(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=xD(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=xD(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),ED=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],kD={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function SD(){var e={};return ED.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:kD[t.fc]}}))})),e}var DD=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};KS(this,e),this.languageUtils=t,this.options=n,this.logger=nD.create("pluralResolver"),this.rules=SD()}return YS(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),AD=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};KS(this,e),this.logger=nD.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return YS(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:hD,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?dD(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?dD(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?dD(t.nestingPrefix):t.nestingPrefixEscaped||dD("$t("),this.nestingSuffix=t.nestingSuffix?dD(t.nestingSuffix):t.nestingSuffixEscaped||dD(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,l=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(l.formatSeparator)<0){var o=cD(t,u,e);return l.alwaysFormat?l.format(o,void 0,n,qS({},r,t,{interpolationkey:e})):o}var i=e.split(l.formatSeparator),a=i.shift().trim(),s=i.join(l.formatSeparator).trim();return l.format(cD(t,u,a),s,n,qS({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return s(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?s(l.escape(e)):s(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}l.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||l.useRawValueToEscape||(i=iD(i));var u=t.safeValue(i);if(e=e.replace(o[0],u),d?(t.regex.lastIndex+=u.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=l.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=qS({},i);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=qS({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],s=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),u=c,s=!0}if((r=t(l.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=iD(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),s&&(r=u.reduce((function(e,t){return o.format(e,t,i.lng,qS({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),OD=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return KS(this,t),o=JS(this,XS(t).call(this)),gD&&rD.call(ZS(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=nD.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return eD(t,rD),YS(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],l=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var l="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[l]=2:o.state[l]<0||(1===o.state[l]?a.indexOf(l)<0&&a.push(l):(o.state[l]=1,r=!1,a.indexOf(l)<0&&a.push(l),i.indexOf(l)<0&&i.push(l),u.indexOf(t)<0&&u.push(t)))})),r||l.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:l,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=lD(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(l,u){l&&u&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(l,u)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,qS({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function _D(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===HS(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===HS(e[2])||"object"===HS(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function BD(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function FD(){}var jD=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(KS(this,t),e=JS(this,XS(t).call(this)),gD&&rD.call(ZS(e)),e.options=BD(n),e.services={},e.logger=nD,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),JS(e,ZS(e));setTimeout((function(){e.init(n,r)}),0)}return e}return eD(t,rD),YS(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=qS({},_D(),this.options,BD(t)),this.format=this.options.interpolation.format,n||(n=FD),!this.options.isClone){this.modules.logger?nD.init(r(this.modules.logger),this.options):nD.init(null,this.options);var o=new CD(this.options);this.store=new mD(this.options.resources,this.options);var i=this.services;i.logger=nD,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new DD(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new AD(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new OD(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new wD(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=oD(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FD,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=oD();return e||(e=this.languages),t||(t=this.options.ns),n||(n=FD),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&yD.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=oD();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==HS(o)){for(var a=arguments.length,l=new Array(a>2?a-2:0),u=2;u<a;u++)l[u-2]=arguments[u];i=r.options.overloadTranslationOptionHandler([t,o].concat(l))}else i=qS({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var s=r.options.keySeparator||".",c=n?"".concat(n).concat(s).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=oD();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=oD();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FD,o=qS({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=qS({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new wD(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),PD=new jD,TD="translation";function ND(e,t){PD.addResourceBundle(e,TD,t,!0,!0)}PD.init({lng:"zh-CN",resources:{}});var ID=PD.t.bind(PD),MD={editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}},LD={editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}};ND("en",MD),ND("zh-CN",LD),ND("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),ND("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var RD={type:"paragraph",renderElem:function(e,t,n){return Wa("p",null,t)}},zD={type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}},VD="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function $D(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function UD(e){var t={exports:{}};return e(t,t.exports),t.exports}var HD,WD,qD=function(e){return e&&e.Math==Math&&e},KD=qD("object"==typeof globalThis&&globalThis)||qD("object"==typeof window&&window)||qD("object"==typeof self&&self)||qD("object"==typeof VD&&VD)||function(){return this}()||Function("return this")(),GD=function(e){try{return!!e()}catch(e){return!0}},YD=!GD((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ZD=Function.prototype.call,JD=ZD.bind?ZD.bind(ZD):function(){return ZD.apply(ZD,arguments)},XD={}.propertyIsEnumerable,QD=Object.getOwnPropertyDescriptor,eA=QD&&!XD.call({1:2},1)?function(e){var t=QD(this,e);return!!t&&t.enumerable}:XD,tA={f:eA},nA=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},rA=Function.prototype,oA=rA.bind,iA=rA.call,aA=oA&&oA.bind(iA),lA=oA?function(e){return e&&aA(iA,e)}:function(e){return e&&function(){return iA.apply(e,arguments)}},uA=lA({}.toString),sA=lA("".slice),cA=function(e){return sA(uA(e),8,-1)},fA=KD.Object,dA=lA("".split),pA=GD((function(){return!fA("z").propertyIsEnumerable(0)}))?function(e){return"String"==cA(e)?dA(e,""):fA(e)}:fA,hA=KD.TypeError,gA=function(e){if(null==e)throw hA("Can't call method on "+e);return e},vA=function(e){return pA(gA(e))},mA=function(e){return"function"==typeof e},yA=function(e){return"object"==typeof e?null!==e:mA(e)},bA=function(e){return mA(e)?e:void 0},wA=function(e,t){return arguments.length<2?bA(KD[e]):KD[e]&&KD[e][t]},xA=lA({}.isPrototypeOf),CA=wA("navigator","userAgent")||"",EA=KD.process,kA=KD.Deno,SA=EA&&EA.versions||kA&&kA.version,DA=SA&&SA.v8;DA&&(WD=(HD=DA.split("."))[0]>0&&HD[0]<4?1:+(HD[0]+HD[1])),!WD&&CA&&(!(HD=CA.match(/Edge\/(\d+)/))||HD[1]>=74)&&(HD=CA.match(/Chrome\/(\d+)/))&&(WD=+HD[1]);var AA=WD,OA=!!Object.getOwnPropertySymbols&&!GD((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&AA&&AA<41})),_A=OA&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,BA=KD.Object,FA=_A?function(e){return"symbol"==typeof e}:function(e){var t=wA("Symbol");return mA(t)&&xA(t.prototype,BA(e))},jA=KD.String,PA=function(e){try{return jA(e)}catch(e){return"Object"}},TA=KD.TypeError,NA=function(e){if(mA(e))return e;throw TA(PA(e)+" is not a function")},IA=function(e,t){var n=e[t];return null==n?void 0:NA(n)},MA=KD.TypeError,LA=Object.defineProperty,RA=function(e,t){try{LA(KD,e,{value:t,configurable:!0,writable:!0})}catch(p){KD[e]=t}return t},zA=KD["__core-js_shared__"]||RA("__core-js_shared__",{}),VA=UD((function(e){(e.exports=function(e,t){return zA[e]||(zA[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),$A=KD.Object,UA=function(e){return $A(gA(e))},HA=lA({}.hasOwnProperty),WA=Object.hasOwn||function(e,t){return HA(UA(e),t)},qA=0,KA=Math.random(),GA=lA(1..toString),YA=function(e){return"Symbol("+(void 0===e?"":e)+")_"+GA(++qA+KA,36)},ZA=VA("wks"),JA=KD.Symbol,XA=JA&&JA.for,QA=_A?JA:JA&&JA.withoutSetter||YA,eO=function(e){if(!WA(ZA,e)||!OA&&"string"!=typeof ZA[e]){var t="Symbol."+e;OA&&WA(JA,e)?ZA[e]=JA[e]:ZA[e]=_A&&XA?XA(t):QA(t)}return ZA[e]},tO=KD.TypeError,nO=eO("toPrimitive"),rO=function(e,t){if(!yA(e)||FA(e))return e;var n,r=IA(e,nO);if(r){if(void 0===t&&(t="default"),n=JD(r,e,t),!yA(n)||FA(n))return n;throw tO("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&mA(n=e.toString)&&!yA(r=JD(n,e)))return r;if(mA(n=e.valueOf)&&!yA(r=JD(n,e)))return r;if("string"!==t&&mA(n=e.toString)&&!yA(r=JD(n,e)))return r;throw MA("Can't convert object to primitive value")}(e,t)},oO=function(e){var t=rO(e,"string");return FA(t)?t:t+""},iO=KD.document,aO=yA(iO)&&yA(iO.createElement),lO=function(e){return aO?iO.createElement(e):{}},uO=!YD&&!GD((function(){return 7!=Object.defineProperty(lO("div"),"a",{get:function(){return 7}}).a})),sO=Object.getOwnPropertyDescriptor,cO={f:YD?sO:function(e,t){if(e=vA(e),t=oO(t),uO)try{return sO(e,t)}catch(e){}if(WA(e,t))return nA(!JD(tA.f,e,t),e[t])}},fO=KD.String,dO=KD.TypeError,pO=function(e){if(yA(e))return e;throw dO(fO(e)+" is not an object")},hO=KD.TypeError,gO=Object.defineProperty,vO={f:YD?gO:function(e,t,n){if(pO(e),t=oO(t),pO(n),uO)try{return gO(e,t,n)}catch(e){}if("get"in n||"set"in n)throw hO("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},mO=YD?function(e,t,n){return vO.f(e,t,nA(1,n))}:function(e,t,n){return e[t]=n,e},yO=lA(Function.toString);mA(zA.inspectSource)||(zA.inspectSource=function(e){return yO(e)});var bO,wO,xO,CO=zA.inspectSource,EO=KD.WeakMap,kO=mA(EO)&&/native code/.test(CO(EO)),SO=VA("keys"),DO=function(e){return SO[e]||(SO[e]=YA(e))},AO={},OO=KD.TypeError,_O=KD.WeakMap;if(kO||zA.state){var BO=zA.state||(zA.state=new _O),FO=lA(BO.get),jO=lA(BO.has),PO=lA(BO.set);bO=function(e,t){if(jO(BO,e))throw new OO("Object already initialized");return t.facade=e,PO(BO,e,t),t},wO=function(e){return FO(BO,e)||{}},xO=function(e){return jO(BO,e)}}else{var TO=DO("state");AO[TO]=!0,bO=function(e,t){if(WA(e,TO))throw new OO("Object already initialized");return t.facade=e,mO(e,TO,t),t},wO=function(e){return WA(e,TO)?e[TO]:{}},xO=function(e){return WA(e,TO)}}var NO={set:bO,get:wO,has:xO,enforce:function(e){return xO(e)?wO(e):bO(e,{})},getterFor:function(e){return function(t){var n;if(!yA(t)||(n=wO(t)).type!==e)throw OO("Incompatible receiver, "+e+" required");return n}}},IO=Function.prototype,MO=YD&&Object.getOwnPropertyDescriptor,LO=WA(IO,"name"),RO={EXISTS:LO,PROPER:LO&&"something"===function(){}.name,CONFIGURABLE:LO&&(!YD||YD&&MO(IO,"name").configurable)},zO=UD((function(e){var t=RO.CONFIGURABLE,n=NO.get,r=NO.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;mA(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!WA(i,"name")||t&&i.name!==f)&&mO(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==KD?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:mO(e,n,i)):s?e[n]=i:RA(n,i)})(Function.prototype,"toString",(function(){return mA(this)&&n(this).source||CO(this)}))})),VO=Math.ceil,$O=Math.floor,UO=function(e){var t=+e;return t!=t||0===t?0:(t>0?$O:VO)(t)},HO=Math.max,WO=Math.min,qO=function(e,t){var n=UO(e);return n<0?HO(n+t,0):WO(n,t)},KO=Math.min,GO=function(e){return e>0?KO(UO(e),9007199254740991):0},YO=function(e){return GO(e.length)},ZO=function(e){return function(t,n,r){var o,i=vA(t),a=YO(i),l=qO(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},JO={includes:ZO(!0),indexOf:ZO(!1)},XO=JO.indexOf,QO=lA([].push),e_=function(e,t){var n,r=vA(e),o=0,i=[];for(n in r)!WA(AO,n)&&WA(r,n)&&QO(i,n);for(;t.length>o;)WA(r,n=t[o++])&&(~XO(i,n)||QO(i,n));return i},t_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],n_=t_.concat("length","prototype"),r_={f:Object.getOwnPropertyNames||function(e){return e_(e,n_)}},o_={f:Object.getOwnPropertySymbols},i_=lA([].concat),a_=wA("Reflect","ownKeys")||function(e){var t=r_.f(pO(e)),n=o_.f;return n?i_(t,n(e)):t},l_=function(e,t){for(var n=a_(t),r=vO.f,o=cO.f,i=0;i<n.length;i++){var a=n[i];WA(e,a)||r(e,a,o(t,a))}},u_=/#|\.prototype\./,s_=function(e,t){var n=f_[c_(e)];return n==p_||n!=d_&&(mA(t)?GD(t):!!t)},c_=s_.normalize=function(e){return String(e).replace(u_,".").toLowerCase()},f_=s_.data={},d_=s_.NATIVE="N",p_=s_.POLYFILL="P",h_=s_,g_=cO.f,v_=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?KD:s?KD[l]||RA(l,{}):(KD[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=g_(n,r))&&a.value:n[r],!h_(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;l_(i,o)}(e.sham||o&&o.sham)&&mO(i,"sham",!0),zO(n,r,i,e)}},m_=lA(lA.bind),y_=Array.isArray||function(e){return"Array"==cA(e)},b_={};b_[eO("toStringTag")]="z";var w_="[object z]"===String(b_),x_=eO("toStringTag"),C_=KD.Object,E_="Arguments"==cA(function(){return arguments}()),k_=w_?cA:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=C_(e),x_))?n:E_?cA(t):"Object"==(r=cA(t))&&mA(t.callee)?"Arguments":r},S_=function(){},D_=[],A_=wA("Reflect","construct"),O_=/^\s*(?:class|function)\b/,__=lA(O_.exec),B_=!O_.exec(S_),F_=function(e){if(!mA(e))return!1;try{return A_(S_,D_,e),!0}catch(e){return!1}},j_=!A_||GD((function(){var e;return F_(F_.call)||!F_(Object)||!F_((function(){e=!0}))||e}))?function(e){if(!mA(e))return!1;switch(k_(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return B_||!!__(O_,CO(e))}:F_,P_=eO("species"),T_=KD.Array,N_=function(e,t){return new(function(e){var t;return y_(e)&&(t=e.constructor,(j_(t)&&(t===T_||y_(t.prototype))||yA(t)&&null===(t=t[P_]))&&(t=void 0)),void 0===t?T_:t}(e))(0===t?0:t)},I_=lA([].push),M_=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=UA(u),g=pA(h),v=function(e,t){return NA(e),void 0===t?e:m_?m_(e,t):function(){return e.apply(t,arguments)}}(s,c),m=YO(g),y=0,b=f||N_,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:I_(w,d)}else switch(e){case 4:return!1;case 7:I_(w,d)}return i?-1:r||o?o:w}},L_={forEach:M_(0),map:M_(1),filter:M_(2),some:M_(3),every:M_(4),find:M_(5),findIndex:M_(6),filterReject:M_(7)},R_=eO("species"),z_=function(e){return AA>=51||!GD((function(){var t=[];return(t.constructor={})[R_]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},V_=L_.filter;v_({target:"Array",proto:!0,forced:!z_("filter")},{filter:function(e){return V_(this,e,arguments.length>1?arguments[1]:void 0)}});var $_=w_?{}.toString:function(){return"[object "+k_(this)+"]"};w_||zO(Object.prototype,"toString",$_,{unsafe:!0});var U_,H_=KD.String,W_=function(e){if("Symbol"===k_(e))throw TypeError("Cannot convert a Symbol value to a string");return H_(e)},q_=function(){var e=pO(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},K_=KD.RegExp,G_=GD((function(){var e=K_("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Y_=G_||GD((function(){return!K_("a","y").sticky})),Z_={BROKEN_CARET:G_||GD((function(){var e=K_("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Y_,UNSUPPORTED_Y:G_},J_=Object.keys||function(e){return e_(e,t_)},X_=YD?Object.defineProperties:function(e,t){pO(e);for(var n,r=vA(t),o=J_(t),i=o.length,a=0;i>a;)vO.f(e,n=o[a++],r[n]);return e},Q_=wA("document","documentElement"),eB=DO("IE_PROTO"),tB=function(){},nB=function(e){return"<script>"+e+"<\/script>"},rB=function(e){e.write(nB("")),e.close();var t=e.parentWindow.Object;return e=null,t},oB=function(){try{U_=new ActiveXObject("htmlfile")}catch(e){}var e,t;oB="undefined"!=typeof document?document.domain&&U_?rB(U_):((t=lO("iframe")).style.display="none",Q_.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(nB("document.F=Object")),e.close(),e.F):rB(U_);for(var n=t_.length;n--;)delete oB.prototype[t_[n]];return oB()};AO[eB]=!0;var iB,aB,lB=Object.create||function(e,t){var n;return null!==e?(tB.prototype=pO(e),n=new tB,tB.prototype=null,n[eB]=e):n=oB(),void 0===t?n:X_(n,t)},uB=KD.RegExp,sB=GD((function(){var e=uB(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),cB=KD.RegExp,fB=GD((function(){var e=cB("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),dB=NO.get,pB=VA("native-string-replace",String.prototype.replace),hB=RegExp.prototype.exec,gB=hB,vB=lA("".charAt),mB=lA("".indexOf),yB=lA("".replace),bB=lA("".slice),wB=(aB=/b*/g,JD(hB,iB=/a/,"a"),JD(hB,aB,"a"),0!==iB.lastIndex||0!==aB.lastIndex),xB=Z_.BROKEN_CARET,CB=void 0!==/()??/.exec("")[1];(wB||CB||xB||sB||fB)&&(gB=function(e){var t,n,r,o,i,a,l,u=this,s=dB(u),c=W_(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=JD(gB,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=xB&&u.sticky,h=JD(q_,u),g=u.source,v=0,m=c;if(p&&(h=yB(h,"y",""),-1===mB(h,"g")&&(h+="g"),m=bB(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==vB(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),CB&&(n=new RegExp("^"+g+"$(?!\\s)",h)),wB&&(r=u.lastIndex),o=JD(hB,p?n:u,m),p?o?(o.input=bB(o.input,v),o[0]=bB(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:wB&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),CB&&o&&o.length>1&&JD(pB,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=lB(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var EB=gB;v_({target:"RegExp",proto:!0,forced:/./.exec!==EB},{exec:EB});var kB=Function.prototype,SB=kB.apply,DB=kB.bind,AB=kB.call,OB="object"==typeof Reflect&&Reflect.apply||(DB?AB.bind(SB):function(){return AB.apply(SB,arguments)}),_B=eO("species"),BB=RegExp.prototype,FB=function(e,t,n,r){var o=eO(e),i=!GD((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!GD((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[_B]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=lA(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=lA(e),u=t.exec;return u===EB||u===BB.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));zO(String.prototype,e,u[0]),zO(BB,o,u[1])}r&&mO(BB[o],"sham",!0)},jB=lA("".charAt),PB=lA("".charCodeAt),TB=lA("".slice),NB=function(e){return function(t,n){var r,o,i=W_(gA(t)),a=UO(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=PB(i,a))<55296||r>56319||a+1===l||(o=PB(i,a+1))<56320||o>57343?e?jB(i,a):r:e?TB(i,a,a+2):o-56320+(r-55296<<10)+65536}},IB={codeAt:NB(!1),charAt:NB(!0)}.charAt,MB=function(e,t,n){return t+(n?IB(e,t).length:1)},LB=Math.floor,RB=lA("".charAt),zB=lA("".replace),VB=lA("".slice),$B=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,UB=/\$([$&'`]|\d{1,2})/g,HB=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,u=UB;return void 0!==o&&(o=UA(o),u=$B),zB(i,u,(function(i,u){var s;switch(RB(u,0)){case"$":return"$";case"&":return e;case"`":return VB(t,0,n);case"'":return VB(t,a);case"<":s=o[VB(u,1,-1)];break;default:var c=+u;if(0===c)return i;if(c>l){var f=LB(c/10);return 0===f?i:f<=l?void 0===r[f-1]?RB(u,1):r[f-1]+RB(u,1):i}s=r[c-1]}return void 0===s?"":s}))},WB=KD.TypeError,qB=function(e,t){var n=e.exec;if(mA(n)){var r=JD(n,e,t);return null!==r&&pO(r),r}if("RegExp"===cA(e))return JD(EB,e,t);throw WB("RegExp#exec called on incompatible receiver")},KB=eO("replace"),GB=Math.max,YB=Math.min,ZB=lA([].concat),JB=lA([].push),XB=lA("".indexOf),QB=lA("".slice),eF="$0"==="a".replace(/./,"$0"),tF=!!/./[KB]&&""===/./[KB]("a","$0");FB("replace",(function(e,t,n){var r=tF?"$":"$0";return[function(e,n){var r=gA(this),o=null==e?void 0:IA(e,KB);return o?JD(o,e,r,n):JD(t,W_(r),e,n)},function(e,o){var i=pO(this),a=W_(e);if("string"==typeof o&&-1===XB(o,r)&&-1===XB(o,"$<")){var l=n(t,i,a,o);if(l.done)return l.value}var u=mA(o);u||(o=W_(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=qB(i,a);if(null===d)break;if(JB(f,d),!s)break;""===W_(d[0])&&(i.lastIndex=MB(a,GO(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var m=W_((d=f[v])[0]),y=GB(YB(UO(d.index),a.length),0),b=[],w=1;w<d.length;w++)JB(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(u){var C=ZB([m],b,y,a);void 0!==x&&JB(C,x);var E=W_(OB(o,void 0,C))}else E=HB(m,a,y,b,x,o);y>=g&&(h+=QB(a,g,y)+E,g=y+m.length)}return h+QB(a,g)}]}),!!GD((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!eF||tF);var nF=eO("unscopables"),rF=Array.prototype;null==rF[nF]&&vO.f(rF,nF,{configurable:!0,value:lB(null)});var oF=function(e){rF[nF][e]=!0},iF=L_.find,aF=!0;"find"in[]&&Array(1).find((function(){aF=!1})),v_({target:"Array",proto:!0,forced:aF},{find:function(e){return iF(this,e,arguments.length>1?arguments[1]:void 0)}}),oF("find");var lF=eO("match"),uF=function(e){var t;return yA(e)&&(void 0!==(t=e[lF])?!!t:"RegExp"==cA(e))},sF=KD.TypeError,cF=eO("species"),fF=function(e,t){var n,r=pO(e).constructor;return void 0===r||null==(n=pO(r)[cF])?t:function(e){if(j_(e))return e;throw sF(PA(e)+" is not a constructor")}(n)},dF=function(e,t,n){var r=oO(t);r in e?vO.f(e,r,nA(0,n)):e[r]=n},pF=KD.Array,hF=Math.max,gF=function(e,t,n){for(var r=YO(e),o=qO(t,r),i=qO(void 0===n?r:n,r),a=pF(hF(i-o,0)),l=0;o<i;o++,l++)dF(a,l,e[o]);return a.length=l,a},vF=Z_.UNSUPPORTED_Y,mF=Math.min,yF=[].push,bF=lA(/./.exec),wF=lA(yF),xF=lA("".slice);FB("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=W_(gA(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!uF(e))return JD(t,r,e,o);for(var i,a,l,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,s+"g");(i=JD(EB,f,r))&&!((a=f.lastIndex)>c&&(wF(u,xF(r,c,i.index)),i.length>1&&i.index<r.length&&OB(yF,u,gF(i,1)),l=i[0].length,c=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!l&&bF(f,"")||wF(u,""):wF(u,xF(r,c)),u.length>o?gF(u,0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:JD(t,this,e,n)}:t,[function(t,n){var o=gA(this),i=null==t?void 0:IA(t,e);return i?JD(i,t,o,n):JD(r,W_(o),t,n)},function(e,o){var i=pO(this),a=W_(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var u=fF(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(vF?"g":"y"),f=new u(vF?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===qB(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=vF?0:h;var v,m=qB(f,vF?xF(a,h):a);if(null===m||(v=mF(GO(f.lastIndex+(vF?h:0)),a.length))===p)h=MB(a,h,s);else{if(wF(g,xF(a,p,h)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(wF(g,m[y]),g.length===d)return g;h=p=v}}return wF(g,xF(a,p)),g}]}),!!GD((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),vF);var CF,EF="\t\n\v\f\r \u2028\u2029\ufeff",kF=lA("".replace),SF="["+EF+"]",DF=RegExp("^"+SF+SF+"*"),AF=RegExp(SF+SF+"*$"),OF=function(e){return function(t){var n=W_(gA(t));return 1&e&&(n=kF(n,DF,"")),2&e&&(n=kF(n,AF,"")),n}},_F={start:OF(1),end:OF(2),trim:OF(3)},BF=RO.PROPER,FF=_F.trim;function jF(e){return 0===co("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function PF(e){return 0===e.length?"":e[0].outerHTML}function TF(e){return e.length?e[0].tagName.toLowerCase():""}function NF(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var l=a.split(":");l[0].trim()===t&&(n=l[1].trim())}}return n}v_({target:"String",proto:!0,forced:(CF="trim",GD((function(){return!!EF[CF]()||"
"!=="
"[CF]()||BF&&EF[CF].name!==CF})))},{trim:function(){return FF(this)}}),v_({global:!0},{globalThis:KD}),Do&&(co.fn.css=Do),jo&&(co.fn.append=jo),Po&&(co.fn.prepend=Po),fo&&(co.fn.addClass=fo),po&&(co.fn.removeClass=po),ho&&(co.fn.hasClass=ho),bo&&(co.fn.on=bo),wo&&(co.fn.off=wo),Uo&&(co.fn.focus=Uo),go&&(co.fn.attr=go),vo&&(co.fn.removeAttr=vo),ko&&(co.fn.hide=ko),So&&(co.fn.show=So),No&&(co.fn.parents=No),mo&&(co.fn.dataset=mo),yo&&(co.fn.val=yo),Bo&&(co.fn.text=Bo),_o&&(co.fn.html=_o),Mo&&(co.fn.children=Mo),Lo&&(co.fn.remove=Lo),Io&&(co.fn.find=Io),xo&&(co.fn.width=xo),Co&&(co.fn.height=Co),Oo&&(co.fn.filter=Oo),Ro&&(co.fn.empty=Ro);var IF={selector:"p",parseElemHtml:function(e,t,n){var r=co(e);return 0===(t=t.filter((function(e){return!!Pt.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},MF=function(e,t){return MF=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},MF(e,t)
|
|
48
|
+
/*! *****************************************************************************
|
|
49
|
+
Copyright (c) Microsoft Corporation.
|
|
50
|
+
|
|
51
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
52
|
+
purpose with or without fee is hereby granted.
|
|
53
|
+
|
|
54
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
55
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
56
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
57
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
58
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
59
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
60
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
61
|
+
***************************************************************************** */};function LF(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}MF(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var RF=function(){return RF=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},RF.apply(this,arguments)};function zF(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}function VF(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function $F(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function UF(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function HF(e){var t=UF(ut.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1),n=t[0];if(null==n)return!1;var r=n[0];if(!nt.isElement(r))return!1;if("paragraph"===r.type)return!1;if(""!==pt.string(r))return!1;var o=r.children,i=void 0===o?[]:o;return!!Pt.isText(i[0])&&(Xt.setNodes(e,{type:"paragraph"}),!0)}var WF={renderElems:[RD],elemsToHtml:[zD],parseElemsHtml:[IF],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){HF(r)||t(e)},r.deleteForward=function(e){HF(r)||n(e)},r}},qF=/"/g,KF=lA("".replace),GF=function(e,t,n,r){var o=W_(gA(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+KF(W_(r),qF,""")+'"'),i+">"+o+"</"+t+">"},YF=function(e){return GD((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function ZF(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function JF(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}v_({target:"String",proto:!0,forced:YF("bold")},{bold:function(){return GF(this,"b","","")}}),v_({target:"String",proto:!0,forced:YF("italics")},{italics:function(){return GF(this,"i","","")}}),v_({target:"String",proto:!0,forced:YF("sub")},{sub:function(){return GF(this,"sub","","")}}),v_({target:"String",proto:!0,forced:YF("sup")},{sup:function(){return GF(this,"sup","","")}});var XF={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},QF=lO("span").classList,ej=QF&&QF.constructor&&QF.constructor.prototype,tj=ej===Object.prototype?void 0:ej,nj=function(e,t){var n=[][e];return!!n&&GD((function(){n.call(null,t||function(){throw 1},1)}))},rj=L_.forEach,oj=nj("forEach")?[].forEach:function(e){return rj(this,e,arguments.length>1?arguments[1]:void 0)},ij=function(e){if(e&&e.forEach!==oj)try{mO(e,"forEach",oj)}catch(Sse){e.forEach=oj}};for(var aj in XF)XF[aj]&&ij(KD[aj]&&KD[aj].prototype);function lj(e,t){return null==e.selection||!!UF(ut.nodes(e,{match:function(t){return"pre"===Iw.getNodeType(t)||!!ut.isVoid(e,t)},universal:!0}),1)[0]}function uj(e,t){Object.keys(t).forEach((function(t){"text"!==t&&ut.removeMark(e,t)}))}ij(tj),v_({target:"Object",stat:!0,forced:GD((function(){J_(1)}))},{keys:function(e){return J_(UA(e))}});var sj=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=ut.marks(e);return n?n[t]:!!UF(ut.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return lj(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),cj='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',fj='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',dj='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',pj='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',hj='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',gj='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',vj='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',mj='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',yj='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',bj='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',wj='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',xj='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Cj='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Ej='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',kj='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Sj='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Dj='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Aj='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',Oj='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',_j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=ID("textStyle.bold"),t.iconSvg=cj,t.hotkey="mod+b",t}return LF(t,e),t}(sj),Bj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=ID("textStyle.code"),t.iconSvg=hj,t.hotkey="mod+e",t}return LF(t,e),t}(sj),Fj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=ID("textStyle.italic"),t.iconSvg=dj,t.hotkey="mod+i",t}return LF(t,e),t}(sj),jj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=ID("textStyle.through"),t.iconSvg=pj,t.hotkey="mod+shift+x",t}return LF(t,e),t}(sj),Pj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=ID("textStyle.underline"),t.iconSvg=fj,t.hotkey="mod+u",t}return LF(t,e),t}(sj),Tj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=ID("textStyle.sub"),t.iconSvg=Oj,t.hotkey="",t}return LF(t,e),t}(sj),Nj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=ID("textStyle.sup"),t.iconSvg=Aj,t.hotkey="",t}return LF(t,e),t}(sj),Ij=function(){function e(){this.title=ID("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return lj(e)},e.prototype.exec=function(e,t){var n,r,o=ut.nodes(e,{match:function(e){return Pt.isText(e)},universal:!0});try{for(var i=$F(o),a=i.next();!a.done;a=i.next())uj(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),Mj={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,l=n.through,u=n.sub,s=n.sup,c=t;return r&&(c=Wa("strong",null,c)),a&&(c=Wa("code",null,c)),o&&(c=Wa("em",null,c)),i&&(c=Wa("u",null,c)),l&&(c=Wa("s",null,c)),u&&(c=Wa("sub",null,c)),s&&(c=Wa("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new _j}},{key:"underline",factory:function(){return new Pj}},{key:"italic",factory:function(){return new Fj}},{key:"through",factory:function(){return new jj}},{key:"code",factory:function(){return new Bj}},{key:"sub",factory:function(){return new Tj}},{key:"sup",factory:function(){return new Nj}},{key:"clearStyle",factory:function(){return new Ij}}],styleToHtml:function(e,t){if(!Pt.isText(e))return t;if(jF(t))return ZF(e,t);var n=co(t);if("br"===TF(n))return ZF(e,"<br>");var r=n.html();return r=ZF(e,r),n.html(r),PF(n)},parseStyleHtml:function(e,t,n){var r=co(e);if(!Pt.isText(t))return t;var o=t;return JF(r,"b,strong")&&(o.bold=!0),JF(r,"i,em")&&(o.italic=!0),JF(r,"u")&&(o.underline=!0),JF(r,"s,strike")&&(o.through=!0),JF(r,"sub")&&(o.sub=!0),JF(r,"sup")&&(o.sup=!0),JF(r,"code")&&(o.code=!0),o}};function Lj(e){return function(t,n,r){return Wa("h"+e,null,n)}}var Rj={type:"header1",renderElem:Lj(1)},zj={type:"header2",renderElem:Lj(2)},Vj={type:"header3",renderElem:Lj(3)},$j={type:"header4",renderElem:Lj(4)},Uj={type:"header5",renderElem:Lj(5)},Hj=RO.PROPER,Wj=RegExp.prototype,qj=Wj.toString,Kj=lA(q_),Gj=GD((function(){return"/a/b"!=qj.call({source:"a",flags:"b"})})),Yj=Hj&&"toString"!=qj.name;(Gj||Yj)&&zO(RegExp.prototype,"toString",(function(){var e=pO(this),t=W_(e.source),n=e.flags;return"/"+t+"/"+W_(void 0===n&&xA(Wj,e)&&!("flags"in Wj)?Kj(e):n)}),{unsafe:!0});var Zj,Jj=KD.TypeError,Xj=function(e){if(uF(e))throw Jj("The method doesn't accept regular expressions");return e},Qj=eO("match"),eP=function(e){var t=/./;try{"/./"[e](t)}catch(p){try{return t[Qj]=!1,"/./"[e](t)}catch(e){}}return!1},tP=cO.f,nP=lA("".startsWith),rP=lA("".slice),oP=Math.min,iP=eP("startsWith");function aP(e){var t=UF(ut.nodes(e,{match:function(e){return Iw.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=UF(n,1)[0];return Iw.getNodeType(r)}function lP(e){return null==e.selection||!UF(ut.nodes(e,{match:function(e){var t=Iw.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function uP(e,t){t&&Xt.setNodes(e,{type:t})}v_({target:"String",proto:!0,forced:!(!iP&&(Zj=tP(String.prototype,"startsWith"),Zj&&!Zj.writable))&&!iP},{startsWith:function(e){var t=W_(gA(this));Xj(e);var n=GO(oP(arguments.length>1?arguments[1]:void 0,t.length)),r=W_(e);return nP?nP(t,r,n):rP(t,n,n+r.length)===r}});var sP=function(){function e(){this.title=ID("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:ID("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return aP(e)},e.prototype.isDisabled=function(e){return lP(e)},e.prototype.exec=function(e,t){uP(e,t.toString())},e}(),cP=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return aP(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return lP(e)},e.prototype.exec=function(e,t){var n=this.type;uP(e,t===n?"paragraph":n)},e}(),fP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return LF(t,e),t}(cP),dP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return LF(t,e),t}(cP),pP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return LF(t,e),t}(cP),hP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return LF(t,e),t}(cP),gP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return LF(t,e),t}(cP),vP={key:"headerSelect",factory:function(){return new sP}},mP={key:"header1",factory:function(){return new fP}},yP={key:"header2",factory:function(){return new dP}},bP={key:"header3",factory:function(){return new pP}},wP={key:"header4",factory:function(){return new hP}},xP={key:"header5",factory:function(){return new gP}};function CP(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function EP(e){return function(t,n,r){var o=co(t);return 0===(n=n.filter((function(e){return!!Pt.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var kP={renderElems:[Rj,zj,Vj,$j,Uj],elemsToHtml:[{type:"header1",elemToHtml:CP(1)},{type:"header2",elemToHtml:CP(2)},{type:"header3",elemToHtml:CP(3)},{type:"header4",elemToHtml:CP(4)},{type:"header5",elemToHtml:CP(5)}],parseElemsHtml:[{selector:"h1",parseElemHtml:EP(1)},{selector:"h2",parseElemHtml:EP(2)},{selector:"h3",parseElemHtml:EP(3)},{selector:"h4",parseElemHtml:EP(4)},{selector:"h5",parseElemHtml:EP(5)}],menus:[vP,mP,yP,bP,wP,xP],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=UF(ut.nodes(n,{match:function(e){return Iw.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&Iw.isSelectionAtLineEnd(e,r[1])?Xt.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},SP=Object.assign,DP=Object.defineProperty,AP=lA([].concat),OP=!SP||GD((function(){if(YD&&1!==SP({b:1},SP(DP({},"a",{enumerable:!0,get:function(){DP(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=SP({},e)[n]||J_(SP({},t)).join("")!=r}))?function(e,t){for(var n=UA(e),r=arguments.length,o=1,i=o_.f,a=tA.f;r>o;)for(var l,u=pA(arguments[o++]),s=i?AP(J_(u),i(u)):J_(u),c=s.length,f=0;c>f;)l=s[f++],YD&&!JD(a,u,l)||(n[l]=u[l]);return n}:SP;function _P(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}v_({target:"Object",stat:!0,forced:Object.assign!==OP},{assign:OP});var BP={selector:"font",preParseHtml:function(e){var t=co(e);if("font"!==TF(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},FP=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=ut.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!UF(ut.nodes(e,{match:function(t){return"pre"===Iw.getNodeType(t)||!!ut.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=co('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=co(r).attr("data-value");"0"===o?ut.removeMark(e,t):ut.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=co('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=co('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=ID("color.default")),"bgColor"===t&&(a=ID("color.clear"));var l=co('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(l),r[0]},e}(),jP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=ID("color.color"),t.iconSvg=mj,t.mark="color",t}return LF(t,e),t}(FP),PP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=ID("color.bgColor"),t.iconSvg=yj,t.mark="bgColor",t}return LF(t,e),t}(FP),TP=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],NP={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&_P(i,{color:r}),o&&_P(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Pt.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((jF(t)||"span"!==TF(n=co(t)))&&(n=co("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),PF(n)):t},preParseHtml:[BP],parseStyleHtml:function(e,t,n){var r=co(e);if(!Pt.isText(t))return t;var o=t,i=NF(r,"color");i&&(o.color=i);var a=NF(r,"background-color");return a||(a=NF(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new jP},config:{colors:TP}},{key:"bgColor",factory:function(){return new PP},config:{colors:TP}}]},IP=function(e){if("string"!=typeof e)return!1;var t=e.match(MP);if(!t)return!1;var n=t[1];return!!n&&!(!LP.test(n)&&!RP.test(n))},MP=/^(?:\w+:)?\/\/(\S+)$/,LP=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,RP=/^[^\s\.]+\.\S{2,}$/,zP=JO.includes;function VP(e){return void 0===e&&(e="r"),e+"-"+ki()}function $P(e){return e.replace(/</g,"<").replace(/>/g,">")}function UP(e,t,n,r){return zF(this,void 0,void 0,(function(){var o,i;return VF(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function HP(e,t,n){return zF(this,void 0,void 0,(function(){var r;return VF(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function WP(e){return null==e.selection||!!Iw.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function qP(e,t){return{type:"link",url:$P(e),children:t?[{text:t}]:[]}}function KP(e,t,n){return zF(this,void 0,void 0,(function(){var r,o,i;return VF(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),WP(e)?[2]:[4,UP("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,HP("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Dt.isCollapsed(o)?(e.insertText(" "),i=qP(r,t),Xt.insertNodes(e,i),e.insertFragment([{text:" "}])):ut.string(e,o)!==t?(e.deleteFragment(),i=qP(r,t),Xt.insertNodes(e,i)):(i=qP(r),Xt.wrapNodes(e,i,{split:!0}),Xt.collapse(e,{edge:"end"}))),[2]}}))}))}v_({target:"Array",proto:!0},{includes:function(e){return zP(this,e,arguments.length>1?arguments[1]:void 0)}}),oF("includes");var GP={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Wa("a",{href:o,target:void 0===i?"_blank":i},t)}},YP={type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}},ZP={selector:"a",parseElemHtml:function(e,t,n){var r=co(e);return 0===(t=t.filter((function(e){return!!Pt.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function JP(){return VP("w-e-insert-link")}var XP=function(){function e(){this.title=ID("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=JP(),this.urlInputId=JP(),this.buttonId=JP()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return WP(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=UF(mS(ID("link.text"),r),2),l=a[0],u=a[1],s=co(u),c=UF(mS(ID("link.url"),o),2),f=c[0],d=c[1],p=co(d),h=UF(yS(i,ID("common.ok")),1)[0];if(null==this.$content){var g=co("<div></div>");g.on("click","#"+i,(function(t){t.preventDefault();var n=g.find("#"+r).val(),i=g.find("#"+o).val();KP(e,n,i),e.hidePanelOrModal()})),this.$content=g}var v=this.$content;if(v.empty(),v.append(l),v.append(f),v.append(h),null==t||Dt.isCollapsed(t))s.val("");else{var m=ut.string(e,t);s.val(m)}return p.val(""),setTimeout((function(){s.focus()})),v[0]},e}();function QP(){return VP("w-e-update-link")}var eT=function(){function e(){this.title=ID("link.edit"),this.iconSvg=gj,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=QP(),this.buttonId=QP()}return e.prototype.getSelectedLinkElem=function(e){var t=Iw.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return Iw.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=UF(mS(ID("link.url"),t),2),o=r[0],i=r[1],a=co(i),l=UF(yS(n,ID("common.ok")),1)[0];if(null==this.$content){var u=co("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=Iw.getSelectedNodeByType(e,"link"),o=r?pt.string(r):"",i=u.find("#"+t).val();!function(e,t,n){zF(this,void 0,void 0,(function(){var r,o;return VF(this,(function(i){switch(i.label){case 0:return n?[4,UP("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,HP("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:$P(r)},Xt.setNodes(e,o,{match:function(e){return Iw.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(l);var c=this.getValue(e);return a.val(c),setTimeout((function(){a.focus()})),s[0]},e}(),tT=function(){function e(){this.title=ID("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Iw.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||Xt.unwrapNodes(e,{match:function(e){return Iw.checkNodeType(e,"link")}})},e}(),nT=function(){function e(){this.title=ID("link.view"),this.iconSvg=vj,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=Iw.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),rT={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},oT={renderElems:[GP],elemsToHtml:[YP],parseElemsHtml:[ZP],menus:[{key:"insertLink",factory:function(){return new XP},config:rT},{key:"editLink",factory:function(){return new eT},config:rT},{key:"unLink",factory:function(){return new tT}},{key:"viewLink",factory:function(){return new nT}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(IP(t)){if(!WP(o)){var r=o.selection;if(null!=r){var i=ut.string(o,r);KP(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=UF(e,2),n=t[0],i=t[1];return"link"!==Iw.getNodeType(n)?r([n,i]):""===pt.string(n)?Xt.removeNodes(o,{at:i}):r([n,i])},o}},iT=lA(1..valueOf),aT=KD.RangeError,lT=KD.RangeError,uT=KD.String,sT=Math.floor,cT=lA((function(e){var t=W_(gA(this)),n="",r=UO(e);if(r<0||r==1/0)throw aT("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),fT=lA("".slice),dT=lA(1..toFixed),pT=function(e,t,n){return 0===t?n:t%2==1?pT(e,t-1,n*e):pT(e*e,t/2,n)},hT=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=sT(o/1e7)},gT=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=sT(r/t),r=r%t*1e7},vT=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=uT(e[t]);n=""===n?r:n+cT("0",7-r.length)+r}return n};function mT(e,t){return"w-e-image-container-"+Iw.findKey(e,t).id}function yT(e,t,n,r){var o=co("body"),i=mT(e,t),a=r.width,l=r.height,u=0,s=0,c=0,f=!1,d=null;function p(t){d=function(){var e=co("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),u=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");s=n.width(),c=n.height(),o.on("mousemove",h),o.on("mouseup",g);var r=Iw.getHoverbar(e);r&&r.hideAndClean()}var h=Ki((function(e){e.preventDefault();var t=e.clientX,n=s+(f?u-t:t-u),r=c*(n/s);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function g(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:RF(RF({},t.style),{width:r+"px",height:i+"px"})};Xt.setNodes(e,a,{at:Iw.findPath(e,t)}),o.off("mouseup",g)}}var v={};return a&&(v.width=a),l&&(v.height=l),Wa("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=co(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,Wa("div",{className:"w-e-image-dragger left-top"}),Wa("div",{className:"w-e-image-dragger right-top"}),Wa("div",{className:"w-e-image-dragger left-bottom"}),Wa("div",{className:"w-e-image-dragger right-bottom"}))}v_({target:"Number",proto:!0,forced:GD((function(){return"0.000"!==dT(8e-5,3)||"1"!==dT(.9,0)||"1.25"!==dT(1.255,2)||"1000000000000000128"!==dT(0xde0b6b3a7640080,0)}))||!GD((function(){dT({})}))},{toFixed:function(e){var t,n,r,o,i=iT(this),a=UO(e),l=[0,0,0,0,0,0],u="",s="0";if(a<0||a>20)throw lT("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return uT(i);if(i<0&&(u="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*pT(2,69,1))-69)<0?i*pT(2,-t,1):i/pT(2,t,1),n*=4503599627370496,(t=52-t)>0){for(hT(l,0,n),r=a;r>=7;)hT(l,1e7,0),r-=7;for(hT(l,pT(10,r,1),0),r=t-1;r>=23;)gT(l,1<<23),r-=23;gT(l,1<<r),hT(l,1,1),gT(l,2),s=vT(l)}else hT(l,0,n),hT(l,1<<-t,0),s=vT(l)+cT("0",a);return a>0?u+((o=s.length)<=a?"0."+cT("0",a-o)+s:fT(s,0,o-a)+"."+fT(s,o-a)):u+s}});var bT={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,l=r.href,u=void 0===l?"":l,s=r.style,c=void 0===s?{}:s,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=Iw.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var m=Wa("img",{style:v,src:o,alt:a,"data-href":u}),y=n.isDisabled();return g&&!y?yT(n,e,m,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};o&&(a.width=o),i&&(a.height=i);var l=mT(e,t);return Wa("div",{id:l,style:a,className:"w-e-image-container"},n)}(n,e,m,{width:d,height:h})}},wT={type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,l=void 0===a?"":a,u=n.style,s=void 0===u?{}:u,c=s.width,f=void 0===c?"":c,d=s.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+l+'" style="'+h+'"/>'}},xT={selector:"img",parseElemHtml:function(e,t,n){var r=co(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:NF(r,"width"),height:NF(r,"height")},children:[{text:""}]}}};function CT(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),zF(this,void 0,void 0,(function(){var i,a;return VF(this,(function(l){switch(l.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=l.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];l.label=2;case 2:return[2,!0]}}))}))}function ET(e,t,n){return zF(this,void 0,void 0,(function(){var r;return VF(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function kT(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),zF(this,void 0,void 0,(function(){var o,i,a;return VF(this,(function(l){switch(l.label){case 0:return[4,CT("insertImage",e,t,n,r)];case 1:return l.sent()?[4,ET("insertImage",e,t)]:[2];case 2:return o=l.sent(),i={type:"image",src:$P(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),Iw.getSelectedNodeByType(e,"image")&&e.move(1),DT(e)||(Xt.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function ST(e,t,n,r,o){return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),zF(this,void 0,void 0,(function(){var i,a,l,u,s,c;return VF(this,(function(f){switch(f.label){case 0:return[4,CT("editImage",e,t,n,r)];case 1:return f.sent()?[4,ET("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=Iw.getSelectedNodeByType(e,"image"))||(l=a.style,u={src:i,alt:n,href:r,style:RF(RF({},void 0===l?{}:l),o)},Xt.setNodes(e,u,{match:function(e){return Iw.checkNodeType(e,"image")}}),s=Iw.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(s)),[2]}}))}))}function DT(e){var t=e.selection;return null==t||!Dt.isCollapsed(t)||!!UF(ut.nodes(e,{match:function(t){var n=Iw.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!ut.isVoid(e,t)},universal:!0}),1)[0]}function AT(){return VP("w-e-insert-image")}var OT=function(){function e(){this.title=ID("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=AT(),this.altInputId=AT(),this.hrefInputId=AT(),this.buttonId=AT()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return DT(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,l=UF(mS(ID("image.src"),r),2),u=l[0],s=l[1],c=co(s),f=UF(mS(ID("image.desc"),o),2),d=f[0],p=f[1],h=co(p),g=UF(mS(ID("image.link"),i),2),v=g[0],m=g[1],y=co(m),b=UF(yS(a,ID("common.ok")),1)[0];if(null==this.$content){var w=co("<div></div>");w.on("click","#"+a,(function(n){n.preventDefault();var a=w.find("#"+r).val().trim(),l=w.find("#"+o).val().trim(),u=w.find("#"+i).val().trim();t.insertImage(e,a,l,u),e.hidePanelOrModal()})),this.$content=w}var x=this.$content;return x.empty(),x.append(u),x.append(d),x.append(v),x.append(b),c.val(""),h.val(""),y.val(""),setTimeout((function(){c.focus()})),x[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||kT(e,t,n,r))},e}(),_T=function(){function e(){this.title=ID("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Iw.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||Xt.removeNodes(e,{match:function(e){return Iw.checkNodeType(e,"image")}})},e}();function BT(){return VP("w-e-edit-image")}var FT=function(){function e(){this.title=ID("image.edit"),this.iconSvg=gj,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=BT(),this.altInputId=BT(),this.hrefInputId=BT(),this.buttonId=BT()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return Iw.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Dt.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,l=this.getImageNode(e);if(null==l)throw new Error("Not found selected image node");var u=UF(mS(ID("image.src"),r),2),s=u[0],c=u[1],f=co(c),d=UF(mS(ID("image.desc"),o),2),p=d[0],h=d[1],g=co(h),v=UF(mS(ID("image.link"),i),2),m=v[0],y=v[1],b=co(y),w=UF(yS(a,ID("common.ok")),1)[0];if(null==this.$content){var x=co("<div></div>");x.on("click","#"+a,(function(n){n.preventDefault();var a=x.find("#"+r).val(),l=x.find("#"+o).val(),u=x.find("#"+i).val();t.updateImage(e,a,l,u),e.hidePanelOrModal()})),this.$content=x}var C=this.$content;C.empty(),C.append(s),C.append(p),C.append(m),C.append(w);var E=l,k=E.src,S=E.alt,D=void 0===S?"":S,A=E.href,O=void 0===A?"":A;return f.val(k),g.val(D),b.val(O),setTimeout((function(){f.focus()})),C[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||ST(e,t,n,r,o))},e}(),jT=function(){function e(){this.title=ID("image.viewLink"),this.iconSvg=vj,this.tag="button"}return e.prototype.getValue=function(e){var t=Iw.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),PT=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return Iw.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=Iw.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:RF(RF({},void 0===o?{}:o),{width:this.value,height:""})};Xt.setNodes(e,i,{match:function(e){return Iw.checkNodeType(e,"image")}})}}},e}(),TT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return LF(t,e),t}(PT),NT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return LF(t,e),t}(PT),IT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return LF(t,e),t}(PT),MT={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},LT={renderElems:[bT],elemsToHtml:[wT],parseElemsHtml:[xT],menus:[{key:"insertImage",factory:function(){return new OT},config:MT},{key:"deleteImage",factory:function(){return new _T}},{key:"editImage",factory:function(){return new FT},config:MT},{key:"viewImageLink",factory:function(){return new jT}},{key:"imageWidth30",factory:function(){return new TT}},{key:"imageWidth50",factory:function(){return new NT}},{key:"imageWidth100",factory:function(){return new IT}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},RT={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=e.checked,i=Wa("div",{style:{margin:"5px 0"}},Wa("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Wa("input",{type:"checkbox",checked:o,disabled:r,on:{change:function(t){var r=Iw.findPath(n,e),o={checked:t.target.checked};Xt.setNodes(n,o,{at:r})}}})),Wa("span",null,t));return i}},zT=function(){function e(){this.title=ID("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!Iw.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!Iw.getSelectedElems(e).some((function(t){if(ut.isVoid(e,t)&&ut.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","bulleted-list","numbered-list"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);Xt.setNodes(e,{type:n?"paragraph":"todo"})},e}(),VT={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=co(e);0===(t=t.filter((function(e){return!!Pt.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},$T={renderElems:[RT],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=co(e).find("li"),n=co('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[VT],menus:[{key:"todo",factory:function(){return new zT}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Dt.isCollapsed(r)){var o=Iw.getSelectedNodeByType(e,"todo");if(o&&0===pt.string(o).length)return void Xt.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},UT={type:"blockquote",renderElem:function(e,t,n){return Wa("blockquote",null,t)}},HT={type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}},WT={selector:"blockquote",parseElemHtml:function(e,t,n){var r=co(e);return 0===(t=t.filter((function(e){return!!Pt.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},qT=function(){function e(){this.title=ID("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!Iw.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!UF(ut.nodes(e,{match:function(e){var t=Iw.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";Xt.setNodes(e,{type:n},{mode:"highest"})}},e}(),KT={key:"blockquote",factory:function(){return new qT}},GT=lA([].slice),YT=z_("slice"),ZT=eO("species"),JT=KD.Array,XT=Math.max;v_({target:"Array",proto:!0,forced:!YT},{slice:function(e,t){var n,r,o,i=vA(this),a=YO(i),l=qO(e,a),u=qO(void 0===t?a:t,a);if(y_(i)&&(n=i.constructor,(j_(n)&&(n===JT||y_(n.prototype))||yA(n)&&null===(n=n[ZT]))&&(n=void 0),n===JT||void 0===n))return GT(i,l,u);for(r=new(void 0===n?JT:n)(XT(u-l,0)),o=0;l<u;l++,o++)l in i&&dF(r,o,i[l]);return r.length=o,r}});var QT={renderElems:[UT],elemsToHtml:[HT],parseElemsHtml:[WT],menus:[KT],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=UF(ut.nodes(e,{match:function(e){return Iw.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],l=Iw.findPath(e,a),u=ut.end(e,l);if(xt.equals(u,o.focus)){var s=pt.string(a);if(s&&"\n"===s.slice(-1))return e.deleteBackward("character"),void Xt.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},eN=function(){function e(){this.title=ID("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!UF(ut.nodes(e,{match:function(t){return"pre"===Iw.getNodeType(t)||!!ut.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=co('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=co(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=co("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),tN={menus:[{key:"emotion",factory:function(){return new eN},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},nN={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},rN={selector:"font",preParseHtml:function(e){var t=co(e);if("font"!==TF(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",nN[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},oN=lA("".indexOf);v_({target:"String",proto:!0,forced:!eP("includes")},{includes:function(e){return!!~oN(W_(gA(this)),W_(Xj(e)),arguments.length>1?arguments[1]:void 0)}});var iN,aN,lN=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=ut.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!UF(ut.nodes(e,{match:function(t){return"pre"===Iw.getNodeType(t)||!!ut.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),uN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=ID("fontSize.title"),t.iconSvg=bj,t.mark="fontSize",t}return LF(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:ID("fontSize.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(lN),sN=function(e){return e&&e.Math==Math&&e},cN=sN("object"==typeof globalThis&&globalThis)||sN("object"==typeof window&&window)||sN("object"==typeof self&&self)||sN("object"==typeof VD&&VD)||function(){return this}()||Function("return this")(),fN=Function.prototype,dN=fN.apply,pN=fN.bind,hN=fN.call,gN="object"==typeof Reflect&&Reflect.apply||(pN?hN.bind(dN):function(){return hN.apply(dN,arguments)}),vN=Function.prototype,mN=vN.bind,yN=vN.call,bN=mN&&mN.bind(yN),wN=mN?function(e){return e&&bN(yN,e)}:function(e){return e&&function(){return yN.apply(e,arguments)}},xN=function(e){return"function"==typeof e},CN=function(e){try{return!!e()}catch(e){return!0}},EN=!CN((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),kN=Function.prototype.call,SN=kN.bind?kN.bind(kN):function(){return kN.apply(kN,arguments)},DN={}.propertyIsEnumerable,AN=Object.getOwnPropertyDescriptor,ON=AN&&!DN.call({1:2},1)?function(e){var t=AN(this,e);return!!t&&t.enumerable}:DN,_N={f:ON},BN=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},FN=wN({}.toString),jN=wN("".slice),PN=function(e){return jN(FN(e),8,-1)},TN=cN.Object,NN=wN("".split),IN=CN((function(){return!TN("z").propertyIsEnumerable(0)}))?function(e){return"String"==PN(e)?NN(e,""):TN(e)}:TN,MN=cN.TypeError,LN=function(e){if(null==e)throw MN("Can't call method on "+e);return e},RN=function(e){return IN(LN(e))},zN=function(e){return"object"==typeof e?null!==e:xN(e)},VN={},$N=function(e){return xN(e)?e:void 0},UN=function(e,t){return arguments.length<2?$N(VN[e])||$N(cN[e]):VN[e]&&VN[e][t]||cN[e]&&cN[e][t]},HN=wN({}.isPrototypeOf),WN=UN("navigator","userAgent")||"",qN=cN.process,KN=cN.Deno,GN=qN&&qN.versions||KN&&KN.version,YN=GN&&GN.v8;YN&&(aN=(iN=YN.split("."))[0]>0&&iN[0]<4?1:+(iN[0]+iN[1])),!aN&&WN&&(!(iN=WN.match(/Edge\/(\d+)/))||iN[1]>=74)&&(iN=WN.match(/Chrome\/(\d+)/))&&(aN=+iN[1]);var ZN=aN,JN=!!Object.getOwnPropertySymbols&&!CN((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ZN&&ZN<41})),XN=JN&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,QN=cN.Object,eI=XN?function(e){return"symbol"==typeof e}:function(e){var t=UN("Symbol");return xN(t)&&HN(t.prototype,QN(e))},tI=cN.String,nI=cN.TypeError,rI=function(e){if(xN(e))return e;throw nI(function(e){try{return tI(e)}catch(e){return"Object"}}(e)+" is not a function")},oI=cN.TypeError,iI=Object.defineProperty,aI=cN["__core-js_shared__"]||function(e,t){try{iI(cN,e,{value:t,configurable:!0,writable:!0})}catch(p){cN[e]=t}return t}("__core-js_shared__",{}),lI=UD((function(e){(e.exports=function(e,t){return aI[e]||(aI[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),uI=cN.Object,sI=function(e){return uI(LN(e))},cI=wN({}.hasOwnProperty),fI=Object.hasOwn||function(e,t){return cI(sI(e),t)},dI=0,pI=Math.random(),hI=wN(1..toString),gI=function(e){return"Symbol("+(void 0===e?"":e)+")_"+hI(++dI+pI,36)},vI=lI("wks"),mI=cN.Symbol,yI=mI&&mI.for,bI=XN?mI:mI&&mI.withoutSetter||gI,wI=function(e){if(!fI(vI,e)||!JN&&"string"!=typeof vI[e]){var t="Symbol."+e;JN&&fI(mI,e)?vI[e]=mI[e]:vI[e]=XN&&yI?yI(t):bI(t)}return vI[e]},xI=cN.TypeError,CI=wI("toPrimitive"),EI=function(e,t){if(!zN(e)||eI(e))return e;var n,r,o=null==(n=e[CI])?void 0:rI(n);if(o){if(void 0===t&&(t="default"),r=SN(o,e,t),!zN(r)||eI(r))return r;throw xI("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&xN(n=e.toString)&&!zN(r=SN(n,e)))return r;if(xN(n=e.valueOf)&&!zN(r=SN(n,e)))return r;if("string"!==t&&xN(n=e.toString)&&!zN(r=SN(n,e)))return r;throw oI("Can't convert object to primitive value")}(e,t)},kI=function(e){var t=EI(e,"string");return eI(t)?t:t+""},SI=cN.document,DI=zN(SI)&&zN(SI.createElement),AI=function(e){return DI?SI.createElement(e):{}},OI=!EN&&!CN((function(){return 7!=Object.defineProperty(AI("div"),"a",{get:function(){return 7}}).a})),_I=Object.getOwnPropertyDescriptor,BI={f:EN?_I:function(e,t){if(e=RN(e),t=kI(t),OI)try{return _I(e,t)}catch(e){}if(fI(e,t))return BN(!SN(_N.f,e,t),e[t])}},FI=/#|\.prototype\./,jI=function(e,t){var n=TI[PI(e)];return n==II||n!=NI&&(xN(t)?CN(t):!!t)},PI=jI.normalize=function(e){return String(e).replace(FI,".").toLowerCase()},TI=jI.data={},NI=jI.NATIVE="N",II=jI.POLYFILL="P",MI=jI,LI=wN(wN.bind),RI=function(e,t){return rI(e),void 0===t?e:LI?LI(e,t):function(){return e.apply(t,arguments)}},zI=cN.String,VI=cN.TypeError,$I=function(e){if(zN(e))return e;throw VI(zI(e)+" is not an object")},UI=cN.TypeError,HI=Object.defineProperty,WI={f:EN?HI:function(e,t,n){if($I(e),t=kI(t),$I(n),OI)try{return HI(e,t,n)}catch(e){}if("get"in n||"set"in n)throw UI("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},qI=EN?function(e,t,n){return WI.f(e,t,BN(1,n))}:function(e,t,n){return e[t]=n,e},KI=BI.f,GI=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return gN(e,this,arguments)};return t.prototype=e.prototype,t},YI=function(e,t){var n,r,o,i,a,l,u,s,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?cN:d?cN[c]:(cN[c]||{}).prototype,g=f?VN:VN[c]||qI(VN,c,{})[c],v=g.prototype;for(o in t)n=!MI(f?o:c+(d?".":"#")+o,e.forced)&&h&&fI(h,o),a=g[o],n&&(l=e.noTargetGet?(s=KI(h,o))&&s.value:h[o]),i=n&&l?l:t[o],n&&typeof a==typeof i||(u=e.bind&&n?RI(i,cN):e.wrap&&n?GI(i):p&&xN(i)?wN(i):i,(e.sham||i&&i.sham||a&&a.sham)&&qI(u,"sham",!0),qI(g,o,u),p&&(fI(VN,r=c+"Prototype")||qI(VN,r,{}),qI(VN[r],o,i),e.real&&v&&!v[o]&&qI(v,o,i)))},ZI=Array.isArray||function(e){return"Array"==PN(e)},JI=Math.ceil,XI=Math.floor,QI=function(e){var t=+e;return t!=t||0===t?0:(t>0?XI:JI)(t)},eM=Math.min,tM=function(e){return(t=e.length)>0?eM(QI(t),9007199254740991):0;var t},nM=function(e,t,n){var r=kI(t);r in e?WI.f(e,r,BN(0,n)):e[r]=n},rM={};rM[wI("toStringTag")]="z";var oM="[object z]"===String(rM),iM=wI("toStringTag"),aM=cN.Object,lM="Arguments"==PN(function(){return arguments}()),uM=oM?PN:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=aM(e),iM))?n:lM?PN(t):"Object"==(r=PN(t))&&xN(t.callee)?"Arguments":r},sM=wN(Function.toString);xN(aI.inspectSource)||(aI.inspectSource=function(e){return sM(e)});var cM=aI.inspectSource,fM=function(){},dM=[],pM=UN("Reflect","construct"),hM=/^\s*(?:class|function)\b/,gM=wN(hM.exec),vM=!hM.exec(fM),mM=function(e){if(!xN(e))return!1;try{return pM(fM,dM,e),!0}catch(e){return!1}},yM=!pM||CN((function(){var e;return mM(mM.call)||!mM(Object)||!mM((function(){e=!0}))||e}))?function(e){if(!xN(e))return!1;switch(uM(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vM||!!gM(hM,cM(e))}:mM,bM=wI("species"),wM=cN.Array,xM=function(e,t){return new(function(e){var t;return ZI(e)&&(t=e.constructor,(yM(t)&&(t===wM||ZI(t.prototype))||zN(t)&&null===(t=t[bM]))&&(t=void 0)),void 0===t?wM:t}(e))(0===t?0:t)},CM=wI("species"),EM=wI("isConcatSpreadable"),kM=cN.TypeError,SM=ZN>=51||!CN((function(){var e=[];return e[EM]=!1,e.concat()[0]!==e})),DM=function(e){return ZN>=51||!CN((function(){var t=[];return(t.constructor={})[CM]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("concat"),AM=function(e){if(!zN(e))return!1;var t=e[EM];return void 0!==t?!!t:ZI(e)};YI({target:"Array",proto:!0,forced:!SM||!DM},{concat:function(e){var t,n,r,o,i,a=sI(this),l=xM(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(AM(i=-1===t?a:arguments[t])){if(u+(o=tM(i))>9007199254740991)throw kM("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&nM(l,u,i[n])}else{if(u>=9007199254740991)throw kM("Maximum allowed index exceeded");nM(l,u++,i)}return l.length=u,l}});var OM,_M=cN.String,BM=function(e){if("Symbol"===uM(e))throw TypeError("Cannot convert a Symbol value to a string");return _M(e)},FM=Math.max,jM=Math.min,PM=function(e,t){var n=QI(e);return n<0?FM(n+t,0):jM(n,t)},TM=function(e){return function(t,n,r){var o,i=RN(t),a=tM(i),l=PM(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},NM={includes:TM(!0),indexOf:TM(!1)},IM={},MM=NM.indexOf,LM=wN([].push),RM=function(e,t){var n,r=RN(e),o=0,i=[];for(n in r)!fI(IM,n)&&fI(r,n)&&LM(i,n);for(;t.length>o;)fI(r,n=t[o++])&&(~MM(i,n)||LM(i,n));return i},zM=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],VM=Object.keys||function(e){return RM(e,zM)},$M=EN?Object.defineProperties:function(e,t){$I(e);for(var n,r=RN(t),o=VM(t),i=o.length,a=0;i>a;)WI.f(e,n=o[a++],r[n]);return e},UM=UN("document","documentElement"),HM=lI("keys"),WM=function(e){return HM[e]||(HM[e]=gI(e))},qM=WM("IE_PROTO"),KM=function(){},GM=function(e){return"<script>"+e+"<\/script>"},YM=function(e){e.write(GM("")),e.close();var t=e.parentWindow.Object;return e=null,t},ZM=function(){try{OM=new ActiveXObject("htmlfile")}catch(e){}var e,t;ZM="undefined"!=typeof document?document.domain&&OM?YM(OM):((t=AI("iframe")).style.display="none",UM.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(GM("document.F=Object")),e.close(),e.F):YM(OM);for(var n=zM.length;n--;)delete ZM.prototype[zM[n]];return ZM()};IM[qM]=!0;var JM,XM,QM,eL=Object.create||function(e,t){var n;return null!==e?(KM.prototype=$I(e),n=new KM,KM.prototype=null,n[qM]=e):n=ZM(),void 0===t?n:$M(n,t)},tL=zM.concat("length","prototype"),nL={f:Object.getOwnPropertyNames||function(e){return RM(e,tL)}},rL=cN.Array,oL=Math.max,iL=nL.f,aL="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lL=function(e){try{return iL(e)}catch(e){return function(e,t,n){for(var r=tM(e),o=PM(t,r),i=PM(void 0===n?r:n,r),a=rL(oL(i-o,0)),l=0;o<i;o++,l++)nM(a,l,e[o]);return a.length=l,a}(aL)}},uL={f:function(e){return aL&&"Window"==PN(e)?lL(e):iL(RN(e))}},sL={f:Object.getOwnPropertySymbols},cL=wN([].slice),fL=function(e,t,n,r){r&&r.enumerable?e[t]=n:qI(e,t,n)},dL={f:wI},pL=WI.f,hL=function(e){var t=VN.Symbol||(VN.Symbol={});fI(t,e)||pL(t,e,{value:dL.f(e)})},gL=oM?{}.toString:function(){return"[object "+uM(this)+"]"},vL=WI.f,mL=wI("toStringTag"),yL=function(e,t,n,r){if(e){var o=n?e:e.prototype;fI(o,mL)||vL(o,mL,{configurable:!0,value:t}),r&&!oM&&qI(o,"toString",gL)}},bL=cN.WeakMap,wL=xN(bL)&&/native code/.test(cM(bL)),xL=cN.TypeError,CL=cN.WeakMap;if(wL||aI.state){var EL=aI.state||(aI.state=new CL),kL=wN(EL.get),SL=wN(EL.has),DL=wN(EL.set);JM=function(e,t){if(SL(EL,e))throw new xL("Object already initialized");return t.facade=e,DL(EL,e,t),t},XM=function(e){return kL(EL,e)||{}},QM=function(e){return SL(EL,e)}}else{var AL=WM("state");IM[AL]=!0,JM=function(e,t){if(fI(e,AL))throw new xL("Object already initialized");return t.facade=e,qI(e,AL,t),t},XM=function(e){return fI(e,AL)?e[AL]:{}},QM=function(e){return fI(e,AL)}}var OL={set:JM,get:XM,has:QM,enforce:function(e){return QM(e)?XM(e):JM(e,{})},getterFor:function(e){return function(t){var n;if(!zN(t)||(n=XM(t)).type!==e)throw xL("Incompatible receiver, "+e+" required");return n}}},_L=wN([].push),BL=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=sI(u),g=IN(h),v=RI(s,c),m=tM(g),y=0,b=f||xM,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:_L(w,d)}else switch(e){case 4:return!1;case 7:_L(w,d)}return i?-1:r||o?o:w}},FL={forEach:BL(0),map:BL(1),filter:BL(2),some:BL(3),every:BL(4),find:BL(5),findIndex:BL(6),filterReject:BL(7)}.forEach,jL=WM("hidden"),PL=wI("toPrimitive"),TL=OL.set,NL=OL.getterFor("Symbol"),IL=Object.prototype,ML=cN.Symbol,LL=ML&&ML.prototype,RL=cN.TypeError,zL=cN.QObject,VL=UN("JSON","stringify"),$L=BI.f,UL=WI.f,HL=uL.f,WL=_N.f,qL=wN([].push),KL=lI("symbols"),GL=lI("op-symbols"),YL=lI("string-to-symbol-registry"),ZL=lI("symbol-to-string-registry"),JL=lI("wks"),XL=!zL||!zL.prototype||!zL.prototype.findChild,QL=EN&&CN((function(){return 7!=eL(UL({},"a",{get:function(){return UL(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=$L(IL,t);r&&delete IL[t],UL(e,t,n),r&&e!==IL&&UL(IL,t,r)}:UL,eR=function(e,t){var n=KL[e]=eL(LL);return TL(n,{type:"Symbol",tag:e,description:t}),EN||(n.description=t),n},tR=function(e,t,n){e===IL&&tR(GL,t,n),$I(e);var r=kI(t);return $I(n),fI(KL,r)?(n.enumerable?(fI(e,jL)&&e[jL][r]&&(e[jL][r]=!1),n=eL(n,{enumerable:BN(0,!1)})):(fI(e,jL)||UL(e,jL,BN(1,{})),e[jL][r]=!0),QL(e,r,n)):UL(e,r,n)},nR=function(e,t){$I(e);var n=RN(t),r=VM(n).concat(aR(n));return FL(r,(function(t){EN&&!SN(rR,n,t)||tR(e,t,n[t])})),e},rR=function(e){var t=kI(e),n=SN(WL,this,t);return!(this===IL&&fI(KL,t)&&!fI(GL,t))&&(!(n||!fI(this,t)||!fI(KL,t)||fI(this,jL)&&this[jL][t])||n)},oR=function(e,t){var n=RN(e),r=kI(t);if(n!==IL||!fI(KL,r)||fI(GL,r)){var o=$L(n,r);return!o||!fI(KL,r)||fI(n,jL)&&n[jL][r]||(o.enumerable=!0),o}},iR=function(e){var t=HL(RN(e)),n=[];return FL(t,(function(e){fI(KL,e)||fI(IM,e)||qL(n,e)})),n},aR=function(e){var t=e===IL,n=HL(t?GL:RN(e)),r=[];return FL(n,(function(e){!fI(KL,e)||t&&!fI(IL,e)||qL(r,KL[e])})),r};if(JN||(LL=(ML=function(){if(HN(LL,this))throw RL("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?BM(arguments[0]):void 0,t=gI(e),n=function(e){this===IL&&SN(n,GL,e),fI(this,jL)&&fI(this[jL],t)&&(this[jL][t]=!1),QL(this,t,BN(1,e))};return EN&&XL&&QL(IL,t,{configurable:!0,set:n}),eR(t,e)}).prototype,fL(LL,"toString",(function(){return NL(this).tag})),fL(ML,"withoutSetter",(function(e){return eR(gI(e),e)})),_N.f=rR,WI.f=tR,BI.f=oR,nL.f=uL.f=iR,sL.f=aR,dL.f=function(e){return eR(wI(e),e)},EN&&UL(LL,"description",{configurable:!0,get:function(){return NL(this).description}})),YI({global:!0,wrap:!0,forced:!JN,sham:!JN},{Symbol:ML}),FL(VM(JL),(function(e){hL(e)})),YI({target:"Symbol",stat:!0,forced:!JN},{for:function(e){var t=BM(e);if(fI(YL,t))return YL[t];var n=ML(t);return YL[t]=n,ZL[n]=t,n},keyFor:function(e){if(!eI(e))throw RL(e+" is not a symbol");if(fI(ZL,e))return ZL[e]},useSetter:function(){XL=!0},useSimple:function(){XL=!1}}),YI({target:"Object",stat:!0,forced:!JN,sham:!EN},{create:function(e,t){return void 0===t?eL(e):nR(eL(e),t)},defineProperty:tR,defineProperties:nR,getOwnPropertyDescriptor:oR}),YI({target:"Object",stat:!0,forced:!JN},{getOwnPropertyNames:iR,getOwnPropertySymbols:aR}),YI({target:"Object",stat:!0,forced:CN((function(){sL.f(1)}))},{getOwnPropertySymbols:function(e){return sL.f(sI(e))}}),VL){var lR=!JN||CN((function(){var e=ML();return"[null]"!=VL([e])||"{}"!=VL({a:e})||"{}"!=VL(Object(e))}));YI({target:"JSON",stat:!0,forced:lR},{stringify:function(e,t,n){var r=cL(arguments),o=t;if((zN(t)||void 0!==e)&&!eI(e))return ZI(t)||(t=function(e,t){if(xN(o)&&(t=SN(o,this,e,t)),!eI(t))return t}),r[1]=t,gN(VL,null,r)}})}if(!LL[PL]){var uR=LL.valueOf;fL(LL,PL,(function(e){return SN(uR,this)}))}yL(ML,"Symbol"),IM[jL]=!0,hL("asyncIterator"),hL("hasInstance"),hL("isConcatSpreadable"),hL("iterator"),hL("match"),hL("matchAll"),hL("replace"),hL("search"),hL("species"),hL("split"),hL("toPrimitive"),hL("toStringTag"),hL("unscopables"),yL(cN.JSON,"JSON",!0);var sR,cR,fR,dR=VN.Symbol,pR={},hR=Function.prototype,gR=EN&&Object.getOwnPropertyDescriptor,vR=fI(hR,"name"),mR={EXISTS:vR,PROPER:vR&&"something"===function(){}.name,CONFIGURABLE:vR&&(!EN||EN&&gR(hR,"name").configurable)},yR=!CN((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),bR=WM("IE_PROTO"),wR=cN.Object,xR=wR.prototype,CR=yR?wR.getPrototypeOf:function(e){var t=sI(e);if(fI(t,bR))return t[bR];var n=t.constructor;return xN(n)&&t instanceof n?n.prototype:t instanceof wR?xR:null},ER=wI("iterator"),kR=!1;[].keys&&("next"in(fR=[].keys())?(cR=CR(CR(fR)))!==Object.prototype&&(sR=cR):kR=!0);var SR=null==sR||CN((function(){var e={};return sR[ER].call(e)!==e}));sR=SR?{}:eL(sR),xN(sR[ER])||fL(sR,ER,(function(){return this}));var DR={IteratorPrototype:sR,BUGGY_SAFARI_ITERATORS:kR},AR=DR.IteratorPrototype,OR=function(){return this};cN.String,cN.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{wN(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch(h){}}();var _R=mR.PROPER,BR=DR.BUGGY_SAFARI_ITERATORS,FR=wI("iterator"),jR=function(){return this},PR=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=eL(AR,{next:BN(+!r,n)}),yL(e,o,!1,!0),pR[o]=OR}(n,t,r);var l,u,s,c=function(e){if(e===o&&g)return g;if(!BR&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[FR]||p["@@iterator"]||o&&p[o],g=!BR&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(l=CR(v.call(new e)))!==Object.prototype&&l.next&&(yL(l,f,!0,!0),pR[f]=jR),_R&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return SN(h,this)}),o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(s in u)(BR||d||!(s in p))&&fL(p,s,u[s]);else YI({target:t,proto:!0,forced:BR||d},u);return a&&p[FR]!==g&&fL(p,FR,g,{name:o}),pR[t]=g,u},TR=OL.set,NR=OL.getterFor("Array Iterator");PR(Array,"Array",(function(e,t){TR(this,{type:"Array Iterator",target:RN(e),index:0,kind:t})}),(function(){var e=NR(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),pR.Arguments=pR.Array;var IR=wI("toStringTag");for(var MR in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var LR=cN[MR],RR=LR&&LR.prototype;RR&&uM(RR)!==IR&&qI(RR,IR,MR),pR[MR]=pR.Array}var zR=dR;hL("asyncDispose"),hL("dispose"),hL("matcher"),hL("metadata"),hL("observable"),hL("patternMatch"),hL("replaceAll");var VR=zR,$R=wN("".charAt),UR=wN("".charCodeAt),HR=wN("".slice),WR=function(e){return function(t,n){var r,o,i=BM(LN(t)),a=QI(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=UR(i,a))<55296||r>56319||a+1===l||(o=UR(i,a+1))<56320||o>57343?e?$R(i,a):r:e?HR(i,a,a+2):o-56320+(r-55296<<10)+65536}},qR={codeAt:WR(!1),charAt:WR(!0)}.charAt,KR=OL.set,GR=OL.getterFor("String Iterator");PR(String,"String",(function(e){KR(this,{type:"String Iterator",string:BM(e),index:0})}),(function(){var e,t=GR(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=qR(n,r),t.index+=e.length,{value:e,done:!1})}));var YR=dL.f("iterator"),ZR=UD((function(e){function t(n){return"function"==typeof VR&&"symbol"==typeof YR?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof VR&&e.constructor===VR&&e!==VR.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),JR=$D(ZR),XR=RO.EXISTS,QR=vO.f,ez=Function.prototype,tz=lA(ez.toString),nz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,rz=lA(nz.exec);YD&&!XR&&QR(ez,"name",{configurable:!0,get:function(){try{return rz(nz,tz(this))[1]}catch(h){return""}}});var oz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=ID("fontFamily.title"),t.iconSvg=wj,t.mark="fontFamily",t.selectPanelWidth=150,t}return LF(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:ID("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===JR(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(lN),iz={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&_P(i,{fontSize:r}),o&&_P(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Pt.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((jF(t)||"span"!==TF(n=co(t)))&&(n=co("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),PF(n)):t},preParseHtml:[rN],parseStyleHtml:function(e,t,n){var r=co(e);if(!Pt.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,l=NF(r,"font-size");l&&a.includes(l)&&(o.fontSize=l);var u=n.getMenuConfig("fontFamily").fontFamilyList,s=void 0===u?[]:u,c=NF(r,"font-family"),f=s.find((function(e){return e.value&&e.value===c}))||s.includes(c);return c&&f&&(o.fontFamily=c),o},menus:[{key:"fontSize",factory:function(){return new uN},config:{fontSizeList:["12px","13px","14px","15px","16px","19px","22px","24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new oz},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},az={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=co(e),n=NF(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},lz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=UF(ut.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":UF(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=UF(ut.nodes(e,{match:function(e){var t=Iw.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),uz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=ID("indent.decrease"),t.iconSvg=xj,t}return LF(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){Xt.setNodes(e,{indent:null},{match:function(e){return nt.isElement(e)}})},t}(lz),sz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=ID("indent.increase"),t.iconSvg=Cj,t}return LF(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){Xt.setNodes(e,{indent:"2em"},{match:function(e){return nt.isElement(e)},mode:"highest"})},t}(lz),cz={renderStyle:function(e,t){if(!nt.isElement(e))return t;var n=e.indent,r=t;return n&&_P(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!nt.isElement(e))return t;var n=e.indent;if(!n)return t;var r=co(t);return r.css("text-indent",n),PF(r)},preParseHtml:[az],parseStyleHtml:function(e,t,n){var r=co(e);if(!nt.isElement(t))return t;var o=t,i=NF(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new sz}},{key:"delIndent",factory:function(){return new uz}}]},fz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=UF(ut.nodes(e,{match:function(e){var t=Iw.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!Iw.getSelectedElems(e).some((function(t){if(ut.isVoid(e,t)&&ut.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),dz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=ID("justify.left"),t.iconSvg=Ej,t}return LF(t,e),t.prototype.exec=function(e,t){Xt.setNodes(e,{textAlign:"left"},{match:function(t){return nt.isElement(t)&&!e.isInline(t)}})},t}(fz),pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=ID("justify.right"),t.iconSvg=kj,t}return LF(t,e),t.prototype.exec=function(e,t){Xt.setNodes(e,{textAlign:"right"},{match:function(t){return nt.isElement(t)&&!e.isInline(t)}})},t}(fz),hz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=ID("justify.center"),t.iconSvg=Sj,t}return LF(t,e),t.prototype.exec=function(e,t){Xt.setNodes(e,{textAlign:"center"},{match:function(t){return nt.isElement(t)&&!e.isInline(t)}})},t}(fz),gz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=ID("justify.justify"),t.iconSvg=Dj,t}return LF(t,e),t.prototype.exec=function(e,t){Xt.setNodes(e,{textAlign:"justify"},{match:function(t){return nt.isElement(t)&&!e.isInline(t)}})},t}(fz),vz={renderStyle:function(e,t){if(!nt.isElement(e))return t;var n=e.textAlign,r=t;return n&&_P(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!nt.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=co(t);return r.css("text-align",n),PF(r)},parseStyleHtml:function(e,t,n){var r=co(e);if(!nt.isElement(t))return t;var o=t,i=NF(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new dz}},{key:"justifyRight",factory:function(){return new pz}},{key:"justifyCenter",factory:function(){return new hz}},{key:"justifyJustify",factory:function(){return new gz}}]},mz=function(){function e(){this.title=ID("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:ID("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=UF(ut.nodes(e,{match:function(e){var t=Iw.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","bulleted-list","numbered-list"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":nt.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){Xt.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),yz={renderStyle:function(e,t){if(!nt.isElement(e))return t;var n=e.lineHeight,r=t;return n&&_P(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!nt.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=co(t);return r.css("line-height",n),PF(r)},parseStyleHtml:function(e,t,n){var r=co(e);if(!nt.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,l=NF(r,"line-height");return l&&a.includes(l)&&(o.lineHeight=l),o},menus:[{key:"lineHeight",factory:function(){return new mz},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},bz=function(){function e(){this.title=ID("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),wz=function(){function e(){this.title=ID("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),xz={menus:[{key:"redo",factory:function(){return new bz}},{key:"undo",factory:function(){return new wz}}]},Cz={type:"divider",renderElem:function(e,t,n){var r=Iw.isNodeSelected(n,e);return Ca("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:r?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Ca("hr")])}},Ez={type:"divider",elemToHtml:function(e,t){return"<hr/>"}},kz={selector:"hr",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}},Sz=function(){function e(){this.title=ID("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!Iw.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=Iw.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){Xt.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),Dz={renderElems:[Cz],elemsToHtml:[Ez],parseElemsHtml:[kz],menus:[{key:"divider",factory:function(){return new Sz}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=UF(e,2),o=t[0],i=t[1];if("divider"!==Iw.getNodeType(o))return n([o,i]);Iw.isLastNode(r,o)&&Xt.insertNodes(r,Iw.genEmptyParagraph(),{at:[i[0]+1]})},r}},Az=L_.map;v_({target:"Array",proto:!0,forced:!z_("map")},{map:function(e){return Az(this,e,arguments.length>1?arguments[1]:void 0)}});var Oz=lA([].join),_z=pA!=Object,Bz=nj("join",",");v_({target:"Array",proto:!0,forced:_z||!Bz},{join:function(e){return Oz(vA(this),void 0===e?",":e)}});var Fz=function(){function e(){this.title=ID("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=Iw.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Iw.getParentNode(e,t);return null==n||"pre"!==Iw.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=Iw.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=Iw.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=pt.string(t);Xt.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));Xt.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=ut.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=$F(i),l=a.next();!l.done;l=a.next()){var u=UF(l.value,1)[0];u&&o.push(pt.string(u))}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}Xt.removeNodes(e,{mode:"highest"});var s={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};Xt.insertNodes(e,s,{mode:"highest"})},e}(),jz={key:"codeBlock",factory:function(){return new Fz}};v_({target:"String",proto:!0,forced:YF("anchor")},{anchor:function(e){return GF(this,"a","name",e)}}),FB("match",(function(e,t,n){return[function(t){var n=gA(this),r=null==t?void 0:IA(t,e);return r?JD(r,t,n):new RegExp(t)[e](W_(n))},function(e){var r=pO(this),o=W_(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return qB(r,o);var a=r.unicode;r.lastIndex=0;for(var l,u=[],s=0;null!==(l=qB(r,o));){var c=W_(l[0]);u[s]=c,""===c&&(r.lastIndex=MB(o,GO(r.lastIndex),a)),s++}return 0===s?null:u}]}));var Pz={type:"pre",renderElem:function(e,t,n){return Wa("pre",null,t)}},Tz={type:"code",renderElem:function(e,t,n){return Wa("code",null,t)}},Nz={selector:"pre",parseElemHtml:function(e,t,n){var r=co(e);return 0===(t=t.filter((function(e){return"code"===Iw.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===Iw.getNodeType(e)}))}}},Iz={menus:[jz],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=Iw.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=pt.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=UF(e,2),r=t[0],i=t[1],a=Iw.getNodeType(r);return"code"===a&&i.length<=1&&Xt.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(Iw.isLastNode(o,r)&&Xt.insertNodes(o,Iw.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==Iw.getNodeType(r.children[0])&&(Xt.unwrapNodes(o),Xt.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=Iw.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");ut.insertText(o,t)}else r(e)},o},renderElems:[Pz,Tz],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=co(e);if("code"!==TF(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:co(e)[0].textContent||""}]}}},Nz]},Mz=function(){function e(){this.title=ID("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),Lz={menus:[{key:"fullScreen",factory:function(){return new Mz}}]},Rz=function(){function e(){this.title=ID("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!Dt.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];Xt.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(ut.start(e,r))}},e}(),zz=[Mj,NP,iz,cz,vz,yz,LT,Dz,tN,oT,Iz,QT,kP,WF,$T,xz,Lz,{menus:[{key:"enter",factory:function(){return new Rz}}]}];ND("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),ND("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Vz="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function $z(e){var t={exports:{}};return e(t,t.exports),t.exports}var Uz,Hz,Wz=function(e){return e&&e.Math==Math&&e},qz=Wz("object"==typeof globalThis&&globalThis)||Wz("object"==typeof window&&window)||Wz("object"==typeof self&&self)||Wz("object"==typeof Vz&&Vz)||function(){return this}()||Function("return this")(),Kz=function(e){try{return!!e()}catch(e){return!0}},Gz=!Kz((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Yz=Function.prototype.call,Zz=Yz.bind?Yz.bind(Yz):function(){return Yz.apply(Yz,arguments)},Jz={}.propertyIsEnumerable,Xz=Object.getOwnPropertyDescriptor,Qz={f:Xz&&!Jz.call({1:2},1)?function(e){var t=Xz(this,e);return!!t&&t.enumerable}:Jz},eV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tV=Function.prototype,nV=tV.bind,rV=tV.call,oV=nV&&nV.bind(rV),iV=nV?function(e){return e&&oV(rV,e)}:function(e){return e&&function(){return rV.apply(e,arguments)}},aV=iV({}.toString),lV=iV("".slice),uV=function(e){return lV(aV(e),8,-1)},sV=qz.Object,cV=iV("".split),fV=Kz((function(){return!sV("z").propertyIsEnumerable(0)}))?function(e){return"String"==uV(e)?cV(e,""):sV(e)}:sV,dV=qz.TypeError,pV=function(e){if(null==e)throw dV("Can't call method on "+e);return e},hV=function(e){return fV(pV(e))},gV=function(e){return"function"==typeof e},vV=function(e){return"object"==typeof e?null!==e:gV(e)},mV=function(e){return gV(e)?e:void 0},yV=function(e,t){return arguments.length<2?mV(qz[e]):qz[e]&&qz[e][t]},bV=iV({}.isPrototypeOf),wV=yV("navigator","userAgent")||"",xV=qz.process,CV=qz.Deno,EV=xV&&xV.versions||CV&&CV.version,kV=EV&&EV.v8;kV&&(Hz=(Uz=kV.split("."))[0]>0&&Uz[0]<4?1:+(Uz[0]+Uz[1])),!Hz&&wV&&(!(Uz=wV.match(/Edge\/(\d+)/))||Uz[1]>=74)&&(Uz=wV.match(/Chrome\/(\d+)/))&&(Hz=+Uz[1]);var SV=Hz,DV=!!Object.getOwnPropertySymbols&&!Kz((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&SV&&SV<41})),AV=DV&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,OV=qz.Object,_V=AV?function(e){return"symbol"==typeof e}:function(e){var t=yV("Symbol");return gV(t)&&bV(t.prototype,OV(e))},BV=qz.String,FV=qz.TypeError,jV=function(e){if(gV(e))return e;throw FV(function(e){try{return BV(e)}catch(e){return"Object"}}(e)+" is not a function")},PV=function(e,t){var n=e[t];return null==n?void 0:jV(n)},TV=qz.TypeError,NV=Object.defineProperty,IV=function(e,t){try{NV(qz,e,{value:t,configurable:!0,writable:!0})}catch(g){qz[e]=t}return t},MV=qz["__core-js_shared__"]||IV("__core-js_shared__",{}),LV=$z((function(e){(e.exports=function(e,t){return MV[e]||(MV[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),RV=qz.Object,zV=function(e){return RV(pV(e))},VV=iV({}.hasOwnProperty),$V=Object.hasOwn||function(e,t){return VV(zV(e),t)},UV=0,HV=Math.random(),WV=iV(1..toString),qV=function(e){return"Symbol("+(void 0===e?"":e)+")_"+WV(++UV+HV,36)},KV=LV("wks"),GV=qz.Symbol,YV=GV&&GV.for,ZV=AV?GV:GV&&GV.withoutSetter||qV,JV=function(e){if(!$V(KV,e)||!DV&&"string"!=typeof KV[e]){var t="Symbol."+e;DV&&$V(GV,e)?KV[e]=GV[e]:KV[e]=AV&&YV?YV(t):ZV(t)}return KV[e]},XV=qz.TypeError,QV=JV("toPrimitive"),e$=function(e,t){if(!vV(e)||_V(e))return e;var n,r=PV(e,QV);if(r){if(void 0===t&&(t="default"),n=Zz(r,e,t),!vV(n)||_V(n))return n;throw XV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&gV(n=e.toString)&&!vV(r=Zz(n,e)))return r;if(gV(n=e.valueOf)&&!vV(r=Zz(n,e)))return r;if("string"!==t&&gV(n=e.toString)&&!vV(r=Zz(n,e)))return r;throw TV("Can't convert object to primitive value")}(e,t)},t$=function(e){var t=e$(e,"string");return _V(t)?t:t+""},n$=qz.document,r$=vV(n$)&&vV(n$.createElement),o$=function(e){return r$?n$.createElement(e):{}},i$=!Gz&&!Kz((function(){return 7!=Object.defineProperty(o$("div"),"a",{get:function(){return 7}}).a})),a$=Object.getOwnPropertyDescriptor,l$={f:Gz?a$:function(e,t){if(e=hV(e),t=t$(t),i$)try{return a$(e,t)}catch(e){}if($V(e,t))return eV(!Zz(Qz.f,e,t),e[t])}},u$=qz.String,s$=qz.TypeError,c$=function(e){if(vV(e))return e;throw s$(u$(e)+" is not an object")},f$=qz.TypeError,d$=Object.defineProperty,p$={f:Gz?d$:function(e,t,n){if(c$(e),t=t$(t),c$(n),i$)try{return d$(e,t,n)}catch(e){}if("get"in n||"set"in n)throw f$("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},h$=Gz?function(e,t,n){return p$.f(e,t,eV(1,n))}:function(e,t,n){return e[t]=n,e},g$=iV(Function.toString);gV(MV.inspectSource)||(MV.inspectSource=function(e){return g$(e)});var v$,m$,y$,b$=MV.inspectSource,w$=qz.WeakMap,x$=gV(w$)&&/native code/.test(b$(w$)),C$=LV("keys"),E$=function(e){return C$[e]||(C$[e]=qV(e))},k$={},S$=qz.TypeError,D$=qz.WeakMap;if(x$||MV.state){var A$=MV.state||(MV.state=new D$),O$=iV(A$.get),_$=iV(A$.has),B$=iV(A$.set);v$=function(e,t){if(_$(A$,e))throw new S$("Object already initialized");return t.facade=e,B$(A$,e,t),t},m$=function(e){return O$(A$,e)||{}},y$=function(e){return _$(A$,e)}}else{var F$=E$("state");k$[F$]=!0,v$=function(e,t){if($V(e,F$))throw new S$("Object already initialized");return t.facade=e,h$(e,F$,t),t},m$=function(e){return $V(e,F$)?e[F$]:{}},y$=function(e){return $V(e,F$)}}var j$,P$={set:v$,get:m$,has:y$,enforce:function(e){return y$(e)?m$(e):v$(e,{})},getterFor:function(e){return function(t){var n;if(!vV(t)||(n=m$(t)).type!==e)throw S$("Incompatible receiver, "+e+" required");return n}}},T$=Function.prototype,N$=Gz&&Object.getOwnPropertyDescriptor,I$=$V(T$,"name"),M$={EXISTS:I$,PROPER:I$&&"something"===function(){}.name,CONFIGURABLE:I$&&(!Gz||Gz&&N$(T$,"name").configurable)},L$=$z((function(e){var t=M$.CONFIGURABLE,n=P$.get,r=P$.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;gV(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$V(i,"name")||t&&i.name!==f)&&h$(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==qz?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:h$(e,n,i)):s?e[n]=i:IV(n,i)})(Function.prototype,"toString",(function(){return gV(this)&&n(this).source||b$(this)}))})),R$=Math.ceil,z$=Math.floor,V$=function(e){var t=+e;return t!=t||0===t?0:(t>0?z$:R$)(t)},$$=Math.max,U$=Math.min,H$=Math.min,W$=function(e){return e>0?H$(V$(e),9007199254740991):0},q$=function(e){return W$(e.length)},K$=function(e){return function(t,n,r){var o,i=hV(t),a=q$(i),l=function(e,t){var n=V$(e);return n<0?$$(n+t,0):U$(n,t)}(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},G$={includes:K$(!0),indexOf:K$(!1)},Y$=G$.indexOf,Z$=iV([].push),J$=function(e,t){var n,r=hV(e),o=0,i=[];for(n in r)!$V(k$,n)&&$V(r,n)&&Z$(i,n);for(;t.length>o;)$V(r,n=t[o++])&&(~Y$(i,n)||Z$(i,n));return i},X$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Q$=X$.concat("length","prototype"),eU={f:Object.getOwnPropertyNames||function(e){return J$(e,Q$)}},tU={f:Object.getOwnPropertySymbols},nU=iV([].concat),rU=yV("Reflect","ownKeys")||function(e){var t=eU.f(c$(e)),n=tU.f;return n?nU(t,n(e)):t},oU=function(e,t){for(var n=rU(t),r=p$.f,o=l$.f,i=0;i<n.length;i++){var a=n[i];$V(e,a)||r(e,a,o(t,a))}},iU=/#|\.prototype\./,aU=function(e,t){var n=uU[lU(e)];return n==cU||n!=sU&&(gV(t)?Kz(t):!!t)},lU=aU.normalize=function(e){return String(e).replace(iU,".").toLowerCase()},uU=aU.data={},sU=aU.NATIVE="N",cU=aU.POLYFILL="P",fU=aU,dU=l$.f,pU=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?qz:s?qz[l]||IV(l,{}):(qz[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=dU(n,r))&&a.value:n[r],!fU(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;oU(i,o)}(e.sham||o&&o.sham)&&h$(i,"sham",!0),L$(n,r,i,e)}},hU=Object.keys||function(e){return J$(e,X$)},gU=Gz?Object.defineProperties:function(e,t){c$(e);for(var n,r=hV(t),o=hU(t),i=o.length,a=0;i>a;)p$.f(e,n=o[a++],r[n]);return e},vU=yV("document","documentElement"),mU=E$("IE_PROTO"),yU=function(){},bU=function(e){return"<script>"+e+"<\/script>"},wU=function(e){e.write(bU("")),e.close();var t=e.parentWindow.Object;return e=null,t},xU=function(){try{j$=new ActiveXObject("htmlfile")}catch(e){}var e,t;xU="undefined"!=typeof document?document.domain&&j$?wU(j$):((t=o$("iframe")).style.display="none",vU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(bU("document.F=Object")),e.close(),e.F):wU(j$);for(var n=X$.length;n--;)delete xU.prototype[X$[n]];return xU()};k$[mU]=!0;var CU=Object.create||function(e,t){var n;return null!==e?(yU.prototype=c$(e),n=new yU,yU.prototype=null,n[mU]=e):n=xU(),void 0===t?n:gU(n,t)},EU=JV("unscopables"),kU=Array.prototype;null==kU[EU]&&p$.f(kU,EU,{configurable:!0,value:CU(null)});var SU,DU=G$.includes;function AU(e){if("bulleted-list"===e)return"ul";if("numbered-list"===e)return"ol";if("list-item"===e)return"li";throw new Error("list type '"+e+"' is invalid")}function OU(e){var t=Iw.getNodeType(e);return["bulleted-list","numbered-list"].includes(t)}function _U(e){return function(t,n,r){var o=AU(e);return Wa(o,null,n)}}pU({target:"Array",proto:!0},{includes:function(e){return DU(this,e,arguments.length>1?arguments[1]:void 0)}}),SU="includes",kU[EU][SU]=!0;var BU={type:"bulleted-list",renderElem:_U("bulleted-list")},FU={type:"numbered-list",renderElem:_U("numbered-list")},jU={type:"list-item",renderElem:_U("list-item")};function PU(e){var t=AU(e);return function(e,n){return"<"+t+">"+n+"</"+t+">"}}var TU={type:"bulleted-list",elemToHtml:PU("bulleted-list")},NU={type:"numbered-list",elemToHtml:PU("numbered-list")},IU={type:"list-item",elemToHtml:PU("list-item")},MU=iV(iV.bind),LU=Array.isArray||function(e){return"Array"==uV(e)},RU={};RU[JV("toStringTag")]="z";var zU="[object z]"===String(RU),VU=JV("toStringTag"),$U=qz.Object,UU="Arguments"==uV(function(){return arguments}()),HU=zU?uV:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=$U(e),VU))?n:UU?uV(t):"Object"==(r=uV(t))&&gV(t.callee)?"Arguments":r},WU=function(){},qU=[],KU=yV("Reflect","construct"),GU=/^\s*(?:class|function)\b/,YU=iV(GU.exec),ZU=!GU.exec(WU),JU=function(e){if(!gV(e))return!1;try{return KU(WU,qU,e),!0}catch(e){return!1}},XU=!KU||Kz((function(){var e;return JU(JU.call)||!JU(Object)||!JU((function(){e=!0}))||e}))?function(e){if(!gV(e))return!1;switch(HU(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ZU||!!YU(GU,b$(e))}:JU,QU=JV("species"),eH=qz.Array,tH=function(e,t){return new(function(e){var t;return LU(e)&&(t=e.constructor,(XU(t)&&(t===eH||LU(t.prototype))||vV(t)&&null===(t=t[QU]))&&(t=void 0)),void 0===t?eH:t}(e))(0===t?0:t)},nH=iV([].push),rH=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=zV(u),g=fV(h),v=function(e,t){return jV(e),void 0===t?e:MU?MU(e,t):function(){return e.apply(t,arguments)}}(s,c),m=q$(g),y=0,b=f||tH,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:nH(w,d)}else switch(e){case 4:return!1;case 7:nH(w,d)}return i?-1:r||o?o:w}},oH={forEach:rH(0),map:rH(1),filter:rH(2),some:rH(3),every:rH(4),find:rH(5),findIndex:rH(6),filterReject:rH(7)},iH=JV("species"),aH=function(e){return SV>=51||!Kz((function(){var t=[];return(t.constructor={})[iH]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},lH=oH.filter;pU({target:"Array",proto:!0,forced:!aH("filter")},{filter:function(e){return lH(this,e,arguments.length>1?arguments[1]:void 0)}});var uH=zU?{}.toString:function(){return"[object "+HU(this)+"]"};zU||L$(Object.prototype,"toString",uH,{unsafe:!0});var sH,cH,fH=qz.String,dH=function(e){if("Symbol"===HU(e))throw TypeError("Cannot convert a Symbol value to a string");return fH(e)},pH=function(){var e=c$(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},hH=qz.RegExp,gH=Kz((function(){var e=hH("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),vH=gH||Kz((function(){return!hH("a","y").sticky})),mH={BROKEN_CARET:gH||Kz((function(){var e=hH("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:vH,UNSUPPORTED_Y:gH},yH=qz.RegExp,bH=Kz((function(){var e=yH(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),wH=qz.RegExp,xH=Kz((function(){var e=wH("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),CH=P$.get,EH=LV("native-string-replace",String.prototype.replace),kH=RegExp.prototype.exec,SH=kH,DH=iV("".charAt),AH=iV("".indexOf),OH=iV("".replace),_H=iV("".slice),BH=(cH=/b*/g,Zz(kH,sH=/a/,"a"),Zz(kH,cH,"a"),0!==sH.lastIndex||0!==cH.lastIndex),FH=mH.BROKEN_CARET,jH=void 0!==/()??/.exec("")[1];(BH||jH||FH||bH||xH)&&(SH=function(e){var t,n,r,o,i,a,l,u=this,s=CH(u),c=dH(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=Zz(SH,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=FH&&u.sticky,h=Zz(pH,u),g=u.source,v=0,m=c;if(p&&(h=OH(h,"y",""),-1===AH(h,"g")&&(h+="g"),m=_H(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==DH(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),jH&&(n=new RegExp("^"+g+"$(?!\\s)",h)),BH&&(r=u.lastIndex),o=Zz(kH,p?n:u,m),p?o?(o.input=_H(o.input,v),o[0]=_H(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:BH&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),jH&&o&&o.length>1&&Zz(EH,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=CU(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var PH=SH;pU({target:"RegExp",proto:!0,forced:/./.exec!==PH},{exec:PH});var TH=Function.prototype,NH=TH.apply,IH=TH.bind,MH=TH.call,LH="object"==typeof Reflect&&Reflect.apply||(IH?MH.bind(NH):function(){return MH.apply(NH,arguments)}),RH=JV("species"),zH=RegExp.prototype,VH=iV("".charAt),$H=iV("".charCodeAt),UH=iV("".slice),HH=function(e){return function(t,n){var r,o,i=dH(pV(t)),a=V$(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=$H(i,a))<55296||r>56319||a+1===l||(o=$H(i,a+1))<56320||o>57343?e?VH(i,a):r:e?UH(i,a,a+2):o-56320+(r-55296<<10)+65536}},WH={codeAt:HH(!1),charAt:HH(!0)}.charAt,qH=function(e,t,n){return t+(n?WH(e,t).length:1)},KH=Math.floor,GH=iV("".charAt),YH=iV("".replace),ZH=iV("".slice),JH=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,XH=/\$([$&'`]|\d{1,2})/g,QH=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,u=XH;return void 0!==o&&(o=zV(o),u=JH),YH(i,u,(function(i,u){var s;switch(GH(u,0)){case"$":return"$";case"&":return e;case"`":return ZH(t,0,n);case"'":return ZH(t,a);case"<":s=o[ZH(u,1,-1)];break;default:var c=+u;if(0===c)return i;if(c>l){var f=KH(c/10);return 0===f?i:f<=l?void 0===r[f-1]?GH(u,1):r[f-1]+GH(u,1):i}s=r[c-1]}return void 0===s?"":s}))},eW=qz.TypeError,tW=function(e,t){var n=e.exec;if(gV(n)){var r=Zz(n,e,t);return null!==r&&c$(r),r}if("RegExp"===uV(e))return Zz(PH,e,t);throw eW("RegExp#exec called on incompatible receiver")},nW=JV("replace"),rW=Math.max,oW=Math.min,iW=iV([].concat),aW=iV([].push),lW=iV("".indexOf),uW=iV("".slice),sW="$0"==="a".replace(/./,"$0"),cW=!!/./[nW]&&""===/./[nW]("a","$0");!function(e,t,n,r){var o=JV(e),i=!Kz((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Kz((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[RH]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=iV(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=iV(e),u=t.exec;return u===PH||u===zH.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));L$(String.prototype,e,u[0]),L$(zH,o,u[1])}r&&h$(zH[o],"sham",!0)}("replace",(function(e,t,n){var r=cW?"$":"$0";return[function(e,n){var r=pV(this),o=null==e?void 0:PV(e,nW);return o?Zz(o,e,r,n):Zz(t,dH(r),e,n)},function(e,o){var i=c$(this),a=dH(e);if("string"==typeof o&&-1===lW(o,r)&&-1===lW(o,"$<")){var l=n(t,i,a,o);if(l.done)return l.value}var u=gV(o);u||(o=dH(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=tW(i,a);if(null===d)break;if(aW(f,d),!s)break;""===dH(d[0])&&(i.lastIndex=qH(a,W$(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var m=dH((d=f[v])[0]),y=rW(oW(V$(d.index),a.length),0),b=[],w=1;w<d.length;w++)aW(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(u){var C=iW([m],b,y,a);void 0!==x&&aW(C,x);var E=dH(LH(o,void 0,C))}else E=QH(m,a,y,b,x,o);y>=g&&(h+=uW(a,g,y)+E,g=y+m.length)}return h+uW(a,g)}]}),!!Kz((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!sW||cW),pU({global:!0},{globalThis:qz});var fW={selector:"li",parseElemHtml:function(e,t,n){var r=co(e);return 0===(t=t.filter((function(e){return!!Pt.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"list-item",children:t}}},dW={selector:"ul",parseElemHtml:function(e,t,n){return{type:"bulleted-list",children:t.filter((function(e){return"list-item"===Iw.getNodeType(e)}))}}},pW={selector:"ol",parseElemHtml:function(e,t,n){return{type:"numbered-list",children:t.filter((function(e){return"list-item"===Iw.getNodeType(e)}))}}},hW=function(e,t){return hW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},hW(e,t)
|
|
62
|
+
/*! *****************************************************************************
|
|
63
|
+
Copyright (c) Microsoft Corporation.
|
|
64
|
+
|
|
65
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
66
|
+
purpose with or without fee is hereby granted.
|
|
67
|
+
|
|
68
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
69
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
70
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
71
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
72
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
73
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
74
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
75
|
+
***************************************************************************** */};function gW(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}hW(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function vW(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var mW,yW=function(){function e(){this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return Iw.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!this.getListNode(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!Iw.getSelectedElems(e).some((function(t){if(ut.isVoid(e,t)&&ut.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.getMatchListType=function(e){var t=vW(ut.nodes(e,{match:function(e){return OU(e)},universal:!0}),1),n=t[0];if(null==n)return"";var r=vW(n,1)[0];return Iw.getNodeType(r)},e.prototype.exec=function(e,t){var n=this.type,r=this.isActive(e);Xt.unwrapNodes(e,{match:function(e){return OU(e)},split:!0}),Xt.setNodes(e,{type:r?"paragraph":"list-item"});var o={type:n,children:[]};r||Xt.wrapNodes(e,o);var i=this.getMatchListType(e);""!=i&&i!==n&&Xt.wrapNodes(e,o)},e}(),bW='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',wW='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',xW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bulleted-list",t.title=ID("listModule.unOrderedList"),t.iconSvg=bW,t}return gW(t,e),t}(yW),CW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="numbered-list",t.title=ID("listModule.orderedList"),t.iconSvg=wW,t}return gW(t,e),t}(yW),EW={key:"bulletedList",factory:function(){return new xW}},kW={key:"numberedList",factory:function(){return new CW}},SW=/"/g,DW=iV("".replace);pU({target:"String",proto:!0,forced:(mW="anchor",Kz((function(){var e=""[mW]('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return t="a",n="name",r=e,o=dH(pV(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+DW(dH(r),SW,""")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var AW=function(e,t,n){var r=t$(t);r in e?p$.f(e,r,eV(0,n)):e[r]=n},OW=JV("isConcatSpreadable"),_W=qz.TypeError,BW=SV>=51||!Kz((function(){var e=[];return e[OW]=!1,e.concat()[0]!==e})),FW=aH("concat"),jW=function(e){if(!vV(e))return!1;var t=e[OW];return void 0!==t?!!t:LU(e)};pU({target:"Array",proto:!0,forced:!BW||!FW},{concat:function(e){var t,n,r,o,i,a=zV(this),l=tH(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(jW(i=-1===t?a:arguments[t])){if(u+(o=q$(i))>9007199254740991)throw _W("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&AW(l,u,i[n])}else{if(u>=9007199254740991)throw _W("Maximum allowed index exceeded");AW(l,u++,i)}return l.length=u,l}});var PW={renderElems:[BU,FU,jU],elemsToHtml:[TU,NU,IU],parseElemsHtml:[fW,pW,dW],menus:[EW,kW],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward;e.insertNode;var r=e;return r.insertBreak=function(){var e=r.selection;if(null!=e){var n=Iw.getSelectedNodeByType(r,"list-item");if(null!=n){var o=Iw.getParentNode(r,n),i=(null==o?void 0:o.children)||[];if(n===i[i.length-1]&&""===pt.string(n)){Xt.removeNodes(r,{match:function(e){return Iw.checkNodeType(e,"list-item")}});var a=[e.anchor.path[0]+1];return Xt.insertNodes(r,Iw.genEmptyParagraph(),{at:a}),void r.select({path:a.concat(0),offset:0})}t()}else t()}else t()},r.deleteBackward=function(e){var t=function(e){var t=vW(ut.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1),n=t[0];if(null==n)return!1;var r=n[0];return!(!nt.isElement(r)||pt.string(r)||!OU(r)||(Xt.unwrapNodes(e,{match:function(e){return OU(e)},split:!0}),Xt.setNodes(e,{type:"paragraph"}),0))}(r);t||n(e)},r}},TW=en((function(e,t){var n=200,r="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,l="[object Arguments]",u="[object Array]",s="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",g="[object Map]",v="[object Number]",m="[object Null]",y="[object Object]",b="[object Promise]",w="[object Proxy]",x="[object RegExp]",C="[object Set]",E="[object String]",k="[object Symbol]",S="[object Undefined]",D="[object WeakMap]",A="[object ArrayBuffer]",O="[object DataView]",_="[object Float32Array]",B="[object Float64Array]",F="[object Int8Array]",j="[object Int16Array]",P="[object Int32Array]",T="[object Uint8Array]",N="[object Uint8ClampedArray]",I="[object Uint16Array]",M="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,V={};V[_]=V[B]=V[F]=V[j]=V[P]=V[T]=V[N]=V[I]=V[M]=!0,V[l]=V[u]=V[A]=V[c]=V[O]=V[f]=V[d]=V[p]=V[g]=V[v]=V[y]=V[x]=V[C]=V[E]=V[D]=!1;var $="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,U="object"==typeof self&&self&&self.Object===Object&&self,H=$||U||Function("return this")(),W=t&&!t.nodeType&&t,q=W&&e&&!e.nodeType&&e,K=q&&q.exports===W,G=K&&$.process,Y=function(){try{return G&&G.binding&&G.binding("util")}catch(Sse){}}(),Z=Y&&Y.isTypedArray;function J(e,t){var n=-1,r=null==e?0:e.length,o=0,i=[];while(++n<r){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function X(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}function Q(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}function ee(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function te(e){return function(t){return e(t)}}function ne(e,t){return e.has(t)}function re(e,t){return null==e?void 0:e[t]}function oe(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ie(e,t){return function(n){return e(t(n))}}function ae(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var le=Array.prototype,ue=Function.prototype,se=Object.prototype,ce=H["__core-js_shared__"],fe=ue.toString,de=se.hasOwnProperty,pe=function(){var e=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),he=se.toString,ge=RegExp("^"+fe.call(de).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=K?H.Buffer:void 0,me=H.Symbol,ye=H.Uint8Array,be=se.propertyIsEnumerable,we=le.splice,xe=me?me.toStringTag:void 0,Ce=Object.getOwnPropertySymbols,Ee=ve?ve.isBuffer:void 0,ke=ie(Object.keys,Object),Se=Dt(H,"DataView"),De=Dt(H,"Map"),Ae=Dt(H,"Promise"),Oe=Dt(H,"Set"),_e=Dt(H,"WeakMap"),Be=Dt(Object,"create"),Fe=Nt(Se),je=Nt(De),Pe=Nt(Ae),Te=Nt(Oe),Ne=Nt(_e),Ie=me?me.prototype:void 0,Me=Ie?Ie.valueOf:void 0;function Le(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Re(){this.__data__=Be?Be(null):{},this.size=0}function ze(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Ve(e){var t=this.__data__;if(Be){var n=t[e];return n===r?void 0:n}return de.call(t,e)?t[e]:void 0}function $e(e){var t=this.__data__;return Be?void 0!==t[e]:de.call(t,e)}function Ue(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Be&&void 0===t?r:t,this}function He(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function We(){this.__data__=[],this.size=0}function qe(e){var t=this.__data__,n=dt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():we.call(t,n,1),--this.size,!0}function Ke(e){var t=this.__data__,n=dt(t,e);return n<0?void 0:t[n][1]}function Ge(e){return dt(this.__data__,e)>-1}function Ye(e,t){var n=this.__data__,r=dt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ze(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Je(){this.size=0,this.__data__={hash:new Le,map:new(De||He),string:new Le}}function Xe(e){var t=St(this,e)["delete"](e);return this.size-=t?1:0,t}function Qe(e){return St(this,e).get(e)}function et(e){return St(this,e).has(e)}function tt(e,t){var n=St(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function nt(e){var t=-1,n=null==e?0:e.length;this.__data__=new Ze;while(++t<n)this.add(e[t])}function rt(e){return this.__data__.set(e,r),this}function ot(e){return this.__data__.has(e)}function it(e){var t=this.__data__=new He(e);this.size=t.size}function at(){this.__data__=new He,this.size=0}function lt(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ut(e){return this.__data__.get(e)}function st(e){return this.__data__.has(e)}function ct(e,t){var r=this.__data__;if(r instanceof He){var o=r.__data__;if(!De||o.length<n-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ze(o)}return r.set(e,t),this.size=r.size,this}function ft(e,t){var n=Lt(e),r=!n&&Mt(e),o=!n&&!r&&zt(e),i=!n&&!r&&!o&&qt(e),a=n||r||o||i,l=a?ee(e.length,String):[],u=l.length;for(var s in e)!t&&!de.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Bt(s,u))||l.push(s);return l}function dt(e,t){var n=e.length;while(n--)if(It(e[n][0],t))return n;return-1}function pt(e,t,n){var r=t(e);return Lt(e)?r:X(r,n(e))}function ht(e){return null==e?void 0===e?S:m:xe&&xe in Object(e)?At(e):Tt(e)}function gt(e){return Wt(e)&&ht(e)==l}function vt(e,t,n,r,o){return e===t||(null==e||null==t||!Wt(e)&&!Wt(t)?e!==e&&t!==t:mt(e,t,n,r,vt,o))}function mt(e,t,n,r,i,a){var s=Lt(e),c=Lt(t),f=s?u:_t(e),d=c?u:_t(t);f=f==l?y:f,d=d==l?y:d;var p=f==y,h=d==y,g=f==d;if(g&&zt(e)){if(!zt(t))return!1;s=!0,p=!1}if(g&&!p)return a||(a=new it),s||qt(e)?xt(e,t,n,r,i,a):Ct(e,t,f,n,r,i,a);if(!(n&o)){var v=p&&de.call(e,"__wrapped__"),m=h&&de.call(t,"__wrapped__");if(v||m){var b=v?e.value():e,w=m?t.value():t;return a||(a=new it),i(b,w,n,r,a)}}return!!g&&(a||(a=new it),Et(e,t,n,r,i,a))}function yt(e){if(!Ht(e)||jt(e))return!1;var t=$t(e)?ge:R;return t.test(Nt(e))}function bt(e){return Wt(e)&&Ut(e.length)&&!!V[ht(e)]}function wt(e){if(!Pt(e))return ke(e);var t=[];for(var n in Object(e))de.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xt(e,t,n,r,a,l){var u=n&o,s=e.length,c=t.length;if(s!=c&&!(u&&c>s))return!1;var f=l.get(e);if(f&&l.get(t))return f==t;var d=-1,p=!0,h=n&i?new nt:void 0;l.set(e,t),l.set(t,e);while(++d<s){var g=e[d],v=t[d];if(r)var m=u?r(v,g,d,t,e,l):r(g,v,d,e,t,l);if(void 0!==m){if(m)continue;p=!1;break}if(h){if(!Q(t,(function(e,t){if(!ne(h,t)&&(g===e||a(g,e,n,r,l)))return h.push(t)}))){p=!1;break}}else if(g!==v&&!a(g,v,n,r,l)){p=!1;break}}return l["delete"](e),l["delete"](t),p}function Ct(e,t,n,r,a,l,u){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!l(new ye(e),new ye(t)));case c:case f:case v:return It(+e,+t);case d:return e.name==t.name&&e.message==t.message;case x:case E:return e==t+"";case g:var s=oe;case C:var p=r&o;if(s||(s=ae),e.size!=t.size&&!p)return!1;var h=u.get(e);if(h)return h==t;r|=i,u.set(e,t);var m=xt(s(e),s(t),r,a,l,u);return u["delete"](e),m;case k:if(Me)return Me.call(e)==Me.call(t)}return!1}function Et(e,t,n,r,i,a){var l=n&o,u=kt(e),s=u.length,c=kt(t),f=c.length;if(s!=f&&!l)return!1;var d=s;while(d--){var p=u[d];if(!(l?p in t:de.call(t,p)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var g=!0;a.set(e,t),a.set(t,e);var v=l;while(++d<s){p=u[d];var m=e[p],y=t[p];if(r)var b=l?r(y,m,p,t,e,a):r(m,y,p,e,t,a);if(!(void 0===b?m===y||i(m,y,n,r,a):b)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(g=!1)}return a["delete"](e),a["delete"](t),g}function kt(e){return pt(e,Kt,Ot)}function St(e,t){var n=e.__data__;return Ft(t)?n["string"==typeof t?"string":"hash"]:n.map}function Dt(e,t){var n=re(e,t);return yt(n)?n:void 0}function At(e){var t=de.call(e,xe),n=e[xe];try{e[xe]=void 0;var r=!0}catch(Sse){}var o=he.call(e);return r&&(t?e[xe]=n:delete e[xe]),o}Le.prototype.clear=Re,Le.prototype["delete"]=ze,Le.prototype.get=Ve,Le.prototype.has=$e,Le.prototype.set=Ue,He.prototype.clear=We,He.prototype["delete"]=qe,He.prototype.get=Ke,He.prototype.has=Ge,He.prototype.set=Ye,Ze.prototype.clear=Je,Ze.prototype["delete"]=Xe,Ze.prototype.get=Qe,Ze.prototype.has=et,Ze.prototype.set=tt,nt.prototype.add=nt.prototype.push=rt,nt.prototype.has=ot,it.prototype.clear=at,it.prototype["delete"]=lt,it.prototype.get=ut,it.prototype.has=st,it.prototype.set=ct;var Ot=Ce?function(e){return null==e?[]:(e=Object(e),J(Ce(e),(function(t){return be.call(e,t)})))}:Gt,_t=ht;function Bt(e,t){return t=null==t?a:t,!!t&&("number"==typeof e||z.test(e))&&e>-1&&e%1==0&&e<t}function Ft(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function jt(e){return!!pe&&pe in e}function Pt(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||se;return e===n}function Tt(e){return he.call(e)}function Nt(e){if(null!=e){try{return fe.call(e)}catch(Sse){}try{return e+""}catch(Sse){}}return""}function It(e,t){return e===t||e!==e&&t!==t}(Se&&_t(new Se(new ArrayBuffer(1)))!=O||De&&_t(new De)!=g||Ae&&_t(Ae.resolve())!=b||Oe&&_t(new Oe)!=C||_e&&_t(new _e)!=D)&&(_t=function(e){var t=ht(e),n=t==y?e.constructor:void 0,r=n?Nt(n):"";if(r)switch(r){case Fe:return O;case je:return g;case Pe:return b;case Te:return C;case Ne:return D}return t});var Mt=gt(function(){return arguments}())?gt:function(e){return Wt(e)&&de.call(e,"callee")&&!be.call(e,"callee")},Lt=Array.isArray;function Rt(e){return null!=e&&Ut(e.length)&&!$t(e)}var zt=Ee||Yt;function Vt(e,t){return vt(e,t)}function $t(e){if(!Ht(e))return!1;var t=ht(e);return t==p||t==h||t==s||t==w}function Ut(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ht(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Wt(e){return null!=e&&"object"==typeof e}var qt=Z?te(Z):bt;function Kt(e){return Rt(e)?ft(e):wt(e)}function Gt(){return[]}function Yt(){return!1}e.exports=Vt}));ND("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),ND("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var NW="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function IW(e){var t={exports:{}};return e(t,t.exports),t.exports}var MW,LW,RW=function(e){return e&&e.Math==Math&&e},zW=RW("object"==typeof globalThis&&globalThis)||RW("object"==typeof window&&window)||RW("object"==typeof self&&self)||RW("object"==typeof NW&&NW)||function(){return this}()||Function("return this")(),VW=function(e){try{return!!e()}catch(e){return!0}},$W=!VW((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),UW=Function.prototype.call,HW=UW.bind?UW.bind(UW):function(){return UW.apply(UW,arguments)},WW={}.propertyIsEnumerable,qW=Object.getOwnPropertyDescriptor,KW={f:qW&&!WW.call({1:2},1)?function(e){var t=qW(this,e);return!!t&&t.enumerable}:WW},GW=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},YW=Function.prototype,ZW=YW.bind,JW=YW.call,XW=ZW&&ZW.bind(JW),QW=ZW?function(e){return e&&XW(JW,e)}:function(e){return e&&function(){return JW.apply(e,arguments)}},eq=QW({}.toString),tq=QW("".slice),nq=function(e){return tq(eq(e),8,-1)},rq=zW.Object,oq=QW("".split),iq=VW((function(){return!rq("z").propertyIsEnumerable(0)}))?function(e){return"String"==nq(e)?oq(e,""):rq(e)}:rq,aq=zW.TypeError,lq=function(e){if(null==e)throw aq("Can't call method on "+e);return e},uq=function(e){return iq(lq(e))},sq=function(e){return"function"==typeof e},cq=function(e){return"object"==typeof e?null!==e:sq(e)},fq=function(e){return sq(e)?e:void 0},dq=function(e,t){return arguments.length<2?fq(zW[e]):zW[e]&&zW[e][t]},pq=QW({}.isPrototypeOf),hq=dq("navigator","userAgent")||"",gq=zW.process,vq=zW.Deno,mq=gq&&gq.versions||vq&&vq.version,yq=mq&&mq.v8;yq&&(LW=(MW=yq.split("."))[0]>0&&MW[0]<4?1:+(MW[0]+MW[1])),!LW&&hq&&(!(MW=hq.match(/Edge\/(\d+)/))||MW[1]>=74)&&(MW=hq.match(/Chrome\/(\d+)/))&&(LW=+MW[1]);var bq=LW,wq=!!Object.getOwnPropertySymbols&&!VW((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bq&&bq<41})),xq=wq&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Cq=zW.Object,Eq=xq?function(e){return"symbol"==typeof e}:function(e){var t=dq("Symbol");return sq(t)&&pq(t.prototype,Cq(e))},kq=zW.String,Sq=function(e){try{return kq(e)}catch(e){return"Object"}},Dq=zW.TypeError,Aq=function(e){if(sq(e))return e;throw Dq(Sq(e)+" is not a function")},Oq=function(e,t){var n=e[t];return null==n?void 0:Aq(n)},_q=zW.TypeError,Bq=Object.defineProperty,Fq=function(e,t){try{Bq(zW,e,{value:t,configurable:!0,writable:!0})}catch(p){zW[e]=t}return t},jq=zW["__core-js_shared__"]||Fq("__core-js_shared__",{}),Pq=IW((function(e){(e.exports=function(e,t){return jq[e]||(jq[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Tq=zW.Object,Nq=function(e){return Tq(lq(e))},Iq=QW({}.hasOwnProperty),Mq=Object.hasOwn||function(e,t){return Iq(Nq(e),t)},Lq=0,Rq=Math.random(),zq=QW(1..toString),Vq=function(e){return"Symbol("+(void 0===e?"":e)+")_"+zq(++Lq+Rq,36)},$q=Pq("wks"),Uq=zW.Symbol,Hq=Uq&&Uq.for,Wq=xq?Uq:Uq&&Uq.withoutSetter||Vq,qq=function(e){if(!Mq($q,e)||!wq&&"string"!=typeof $q[e]){var t="Symbol."+e;wq&&Mq(Uq,e)?$q[e]=Uq[e]:$q[e]=xq&&Hq?Hq(t):Wq(t)}return $q[e]},Kq=zW.TypeError,Gq=qq("toPrimitive"),Yq=function(e,t){if(!cq(e)||Eq(e))return e;var n,r=Oq(e,Gq);if(r){if(void 0===t&&(t="default"),n=HW(r,e,t),!cq(n)||Eq(n))return n;throw Kq("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&sq(n=e.toString)&&!cq(r=HW(n,e)))return r;if(sq(n=e.valueOf)&&!cq(r=HW(n,e)))return r;if("string"!==t&&sq(n=e.toString)&&!cq(r=HW(n,e)))return r;throw _q("Can't convert object to primitive value")}(e,t)},Zq=function(e){var t=Yq(e,"string");return Eq(t)?t:t+""},Jq=zW.document,Xq=cq(Jq)&&cq(Jq.createElement),Qq=function(e){return Xq?Jq.createElement(e):{}},eK=!$W&&!VW((function(){return 7!=Object.defineProperty(Qq("div"),"a",{get:function(){return 7}}).a})),tK=Object.getOwnPropertyDescriptor,nK={f:$W?tK:function(e,t){if(e=uq(e),t=Zq(t),eK)try{return tK(e,t)}catch(e){}if(Mq(e,t))return GW(!HW(KW.f,e,t),e[t])}},rK=zW.String,oK=zW.TypeError,iK=function(e){if(cq(e))return e;throw oK(rK(e)+" is not an object")},aK=zW.TypeError,lK=Object.defineProperty,uK={f:$W?lK:function(e,t,n){if(iK(e),t=Zq(t),iK(n),eK)try{return lK(e,t,n)}catch(e){}if("get"in n||"set"in n)throw aK("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},sK=$W?function(e,t,n){return uK.f(e,t,GW(1,n))}:function(e,t,n){return e[t]=n,e},cK=QW(Function.toString);sq(jq.inspectSource)||(jq.inspectSource=function(e){return cK(e)});var fK,dK,pK,hK=jq.inspectSource,gK=zW.WeakMap,vK=sq(gK)&&/native code/.test(hK(gK)),mK=Pq("keys"),yK=function(e){return mK[e]||(mK[e]=Vq(e))},bK={},wK=zW.TypeError,xK=zW.WeakMap;if(vK||jq.state){var CK=jq.state||(jq.state=new xK),EK=QW(CK.get),kK=QW(CK.has),SK=QW(CK.set);fK=function(e,t){if(kK(CK,e))throw new wK("Object already initialized");return t.facade=e,SK(CK,e,t),t},dK=function(e){return EK(CK,e)||{}},pK=function(e){return kK(CK,e)}}else{var DK=yK("state");bK[DK]=!0,fK=function(e,t){if(Mq(e,DK))throw new wK("Object already initialized");return t.facade=e,sK(e,DK,t),t},dK=function(e){return Mq(e,DK)?e[DK]:{}},pK=function(e){return Mq(e,DK)}}var AK={set:fK,get:dK,has:pK,enforce:function(e){return pK(e)?dK(e):fK(e,{})},getterFor:function(e){return function(t){var n;if(!cq(t)||(n=dK(t)).type!==e)throw wK("Incompatible receiver, "+e+" required");return n}}},OK=Function.prototype,_K=$W&&Object.getOwnPropertyDescriptor,BK=Mq(OK,"name"),FK={EXISTS:BK,PROPER:BK&&"something"===function(){}.name,CONFIGURABLE:BK&&(!$W||$W&&_K(OK,"name").configurable)},jK=IW((function(e){var t=FK.CONFIGURABLE,n=AK.get,r=AK.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;sq(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Mq(i,"name")||t&&i.name!==f)&&sK(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==zW?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:sK(e,n,i)):s?e[n]=i:Fq(n,i)})(Function.prototype,"toString",(function(){return sq(this)&&n(this).source||hK(this)}))})),PK=Math.ceil,TK=Math.floor,NK=function(e){var t=+e;return t!=t||0===t?0:(t>0?TK:PK)(t)},IK=Math.max,MK=Math.min,LK=function(e,t){var n=NK(e);return n<0?IK(n+t,0):MK(n,t)},RK=Math.min,zK=function(e){return e>0?RK(NK(e),9007199254740991):0},VK=function(e){return zK(e.length)},$K=function(e){return function(t,n,r){var o,i=uq(t),a=VK(i),l=LK(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},UK={includes:$K(!0),indexOf:$K(!1)}.indexOf,HK=QW([].push),WK=function(e,t){var n,r=uq(e),o=0,i=[];for(n in r)!Mq(bK,n)&&Mq(r,n)&&HK(i,n);for(;t.length>o;)Mq(r,n=t[o++])&&(~UK(i,n)||HK(i,n));return i},qK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],KK=qK.concat("length","prototype"),GK={f:Object.getOwnPropertyNames||function(e){return WK(e,KK)}},YK={f:Object.getOwnPropertySymbols},ZK=QW([].concat),JK=dq("Reflect","ownKeys")||function(e){var t=GK.f(iK(e)),n=YK.f;return n?ZK(t,n(e)):t},XK=function(e,t){for(var n=JK(t),r=uK.f,o=nK.f,i=0;i<n.length;i++){var a=n[i];Mq(e,a)||r(e,a,o(t,a))}},QK=/#|\.prototype\./,eG=function(e,t){var n=nG[tG(e)];return n==oG||n!=rG&&(sq(t)?VW(t):!!t)},tG=eG.normalize=function(e){return String(e).replace(QK,".").toLowerCase()},nG=eG.data={},rG=eG.NATIVE="N",oG=eG.POLYFILL="P",iG=eG,aG=nK.f,lG=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?zW:s?zW[l]||Fq(l,{}):(zW[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=aG(n,r))&&a.value:n[r],!iG(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;XK(i,o)}(e.sham||o&&o.sham)&&sK(i,"sham",!0),jK(n,r,i,e)}},uG={};uG[qq("toStringTag")]="z";var sG,cG="[object z]"===String(uG),fG=qq("toStringTag"),dG=zW.Object,pG="Arguments"==nq(function(){return arguments}()),hG=cG?nq:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=dG(e),fG))?n:pG?nq(t):"Object"==(r=nq(t))&&sq(t.callee)?"Arguments":r},gG=zW.String,vG=function(e){if("Symbol"===hG(e))throw TypeError("Cannot convert a Symbol value to a string");return gG(e)},mG=/"/g,yG=QW("".replace);lG({target:"String",proto:!0,forced:(sG="anchor",VW((function(){var e=""[sG]('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return t="a",n="name",r=e,o=vG(lq(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+yG(vG(r),mG,""")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var bG,wG=function(){var e=iK(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},xG=zW.RegExp,CG=VW((function(){var e=xG("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),EG=CG||VW((function(){return!xG("a","y").sticky})),kG={BROKEN_CARET:CG||VW((function(){var e=xG("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:EG,UNSUPPORTED_Y:CG},SG=Object.keys||function(e){return WK(e,qK)},DG=$W?Object.defineProperties:function(e,t){iK(e);for(var n,r=uq(t),o=SG(t),i=o.length,a=0;i>a;)uK.f(e,n=o[a++],r[n]);return e},AG=dq("document","documentElement"),OG=yK("IE_PROTO"),_G=function(){},BG=function(e){return"<script>"+e+"<\/script>"},FG=function(e){e.write(BG("")),e.close();var t=e.parentWindow.Object;return e=null,t},jG=function(){try{bG=new ActiveXObject("htmlfile")}catch(e){}var e,t;jG="undefined"!=typeof document?document.domain&&bG?FG(bG):((t=Qq("iframe")).style.display="none",AG.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(BG("document.F=Object")),e.close(),e.F):FG(bG);for(var n=qK.length;n--;)delete jG.prototype[qK[n]];return jG()};bK[OG]=!0;var PG,TG,NG=Object.create||function(e,t){var n;return null!==e?(_G.prototype=iK(e),n=new _G,_G.prototype=null,n[OG]=e):n=jG(),void 0===t?n:DG(n,t)},IG=zW.RegExp,MG=VW((function(){var e=IG(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),LG=zW.RegExp,RG=VW((function(){var e=LG("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),zG=AK.get,VG=Pq("native-string-replace",String.prototype.replace),$G=RegExp.prototype.exec,UG=$G,HG=QW("".charAt),WG=QW("".indexOf),qG=QW("".replace),KG=QW("".slice),GG=(TG=/b*/g,HW($G,PG=/a/,"a"),HW($G,TG,"a"),0!==PG.lastIndex||0!==TG.lastIndex),YG=kG.BROKEN_CARET,ZG=void 0!==/()??/.exec("")[1];(GG||ZG||YG||MG||RG)&&(UG=function(e){var t,n,r,o,i,a,l,u=this,s=zG(u),c=vG(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=HW(UG,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=YG&&u.sticky,h=HW(wG,u),g=u.source,v=0,m=c;if(p&&(h=qG(h,"y",""),-1===WG(h,"g")&&(h+="g"),m=KG(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==HG(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),ZG&&(n=new RegExp("^"+g+"$(?!\\s)",h)),GG&&(r=u.lastIndex),o=HW($G,p?n:u,m),p?o?(o.input=KG(o.input,v),o[0]=KG(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:GG&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),ZG&&o&&o.length>1&&HW(VG,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=NG(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var JG=UG;lG({target:"RegExp",proto:!0,forced:/./.exec!==JG},{exec:JG});var XG=Array.isArray||function(e){return"Array"==nq(e)},QG=function(){},eY=[],tY=dq("Reflect","construct"),nY=/^\s*(?:class|function)\b/,rY=QW(nY.exec),oY=!nY.exec(QG),iY=function(e){if(!sq(e))return!1;try{return tY(QG,eY,e),!0}catch(e){return!1}},aY=!tY||VW((function(){var e;return iY(iY.call)||!iY(Object)||!iY((function(){e=!0}))||e}))?function(e){if(!sq(e))return!1;switch(hG(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return oY||!!rY(nY,hK(e))}:iY,lY=function(e,t,n){var r=Zq(t);r in e?uK.f(e,r,GW(0,n)):e[r]=n},uY=qq("species"),sY=function(e){return bq>=51||!VW((function(){var t=[];return(t.constructor={})[uY]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},cY=QW([].slice),fY=sY("slice"),dY=qq("species"),pY=zW.Array,hY=Math.max;function gY(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function vY(e){var t=e.selection;if(null==t)return!1;var n=gY(ut.nodes(e,{match:function(e){return Iw.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=gY(n,2)[1],o=ut.start(e,r);if(xt.equals(t.anchor,o))return!0}return!1}function mY(e,t){var n,r,o=ut.nodes(e,{at:t,match:function(e){return"table"===Iw.getNodeType(e)}}),i=!1;try{for(var a=
|
|
76
|
+
/*! *****************************************************************************
|
|
77
|
+
Copyright (c) Microsoft Corporation.
|
|
78
|
+
|
|
79
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
80
|
+
purpose with or without fee is hereby granted.
|
|
81
|
+
|
|
82
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
83
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
84
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
85
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
86
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
87
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
88
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
89
|
+
***************************************************************************** */
|
|
90
|
+
function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),l=a.next();!l.done;l=a.next())l.value,i=!0}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}lG({target:"Array",proto:!0,forced:!fY},{slice:function(e,t){var n,r,o,i=uq(this),a=VK(i),l=LK(e,a),u=LK(void 0===t?a:t,a);if(XG(i)&&(n=i.constructor,(aY(n)&&(n===pY||XG(n.prototype))||cq(n)&&null===(n=n[dY]))&&(n=void 0),n===pY||void 0===n))return cY(i,l,u);for(r=new(void 0===n?pY:n)(hY(u-l,0)),o=0;l<u;l++,o++)l in i&&lY(r,o,i[l]);return r.length=o,r}});var yY=QW(QW.bind),bY=qq("species"),wY=zW.Array,xY=function(e,t){return new(function(e){var t;return XG(e)&&(t=e.constructor,(aY(t)&&(t===wY||XG(t.prototype))||cq(t)&&null===(t=t[bY]))&&(t=void 0)),void 0===t?wY:t}(e))(0===t?0:t)},CY=QW([].push),EY=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=Nq(u),g=iq(h),v=function(e,t){return Aq(e),void 0===t?e:yY?yY(e,t):function(){return e.apply(t,arguments)}}(s,c),m=VK(g),y=0,b=f||xY,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:CY(w,d)}else switch(e){case 4:return!1;case 7:CY(w,d)}return i?-1:r||o?o:w}},kY={forEach:EY(0),map:EY(1),filter:EY(2),some:EY(3),every:EY(4),find:EY(5),findIndex:EY(6),filterReject:EY(7)},SY=kY.map;lG({target:"Array",proto:!0,forced:!sY("map")},{map:function(e){return SY(this,e,arguments.length>1?arguments[1]:void 0)}});var DY=cG?{}.toString:function(){return"[object "+hG(this)+"]"};function AY(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function OY(e){return AY(e).every((function(e){return!!e.isHeader}))}cG||jK(Object.prototype,"toString",DY,{unsafe:!0});var _Y=FK.PROPER,BY=RegExp.prototype,FY=BY.toString,jY=QW(wG),PY=VW((function(){return"/a/b"!=FY.call({source:"a",flags:"b"})})),TY=_Y&&"toString"!=FY.name;(PY||TY)&&jK(RegExp.prototype,"toString",(function(){var e=iK(this),t=vG(e.source),n=e.flags;return"/"+t+"/"+vG(void 0===n&&pq(BY,e)&&!("flags"in BY)?jY(e):n)}),{unsafe:!0});var NY=qq("unscopables"),IY=Array.prototype;null==IY[NY]&&uK.f(IY,NY,{configurable:!0,value:NG(null)});var MY,LY=kY.find,RY=!0;"find"in[]&&Array(1).find((function(){RY=!1})),lG({target:"Array",proto:!0,forced:RY},{find:function(e){return LY(this,e,arguments.length>1?arguments[1]:void 0)}}),MY="find",IY[NY][MY]=!0;var zY=Function.prototype,VY=zY.apply,$Y=zY.bind,UY=zY.call,HY="object"==typeof Reflect&&Reflect.apply||($Y?UY.bind(VY):function(){return UY.apply(VY,arguments)}),WY=qq("species"),qY=RegExp.prototype,KY=function(e,t,n,r){var o=qq(e),i=!VW((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!VW((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[WY]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=QW(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=QW(e),u=t.exec;return u===JG||u===qY.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));jK(String.prototype,e,u[0]),jK(qY,o,u[1])}r&&sK(qY[o],"sham",!0)},GY=qq("match"),YY=zW.TypeError,ZY=qq("species"),JY=function(e,t){var n,r=iK(e).constructor;return void 0===r||null==(n=iK(r)[ZY])?t:function(e){if(aY(e))return e;throw YY(Sq(e)+" is not a constructor")}(n)},XY=QW("".charAt),QY=QW("".charCodeAt),eZ=QW("".slice),tZ=function(e){return function(t,n){var r,o,i=vG(lq(t)),a=NK(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=QY(i,a))<55296||r>56319||a+1===l||(o=QY(i,a+1))<56320||o>57343?e?XY(i,a):r:e?eZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},nZ={codeAt:tZ(!1),charAt:tZ(!0)}.charAt,rZ=function(e,t,n){return t+(n?nZ(e,t).length:1)},oZ=zW.Array,iZ=Math.max,aZ=function(e,t,n){for(var r=VK(e),o=LK(t,r),i=LK(void 0===n?r:n,r),a=oZ(iZ(i-o,0)),l=0;o<i;o++,l++)lY(a,l,e[o]);return a.length=l,a},lZ=zW.TypeError,uZ=function(e,t){var n=e.exec;if(sq(n)){var r=HW(n,e,t);return null!==r&&iK(r),r}if("RegExp"===nq(e))return HW(JG,e,t);throw lZ("RegExp#exec called on incompatible receiver")},sZ=kG.UNSUPPORTED_Y,cZ=Math.min,fZ=[].push,dZ=QW(/./.exec),pZ=QW(fZ),hZ=QW("".slice);KY("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=vG(lq(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!cq(r=e)||!(void 0!==(o=r[GY])?o:"RegExp"==nq(r)))return HW(t,i,e,a);for(var l,u,s,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(l=HW(JG,p,i))&&!((u=p.lastIndex)>d&&(pZ(c,hZ(i,d,l.index)),l.length>1&&l.index<i.length&&HY(fZ,c,aZ(l,1)),s=l[0].length,d=u,c.length>=a));)p.lastIndex===l.index&&p.lastIndex++;return d===i.length?!s&&dZ(p,"")||pZ(c,""):pZ(c,hZ(i,d)),c.length>a?aZ(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:HW(t,this,e,n)}:t,[function(t,n){var o=lq(this),i=null==t?void 0:Oq(t,e);return i?HW(i,t,o,n):HW(r,vG(o),t,n)},function(e,o){var i=iK(this),a=vG(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var u=JY(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(sZ?"g":"y"),f=new u(sZ?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===uZ(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=sZ?0:h;var v,m=uZ(f,sZ?hZ(a,h):a);if(null===m||(v=cZ(zK(f.lastIndex+(sZ?h:0)),a.length))===p)h=rZ(a,h,s);else{if(pZ(g,hZ(a,p,h)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(pZ(g,m[y]),g.length===d)return g;h=p=v}}return pZ(g,hZ(a,p)),g}]}),!!VW((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),sZ);var gZ="\t\n\v\f\r \u2028\u2029\ufeff",vZ=QW("".replace),mZ="["+gZ+"]",yZ=RegExp("^"+mZ+mZ+"*"),bZ=RegExp(mZ+mZ+"*$"),wZ=function(e){return function(t){var n=vG(lq(t));return 1&e&&(n=vZ(n,yZ,"")),2&e&&(n=vZ(n,bZ,"")),n}},xZ={start:wZ(1),end:wZ(2),trim:wZ(3)},CZ=FK.PROPER,EZ=xZ.trim;function kZ(e){return e.length?e[0].tagName.toLowerCase():""}lG({target:"String",proto:!0,forced:function(e){return VW((function(){return!!gZ[e]()||"
"!=="
"[e]()||CZ&&gZ[e].name!==e}))}("trim")},{trim:function(){return EZ(this)}}),lG({global:!0},{globalThis:zW}),jo&&(co.fn.append=jo),bo&&(co.fn.on=bo),Uo&&(co.fn.focus=Uo),go&&(co.fn.attr=go),yo&&(co.fn.val=yo),_o&&(co.fn.html=_o),mo&&(co.fn.dataset=mo),fo&&(co.fn.addClass=fo),po&&(co.fn.removeClass=po),Mo&&(co.fn.children=Mo),Ao&&(co.fn.each=Ao),Io&&(co.fn.find=Io);var SZ=!1,DZ=0,AZ=0,OZ=null,_Z=null,BZ=co("body");function FZ(e){SZ=!1,_Z=null,OZ=null,BZ.off("mousemove",jZ),BZ.off("mouseup",FZ)}BZ.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),SZ=!0;var n=e.clientX;DZ=n;var r=t.getBoundingClientRect().width;AZ=r,BZ.on("mousemove",jZ),BZ.on("mouseup",FZ)}}));var jZ=Ki((function(e){if(SZ&&null!=_Z&&null!=OZ){e.preventDefault();var t=e.clientX,n=AZ+(t-DZ);(n=Math.floor(100*n)/100)<30&&(n=30),Xt.setNodes(_Z,{width:n.toString()},{at:OZ})}}),100),PZ={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Dt.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=Iw.findPath(e,t),a=ut.start(e,i),l=ut.end(e,i),u=xt.compare(r,l)<=0&&xt.compare(r,a)>=0,s=xt.compare(o,l)<=0&&xt.compare(o,a)>=0;return!!(u&&s&&mt.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o,a=Iw.isNodeSelected(n,e),l=AY(e),u=Wa("div",{className:"table-container","data-selected":a,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=Iw.findPath(n,e),o=ut.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Wa("table",{width:i,contentEditable:r},Wa("colgroup",null,l.map((function(e){var t=e.width;return Wa("col",{width:void 0===t?"auto":t})}))),Wa("tbody",null,t)));return u}},TZ={type:"table-row",renderElem:function(e,t,n){return Wa("tr",null,t)}},NZ={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=Iw.getParentNode(e,t);if(null==n)return!1;var r=Iw.getParentNode(e,n);return null!=r&&AY(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,l=o.rowSpan,u=void 0===l?1:l,s=o.isHeader,c=void 0!==s&&s;if(!r)return Wa("td",{colSpan:a,rowSpan:u},t);var f=Wa(c?"th":"td",{colSpan:a,rowSpan:u,style:{borderRightWidth:"3px"},on:{mousemove:Ki((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,l=o.top,u=o.height,s=t.clientX,c=t.clientY;SZ||(s>i+a-5&&s<i+a&&c>l&&c<l+u?(r.style.cursor="col-resize",_Z=n,OZ=Iw.findPath(n,e)):SZ||(r.style.cursor="auto",_Z=null,OZ=null))}}),100)}},t);return f}},IZ={type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},MZ={type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},LZ={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,l=n.isHeader,u=void 0!==l&&l,s=n.width,c=u?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===s?"auto":s)+'">'+t+"</"+c+">"}},RZ={selector:"table",preParseHtml:function(e){var t=co(e);if("table"!==kZ(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},zZ=kY.filter;lG({target:"Array",proto:!0,forced:!sY("filter")},{filter:function(e){return zZ(this,e,arguments.length>1?arguments[1]:void 0)}});var VZ=Math.floor,$Z=QW("".charAt),UZ=QW("".replace),HZ=QW("".slice),WZ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qZ=/\$([$&'`]|\d{1,2})/g,KZ=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,u=qZ;return void 0!==o&&(o=Nq(o),u=WZ),UZ(i,u,(function(i,u){var s;switch($Z(u,0)){case"$":return"$";case"&":return e;case"`":return HZ(t,0,n);case"'":return HZ(t,a);case"<":s=o[HZ(u,1,-1)];break;default:var c=+u;if(0===c)return i;if(c>l){var f=VZ(c/10);return 0===f?i:f<=l?void 0===r[f-1]?$Z(u,1):r[f-1]+$Z(u,1):i}s=r[c-1]}return void 0===s?"":s}))},GZ=qq("replace"),YZ=Math.max,ZZ=Math.min,JZ=QW([].concat),XZ=QW([].push),QZ=QW("".indexOf),eJ=QW("".slice),tJ="$0"==="a".replace(/./,"$0"),nJ=!!/./[GZ]&&""===/./[GZ]("a","$0");KY("replace",(function(e,t,n){var r=nJ?"$":"$0";return[function(e,n){var r=lq(this),o=null==e?void 0:Oq(e,GZ);return o?HW(o,e,r,n):HW(t,vG(r),e,n)},function(e,o){var i=iK(this),a=vG(e);if("string"==typeof o&&-1===QZ(o,r)&&-1===QZ(o,"$<")){var l=n(t,i,a,o);if(l.done)return l.value}var u=sq(o);u||(o=vG(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=uZ(i,a);if(null===d)break;if(XZ(f,d),!s)break;""===vG(d[0])&&(i.lastIndex=rZ(a,zK(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var m=vG((d=f[v])[0]),y=YZ(ZZ(NK(d.index),a.length),0),b=[],w=1;w<d.length;w++)XZ(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(u){var C=JZ([m],b,y,a);void 0!==x&&XZ(C,x);var E=vG(HY(o,void 0,C))}else E=KZ(m,a,y,b,x,o);y>=g&&(h+=eJ(a,g,y)+E,g=y+m.length)}return h+eJ(a,g)}]}),!!VW((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!tJ||nJ);var rJ={selector:"td,th",parseElemHtml:function(e,t,n){var r=co(e);0===(t=t.filter((function(e){return!!Pt.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===kZ(r),colSpan:o,rowSpan:i,width:a,children:t}}},oJ={selector:"tr",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===Iw.getNodeType(e)}))}}},iJ={selector:"table",parseElemHtml:function(e,t,n){var r=co(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var l=a.split(":");l[0].trim()===t&&(n=l[1].trim())}}return n}(r,"width")&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===Iw.getNodeType(e)}))}}},aJ=function(){function e(){this.title=ID("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Dt.isCollapsed(t)||!!Iw.getSelectedElems(e).some((function(t){var n=Iw.getNodeType(t);return"pre"===n||"table"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=co('<div class="w-e-panel-content-table"></div>'),r=co("<span>0 × 0</span>"),o=co("<table></table>"),i=0;i<10;i++){for(var a=co("<tr></tr>"),l=0;l<10;l++){var u=co("<td></td>");u.attr("data-x",l.toString()),u.attr("data-y",i.toString()),a.append(u),u.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=co(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){co(e).children().each((function(e){var t=co(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),u.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=co(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){var i=Iw.getSelectedNodeByType(e,"paragraph");i&&""===pt.string(i)&&Xt.removeNodes(e,{mode:"highest"});var a=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);Xt.insertNodes(e,a,{mode:"highest"})}},e}(),lJ=function(){function e(){this.title=ID("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Iw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Xt.removeNodes(e,{mode:"highest"})},e}(),uJ=function(){function e(){this.title=ID("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Dt.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=gY(ut.nodes(e,{match:function(e){return Iw.checkNodeType(e,"table-cell")},universal:!0}),1),r=gY(n[0],2),o=r[0],i=r[1],a=Iw.getParentNode(e,o),l=(null==a?void 0:a.children.length)||0;if(0!==l){for(var u={type:"table-row",children:[]},s=0;s<l;s++)u.children.push({type:"table-cell",children:[{text:""}]});var c=mt.parent(i),f=mt.next(c);Xt.insertNodes(e,u,{at:f})}}},e}(),sJ=function(){function e(){this.title=ID("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Dt.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=gY(ut.nodes(e,{match:function(e){return Iw.checkNodeType(e,"table-row")},universal:!0}),1),r=gY(n[0],2),o=r[0],i=r[1],a=Iw.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?Xt.removeNodes(e,{mode:"highest"}):Xt.removeNodes(e,{at:i})}},e}(),cJ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},fJ=Qq("span").classList,dJ=fJ&&fJ.constructor&&fJ.constructor.prototype,pJ=dJ===Object.prototype?void 0:dJ,hJ=kY.forEach,gJ=function(e,t){var n=[][e];return!!n&&VW((function(){n.call(null,t||function(){throw 1},1)}))}("forEach"),vJ=gJ?[].forEach:function(e){return hJ(this,e,arguments.length>1?arguments[1]:void 0)},mJ=function(e){if(e&&e.forEach!==vJ)try{sK(e,"forEach",vJ)}catch(Sse){e.forEach=vJ}};for(var yJ in cJ)cJ[yJ]&&mJ(zW[yJ]&&zW[yJ].prototype);mJ(pJ);var bJ=function(){function e(){this.title=ID("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Dt.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=gY(ut.nodes(e,{match:function(e){return Iw.checkNodeType(e,"table-cell")},universal:!0}),1),r=gY(n[0],2),o=r[0],i=r[1],a=Iw.getParentNode(e,o);if(null!=a){var l=Iw.getParentNode(e,a);null!=l&&(l.children||[]).forEach((function(t,n){nt.isElement(t)&&(t.children||[]).forEach((function(t){var r=Iw.findPath(e,t);if(r.length===i.length&&TW(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&OY(l)&&(o.isHeader=!0),Xt.insertNodes(e,o,{at:r})}}))}))}}},e}(),wJ=function(){function e(){this.title=ID("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Dt.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=gY(ut.nodes(e,{match:function(e){return Iw.checkNodeType(e,"table-cell")},universal:!0}),1),r=gY(n[0],2),o=r[0],i=r[1],a=Iw.getParentNode(e,o),l=(null==a?void 0:a.children.length)||0;if(!a||l<=1)Xt.removeNodes(e,{mode:"highest"});else{var u=Iw.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t){nt.isElement(t)&&(t.children||[]).forEach((function(t){var n=Iw.findPath(e,t);n.length===i.length&&TW(n.slice(-1),i.slice(-1))&&Xt.removeNodes(e,{at:n})}))}))}}},e}(),xJ=function(){function e(){this.title=ID("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=Iw.getSelectedNodeByType(e,"table");return null!=t&&OY(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Dt.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=Iw.getSelectedNodeByType(e,"table");null!=r&&AY(r).forEach((function(t){return Xt.setNodes(e,{isHeader:n},{at:Iw.findPath(e,t)})}))}},e}(),CJ=function(){function e(){this.title=ID("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=Iw.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Dt.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};Xt.setNodes(e,n,{mode:"highest"})}},e}(),EJ={renderElems:[PZ,TZ,NZ],elemsToHtml:[IZ,MZ,LZ],preParseHtml:[RZ],parseElemsHtml:[rJ,oJ,iJ],menus:[{key:"insertTable",factory:function(){return new aJ}},{key:"deleteTable",factory:function(){return new lJ}},{key:"insertTableRow",factory:function(){return new uJ}},{key:"deleteTableRow",factory:function(){return new sJ}},{key:"insertTableCol",factory:function(){return new bJ}},{key:"deleteTableCol",factory:function(){return new wJ}},{key:"tableHeader",factory:function(){return new xJ}},{key:"tableFullWidth",factory:function(){return new CJ}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,l=e.selectAll,u=e;return u.insertBreak=function(){null==Iw.getSelectedNodeByType(u,"table")?t():u.insertText("\n")},u.deleteBackward=function(e){if(!vY(u)){var t=u.selection;if(t){var r=ut.before(u,t);if(r){var o=mY(u,r),i=mY(u,t);if(o&&!i)return}}n(e)}},u.handleTab=function(){var t;if(Iw.getSelectedNodeByType(u,"table")){var n=ut.above(e);Iw.checkNodeType(n[0],"table-cell")&&Xt.select(e,n[1]);var r=ut.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=ut.above(e,{at:r[1]}))&&void 0!==t?t:r),Xt.select(e,r[1]);else{var o=u.children||[],i=o.length;if(Iw.checkNodeType(o[i-1],"table")){var l=Iw.genEmptyParagraph();Xt.insertNodes(u,l,{at:[i]}),u.handleTab()}}}else a()},u.deleteForward=function(e){vY(u)||r(e)},u.normalizeNode=function(e){var t=gY(e,2),n=t[0],r=t[1];if("table"!==Iw.getNodeType(n))return o([n,r]);if(Iw.isLastNode(u,n)){var i=Iw.genEmptyParagraph();Xt.insertNodes(u,i,{at:[r[0]+1]})}},u.insertData=function(e){if(null!=Iw.getSelectedNodeByType(u,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):ut.insertText(u,t)}else i(e)},u.selectAll=function(){var e=u.selection;if(null!=e){var t=Iw.getSelectedNodeByType(u,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(mt.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==pt.string(t).length){var o=Iw.findPath(u,t),i={anchor:ut.start(u,o),focus:ut.end(u,o)};u.select(i)}else l();else l()}else l()}else l()},u}};ND("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),ND("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
|
|
91
|
+
/*! *****************************************************************************
|
|
92
|
+
Copyright (c) Microsoft Corporation.
|
|
93
|
+
|
|
94
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
95
|
+
purpose with or without fee is hereby granted.
|
|
96
|
+
|
|
97
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
98
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
99
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
100
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
101
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
102
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
103
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
104
|
+
***************************************************************************** */
|
|
105
|
+
var kJ=function(){return kJ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kJ.apply(this,arguments)};function SJ(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}function DJ(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function AJ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function OJ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _J(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=AJ(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}var BJ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function FJ(e){var t={exports:{}};return e(t,t.exports),t.exports}var jJ,PJ,TJ=function(e){return e&&e.Math==Math&&e},NJ=TJ("object"==typeof globalThis&&globalThis)||TJ("object"==typeof window&&window)||TJ("object"==typeof self&&self)||TJ("object"==typeof BJ&&BJ)||function(){return this}()||Function("return this")(),IJ=function(e){try{return!!e()}catch(e){return!0}},MJ=!IJ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),LJ=Function.prototype.call,RJ=LJ.bind?LJ.bind(LJ):function(){return LJ.apply(LJ,arguments)},zJ={}.propertyIsEnumerable,VJ=Object.getOwnPropertyDescriptor,$J={f:VJ&&!zJ.call({1:2},1)?function(e){var t=VJ(this,e);return!!t&&t.enumerable}:zJ},UJ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},HJ=Function.prototype,WJ=HJ.bind,qJ=HJ.call,KJ=WJ&&WJ.bind(qJ),GJ=WJ?function(e){return e&&KJ(qJ,e)}:function(e){return e&&function(){return qJ.apply(e,arguments)}},YJ=GJ({}.toString),ZJ=GJ("".slice),JJ=function(e){return ZJ(YJ(e),8,-1)},XJ=NJ.Object,QJ=GJ("".split),eX=IJ((function(){return!XJ("z").propertyIsEnumerable(0)}))?function(e){return"String"==JJ(e)?QJ(e,""):XJ(e)}:XJ,tX=NJ.TypeError,nX=function(e){if(null==e)throw tX("Can't call method on "+e);return e},rX=function(e){return eX(nX(e))},oX=function(e){return"function"==typeof e},iX=function(e){return"object"==typeof e?null!==e:oX(e)},aX=function(e){return oX(e)?e:void 0},lX=function(e,t){return arguments.length<2?aX(NJ[e]):NJ[e]&&NJ[e][t]},uX=GJ({}.isPrototypeOf),sX=lX("navigator","userAgent")||"",cX=NJ.process,fX=NJ.Deno,dX=cX&&cX.versions||fX&&fX.version,pX=dX&&dX.v8;pX&&(PJ=(jJ=pX.split("."))[0]>0&&jJ[0]<4?1:+(jJ[0]+jJ[1])),!PJ&&sX&&(!(jJ=sX.match(/Edge\/(\d+)/))||jJ[1]>=74)&&(jJ=sX.match(/Chrome\/(\d+)/))&&(PJ=+jJ[1]);var hX=PJ,gX=!!Object.getOwnPropertySymbols&&!IJ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&hX&&hX<41})),vX=gX&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mX=NJ.Object,yX=vX?function(e){return"symbol"==typeof e}:function(e){var t=lX("Symbol");return oX(t)&&uX(t.prototype,mX(e))},bX=NJ.String,wX=function(e){try{return bX(e)}catch(e){return"Object"}},xX=NJ.TypeError,CX=function(e){if(oX(e))return e;throw xX(wX(e)+" is not a function")},EX=function(e,t){var n=e[t];return null==n?void 0:CX(n)},kX=NJ.TypeError,SX=Object.defineProperty,DX=function(e,t){try{SX(NJ,e,{value:t,configurable:!0,writable:!0})}catch(p){NJ[e]=t}return t},AX=NJ["__core-js_shared__"]||DX("__core-js_shared__",{}),OX=FJ((function(e){(e.exports=function(e,t){return AX[e]||(AX[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),_X=NJ.Object,BX=function(e){return _X(nX(e))},FX=GJ({}.hasOwnProperty),jX=Object.hasOwn||function(e,t){return FX(BX(e),t)},PX=0,TX=Math.random(),NX=GJ(1..toString),IX=function(e){return"Symbol("+(void 0===e?"":e)+")_"+NX(++PX+TX,36)},MX=OX("wks"),LX=NJ.Symbol,RX=LX&&LX.for,zX=vX?LX:LX&&LX.withoutSetter||IX,VX=function(e){if(!jX(MX,e)||!gX&&"string"!=typeof MX[e]){var t="Symbol."+e;gX&&jX(LX,e)?MX[e]=LX[e]:MX[e]=vX&&RX?RX(t):zX(t)}return MX[e]},$X=NJ.TypeError,UX=VX("toPrimitive"),HX=function(e,t){if(!iX(e)||yX(e))return e;var n,r=EX(e,UX);if(r){if(void 0===t&&(t="default"),n=RJ(r,e,t),!iX(n)||yX(n))return n;throw $X("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&oX(n=e.toString)&&!iX(r=RJ(n,e)))return r;if(oX(n=e.valueOf)&&!iX(r=RJ(n,e)))return r;if("string"!==t&&oX(n=e.toString)&&!iX(r=RJ(n,e)))return r;throw kX("Can't convert object to primitive value")}(e,t)},WX=function(e){var t=HX(e,"string");return yX(t)?t:t+""},qX=NJ.document,KX=iX(qX)&&iX(qX.createElement),GX=function(e){return KX?qX.createElement(e):{}},YX=!MJ&&!IJ((function(){return 7!=Object.defineProperty(GX("div"),"a",{get:function(){return 7}}).a})),ZX=Object.getOwnPropertyDescriptor,JX={f:MJ?ZX:function(e,t){if(e=rX(e),t=WX(t),YX)try{return ZX(e,t)}catch(e){}if(jX(e,t))return UJ(!RJ($J.f,e,t),e[t])}},XX=NJ.String,QX=NJ.TypeError,eQ=function(e){if(iX(e))return e;throw QX(XX(e)+" is not an object")},tQ=NJ.TypeError,nQ=Object.defineProperty,rQ={f:MJ?nQ:function(e,t,n){if(eQ(e),t=WX(t),eQ(n),YX)try{return nQ(e,t,n)}catch(e){}if("get"in n||"set"in n)throw tQ("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},oQ=MJ?function(e,t,n){return rQ.f(e,t,UJ(1,n))}:function(e,t,n){return e[t]=n,e},iQ=GJ(Function.toString);oX(AX.inspectSource)||(AX.inspectSource=function(e){return iQ(e)});var aQ,lQ,uQ,sQ=AX.inspectSource,cQ=NJ.WeakMap,fQ=oX(cQ)&&/native code/.test(sQ(cQ)),dQ=OX("keys"),pQ=function(e){return dQ[e]||(dQ[e]=IX(e))},hQ={},gQ=NJ.TypeError,vQ=NJ.WeakMap;if(fQ||AX.state){var mQ=AX.state||(AX.state=new vQ),yQ=GJ(mQ.get),bQ=GJ(mQ.has),wQ=GJ(mQ.set);aQ=function(e,t){if(bQ(mQ,e))throw new gQ("Object already initialized");return t.facade=e,wQ(mQ,e,t),t},lQ=function(e){return yQ(mQ,e)||{}},uQ=function(e){return bQ(mQ,e)}}else{var xQ=pQ("state");hQ[xQ]=!0,aQ=function(e,t){if(jX(e,xQ))throw new gQ("Object already initialized");return t.facade=e,oQ(e,xQ,t),t},lQ=function(e){return jX(e,xQ)?e[xQ]:{}},uQ=function(e){return jX(e,xQ)}}var CQ={set:aQ,get:lQ,has:uQ,enforce:function(e){return uQ(e)?lQ(e):aQ(e,{})},getterFor:function(e){return function(t){var n;if(!iX(t)||(n=lQ(t)).type!==e)throw gQ("Incompatible receiver, "+e+" required");return n}}},EQ=Function.prototype,kQ=MJ&&Object.getOwnPropertyDescriptor,SQ=jX(EQ,"name"),DQ={EXISTS:SQ,PROPER:SQ&&"something"===function(){}.name,CONFIGURABLE:SQ&&(!MJ||MJ&&kQ(EQ,"name").configurable)},AQ=FJ((function(e){var t=DQ.CONFIGURABLE,n=CQ.get,r=CQ.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;oX(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!jX(i,"name")||t&&i.name!==f)&&oQ(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==NJ?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:oQ(e,n,i)):s?e[n]=i:DX(n,i)})(Function.prototype,"toString",(function(){return oX(this)&&n(this).source||sQ(this)}))})),OQ=Math.ceil,_Q=Math.floor,BQ=function(e){var t=+e;return t!=t||0===t?0:(t>0?_Q:OQ)(t)},FQ=Math.max,jQ=Math.min,PQ=function(e,t){var n=BQ(e);return n<0?FQ(n+t,0):jQ(n,t)},TQ=Math.min,NQ=function(e){return e>0?TQ(BQ(e),9007199254740991):0},IQ=function(e){return NQ(e.length)},MQ=function(e){return function(t,n,r){var o,i=rX(t),a=IQ(i),l=PQ(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},LQ={includes:MQ(!0),indexOf:MQ(!1)},RQ=LQ.indexOf,zQ=GJ([].push),VQ=function(e,t){var n,r=rX(e),o=0,i=[];for(n in r)!jX(hQ,n)&&jX(r,n)&&zQ(i,n);for(;t.length>o;)jX(r,n=t[o++])&&(~RQ(i,n)||zQ(i,n));return i},$Q=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],UQ=$Q.concat("length","prototype"),HQ={f:Object.getOwnPropertyNames||function(e){return VQ(e,UQ)}},WQ={f:Object.getOwnPropertySymbols},qQ=GJ([].concat),KQ=lX("Reflect","ownKeys")||function(e){var t=HQ.f(eQ(e)),n=WQ.f;return n?qQ(t,n(e)):t},GQ=function(e,t){for(var n=KQ(t),r=rQ.f,o=JX.f,i=0;i<n.length;i++){var a=n[i];jX(e,a)||r(e,a,o(t,a))}},YQ=/#|\.prototype\./,ZQ=function(e,t){var n=XQ[JQ(e)];return n==e0||n!=QQ&&(oX(t)?IJ(t):!!t)},JQ=ZQ.normalize=function(e){return String(e).replace(YQ,".").toLowerCase()},XQ=ZQ.data={},QQ=ZQ.NATIVE="N",e0=ZQ.POLYFILL="P",t0=ZQ,n0=JX.f,r0=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?NJ:s?NJ[l]||DX(l,{}):(NJ[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=n0(n,r))&&a.value:n[r],!t0(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;GQ(i,o)}(e.sham||o&&o.sham)&&oQ(i,"sham",!0),AQ(n,r,i,e)}},o0={};o0[VX("toStringTag")]="z";var i0,a0="[object z]"===String(o0),l0=VX("toStringTag"),u0=NJ.Object,s0="Arguments"==JJ(function(){return arguments}()),c0=a0?JJ:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=u0(e),l0))?n:s0?JJ(t):"Object"==(r=JJ(t))&&oX(t.callee)?"Arguments":r},f0=NJ.String,d0=function(e){if("Symbol"===c0(e))throw TypeError("Cannot convert a Symbol value to a string");return f0(e)},p0="\t\n\v\f\r \u2028\u2029\ufeff",h0=GJ("".replace),g0="["+p0+"]",v0=RegExp("^"+g0+g0+"*"),m0=RegExp(g0+g0+"*$"),y0=function(e){return function(t){var n=d0(nX(t));return 1&e&&(n=h0(n,v0,"")),2&e&&(n=h0(n,m0,"")),n}},b0={start:y0(1),end:y0(2),trim:y0(3)},w0=DQ.PROPER,x0=b0.trim;function C0(e){return e.length?e[0].tagName.toLowerCase():""}function E0(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=co(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}r0({target:"String",proto:!0,forced:(i0="trim",IJ((function(){return!!p0[i0]()||"
"!=="
"[i0]()||w0&&p0[i0].name!==i0})))},{trim:function(){return x0(this)}}),r0({global:!0},{globalThis:NJ}),jo&&(co.fn.append=jo),bo&&(co.fn.on=bo),Uo&&(co.fn.focus=Uo),go&&(co.fn.attr=go),yo&&(co.fn.val=yo),_o&&(co.fn.html=_o),To&&(co.fn.parent=To),ho&&(co.fn.hasClass=ho),Ro&&(co.fn.empty=Ro);var k0,S0={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,l=o.poster,u=void 0===l?"":l,s=o.width,c=void 0===s?"auto":s,f=o.height,d=void 0===f?"auto":f,p=Iw.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){var h=E0(a,c,d);r=Wa("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:h})}else{var g=Wa("video",{poster:u,controls:!0},Wa("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(g.data.width=c),"auto"!==d&&(g.data.height=d),r=Wa("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},g)}return Ca("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},D0={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,l=n.width,u=void 0===l?"auto":l,s=n.height,c=void 0===s?"auto":s,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=E0(o,u,c):f+='<video poster="'+a+'" controls="true" width="'+u+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},A0=Object.keys||function(e){return VQ(e,$Q)},O0=MJ?Object.defineProperties:function(e,t){eQ(e);for(var n,r=rX(t),o=A0(t),i=o.length,a=0;i>a;)rQ.f(e,n=o[a++],r[n]);return e},_0=lX("document","documentElement"),B0=pQ("IE_PROTO"),F0=function(){},j0=function(e){return"<script>"+e+"<\/script>"},P0=function(e){e.write(j0("")),e.close();var t=e.parentWindow.Object;return e=null,t},T0=function(){try{k0=new ActiveXObject("htmlfile")}catch(e){}var e,t;T0="undefined"!=typeof document?document.domain&&k0?P0(k0):((t=GX("iframe")).style.display="none",_0.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(j0("document.F=Object")),e.close(),e.F):P0(k0);for(var n=$Q.length;n--;)delete T0.prototype[$Q[n]];return T0()};hQ[B0]=!0;var N0=Object.create||function(e,t){var n;return null!==e?(F0.prototype=eQ(e),n=new F0,F0.prototype=null,n[B0]=e):n=T0(),void 0===t?n:O0(n,t)},I0=VX("unscopables"),M0=Array.prototype;null==M0[I0]&&rQ.f(M0,I0,{configurable:!0,value:N0(null)});var L0=function(e){M0[I0][e]=!0},R0=LQ.includes;r0({target:"Array",proto:!0},{includes:function(e){return R0(this,e,arguments.length>1?arguments[1]:void 0)}}),L0("includes");var z0={selector:"iframe,video,p",preParseHtml:function(e){var t=co(e),n=t;if("p"===C0(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=co(o))}}var a=C0(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var l=co('<div data-w-e-type="video" data-w-e-is-void></div>');return l.append(n),l[0]}},V0=GJ(GJ.bind),$0=function(e,t){return CX(e),void 0===t?e:V0?V0(e,t):function(){return e.apply(t,arguments)}},U0=Array.isArray||function(e){return"Array"==JJ(e)},H0=function(){},W0=[],q0=lX("Reflect","construct"),K0=/^\s*(?:class|function)\b/,G0=GJ(K0.exec),Y0=!K0.exec(H0),Z0=function(e){if(!oX(e))return!1;try{return q0(H0,W0,e),!0}catch(e){return!1}},J0=!q0||IJ((function(){var e;return Z0(Z0.call)||!Z0(Object)||!Z0((function(){e=!0}))||e}))?function(e){if(!oX(e))return!1;switch(c0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Y0||!!G0(K0,sQ(e))}:Z0,X0=VX("species"),Q0=NJ.Array,e1=function(e,t){return new(function(e){var t;return U0(e)&&(t=e.constructor,(J0(t)&&(t===Q0||U0(t.prototype))||iX(t)&&null===(t=t[X0]))&&(t=void 0)),void 0===t?Q0:t}(e))(0===t?0:t)},t1=GJ([].push),n1=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=BX(u),g=eX(h),v=$0(s,c),m=IQ(g),y=0,b=f||e1,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:t1(w,d)}else switch(e){case 4:return!1;case 7:t1(w,d)}return i?-1:r||o?o:w}},r1={forEach:n1(0),map:n1(1),filter:n1(2),some:n1(3),every:n1(4),find:n1(5),findIndex:n1(6),filterReject:n1(7)},o1=r1.find,i1=!0;"find"in[]&&Array(1).find((function(){i1=!1})),r0({target:"Array",proto:!0,forced:i1},{find:function(e){return o1(this,e,arguments.length>1?arguments[1]:void 0)}}),L0("find");var a1=a0?{}.toString:function(){return"[object "+c0(this)+"]"};function l1(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}a0||AQ(Object.prototype,"toString",a1,{unsafe:!0});var u1,s1,c1={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=co(e),o="",i="",a="auto",l="auto",u=r.find("iframe");if(u.length>0)return a=u.attr("width")||"auto",l=u.attr("height")||"auto",l1(o=u[0].outerHTML,i,a,l);var s=r.find("video");return(o=s.attr("src")||"")||s.length>0&&(o=s.find("source").attr("src")||""),a=s.attr("width")||"auto",l=s.attr("height")||"auto",l1(o,i=s.attr("poster")||"",a,l)}},f1=function(){var e=eQ(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},d1=NJ.RegExp,p1=IJ((function(){var e=d1("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),h1=p1||IJ((function(){return!d1("a","y").sticky})),g1={BROKEN_CARET:p1||IJ((function(){var e=d1("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:h1,UNSUPPORTED_Y:p1},v1=NJ.RegExp,m1=IJ((function(){var e=v1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),y1=NJ.RegExp,b1=IJ((function(){var e=y1("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),w1=CQ.get,x1=OX("native-string-replace",String.prototype.replace),C1=RegExp.prototype.exec,E1=C1,k1=GJ("".charAt),S1=GJ("".indexOf),D1=GJ("".replace),A1=GJ("".slice),O1=(s1=/b*/g,RJ(C1,u1=/a/,"a"),RJ(C1,s1,"a"),0!==u1.lastIndex||0!==s1.lastIndex),_1=g1.BROKEN_CARET,B1=void 0!==/()??/.exec("")[1];(O1||B1||_1||m1||b1)&&(E1=function(e){var t,n,r,o,i,a,l,u=this,s=w1(u),c=d0(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=RJ(E1,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=_1&&u.sticky,h=RJ(f1,u),g=u.source,v=0,m=c;if(p&&(h=D1(h,"y",""),-1===S1(h,"g")&&(h+="g"),m=A1(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==k1(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),B1&&(n=new RegExp("^"+g+"$(?!\\s)",h)),O1&&(r=u.lastIndex),o=RJ(C1,p?n:u,m),p?o?(o.input=A1(o.input,v),o[0]=A1(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:O1&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),B1&&o&&o.length>1&&RJ(x1,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=N0(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var F1=E1;r0({target:"RegExp",proto:!0,forced:/./.exec!==F1},{exec:F1});var j1=Function.prototype,P1=j1.apply,T1=j1.bind,N1=j1.call,I1="object"==typeof Reflect&&Reflect.apply||(T1?N1.bind(P1):function(){return N1.apply(P1,arguments)}),M1=VX("species"),L1=RegExp.prototype,R1=GJ("".charAt),z1=GJ("".charCodeAt),V1=GJ("".slice),$1=function(e){return function(t,n){var r,o,i=d0(nX(t)),a=BQ(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=z1(i,a))<55296||r>56319||a+1===l||(o=z1(i,a+1))<56320||o>57343?e?R1(i,a):r:e?V1(i,a,a+2):o-56320+(r-55296<<10)+65536}},U1={codeAt:$1(!1),charAt:$1(!0)},H1=U1.charAt,W1=function(e,t,n){return t+(n?H1(e,t).length:1)},q1=Math.floor,K1=GJ("".charAt),G1=GJ("".replace),Y1=GJ("".slice),Z1=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,J1=/\$([$&'`]|\d{1,2})/g,X1=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,u=J1;return void 0!==o&&(o=BX(o),u=Z1),G1(i,u,(function(i,u){var s;switch(K1(u,0)){case"$":return"$";case"&":return e;case"`":return Y1(t,0,n);case"'":return Y1(t,a);case"<":s=o[Y1(u,1,-1)];break;default:var c=+u;if(0===c)return i;if(c>l){var f=q1(c/10);return 0===f?i:f<=l?void 0===r[f-1]?K1(u,1):r[f-1]+K1(u,1):i}s=r[c-1]}return void 0===s?"":s}))},Q1=NJ.TypeError,e2=function(e,t){var n=e.exec;if(oX(n)){var r=RJ(n,e,t);return null!==r&&eQ(r),r}if("RegExp"===JJ(e))return RJ(F1,e,t);throw Q1("RegExp#exec called on incompatible receiver")},t2=VX("replace"),n2=Math.max,r2=Math.min,o2=GJ([].concat),i2=GJ([].push),a2=GJ("".indexOf),l2=GJ("".slice),u2="$0"==="a".replace(/./,"$0"),s2=!!/./[t2]&&""===/./[t2]("a","$0");function c2(e){return void 0===e&&(e="r"),e+"-"+ki()}!function(e,t,n,r){var o=VX(e),i=!IJ((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!IJ((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[M1]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=GJ(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=GJ(e),u=t.exec;return u===F1||u===L1.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));AQ(String.prototype,e,u[0]),AQ(L1,o,u[1])}r&&oQ(L1[o],"sham",!0)}("replace",(function(e,t,n){var r=s2?"$":"$0";return[function(e,n){var r=nX(this),o=null==e?void 0:EX(e,t2);return o?RJ(o,e,r,n):RJ(t,d0(r),e,n)},function(e,o){var i=eQ(this),a=d0(e);if("string"==typeof o&&-1===a2(o,r)&&-1===a2(o,"$<")){var l=n(t,i,a,o);if(l.done)return l.value}var u=oX(o);u||(o=d0(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=e2(i,a);if(null===d)break;if(i2(f,d),!s)break;""===d0(d[0])&&(i.lastIndex=W1(a,NQ(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var m=d0((d=f[v])[0]),y=n2(r2(BQ(d.index),a.length),0),b=[],w=1;w<d.length;w++)i2(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(u){var C=o2([m],b,y,a);void 0!==x&&i2(C,x);var E=d0(I1(o,void 0,C))}else E=X1(m,a,y,b,x,o);y>=g&&(h+=l2(a,g,y)+E,g=y+m.length)}return h+l2(a,g)}]}),!!IJ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!u2||s2);var f2=NJ.Promise,d2=function(e,t,n){for(var r in t)AQ(e,r,t[r],n);return e},p2=NJ.String,h2=NJ.TypeError,g2=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=GJ(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return eQ(n),function(e){if("object"==typeof e||oX(e))return e;throw h2("Can't set "+p2(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),v2=rQ.f,m2=VX("toStringTag"),y2=function(e,t,n){e&&!jX(e=n?e:e.prototype,m2)&&v2(e,m2,{configurable:!0,value:t})},b2=VX("species"),w2=NJ.TypeError,x2=function(e,t){if(uX(t,e))return e;throw w2("Incorrect invocation")},C2={},E2=VX("iterator"),k2=Array.prototype,S2=VX("iterator"),D2=function(e){if(null!=e)return EX(e,S2)||EX(e,"@@iterator")||C2[c0(e)]},A2=NJ.TypeError,O2=function(e,t,n){var r,o;eQ(e);try{if(!(r=EX(e,"return"))){if("throw"===t)throw n;return n}r=RJ(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return eQ(r),n},_2=NJ.TypeError,B2=function(e,t){this.stopped=e,this.result=t},F2=B2.prototype,j2=function(e,t,n){var r,o,i,a,l,u,s,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=$0(t,f),v=function(e){return r&&O2(r,"normal",e),new B2(!0,e)},m=function(e){return d?(eQ(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=D2(e)))throw _2(wX(e)+" is not iterable");if(void 0!==(c=o)&&(C2.Array===c||k2[E2]===c)){for(i=0,a=IQ(e);a>i;i++)if((l=m(e[i]))&&uX(F2,l))return l;return new B2(!1)}r=function(e,t){var n=arguments.length<2?D2(e):t;if(CX(n))return eQ(RJ(n,e));throw A2(wX(e)+" is not iterable")}(e,o)}for(u=r.next;!(s=RJ(u,r)).done;){try{l=m(s.value)}catch(e){O2(r,"throw",e)}if("object"==typeof l&&l&&uX(F2,l))return l}return new B2(!1)},P2=VX("iterator"),T2=!1;try{var N2=0,I2={next:function(){return{done:!!N2++}},return:function(){T2=!0}};I2[P2]=function(){return this},Array.from(I2,(function(){throw 2}))}catch(h){}var M2,L2,R2,z2,V2=function(e,t){if(!t&&!T2)return!1;var n=!1;try{var r={};r[P2]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},$2=NJ.TypeError,U2=VX("species"),H2=function(e,t){var n,r=eQ(e).constructor;return void 0===r||null==(n=eQ(r)[U2])?t:function(e){if(J0(e))return e;throw $2(wX(e)+" is not a constructor")}(n)},W2=GJ([].slice),q2=/(?:ipad|iphone|ipod).*applewebkit/i.test(sX),K2="process"==JJ(NJ.process),G2=NJ.setImmediate,Y2=NJ.clearImmediate,Z2=NJ.process,J2=NJ.Dispatch,X2=NJ.Function,Q2=NJ.MessageChannel,e4=NJ.String,t4=0,n4={};try{M2=NJ.location}catch(h){}var r4=function(e){if(jX(n4,e)){var t=n4[e];delete n4[e],t()}},o4=function(e){return function(){r4(e)}},i4=function(e){r4(e.data)},a4=function(e){NJ.postMessage(e4(e),M2.protocol+"//"+M2.host)};G2&&Y2||(G2=function(e){var t=W2(arguments,1);return n4[++t4]=function(){I1(oX(e)?e:X2(e),void 0,t)},L2(t4),t4},Y2=function(e){delete n4[e]},K2?L2=function(e){Z2.nextTick(o4(e))}:J2&&J2.now?L2=function(e){J2.now(o4(e))}:Q2&&!q2?(z2=(R2=new Q2).port2,R2.port1.onmessage=i4,L2=$0(z2.postMessage,z2)):NJ.addEventListener&&oX(NJ.postMessage)&&!NJ.importScripts&&M2&&"file:"!==M2.protocol&&!IJ(a4)?(L2=a4,NJ.addEventListener("message",i4,!1)):L2="onreadystatechange"in GX("script")?function(e){_0.appendChild(GX("script")).onreadystatechange=function(){_0.removeChild(this),r4(e)}}:function(e){setTimeout(o4(e),0)});var l4,u4,s4,c4,f4,d4,p4,h4,g4={set:G2,clear:Y2},v4=/ipad|iphone|ipod/i.test(sX)&&void 0!==NJ.Pebble,m4=/web0s(?!.*chrome)/i.test(sX),y4=JX.f,b4=g4.set,w4=NJ.MutationObserver||NJ.WebKitMutationObserver,x4=NJ.document,C4=NJ.process,E4=NJ.Promise,k4=y4(NJ,"queueMicrotask"),S4=k4&&k4.value;S4||(l4=function(){var e,t;for(K2&&(e=C4.domain)&&e.exit();u4;){t=u4.fn,u4=u4.next;try{t()}catch(e){throw u4?c4():s4=void 0,e}}s4=void 0,e&&e.enter()},q2||K2||m4||!w4||!x4?!v4&&E4&&E4.resolve?((p4=E4.resolve(void 0)).constructor=E4,h4=$0(p4.then,p4),c4=function(){h4(l4)}):K2?c4=function(){C4.nextTick(l4)}:(b4=$0(b4,NJ),c4=function(){b4(l4)}):(f4=!0,d4=x4.createTextNode(""),new w4(l4).observe(d4,{characterData:!0}),c4=function(){d4.data=f4=!f4}));var D4,A4,O4,_4,B4=S4||function(e){var t={fn:e,next:void 0};s4&&(s4.next=t),u4||(u4=t,c4()),s4=t},F4=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=CX(t),this.reject=CX(n)},j4={f:function(e){return new F4(e)}},P4=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},T4="object"==typeof window,N4=g4.set,I4=VX("species"),M4="Promise",L4=CQ.getterFor(M4),R4=CQ.set,z4=CQ.getterFor(M4),V4=f2&&f2.prototype,$4=f2,U4=V4,H4=NJ.TypeError,W4=NJ.document,q4=NJ.process,K4=j4.f,G4=K4,Y4=!!(W4&&W4.createEvent&&NJ.dispatchEvent),Z4=oX(NJ.PromiseRejectionEvent),J4=!1,X4=t0(M4,(function(){var e=sQ($4),t=e!==String($4);if(!t&&66===hX)return!0;if(hX>=51&&/native code/.test(e))return!1;var n=new $4((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[I4]=r,!(J4=n.then((function(){}))instanceof r)||!t&&T4&&!Z4})),Q4=X4||!V2((function(e){$4.all(e).catch((function(){}))})),e3=function(e){var t;return!(!iX(e)||!oX(t=e.then))&&t},t3=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;B4((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,l,u,s=n[i++],c=o?s.ok:s.fail,f=s.resolve,d=s.reject,p=s.domain;try{c?(o||(2===e.rejection&&i3(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),u=!0)),a===s.promise?d(H4("Promise-chain cycle")):(l=e3(a))?RJ(l,a,f,d):f(a)):d(r)}catch(e){p&&!u&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&r3(e)}))}},n3=function(e,t,n){var r,o;Y4?((r=W4.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),NJ.dispatchEvent(r)):r={promise:t,reason:n},!Z4&&(o=NJ["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=NJ.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},r3=function(e){RJ(N4,NJ,(function(){var t,n=e.facade,r=e.value;if(o3(e)&&(t=P4((function(){K2?q4.emit("unhandledRejection",r,n):n3("unhandledrejection",n,r)})),e.rejection=K2||o3(e)?2:1,t.error))throw t.value}))},o3=function(e){return 1!==e.rejection&&!e.parent},i3=function(e){RJ(N4,NJ,(function(){var t=e.facade;K2?q4.emit("rejectionHandled",t):n3("rejectionhandled",t,e.value)}))},a3=function(e,t,n){return function(r){e(t,r,n)}},l3=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,t3(e,!0))},u3=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw H4("Promise can't be resolved itself");var r=e3(t);r?B4((function(){var n={done:!1};try{RJ(r,t,a3(u3,n,e),a3(l3,n,e))}catch(t){l3(n,t,e)}})):(e.value=t,e.state=1,t3(e,!1))}catch(t){l3({done:!1},t,e)}}};if(X4&&(U4=($4=function(e){x2(this,U4),CX(e),RJ(D4,this);var t=L4(this);try{e(a3(u3,t),a3(l3,t))}catch(e){l3(t,e)}}).prototype,(D4=function(e){R4(this,{type:M4,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d2(U4,{then:function(e,t){var n=z4(this),r=n.reactions,o=K4(H2(this,$4));return o.ok=!oX(e)||e,o.fail=oX(t)&&t,o.domain=K2?q4.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&t3(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),A4=function(){var e=new D4,t=L4(e);this.promise=e,this.resolve=a3(u3,t),this.reject=a3(l3,t)},j4.f=K4=function(e){return e===$4||e===O4?new A4(e):G4(e)},oX(f2)&&V4!==Object.prototype)){_4=V4.then,J4||(AQ(V4,"then",(function(e,t){var n=this;return new $4((function(e,t){RJ(_4,n,e,t)})).then(e,t)}),{unsafe:!0}),AQ(V4,"catch",U4.catch,{unsafe:!0}));try{delete V4.constructor}catch(h){}g2&&g2(V4,U4)}function s3(e,t,n){return void 0===n&&(n=""),SJ(this,void 0,void 0,(function(){var r,o,i,a,l,u,s;return DJ(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t)]):[2];case 1:return"string"==typeof(l=c.sent())?(e.alert(l,"error"),[2]):null==l?[2]:[4,a(t)];case 2:return 0!==(u=c.sent()).trim().indexOf("<iframe ")&&(u=u.replace(/</g,"<").replace(/>/g,">")),s={type:"video",src:u,poster:n,children:[{text:""}]},Promise.resolve().then((function(){Xt.insertNodes(e,s)})),o(s),[2]}}))}))}function c3(){return c2("w-e-insert-video")}r0({global:!0,wrap:!0,forced:X4},{Promise:$4}),y2($4,M4,!1),function(e){var t=lX(e),n=rQ.f;MJ&&t&&!t[b2]&&n(t,b2,{configurable:!0,get:function(){return this}})}(M4),O4=lX(M4),r0({target:M4,stat:!0,forced:X4},{reject:function(e){var t=K4(this);return RJ(t.reject,void 0,e),t.promise}}),r0({target:M4,stat:!0,forced:X4},{resolve:function(e){return function(e,t){if(eQ(e),iX(t)&&t.constructor===e)return t;var n=j4.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),r0({target:M4,stat:!0,forced:Q4},{all:function(e){var t=this,n=K4(t),r=n.resolve,o=n.reject,i=P4((function(){var n=CX(t.resolve),i=[],a=0,l=1;j2(e,(function(e){var u=a++,s=!1;l++,RJ(n,t,e).then((function(e){s||(s=!0,i[u]=e,--l||r(i))}),o)})),--l||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=K4(t),r=n.reject,o=P4((function(){var o=CX(t.resolve);j2(e,(function(e){RJ(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var f3=function(){function e(){this.title=ID("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=c3(),this.posterInputId=c3(),this.buttonId=c3()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Dt.isCollapsed(t)||!!Iw.getSelectedElems(e).some((function(t){return"pre"===Iw.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=OJ(mS(ID("videoModule.videoSrc"),r,ID("videoModule.videoSrcPlaceHolder")),2),l=a[0],u=a[1],s=OJ(mS(ID("videoModule.videoPoster"),o,ID("videoModule.videoPosterPlaceHolder")),2),c=s[0],f=s[1],d=co(u),p=co(f),h=OJ(yS(i,ID("videoModule.ok")),1)[0];if(null==this.$content){var g=co("<div></div>");g.on("click","#"+i,(function(n){return SJ(t,void 0,void 0,(function(){var t,i;return DJ(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,s3(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(l),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),d3=GJ([].join),p3=eX!=Object,h3=function(e,t){var n=[][e];return!!n&&IJ((function(){n.call(null,t||function(){throw 1},1)}))}("join",",");r0({target:"Array",proto:!0,forced:p3||!h3},{join:function(e){return d3(rX(this),void 0===e?",":e)}});var g3,v3,m3,y3=!IJ((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),b3=pQ("IE_PROTO"),w3=NJ.Object,x3=w3.prototype,C3=y3?w3.getPrototypeOf:function(e){var t=BX(e);if(jX(t,b3))return t[b3];var n=t.constructor;return oX(n)&&t instanceof n?n.prototype:t instanceof w3?x3:null},E3=VX("iterator"),k3=!1;[].keys&&("next"in(m3=[].keys())?(v3=C3(C3(m3)))!==Object.prototype&&(g3=v3):k3=!0);var S3=null==g3||IJ((function(){var e={};return g3[E3].call(e)!==e}));S3&&(g3={}),oX(g3[E3])||AQ(g3,E3,(function(){return this}));var D3={IteratorPrototype:g3,BUGGY_SAFARI_ITERATORS:k3},A3=D3.IteratorPrototype,O3=function(){return this},_3=DQ.PROPER,B3=DQ.CONFIGURABLE,F3=D3.IteratorPrototype,j3=D3.BUGGY_SAFARI_ITERATORS,P3=VX("iterator"),T3=function(){return this},N3=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=N0(A3,{next:UJ(+!r,n)}),y2(e,o,!1),C2[o]=O3}(n,t,r);var l,u,s,c=function(e){if(e===o&&g)return g;if(!j3&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[P3]||p["@@iterator"]||o&&p[o],g=!j3&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(l=C3(v.call(new e)))!==Object.prototype&&l.next&&(C3(l)!==F3&&(g2?g2(l,F3):oX(l[P3])||AQ(l,P3,T3)),y2(l,f,!0)),_3&&"values"==o&&h&&"values"!==h.name&&(B3?oQ(p,"name","values"):(d=!0,g=function(){return RJ(h,this)})),o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(s in u)(j3||d||!(s in p))&&AQ(p,s,u[s]);else r0({target:t,proto:!0,forced:j3||d},u);return p[P3]!==g&&AQ(p,P3,g,{name:o}),C2[t]=g,u},I3=CQ.set,M3=CQ.getterFor("Array Iterator"),L3=N3(Array,"Array",(function(e,t){I3(this,{type:"Array Iterator",target:rX(e),index:0,kind:t})}),(function(){var e=M3(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");C2.Arguments=C2.Array,L0("keys"),L0("values"),L0("entries");var R3=U1.charAt,z3=CQ.set,V3=CQ.getterFor("String Iterator");N3(String,"String",(function(e){z3(this,{type:"String Iterator",string:d0(e),index:0})}),(function(){var e,t=V3(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=R3(n,r),t.index+=e.length,{value:e,done:!1})}));var $3=function(e,t,n){var r=WX(t);r in e?rQ.f(e,r,UJ(0,n)):e[r]=n},U3=NJ.Array,H3=Math.max,W3=HQ.f,q3="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],K3=function(e){try{return W3(e)}catch(e){return function(e,t,n){for(var r=IQ(e),o=PQ(t,r),i=PQ(void 0===n?r:n,r),a=U3(H3(i-o,0)),l=0;o<i;o++,l++)$3(a,l,e[o]);return a.length=l,a}(q3)}},G3={f:function(e){return q3&&"Window"==JJ(e)?K3(e):W3(rX(e))}},Y3=IJ((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Z3=Object.isExtensible,J3=IJ((function(){Z3(1)}))||Y3?function(e){return!!iX(e)&&(!Y3||"ArrayBuffer"!=JJ(e))&&(!Z3||Z3(e))}:Z3,X3=!IJ((function(){return Object.isExtensible(Object.preventExtensions({}))})),Q3=FJ((function(e){var t=rQ.f,n=!1,r=IX("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=HQ.f,t=GJ([].splice),o={};o[r]=1,e(o).length&&(HQ.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},r0({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:G3.f}))},fastKey:function(e,t){if(!iX(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!jX(e,r)){if(!J3(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!jX(e,r)){if(!J3(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return X3&&n&&J3(e)&&!jX(e,r)&&i(e),e}};hQ[r]=!0})),e6=Q3.getWeakData,t6=CQ.set,n6=CQ.getterFor,r6=r1.find,o6=r1.findIndex,i6=GJ([].splice),a6=0,l6=function(e){return e.frozen||(e.frozen=new u6)},u6=function(){this.entries=[]},s6=function(e,t){return r6(e.entries,(function(e){return e[0]===t}))};u6.prototype={get:function(e){var t=s6(this,e);if(t)return t[1]},has:function(e){return!!s6(this,e)},set:function(e,t){var n=s6(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=o6(this.entries,(function(t){return t[0]===e}));return~t&&i6(this.entries,t,1),!!~t}};var c6,f6={getConstructor:function(e,t,n,r){var o=e((function(e,o){x2(e,i),t6(e,{type:t,id:a6++,frozen:void 0}),null!=o&&j2(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=n6(t),l=function(e,t,n){var r=a(e),o=e6(eQ(t),!0);return!0===o?l6(r).set(t,n):o[r.id]=n,e};return d2(i,{delete:function(e){var t=a(this);if(!iX(e))return!1;var n=e6(e);return!0===n?l6(t).delete(e):n&&jX(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!iX(e))return!1;var n=e6(e);return!0===n?l6(t).has(e):n&&jX(n,t.id)}}),d2(i,n?{get:function(e){var t=a(this);if(iX(e)){var n=e6(e);return!0===n?l6(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return l(this,e,t)}}:{add:function(e){return l(this,e,!0)}}),o}},d6=CQ.enforce,p6=!NJ.ActiveXObject&&"ActiveXObject"in NJ,h6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g6=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=NJ[e],l=a&&a.prototype,u=a,s={},c=function(e){var t=GJ(l[e]);AQ(l,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!iX(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!iX(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!iX(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(t0(e,!oX(a)||!(o||l.forEach&&!IJ((function(){(new a).entries().next()})))))u=n.getConstructor(t,e,r,i),Q3.enable();else if(t0(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=IJ((function(){f.has(1)})),h=V2((function(e){new a(e)})),g=!o&&IJ((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((u=t((function(e,t){x2(e,l);var n=function(e,t,n){var r,o;return g2&&oX(r=t.constructor)&&r!==n&&iX(o=r.prototype)&&o!==n.prototype&&g2(e,o),e}(new a,e,u);return null!=t&&j2(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=l,l.constructor=u),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&l.clear&&delete l.clear}return s[e]=u,r0({global:!0,forced:u!=a},s),y2(u,e),o||n.setStrong(u,e,r),u}("WeakMap",h6,f6);if(fQ&&p6){c6=f6.getConstructor(h6,"WeakMap",!0),Q3.enable();var v6=g6.prototype,m6=GJ(v6.delete),y6=GJ(v6.has),b6=GJ(v6.get),w6=GJ(v6.set);d2(v6,{delete:function(e){if(iX(e)&&!J3(e)){var t=d6(this);return t.frozen||(t.frozen=new c6),m6(this,e)||t.frozen.delete(e)}return m6(this,e)},has:function(e){if(iX(e)&&!J3(e)){var t=d6(this);return t.frozen||(t.frozen=new c6),y6(this,e)||t.frozen.has(e)}return y6(this,e)},get:function(e){if(iX(e)&&!J3(e)){var t=d6(this);return t.frozen||(t.frozen=new c6),y6(this,e)?b6(this,e):t.frozen.get(e)}return b6(this,e)},set:function(e,t){if(iX(e)&&!J3(e)){var n=d6(this);n.frozen||(n.frozen=new c6),y6(this,e)?w6(this,e,t):n.frozen.set(e,t)}else w6(this,e,t);return this}})}var x6={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},C6=GX("span").classList,E6=C6&&C6.constructor&&C6.constructor.prototype,k6=E6===Object.prototype?void 0:E6,S6=VX("iterator"),D6=VX("toStringTag"),A6=L3.values,O6=function(e,t){if(e){if(e[S6]!==A6)try{oQ(e,S6,A6)}catch(t){e[S6]=A6}if(e[D6]||oQ(e,D6,t),x6[t])for(var n in L3)if(e[n]!==L3[n])try{oQ(e,n,L3[n])}catch(t){e[n]=L3[n]}}};for(var _6 in x6)O6(NJ[_6]&&NJ[_6].prototype,_6);O6(k6,"DOMTokenList");var B6=DQ.EXISTS,F6=rQ.f,j6=Function.prototype,P6=GJ(j6.toString),T6=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,N6=GJ(T6.exec);MJ&&!B6&&F6(j6,"name",{configurable:!0,get:function(){try{return N6(T6,P6(this))[1]}catch(h){return""}}});var I6=VX("species"),M6=function(e){return hX>=51||!IJ((function(){var t=[];return(t.constructor={})[I6]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("slice"),L6=VX("species"),R6=NJ.Array,z6=Math.max;function V6(e){return e.getMenuConfig("uploadVideo")}r0({target:"Array",proto:!0,forced:!M6},{slice:function(e,t){var n,r,o,i=rX(this),a=IQ(i),l=PQ(e,a),u=PQ(void 0===t?a:t,a);if(U0(i)&&(n=i.constructor,(J0(n)&&(n===R6||U0(n.prototype))||iX(n)&&null===(n=n[L6]))&&(n=void 0),n===R6||void 0===n))return W2(i,l,u);for(r=new(void 0===n?R6:n)(z6(u-l,0)),o=0;l<u;l++,o++)l in i&&$3(r,o,i[l]);return r.length=o,r}});var $6=new WeakMap;function U6(e,t){return SJ(this,void 0,void 0,(function(){var n,r,o,i;return DJ(this,(function(a){switch(a.label){case 0:return n=function(e){var t=$6.get(e);if(null!=t)return t;var n=V6(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,l=n.onError;return t=US(kJ(kJ({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)a(n,(function(t,n){return s3(e,t,n)}));else{var o=n.errno,l=void 0===o?1:o,u=n.data,s=void 0===u?{}:u;if(0!==l)return console.error("'"+t.name+"' upload failed",n),void i(t,n);var c=s.url,f=void 0===c?"":c,d=s.poster;s3(e,f,void 0===d?"":d),r(t,n)}},onError:function(e,t,n){var r=e.name;console.error("'"+r+" upload error",t,n),l&&l(e,t,n)}})),$6.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var H6=function(){function e(){this.title=ID("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t){return s3(e,t)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var l=co("body"),u=co('<input type="file" '+a+" multiple/>");u.hide(),l.append(u),u.click(),u.on("change",(function(){var t=u[0].files;!function(e,t){var n,r;SJ(this,void 0,void 0,(function(){var o,i,a,l,u,s;return DJ(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=V6(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=_J(o),c.label=2;case 2:return[4,a.next()];case 3:return(l=c.sent()).done?[3,8]:(u=l.value,i?[4,i(u,(function(t,n){return s3(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,U6(e,u)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return s=c.sent(),n={error:s},[3,15];case 10:return c.trys.push([10,,13,14]),l&&!l.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Dt.isCollapsed(t)||!!Iw.getSelectedElems(e).some((function(t){return"pre"===Iw.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),W6=DQ.PROPER,q6=RegExp.prototype,K6=q6.toString,G6=GJ(f1),Y6=IJ((function(){return"/a/b"!=K6.call({source:"a",flags:"b"})})),Z6=W6&&"toString"!=K6.name;function J6(){return c2("w-e-insert-video")}(Y6||Z6)&&AQ(RegExp.prototype,"toString",(function(){var e=eQ(this),t=d0(e.source),n=e.flags;return"/"+t+"/"+d0(void 0===n&&uX(q6,e)&&!("flags"in q6)?G6(e):n)}),{unsafe:!0});var X6=function(){function e(){this.title=ID("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=J6(),this.heightInputId=J6(),this.buttonId=J6()}return e.prototype.getSelectedVideoNode=function(e){return Iw.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=OJ(mS(ID("videoModule.width"),n,"auto"),2),a=i[0],l=i[1],u=co(l),s=OJ(mS(ID("videoModule.height"),r,"auto"),2),c=s[0],f=s[1],d=co(f),p=OJ(yS(o,ID("videoModule.ok")),1)[0];if(null==this.$content){var h=co("<div></div>");h.on("click","#"+o,(function(t){t.preventDefault();var o=h.find("#"+n).val().trim(),i=h.find("#"+r).val().trim(),a=parseInt(o),l=parseInt(i),u=a?a.toString():"auto",s=l?l.toString():"auto";e.restoreSelection(),Xt.setNodes(e,{width:u,height:s},{match:function(e){return Iw.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=h}var g=this.$content;g.empty(),g.append(a),g.append(c),g.append(p);var v=this.getSelectedVideoNode(e);if(null==v)return g[0];var m=v.width,y=void 0===m?"auto":m,b=v.height,w=void 0===b?"auto":b;return u.val(y),d.val(w),setTimeout((function(){u.focus()})),g[0]},e}(),Q6={renderElems:[S0],elemsToHtml:[D0],preParseHtml:[z0],parseElemsHtml:[c1],menus:[{key:"insertVideo",factory:function(){return new f3},config:{onInsertedVideo:function(e){},checkVideo:function(e){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new H6},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){}}},{key:"editVideoSize",factory:function(){return new X6}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=OJ(e,2),o=t[0],i=t[1];return"video"===Iw.getNodeType(o)&&Iw.isLastNode(r,o)&&Xt.insertNodes(r,Iw.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};ND("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),ND("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var e8="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function t8(e){var t={exports:{}};return e(t,t.exports),t.exports}var n8,r8,o8=function(e){return e&&e.Math==Math&&e},i8=o8("object"==typeof globalThis&&globalThis)||o8("object"==typeof window&&window)||o8("object"==typeof self&&self)||o8("object"==typeof e8&&e8)||function(){return this}()||Function("return this")(),a8=function(e){try{return!!e()}catch(e){return!0}},l8=!a8((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u8=Function.prototype.call,s8=u8.bind?u8.bind(u8):function(){return u8.apply(u8,arguments)},c8={}.propertyIsEnumerable,f8=Object.getOwnPropertyDescriptor,d8={f:f8&&!c8.call({1:2},1)?function(e){var t=f8(this,e);return!!t&&t.enumerable}:c8},p8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},h8=Function.prototype,g8=h8.bind,v8=h8.call,m8=g8&&g8.bind(v8),y8=g8?function(e){return e&&m8(v8,e)}:function(e){return e&&function(){return v8.apply(e,arguments)}},b8=y8({}.toString),w8=y8("".slice),x8=function(e){return w8(b8(e),8,-1)},C8=i8.Object,E8=y8("".split),k8=a8((function(){return!C8("z").propertyIsEnumerable(0)}))?function(e){return"String"==x8(e)?E8(e,""):C8(e)}:C8,S8=i8.TypeError,D8=function(e){if(null==e)throw S8("Can't call method on "+e);return e},A8=function(e){return k8(D8(e))},O8=function(e){return"function"==typeof e},_8=function(e){return"object"==typeof e?null!==e:O8(e)},B8=function(e){return O8(e)?e:void 0},F8=function(e,t){return arguments.length<2?B8(i8[e]):i8[e]&&i8[e][t]},j8=y8({}.isPrototypeOf),P8=F8("navigator","userAgent")||"",T8=i8.process,N8=i8.Deno,I8=T8&&T8.versions||N8&&N8.version,M8=I8&&I8.v8;M8&&(r8=(n8=M8.split("."))[0]>0&&n8[0]<4?1:+(n8[0]+n8[1])),!r8&&P8&&(!(n8=P8.match(/Edge\/(\d+)/))||n8[1]>=74)&&(n8=P8.match(/Chrome\/(\d+)/))&&(r8=+n8[1]);var L8=r8,R8=!!Object.getOwnPropertySymbols&&!a8((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&L8&&L8<41})),z8=R8&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,V8=i8.Object,$8=z8?function(e){return"symbol"==typeof e}:function(e){var t=F8("Symbol");return O8(t)&&j8(t.prototype,V8(e))},U8=i8.String,H8=function(e){try{return U8(e)}catch(e){return"Object"}},W8=i8.TypeError,q8=function(e){if(O8(e))return e;throw W8(H8(e)+" is not a function")},K8=function(e,t){var n=e[t];return null==n?void 0:q8(n)},G8=i8.TypeError,Y8=Object.defineProperty,Z8=function(e,t){try{Y8(i8,e,{value:t,configurable:!0,writable:!0})}catch(p){i8[e]=t}return t},J8=i8["__core-js_shared__"]||Z8("__core-js_shared__",{}),X8=t8((function(e){(e.exports=function(e,t){return J8[e]||(J8[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Q8=i8.Object,e5=function(e){return Q8(D8(e))},t5=y8({}.hasOwnProperty),n5=Object.hasOwn||function(e,t){return t5(e5(e),t)},r5=0,o5=Math.random(),i5=y8(1..toString),a5=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i5(++r5+o5,36)},l5=X8("wks"),u5=i8.Symbol,s5=u5&&u5.for,c5=z8?u5:u5&&u5.withoutSetter||a5,f5=function(e){if(!n5(l5,e)||!R8&&"string"!=typeof l5[e]){var t="Symbol."+e;R8&&n5(u5,e)?l5[e]=u5[e]:l5[e]=z8&&s5?s5(t):c5(t)}return l5[e]},d5=i8.TypeError,p5=f5("toPrimitive"),h5=function(e,t){if(!_8(e)||$8(e))return e;var n,r=K8(e,p5);if(r){if(void 0===t&&(t="default"),n=s8(r,e,t),!_8(n)||$8(n))return n;throw d5("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&O8(n=e.toString)&&!_8(r=s8(n,e)))return r;if(O8(n=e.valueOf)&&!_8(r=s8(n,e)))return r;if("string"!==t&&O8(n=e.toString)&&!_8(r=s8(n,e)))return r;throw G8("Can't convert object to primitive value")}(e,t)},g5=function(e){var t=h5(e,"string");return $8(t)?t:t+""},v5=i8.document,m5=_8(v5)&&_8(v5.createElement),y5=function(e){return m5?v5.createElement(e):{}},b5=!l8&&!a8((function(){return 7!=Object.defineProperty(y5("div"),"a",{get:function(){return 7}}).a})),w5=Object.getOwnPropertyDescriptor,x5={f:l8?w5:function(e,t){if(e=A8(e),t=g5(t),b5)try{return w5(e,t)}catch(e){}if(n5(e,t))return p8(!s8(d8.f,e,t),e[t])}},C5=i8.String,E5=i8.TypeError,k5=function(e){if(_8(e))return e;throw E5(C5(e)+" is not an object")},S5=i8.TypeError,D5=Object.defineProperty,A5={f:l8?D5:function(e,t,n){if(k5(e),t=g5(t),k5(n),b5)try{return D5(e,t,n)}catch(e){}if("get"in n||"set"in n)throw S5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},O5=l8?function(e,t,n){return A5.f(e,t,p8(1,n))}:function(e,t,n){return e[t]=n,e},_5=y8(Function.toString);O8(J8.inspectSource)||(J8.inspectSource=function(e){return _5(e)});var B5,F5,j5,P5=J8.inspectSource,T5=i8.WeakMap,N5=O8(T5)&&/native code/.test(P5(T5)),I5=X8("keys"),M5=function(e){return I5[e]||(I5[e]=a5(e))},L5={},R5=i8.TypeError,z5=i8.WeakMap;if(N5||J8.state){var V5=J8.state||(J8.state=new z5),$5=y8(V5.get),U5=y8(V5.has),H5=y8(V5.set);B5=function(e,t){if(U5(V5,e))throw new R5("Object already initialized");return t.facade=e,H5(V5,e,t),t},F5=function(e){return $5(V5,e)||{}},j5=function(e){return U5(V5,e)}}else{var W5=M5("state");L5[W5]=!0,B5=function(e,t){if(n5(e,W5))throw new R5("Object already initialized");return t.facade=e,O5(e,W5,t),t},F5=function(e){return n5(e,W5)?e[W5]:{}},j5=function(e){return n5(e,W5)}}var q5={set:B5,get:F5,has:j5,enforce:function(e){return j5(e)?F5(e):B5(e,{})},getterFor:function(e){return function(t){var n;if(!_8(t)||(n=F5(t)).type!==e)throw R5("Incompatible receiver, "+e+" required");return n}}},K5=Function.prototype,G5=l8&&Object.getOwnPropertyDescriptor,Y5=n5(K5,"name"),Z5={EXISTS:Y5,PROPER:Y5&&"something"===function(){}.name,CONFIGURABLE:Y5&&(!l8||l8&&G5(K5,"name").configurable)},J5=t8((function(e){var t=Z5.CONFIGURABLE,n=q5.get,r=q5.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;O8(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!n5(i,"name")||t&&i.name!==f)&&O5(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==i8?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:O5(e,n,i)):s?e[n]=i:Z8(n,i)})(Function.prototype,"toString",(function(){return O8(this)&&n(this).source||P5(this)}))})),X5=Math.ceil,Q5=Math.floor,e7=function(e){var t=+e;return t!=t||0===t?0:(t>0?Q5:X5)(t)},t7=Math.max,n7=Math.min,r7=function(e,t){var n=e7(e);return n<0?t7(n+t,0):n7(n,t)},o7=Math.min,i7=function(e){return e>0?o7(e7(e),9007199254740991):0},a7=function(e){return i7(e.length)},l7=function(e){return function(t,n,r){var o,i=A8(t),a=a7(i),l=r7(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},u7={includes:l7(!0),indexOf:l7(!1)}.indexOf,s7=y8([].push),c7=function(e,t){var n,r=A8(e),o=0,i=[];for(n in r)!n5(L5,n)&&n5(r,n)&&s7(i,n);for(;t.length>o;)n5(r,n=t[o++])&&(~u7(i,n)||s7(i,n));return i},f7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],d7=f7.concat("length","prototype"),p7={f:Object.getOwnPropertyNames||function(e){return c7(e,d7)}},h7={f:Object.getOwnPropertySymbols},g7=y8([].concat),v7=F8("Reflect","ownKeys")||function(e){var t=p7.f(k5(e)),n=h7.f;return n?g7(t,n(e)):t},m7=function(e,t){for(var n=v7(t),r=A5.f,o=x5.f,i=0;i<n.length;i++){var a=n[i];n5(e,a)||r(e,a,o(t,a))}},y7=/#|\.prototype\./,b7=function(e,t){var n=x7[w7(e)];return n==E7||n!=C7&&(O8(t)?a8(t):!!t)},w7=b7.normalize=function(e){return String(e).replace(y7,".").toLowerCase()},x7=b7.data={},C7=b7.NATIVE="N",E7=b7.POLYFILL="P",k7=b7,S7=x5.f,D7=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?i8:s?i8[l]||Z8(l,{}):(i8[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=S7(n,r))&&a.value:n[r],!k7(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;m7(i,o)}(e.sham||o&&o.sham)&&O5(i,"sham",!0),J5(n,r,i,e)}},A7=Array.isArray||function(e){return"Array"==x8(e)},O7={};O7[f5("toStringTag")]="z";var _7,B7="[object z]"===String(O7),F7=f5("toStringTag"),j7=i8.Object,P7="Arguments"==x8(function(){return arguments}()),T7=B7?x8:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=j7(e),F7))?n:P7?x8(t):"Object"==(r=x8(t))&&O8(t.callee)?"Arguments":r},N7=function(){},I7=[],M7=F8("Reflect","construct"),L7=/^\s*(?:class|function)\b/,R7=y8(L7.exec),z7=!L7.exec(N7),V7=function(e){if(!O8(e))return!1;try{return M7(N7,I7,e),!0}catch(e){return!1}},$7=!M7||a8((function(){var e;return V7(V7.call)||!V7(Object)||!V7((function(){e=!0}))||e}))?function(e){if(!O8(e))return!1;switch(T7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return z7||!!R7(L7,P5(e))}:V7,U7=function(e,t,n){var r=g5(t);r in e?A5.f(e,r,p8(0,n)):e[r]=n},H7=f5("species"),W7=y8([].slice),q7=(_7="slice",L8>=51||!a8((function(){var e=[];return(e.constructor={})[H7]=function(){return{foo:1}},1!==e[_7](Boolean).foo}))),K7=f5("species"),G7=i8.Array,Y7=Math.max;D7({target:"Array",proto:!0,forced:!q7},{slice:function(e,t){var n,r,o,i=A8(this),a=a7(i),l=r7(e,a),u=r7(void 0===t?a:t,a);if(A7(i)&&(n=i.constructor,($7(n)&&(n===G7||A7(n.prototype))||_8(n)&&null===(n=n[K7]))&&(n=void 0),n===G7||void 0===n))return W7(i,l,u);for(r=new(void 0===n?G7:n)(Y7(u-l,0)),o=0;l<u;l++,o++)l in i&&U7(r,o,i[l]);return r.length=o,r}});var Z7=B7?{}.toString:function(){return"[object "+T7(this)+"]"};B7||J5(Object.prototype,"toString",Z7,{unsafe:!0});var J7,X7=i8.String,Q7=function(e){if("Symbol"===T7(e))throw TypeError("Cannot convert a Symbol value to a string");return X7(e)},e9=function(){var e=k5(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},t9=i8.RegExp,n9=a8((function(){var e=t9("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),r9=n9||a8((function(){return!t9("a","y").sticky})),o9={BROKEN_CARET:n9||a8((function(){var e=t9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:r9,UNSUPPORTED_Y:n9},i9=Object.keys||function(e){return c7(e,f7)},a9=l8?Object.defineProperties:function(e,t){k5(e);for(var n,r=A8(t),o=i9(t),i=o.length,a=0;i>a;)A5.f(e,n=o[a++],r[n]);return e},l9=F8("document","documentElement"),u9=M5("IE_PROTO"),s9=function(){},c9=function(e){return"<script>"+e+"<\/script>"},f9=function(e){e.write(c9("")),e.close();var t=e.parentWindow.Object;return e=null,t},d9=function(){try{J7=new ActiveXObject("htmlfile")}catch(e){}var e,t;d9="undefined"!=typeof document?document.domain&&J7?f9(J7):((t=y5("iframe")).style.display="none",l9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(c9("document.F=Object")),e.close(),e.F):f9(J7);for(var n=f7.length;n--;)delete d9.prototype[f7[n]];return d9()};L5[u9]=!0;var p9,h9,g9=Object.create||function(e,t){var n;return null!==e?(s9.prototype=k5(e),n=new s9,s9.prototype=null,n[u9]=e):n=d9(),void 0===t?n:a9(n,t)},v9=i8.RegExp,m9=a8((function(){var e=v9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),y9=i8.RegExp,b9=a8((function(){var e=y9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),w9=q5.get,x9=X8("native-string-replace",String.prototype.replace),C9=RegExp.prototype.exec,E9=C9,k9=y8("".charAt),S9=y8("".indexOf),D9=y8("".replace),A9=y8("".slice),O9=(h9=/b*/g,s8(C9,p9=/a/,"a"),s8(C9,h9,"a"),0!==p9.lastIndex||0!==h9.lastIndex),_9=o9.BROKEN_CARET,B9=void 0!==/()??/.exec("")[1];(O9||B9||_9||m9||b9)&&(E9=function(e){var t,n,r,o,i,a,l,u=this,s=w9(u),c=Q7(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=s8(E9,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=_9&&u.sticky,h=s8(e9,u),g=u.source,v=0,m=c;if(p&&(h=D9(h,"y",""),-1===S9(h,"g")&&(h+="g"),m=A9(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==k9(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),B9&&(n=new RegExp("^"+g+"$(?!\\s)",h)),O9&&(r=u.lastIndex),o=s8(C9,p?n:u,m),p?o?(o.input=A9(o.input,v),o[0]=A9(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:O9&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),B9&&o&&o.length>1&&s8(x9,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=g9(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var F9=E9;D7({target:"RegExp",proto:!0,forced:/./.exec!==F9},{exec:F9});var j9=Function.prototype,P9=j9.apply,T9=j9.bind,N9=j9.call,I9="object"==typeof Reflect&&Reflect.apply||(T9?N9.bind(P9):function(){return N9.apply(P9,arguments)}),M9=f5("species"),L9=RegExp.prototype,R9=f5("match"),z9=i8.TypeError,V9=f5("species"),$9=function(e,t){var n,r=k5(e).constructor;return void 0===r||null==(n=k5(r)[V9])?t:function(e){if($7(e))return e;throw z9(H8(e)+" is not a constructor")}(n)},U9=y8("".charAt),H9=y8("".charCodeAt),W9=y8("".slice),q9=function(e){return function(t,n){var r,o,i=Q7(D8(t)),a=e7(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=H9(i,a))<55296||r>56319||a+1===l||(o=H9(i,a+1))<56320||o>57343?e?U9(i,a):r:e?W9(i,a,a+2):o-56320+(r-55296<<10)+65536}},K9={codeAt:q9(!1),charAt:q9(!0)},G9=K9.charAt,Y9=function(e,t,n){return t+(n?G9(e,t).length:1)},Z9=i8.Array,J9=Math.max,X9=function(e,t,n){for(var r=a7(e),o=r7(t,r),i=r7(void 0===n?r:n,r),a=Z9(J9(i-o,0)),l=0;o<i;o++,l++)U7(a,l,e[o]);return a.length=l,a},Q9=i8.TypeError,eee=function(e,t){var n=e.exec;if(O8(n)){var r=s8(n,e,t);return null!==r&&k5(r),r}if("RegExp"===x8(e))return s8(F9,e,t);throw Q9("RegExp#exec called on incompatible receiver")},tee=o9.UNSUPPORTED_Y,nee=Math.min,ree=[].push,oee=y8(/./.exec),iee=y8(ree),aee=y8("".slice);!function(e,t,n,r){var o=f5(e),i=!a8((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!a8((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[M9]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=y8(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=y8(e),u=t.exec;return u===F9||u===L9.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));J5(String.prototype,e,u[0]),J5(L9,o,u[1])}r&&O5(L9[o],"sham",!0)}("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Q7(D8(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!_8(r=e)||!(void 0!==(o=r[R9])?o:"RegExp"==x8(r)))return s8(t,i,e,a);for(var l,u,s,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(l=s8(F9,p,i))&&!((u=p.lastIndex)>d&&(iee(c,aee(i,d,l.index)),l.length>1&&l.index<i.length&&I9(ree,c,X9(l,1)),s=l[0].length,d=u,c.length>=a));)p.lastIndex===l.index&&p.lastIndex++;return d===i.length?!s&&oee(p,"")||iee(c,""):iee(c,aee(i,d)),c.length>a?X9(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:s8(t,this,e,n)}:t,[function(t,n){var o=D8(this),i=null==t?void 0:K8(t,e);return i?s8(i,t,o,n):s8(r,Q7(o),t,n)},function(e,o){var i=k5(this),a=Q7(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var u=$9(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(tee?"g":"y"),f=new u(tee?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===eee(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=tee?0:h;var v,m=eee(f,tee?aee(a,h):a);if(null===m||(v=nee(i7(f.lastIndex+(tee?h:0)),a.length))===p)h=Y9(a,h,s);else{if(iee(g,aee(a,p,h)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(iee(g,m[y]),g.length===d)return g;h=p=v}}return iee(g,aee(a,p)),g}]}),!!a8((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),tee);
|
|
106
|
+
/*! *****************************************************************************
|
|
107
|
+
Copyright (c) Microsoft Corporation.
|
|
108
|
+
|
|
109
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
110
|
+
purpose with or without fee is hereby granted.
|
|
111
|
+
|
|
112
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
113
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
114
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
115
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
116
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
117
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
118
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
119
|
+
***************************************************************************** */
|
|
120
|
+
var lee=function(){return lee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lee.apply(this,arguments)};function uee(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}function see(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function cee(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function fee(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=cee(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}var dee=f5("unscopables"),pee=Array.prototype;null==pee[dee]&&A5.f(pee,dee,{configurable:!0,value:g9(null)});var hee,gee,vee,mee=function(e){pee[dee][e]=!0},yee={},bee=!a8((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),wee=M5("IE_PROTO"),xee=i8.Object,Cee=xee.prototype,Eee=bee?xee.getPrototypeOf:function(e){var t=e5(e);if(n5(t,wee))return t[wee];var n=t.constructor;return O8(n)&&t instanceof n?n.prototype:t instanceof xee?Cee:null},kee=f5("iterator"),See=!1;[].keys&&("next"in(vee=[].keys())?(gee=Eee(Eee(vee)))!==Object.prototype&&(hee=gee):See=!0);var Dee=null==hee||a8((function(){var e={};return hee[kee].call(e)!==e}));Dee&&(hee={}),O8(hee[kee])||J5(hee,kee,(function(){return this}));var Aee={IteratorPrototype:hee,BUGGY_SAFARI_ITERATORS:See},Oee=A5.f,_ee=f5("toStringTag"),Bee=function(e,t,n){e&&!n5(e=n?e:e.prototype,_ee)&&Oee(e,_ee,{configurable:!0,value:t})},Fee=Aee.IteratorPrototype,jee=function(){return this},Pee=i8.String,Tee=i8.TypeError,Nee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=y8(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return k5(n),function(e){if("object"==typeof e||O8(e))return e;throw Tee("Can't set "+Pee(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Iee=Z5.PROPER,Mee=Z5.CONFIGURABLE,Lee=Aee.IteratorPrototype,Ree=Aee.BUGGY_SAFARI_ITERATORS,zee=f5("iterator"),Vee=function(){return this},$ee=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=g9(Fee,{next:p8(+!r,n)}),Bee(e,o,!1),yee[o]=jee}(n,t,r);var l,u,s,c=function(e){if(e===o&&g)return g;if(!Ree&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[zee]||p["@@iterator"]||o&&p[o],g=!Ree&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(l=Eee(v.call(new e)))!==Object.prototype&&l.next&&(Eee(l)!==Lee&&(Nee?Nee(l,Lee):O8(l[zee])||J5(l,zee,Vee)),Bee(l,f,!0)),Iee&&"values"==o&&h&&"values"!==h.name&&(Mee?O5(p,"name","values"):(d=!0,g=function(){return s8(h,this)})),o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(s in u)(Ree||d||!(s in p))&&J5(p,s,u[s]);else D7({target:t,proto:!0,forced:Ree||d},u);return p[zee]!==g&&J5(p,zee,g,{name:o}),yee[t]=g,u},Uee=q5.set,Hee=q5.getterFor("Array Iterator"),Wee=$ee(Array,"Array",(function(e,t){Uee(this,{type:"Array Iterator",target:A8(e),index:0,kind:t})}),(function(){var e=Hee(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");yee.Arguments=yee.Array,mee("keys"),mee("values"),mee("entries");var qee=K9.charAt,Kee=q5.set,Gee=q5.getterFor("String Iterator");$ee(String,"String",(function(e){Kee(this,{type:"String Iterator",string:Q7(e),index:0})}),(function(){var e,t=Gee(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=qee(n,r),t.index+=e.length,{value:e,done:!1})}));var Yee=function(e,t,n){for(var r in t)J5(e,r,t[r],n);return e},Zee=p7.f,Jee="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xee={f:function(e){return Jee&&"Window"==x8(e)?function(e){try{return Zee(e)}catch(e){return X9(Jee)}}(e):Zee(A8(e))}},Qee=a8((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ete=Object.isExtensible,tte=a8((function(){ete(1)}))||Qee?function(e){return!!_8(e)&&(!Qee||"ArrayBuffer"!=x8(e))&&(!ete||ete(e))}:ete,nte=!a8((function(){return Object.isExtensible(Object.preventExtensions({}))})),rte=t8((function(e){var t=A5.f,n=!1,r=a5("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=p7.f,t=y8([].splice),o={};o[r]=1,e(o).length&&(p7.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},D7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Xee.f}))},fastKey:function(e,t){if(!_8(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!n5(e,r)){if(!tte(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!n5(e,r)){if(!tte(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return nte&&n&&tte(e)&&!n5(e,r)&&i(e),e}};L5[r]=!0})),ote=y8(y8.bind),ite=function(e,t){return q8(e),void 0===t?e:ote?ote(e,t):function(){return e.apply(t,arguments)}},ate=f5("iterator"),lte=Array.prototype,ute=f5("iterator"),ste=function(e){if(null!=e)return K8(e,ute)||K8(e,"@@iterator")||yee[T7(e)]},cte=i8.TypeError,fte=function(e,t,n){var r,o;k5(e);try{if(!(r=K8(e,"return"))){if("throw"===t)throw n;return n}r=s8(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return k5(r),n},dte=i8.TypeError,pte=function(e,t){this.stopped=e,this.result=t},hte=pte.prototype,gte=function(e,t,n){var r,o,i,a,l,u,s,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=ite(t,f),v=function(e){return r&&fte(r,"normal",e),new pte(!0,e)},m=function(e){return d?(k5(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=ste(e)))throw dte(H8(e)+" is not iterable");if(void 0!==(c=o)&&(yee.Array===c||lte[ate]===c)){for(i=0,a=a7(e);a>i;i++)if((l=m(e[i]))&&j8(hte,l))return l;return new pte(!1)}r=function(e,t){var n=arguments.length<2?ste(e):t;if(q8(n))return k5(s8(n,e));throw cte(H8(e)+" is not iterable")}(e,o)}for(u=r.next;!(s=s8(u,r)).done;){try{l=m(s.value)}catch(e){fte(r,"throw",e)}if("object"==typeof l&&l&&j8(hte,l))return l}return new pte(!1)},vte=i8.TypeError,mte=function(e,t){if(j8(t,e))return e;throw vte("Incorrect invocation")},yte=f5("iterator"),bte=!1;try{var wte=0,xte={next:function(){return{done:!!wte++}},return:function(){bte=!0}};xte[yte]=function(){return this},Array.from(xte,(function(){throw 2}))}catch(h){}var Cte=function(e,t){if(!t&&!bte)return!1;var n=!1;try{var r={};r[yte]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Ete=f5("species"),kte=i8.Array,Ste=function(e,t){return new(function(e){var t;return A7(e)&&(t=e.constructor,($7(t)&&(t===kte||A7(t.prototype))||_8(t)&&null===(t=t[Ete]))&&(t=void 0)),void 0===t?kte:t}(e))(0===t?0:t)},Dte=y8([].push),Ate=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=e5(u),g=k8(h),v=ite(s,c),m=a7(g),y=0,b=f||Ste,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Dte(w,d)}else switch(e){case 4:return!1;case 7:Dte(w,d)}return i?-1:r||o?o:w}},Ote={forEach:Ate(0),map:Ate(1),filter:Ate(2),some:Ate(3),every:Ate(4),find:Ate(5),findIndex:Ate(6),filterReject:Ate(7)},_te=rte.getWeakData,Bte=q5.set,Fte=q5.getterFor,jte=Ote.find,Pte=Ote.findIndex,Tte=y8([].splice),Nte=0,Ite=function(e){return e.frozen||(e.frozen=new Mte)},Mte=function(){this.entries=[]},Lte=function(e,t){return jte(e.entries,(function(e){return e[0]===t}))};Mte.prototype={get:function(e){var t=Lte(this,e);if(t)return t[1]},has:function(e){return!!Lte(this,e)},set:function(e,t){var n=Lte(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Pte(this.entries,(function(t){return t[0]===e}));return~t&&Tte(this.entries,t,1),!!~t}};var Rte,zte={getConstructor:function(e,t,n,r){var o=e((function(e,o){mte(e,i),Bte(e,{type:t,id:Nte++,frozen:void 0}),null!=o&>e(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Fte(t),l=function(e,t,n){var r=a(e),o=_te(k5(t),!0);return!0===o?Ite(r).set(t,n):o[r.id]=n,e};return Yee(i,{delete:function(e){var t=a(this);if(!_8(e))return!1;var n=_te(e);return!0===n?Ite(t).delete(e):n&&n5(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!_8(e))return!1;var n=_te(e);return!0===n?Ite(t).has(e):n&&n5(n,t.id)}}),Yee(i,n?{get:function(e){var t=a(this);if(_8(e)){var n=_te(e);return!0===n?Ite(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return l(this,e,t)}}:{add:function(e){return l(this,e,!0)}}),o}},Vte=q5.enforce,$te=!i8.ActiveXObject&&"ActiveXObject"in i8,Ute=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Hte=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=i8[e],l=a&&a.prototype,u=a,s={},c=function(e){var t=y8(l[e]);J5(l,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!_8(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!_8(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!_8(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(k7(e,!O8(a)||!(o||l.forEach&&!a8((function(){(new a).entries().next()})))))u=n.getConstructor(t,e,r,i),rte.enable();else if(k7(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=a8((function(){f.has(1)})),h=Cte((function(e){new a(e)})),g=!o&&a8((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((u=t((function(e,t){mte(e,l);var n=function(e,t,n){var r,o;return Nee&&O8(r=t.constructor)&&r!==n&&_8(o=r.prototype)&&o!==n.prototype&&Nee(e,o),e}(new a,e,u);return null!=t&>e(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=l,l.constructor=u),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&l.clear&&delete l.clear}return s[e]=u,D7({global:!0,forced:u!=a},s),Bee(u,e),o||n.setStrong(u,e,r),u}("WeakMap",Ute,zte);if(N5&&$te){Rte=zte.getConstructor(Ute,"WeakMap",!0),rte.enable();var Wte=Hte.prototype,qte=y8(Wte.delete),Kte=y8(Wte.has),Gte=y8(Wte.get),Yte=y8(Wte.set);Yee(Wte,{delete:function(e){if(_8(e)&&!tte(e)){var t=Vte(this);return t.frozen||(t.frozen=new Rte),qte(this,e)||t.frozen.delete(e)}return qte(this,e)},has:function(e){if(_8(e)&&!tte(e)){var t=Vte(this);return t.frozen||(t.frozen=new Rte),Kte(this,e)||t.frozen.has(e)}return Kte(this,e)},get:function(e){if(_8(e)&&!tte(e)){var t=Vte(this);return t.frozen||(t.frozen=new Rte),Kte(this,e)?Gte(this,e):t.frozen.get(e)}return Gte(this,e)},set:function(e,t){if(_8(e)&&!tte(e)){var n=Vte(this);n.frozen||(n.frozen=new Rte),Kte(this,e)?Yte(this,e,t):n.frozen.set(e,t)}else Yte(this,e,t);return this}})}var Zte={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Jte=y5("span").classList,Xte=Jte&&Jte.constructor&&Jte.constructor.prototype,Qte=Xte===Object.prototype?void 0:Xte,ene=f5("iterator"),tne=f5("toStringTag"),nne=Wee.values,rne=function(e,t){if(e){if(e[ene]!==nne)try{O5(e,ene,nne)}catch(t){e[ene]=nne}if(e[tne]||O5(e,tne,t),Zte[t])for(var n in Wee)if(e[n]!==Wee[n])try{O5(e,n,Wee[n])}catch(t){e[n]=Wee[n]}}};for(var one in Zte)rne(i8[one]&&i8[one].prototype,one);rne(Qte,"DOMTokenList");var ine=Z5.EXISTS,ane=A5.f,lne=Function.prototype,une=y8(lne.toString),sne=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,cne=y8(sne.exec);l8&&!ine&&ane(lne,"name",{configurable:!0,get:function(){try{return cne(sne,une(this))[1]}catch(h){return""}}});var fne=function(e,t){var n=[][e];return!!n&&a8((function(){n.call(null,t||function(){throw 1},1)}))},dne=Ote.forEach,pne=fne("forEach")?[].forEach:function(e){return dne(this,e,arguments.length>1?arguments[1]:void 0)},hne=function(e){if(e&&e.forEach!==pne)try{O5(e,"forEach",pne)}catch(Sse){e.forEach=pne}};for(var gne in Zte)Zte[gne]&&hne(i8[gne]&&i8[gne].prototype);hne(Qte);var vne,mne,yne,bne,wne=i8.Promise,xne=f5("species"),Cne=/(?:ipad|iphone|ipod).*applewebkit/i.test(P8),Ene="process"==x8(i8.process),kne=i8.setImmediate,Sne=i8.clearImmediate,Dne=i8.process,Ane=i8.Dispatch,One=i8.Function,_ne=i8.MessageChannel,Bne=i8.String,Fne=0,jne={};try{vne=i8.location}catch(h){}var Pne=function(e){if(n5(jne,e)){var t=jne[e];delete jne[e],t()}},Tne=function(e){return function(){Pne(e)}},Nne=function(e){Pne(e.data)},Ine=function(e){i8.postMessage(Bne(e),vne.protocol+"//"+vne.host)};kne&&Sne||(kne=function(e){var t=W7(arguments,1);return jne[++Fne]=function(){I9(O8(e)?e:One(e),void 0,t)},mne(Fne),Fne},Sne=function(e){delete jne[e]},Ene?mne=function(e){Dne.nextTick(Tne(e))}:Ane&&Ane.now?mne=function(e){Ane.now(Tne(e))}:_ne&&!Cne?(bne=(yne=new _ne).port2,yne.port1.onmessage=Nne,mne=ite(bne.postMessage,bne)):i8.addEventListener&&O8(i8.postMessage)&&!i8.importScripts&&vne&&"file:"!==vne.protocol&&!a8(Ine)?(mne=Ine,i8.addEventListener("message",Nne,!1)):mne="onreadystatechange"in y5("script")?function(e){l9.appendChild(y5("script")).onreadystatechange=function(){l9.removeChild(this),Pne(e)}}:function(e){setTimeout(Tne(e),0)});var Mne,Lne,Rne,zne,Vne,$ne,Une,Hne,Wne={set:kne,clear:Sne},qne=/ipad|iphone|ipod/i.test(P8)&&void 0!==i8.Pebble,Kne=/web0s(?!.*chrome)/i.test(P8),Gne=x5.f,Yne=Wne.set,Zne=i8.MutationObserver||i8.WebKitMutationObserver,Jne=i8.document,Xne=i8.process,Qne=i8.Promise,ere=Gne(i8,"queueMicrotask"),tre=ere&&ere.value;tre||(Mne=function(){var e,t;for(Ene&&(e=Xne.domain)&&e.exit();Lne;){t=Lne.fn,Lne=Lne.next;try{t()}catch(e){throw Lne?zne():Rne=void 0,e}}Rne=void 0,e&&e.enter()},Cne||Ene||Kne||!Zne||!Jne?!qne&&Qne&&Qne.resolve?((Une=Qne.resolve(void 0)).constructor=Qne,Hne=ite(Une.then,Une),zne=function(){Hne(Mne)}):Ene?zne=function(){Xne.nextTick(Mne)}:(Yne=ite(Yne,i8),zne=function(){Yne(Mne)}):(Vne=!0,$ne=Jne.createTextNode(""),new Zne(Mne).observe($ne,{characterData:!0}),zne=function(){$ne.data=Vne=!Vne}));var nre,rre,ore,ire,are=tre||function(e){var t={fn:e,next:void 0};Rne&&(Rne.next=t),Lne||(Lne=t,zne()),Rne=t},lre=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=q8(t),this.reject=q8(n)},ure={f:function(e){return new lre(e)}},sre=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},cre="object"==typeof window,fre=Wne.set,dre=f5("species"),pre="Promise",hre=q5.getterFor(pre),gre=q5.set,vre=q5.getterFor(pre),mre=wne&&wne.prototype,yre=wne,bre=mre,wre=i8.TypeError,xre=i8.document,Cre=i8.process,Ere=ure.f,kre=Ere,Sre=!!(xre&&xre.createEvent&&i8.dispatchEvent),Dre=O8(i8.PromiseRejectionEvent),Are=!1,Ore=k7(pre,(function(){var e=P5(yre),t=e!==String(yre);if(!t&&66===L8)return!0;if(L8>=51&&/native code/.test(e))return!1;var n=new yre((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[dre]=r,!(Are=n.then((function(){}))instanceof r)||!t&&cre&&!Dre})),_re=Ore||!Cte((function(e){yre.all(e).catch((function(){}))})),Bre=function(e){var t;return!(!_8(e)||!O8(t=e.then))&&t},Fre=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;are((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,l,u,s=n[i++],c=o?s.ok:s.fail,f=s.resolve,d=s.reject,p=s.domain;try{c?(o||(2===e.rejection&&Nre(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),u=!0)),a===s.promise?d(wre("Promise-chain cycle")):(l=Bre(a))?s8(l,a,f,d):f(a)):d(r)}catch(e){p&&!u&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Pre(e)}))}},jre=function(e,t,n){var r,o;Sre?((r=xre.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),i8.dispatchEvent(r)):r={promise:t,reason:n},!Dre&&(o=i8["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=i8.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Pre=function(e){s8(fre,i8,(function(){var t,n=e.facade,r=e.value;if(Tre(e)&&(t=sre((function(){Ene?Cre.emit("unhandledRejection",r,n):jre("unhandledrejection",n,r)})),e.rejection=Ene||Tre(e)?2:1,t.error))throw t.value}))},Tre=function(e){return 1!==e.rejection&&!e.parent},Nre=function(e){s8(fre,i8,(function(){var t=e.facade;Ene?Cre.emit("rejectionHandled",t):jre("rejectionhandled",t,e.value)}))},Ire=function(e,t,n){return function(r){e(t,r,n)}},Mre=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Fre(e,!0))},Lre=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw wre("Promise can't be resolved itself");var r=Bre(t);r?are((function(){var n={done:!1};try{s8(r,t,Ire(Lre,n,e),Ire(Mre,n,e))}catch(t){Mre(n,t,e)}})):(e.value=t,e.state=1,Fre(e,!1))}catch(t){Mre({done:!1},t,e)}}};if(Ore&&(bre=(yre=function(e){mte(this,bre),q8(e),s8(nre,this);var t=hre(this);try{e(Ire(Lre,t),Ire(Mre,t))}catch(e){Mre(t,e)}}).prototype,(nre=function(e){gre(this,{type:pre,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Yee(bre,{then:function(e,t){var n=vre(this),r=n.reactions,o=Ere($9(this,yre));return o.ok=!O8(e)||e,o.fail=O8(t)&&t,o.domain=Ene?Cre.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Fre(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),rre=function(){var e=new nre,t=hre(e);this.promise=e,this.resolve=Ire(Lre,t),this.reject=Ire(Mre,t)},ure.f=Ere=function(e){return e===yre||e===ore?new rre(e):kre(e)},O8(wne)&&mre!==Object.prototype)){ire=mre.then,Are||(J5(mre,"then",(function(e,t){var n=this;return new yre((function(e,t){s8(ire,n,e,t)})).then(e,t)}),{unsafe:!0}),J5(mre,"catch",bre.catch,{unsafe:!0}));try{delete mre.constructor}catch(h){}Nee&&Nee(mre,bre)}D7({global:!0,wrap:!0,forced:Ore},{Promise:yre}),Bee(yre,pre,!1),function(e){var t=F8(e),n=A5.f;l8&&t&&!t[xne]&&n(t,xne,{configurable:!0,get:function(){return this}})}(pre),ore=F8(pre),D7({target:pre,stat:!0,forced:Ore},{reject:function(e){var t=Ere(this);return s8(t.reject,void 0,e),t.promise}}),D7({target:pre,stat:!0,forced:Ore},{resolve:function(e){return function(e,t){if(k5(e),_8(t)&&t.constructor===e)return t;var n=ure.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),D7({target:pre,stat:!0,forced:_re},{all:function(e){var t=this,n=Ere(t),r=n.resolve,o=n.reject,i=sre((function(){var n=q8(t.resolve),i=[],a=0,l=1;gte(e,(function(e){var u=a++,s=!1;l++,s8(n,t,e).then((function(e){s||(s=!0,i[u]=e,--l||r(i))}),o)})),--l||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Ere(t),r=n.reject,o=sre((function(){var o=q8(t.resolve);gte(e,(function(e){s8(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Rre=Z5.PROPER,zre=RegExp.prototype,Vre=zre.toString,$re=y8(e9),Ure=a8((function(){return"/a/b"!=Vre.call({source:"a",flags:"b"})})),Hre=Rre&&"toString"!=Vre.name;(Ure||Hre)&&J5(RegExp.prototype,"toString",(function(){var e=k5(this),t=Q7(e.source),n=e.flags;return"/"+t+"/"+Q7(void 0===n&&j8(zre,e)&&!("flags"in zre)?$re(e):n)}),{unsafe:!0});var Wre=new WeakMap;function qre(e){return e.getMenuConfig("uploadImage")}function Kre(e,t){return uee(this,void 0,void 0,(function(){return see(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;kT(e,i,t.name,a),n("ok")}}}))]}))}))}function Gre(e,t){return uee(this,void 0,void 0,(function(){var n,r,o,i;return see(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Wre.get(e);if(null!=t)return t;var n=qre(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,l=n.onError;return t=US(lee(lee({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)a(n,(function(t,n,r){return kT(e,t,n,r)}));else{var o=n.errno,l=void 0===o?1:o,u=n.data,s=void 0===u?{}:u;if(0!==l)return console.error("'"+t.name+"' upload failed",n),void i(t,n);if(Array.isArray(s))s.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;kT(e,r,i,void 0===a?"":a)}));else{var c=s.url,f=void 0===c?"":c,d=s.alt,p=void 0===d?"":d,h=s.href;kT(e,f,p,void 0===h?"":h)}r(t,n)}},onError:function(e,t,n){var r=e.name;console.error("'"+r+" upload error",t,n),l&&l(e,t,n)}})),Wre.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function Yre(e,t){var n,r;return uee(this,void 0,void 0,(function(){var o,i,a,l,u,s,c,f,d;return see(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=qre(e),a=i.customUpload,l=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),u=fee(o),p.label=2;case 2:return[4,u.next()];case 3:return(s=p.sent()).done?[3,10]:(c=s.value,f=c.size,l&&f<=l?[4,Kre(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return kT(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Gre(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),s&&!s.done&&(r=u.return)?[4,r.call(u)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var Zre=y8([].join),Jre=k8!=Object,Xre=fne("join",",");D7({target:"Array",proto:!0,forced:Jre||!Xre},{join:function(e){return Zre(A8(this),void 0===e?",":e)}}),jo&&(co.fn.append=jo),bo&&(co.fn.on=bo),Lo&&(co.fn.remove=Lo),yo&&(co.fn.val=yo),$o&&(co.fn.click=$o),ko&&(co.fn.hide=ko);var Qre=function(){function e(){this.title=ID("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return DT(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return kT(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var l=co("body"),u=co('<input type="file" '+a+" multiple/>");u.hide(),l.append(u),u.click(),u.on("change",(function(){var t=u[0].files;Yre(e,t)}))}},e}(),eoe={menus:[{key:"uploadImage",factory:function(){return new Qre},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(DT(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?Yre(e,o):t(r)}},n}};ND("en",{highLightModule:{selectLang:"Language"}}),ND("zh-CN",{highLightModule:{selectLang:"选择语言"}});var toe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function noe(e){var t={exports:{}};return e(t,t.exports),t.exports}var roe,ooe,ioe=function(e){return e&&e.Math==Math&&e},aoe=ioe("object"==typeof globalThis&&globalThis)||ioe("object"==typeof window&&window)||ioe("object"==typeof self&&self)||ioe("object"==typeof toe&&toe)||function(){return this}()||Function("return this")(),loe=Object.defineProperty,uoe=function(e,t){try{loe(aoe,e,{value:t,configurable:!0,writable:!0})}catch(p){aoe[e]=t}return t},soe=aoe["__core-js_shared__"]||uoe("__core-js_shared__",{}),coe=noe((function(e){(e.exports=function(e,t){return soe[e]||(soe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),foe=Function.prototype,doe=foe.bind,poe=foe.call,hoe=doe&&doe.bind(poe),goe=doe?function(e){return e&&hoe(poe,e)}:function(e){return e&&function(){return poe.apply(e,arguments)}},voe=aoe.TypeError,moe=function(e){if(null==e)throw voe("Can't call method on "+e);return e},yoe=aoe.Object,boe=function(e){return yoe(moe(e))},woe=goe({}.hasOwnProperty),xoe=Object.hasOwn||function(e,t){return woe(boe(e),t)},Coe=0,Eoe=Math.random(),koe=goe(1..toString),Soe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+koe(++Coe+Eoe,36)},Doe=function(e){return"function"==typeof e},Aoe=function(e){return Doe(e)?e:void 0},Ooe=function(e,t){return arguments.length<2?Aoe(aoe[e]):aoe[e]&&aoe[e][t]},_oe=Ooe("navigator","userAgent")||"",Boe=aoe.process,Foe=aoe.Deno,joe=Boe&&Boe.versions||Foe&&Foe.version,Poe=joe&&joe.v8;Poe&&(ooe=(roe=Poe.split("."))[0]>0&&roe[0]<4?1:+(roe[0]+roe[1])),!ooe&&_oe&&(!(roe=_oe.match(/Edge\/(\d+)/))||roe[1]>=74)&&(roe=_oe.match(/Chrome\/(\d+)/))&&(ooe=+roe[1]);var Toe=ooe,Noe=function(e){try{return!!e()}catch(e){return!0}},Ioe=!!Object.getOwnPropertySymbols&&!Noe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Toe&&Toe<41})),Moe=Ioe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Loe=coe("wks"),Roe=aoe.Symbol,zoe=Roe&&Roe.for,Voe=Moe?Roe:Roe&&Roe.withoutSetter||Soe,$oe=function(e){if(!xoe(Loe,e)||!Ioe&&"string"!=typeof Loe[e]){var t="Symbol."+e;Ioe&&xoe(Roe,e)?Loe[e]=Roe[e]:Loe[e]=Moe&&zoe?zoe(t):Voe(t)}return Loe[e]},Uoe={};Uoe[$oe("toStringTag")]="z";var Hoe="[object z]"===String(Uoe),Woe=!Noe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),qoe=function(e){return"object"==typeof e?null!==e:Doe(e)},Koe=aoe.document,Goe=qoe(Koe)&&qoe(Koe.createElement),Yoe=function(e){return Goe?Koe.createElement(e):{}},Zoe=!Woe&&!Noe((function(){return 7!=Object.defineProperty(Yoe("div"),"a",{get:function(){return 7}}).a})),Joe=aoe.String,Xoe=aoe.TypeError,Qoe=function(e){if(qoe(e))return e;throw Xoe(Joe(e)+" is not an object")},eie=Function.prototype.call,tie=eie.bind?eie.bind(eie):function(){return eie.apply(eie,arguments)},nie=goe({}.isPrototypeOf),rie=aoe.Object,oie=Moe?function(e){return"symbol"==typeof e}:function(e){var t=Ooe("Symbol");return Doe(t)&&nie(t.prototype,rie(e))},iie=aoe.String,aie=function(e){try{return iie(e)}catch(e){return"Object"}},lie=aoe.TypeError,uie=function(e){if(Doe(e))return e;throw lie(aie(e)+" is not a function")},sie=function(e,t){var n=e[t];return null==n?void 0:uie(n)},cie=aoe.TypeError,fie=aoe.TypeError,die=$oe("toPrimitive"),pie=function(e,t){if(!qoe(e)||oie(e))return e;var n,r=sie(e,die);if(r){if(void 0===t&&(t="default"),n=tie(r,e,t),!qoe(n)||oie(n))return n;throw fie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Doe(n=e.toString)&&!qoe(r=tie(n,e)))return r;if(Doe(n=e.valueOf)&&!qoe(r=tie(n,e)))return r;if("string"!==t&&Doe(n=e.toString)&&!qoe(r=tie(n,e)))return r;throw cie("Can't convert object to primitive value")}(e,t)},hie=function(e){var t=pie(e,"string");return oie(t)?t:t+""},gie=aoe.TypeError,vie=Object.defineProperty,mie={f:Woe?vie:function(e,t,n){if(Qoe(e),t=hie(t),Qoe(n),Zoe)try{return vie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw gie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},yie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},bie=Woe?function(e,t,n){return mie.f(e,t,yie(1,n))}:function(e,t,n){return e[t]=n,e},wie=goe(Function.toString);Doe(soe.inspectSource)||(soe.inspectSource=function(e){return wie(e)});var xie,Cie,Eie,kie=soe.inspectSource,Sie=aoe.WeakMap,Die=Doe(Sie)&&/native code/.test(kie(Sie)),Aie=coe("keys"),Oie=function(e){return Aie[e]||(Aie[e]=Soe(e))},_ie={},Bie=aoe.TypeError,Fie=aoe.WeakMap;if(Die||soe.state){var jie=soe.state||(soe.state=new Fie),Pie=goe(jie.get),Tie=goe(jie.has),Nie=goe(jie.set);xie=function(e,t){if(Tie(jie,e))throw new Bie("Object already initialized");return t.facade=e,Nie(jie,e,t),t},Cie=function(e){return Pie(jie,e)||{}},Eie=function(e){return Tie(jie,e)}}else{var Iie=Oie("state");_ie[Iie]=!0,xie=function(e,t){if(xoe(e,Iie))throw new Bie("Object already initialized");return t.facade=e,bie(e,Iie,t),t},Cie=function(e){return xoe(e,Iie)?e[Iie]:{}},Eie=function(e){return xoe(e,Iie)}}var Mie={set:xie,get:Cie,has:Eie,enforce:function(e){return Eie(e)?Cie(e):xie(e,{})},getterFor:function(e){return function(t){var n;if(!qoe(t)||(n=Cie(t)).type!==e)throw Bie("Incompatible receiver, "+e+" required");return n}}},Lie=Function.prototype,Rie=Woe&&Object.getOwnPropertyDescriptor,zie=xoe(Lie,"name"),Vie={EXISTS:zie,PROPER:zie&&"something"===function(){}.name,CONFIGURABLE:zie&&(!Woe||Woe&&Rie(Lie,"name").configurable)},$ie=noe((function(e){var t=Vie.CONFIGURABLE,n=Mie.get,r=Mie.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Doe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xoe(i,"name")||t&&i.name!==f)&&bie(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==aoe?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:bie(e,n,i)):s?e[n]=i:uoe(n,i)})(Function.prototype,"toString",(function(){return Doe(this)&&n(this).source||kie(this)}))})),Uie=goe({}.toString),Hie=goe("".slice),Wie=function(e){return Hie(Uie(e),8,-1)},qie=$oe("toStringTag"),Kie=aoe.Object,Gie="Arguments"==Wie(function(){return arguments}()),Yie=Hoe?Wie:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Kie(e),qie))?n:Gie?Wie(t):"Object"==(r=Wie(t))&&Doe(t.callee)?"Arguments":r},Zie=Hoe?{}.toString:function(){return"[object "+Yie(this)+"]"};Hoe||$ie(Object.prototype,"toString",Zie,{unsafe:!0});var Jie,Xie,Qie={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},eae=Yoe("span").classList,tae=eae&&eae.constructor&&eae.constructor.prototype,nae=tae===Object.prototype?void 0:tae,rae=goe(goe.bind),oae=aoe.Object,iae=goe("".split),aae=Noe((function(){return!oae("z").propertyIsEnumerable(0)}))?function(e){return"String"==Wie(e)?iae(e,""):oae(e)}:oae,lae=Math.ceil,uae=Math.floor,sae=function(e){var t=+e;return t!=t||0===t?0:(t>0?uae:lae)(t)},cae=Math.min,fae=function(e){return e>0?cae(sae(e),9007199254740991):0},dae=function(e){return fae(e.length)},pae=Array.isArray||function(e){return"Array"==Wie(e)},hae=function(){},gae=[],vae=Ooe("Reflect","construct"),mae=/^\s*(?:class|function)\b/,yae=goe(mae.exec),bae=!mae.exec(hae),wae=function(e){if(!Doe(e))return!1;try{return vae(hae,gae,e),!0}catch(e){return!1}},xae=!vae||Noe((function(){var e;return wae(wae.call)||!wae(Object)||!wae((function(){e=!0}))||e}))?function(e){if(!Doe(e))return!1;switch(Yie(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bae||!!yae(mae,kie(e))}:wae,Cae=$oe("species"),Eae=aoe.Array,kae=function(e,t){return new(function(e){var t;return pae(e)&&(t=e.constructor,(xae(t)&&(t===Eae||pae(t.prototype))||qoe(t)&&null===(t=t[Cae]))&&(t=void 0)),void 0===t?Eae:t}(e))(0===t?0:t)},Sae=goe([].push),Dae=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=boe(u),g=aae(h),v=function(e,t){return uie(e),void 0===t?e:rae?rae(e,t):function(){return e.apply(t,arguments)}}(s,c),m=dae(g),y=0,b=f||kae,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Sae(w,d)}else switch(e){case 4:return!1;case 7:Sae(w,d)}return i?-1:r||o?o:w}},Aae={forEach:Dae(0),map:Dae(1),filter:Dae(2),some:Dae(3),every:Dae(4),find:Dae(5),findIndex:Dae(6),filterReject:Dae(7)}.forEach,Oae=(Xie=[]["forEach"])&&Noe((function(){Xie.call(null,Jie||function(){throw 1},1)}))?[].forEach:function(e){return Aae(this,e,arguments.length>1?arguments[1]:void 0)},_ae=function(e){if(e&&e.forEach!==Oae)try{bie(e,"forEach",Oae)}catch(h){e.forEach=Oae}};for(var Bae in Qie)Qie[Bae]&&_ae(aoe[Bae]&&aoe[Bae].prototype);_ae(nae);var Fae={}.propertyIsEnumerable,jae=Object.getOwnPropertyDescriptor,Pae={f:jae&&!Fae.call({1:2},1)?function(e){var t=jae(this,e);return!!t&&t.enumerable}:Fae},Tae=function(e){return aae(moe(e))},Nae=Object.getOwnPropertyDescriptor,Iae={f:Woe?Nae:function(e,t){if(e=Tae(e),t=hie(t),Zoe)try{return Nae(e,t)}catch(e){}if(xoe(e,t))return yie(!tie(Pae.f,e,t),e[t])}},Mae=Math.max,Lae=Math.min,Rae=function(e,t){var n=sae(e);return n<0?Mae(n+t,0):Lae(n,t)},zae=function(e){return function(t,n,r){var o,i=Tae(t),a=dae(i),l=Rae(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},Vae={includes:zae(!0),indexOf:zae(!1)}.indexOf,$ae=goe([].push),Uae=function(e,t){var n,r=Tae(e),o=0,i=[];for(n in r)!xoe(_ie,n)&&xoe(r,n)&&$ae(i,n);for(;t.length>o;)xoe(r,n=t[o++])&&(~Vae(i,n)||$ae(i,n));return i},Hae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wae=Hae.concat("length","prototype"),qae={f:Object.getOwnPropertyNames||function(e){return Uae(e,Wae)}},Kae={f:Object.getOwnPropertySymbols},Gae=goe([].concat),Yae=Ooe("Reflect","ownKeys")||function(e){var t=qae.f(Qoe(e)),n=Kae.f;return n?Gae(t,n(e)):t},Zae=function(e,t){for(var n=Yae(t),r=mie.f,o=Iae.f,i=0;i<n.length;i++){var a=n[i];xoe(e,a)||r(e,a,o(t,a))}},Jae=/#|\.prototype\./,Xae=function(e,t){var n=ele[Qae(e)];return n==nle||n!=tle&&(Doe(t)?Noe(t):!!t)},Qae=Xae.normalize=function(e){return String(e).replace(Jae,".").toLowerCase()},ele=Xae.data={},tle=Xae.NATIVE="N",nle=Xae.POLYFILL="P",rle=Xae,ole=Iae.f,ile=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?aoe:s?aoe[l]||uoe(l,{}):(aoe[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ole(n,r))&&a.value:n[r],!rle(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Zae(i,o)}(e.sham||o&&o.sham)&&bie(i,"sham",!0),$ie(n,r,i,e)}},ale=Object.keys||function(e){return Uae(e,Hae)},lle=Object.assign,ule=Object.defineProperty,sle=goe([].concat),cle=!lle||Noe((function(){if(Woe&&1!==lle({b:1},lle(ule({},"a",{enumerable:!0,get:function(){ule(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=lle({},e)[n]||ale(lle({},t)).join("")!=r}))?function(e,t){for(var n=boe(e),r=arguments.length,o=1,i=Kae.f,a=Pae.f;r>o;)for(var l,u=aae(arguments[o++]),s=i?sle(ale(u),i(u)):ale(u),c=s.length,f=0;c>f;)l=s[f++],Woe&&!tie(a,u,l)||(n[l]=u[l]);return n}:lle;ile({target:"Object",stat:!0,forced:Object.assign!==cle},{assign:cle});var fle=noe((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var l in i)if(i.hasOwnProperty(l)){if(l==t)for(var u in n)n.hasOwnProperty(u)&&(a[u]=n[u]);n.hasOwnProperty(l)||(a[l]=i[l])}var s=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===s&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],r||l);var u=t[l],s=o.util.type(u);"Object"!==s||i[a(u)]?"Array"!==s||i[a(u)]||(i[a(u)]=!0,e(u,n,l,i)):(i[a(u)]=!0,e(u,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),l=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var u=n.parentElement;u&&"pre"===u.nodeName.toLowerCase()&&(u.className=u.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var s={element:n,language:a,grammar:l,code:n.textContent};function c(e){s.highlightedCode=e,o.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,o.hooks.run("after-highlight",s),o.hooks.run("complete",s),i&&i.call(s.element)}if(o.hooks.run("before-sanity-check",s),(u=s.element.parentElement)&&"pre"===u.nodeName.toLowerCase()&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!s.code)return o.hooks.run("complete",s),void(i&&i.call(s.element));if(o.hooks.run("before-highlight",s),s.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(o.highlight(s.code,s.grammar,s.language));else c(o.util.encode(s.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new u;return s(o,o.head,e),l(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function l(e,t,n,r,u,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,m=!!g.lookbehind,y=!!g.greedy,b=g.alias;if(y&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,C=r.next,E=u;C!==t.tail&&!(f&&E>=f.reach);E+=C.value.length,C=C.next){var k=C.value;if(t.length>e.length)return;if(!(k instanceof i)){var S,D=1;if(y){if(!(S=a(x,E,e,m)))break;var A=S.index,O=S.index+S[0].length,_=E;for(_+=C.value.length;A>=_;)_+=(C=C.next).value.length;if(E=_-=C.value.length,C.value instanceof i)continue;for(var B=C;B!==t.tail&&(_<O||"string"==typeof B.value);B=B.next)D++,_+=B.value.length;D--,k=e.slice(E,_),S.index-=E}else if(!(S=a(x,0,k,m)))continue;A=S.index;var F=S[0],j=k.slice(0,A),P=k.slice(A+F.length),T=E+k.length;f&&T>f.reach&&(f.reach=T);var N=C.prev;if(j&&(N=s(t,N,j),E+=j.length),c(t,N,D),C=s(t,N,new i(d,v?o.tokenize(F,v):F,b,F)),P&&s(t,C,P),D>1){var I={cause:d+","+h,reach:T};l(e,t,n,C.prev,E,I),f&&I.reach>f.reach&&(f.reach=I.reach)}}}}}}function u(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var l="";for(var u in i.attributes)l+=" "+u+'="'+(i.attributes[u]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+l+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
121
|
+
/**
|
|
122
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
123
|
+
*
|
|
124
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
125
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
126
|
+
* @namespace
|
|
127
|
+
* @public
|
|
128
|
+
*/e.exports&&(e.exports=t),void 0!==toe&&(toe.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',a=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+i})),t.hooks.add("before-sanity-check",(function(a){var l=a.element;if(l.matches(i)){a.code="",l.setAttribute(n,r);var s=l.appendChild(document.createElement("CODE"));s.textContent="Loading…";var c=l.getAttribute("data-src"),f=a.language;if("none"===f){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];f=e[d]||d}u(s,f),u(l,f);var p=t.plugins.autoloader;p&&p.loadLanguages(f);var h=new XMLHttpRequest;h.open("GET",c,!0),h.onreadystatechange=function(){var e,r;4==h.readyState&&(h.status<400&&h.responseText?(l.setAttribute(n,o),s.textContent=h.responseText,t.highlightElement(s)):(l.setAttribute(n,"failed"),h.status>=400?s.textContent=(e=h.status,r=h.statusText,"✖ Error "+e+" while fetching file: "+r):s.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var l=!1;t.fileHighlight=function(){l||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),l=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(e,t){var n=e.className;n=n.replace(a," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},l=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var u=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(u+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(u=a(t[r-1])+u,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&l(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||l(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",l="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var s=u(i),c=RegExp(u(o+" "+i+" "+a+" "+l)),f=u(i+" "+a+" "+l),d=u(o+" "+i+" "+l),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,y]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,y]),x=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),C=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,m,y]),E={keyword:c,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,D=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:RegExp(k),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,C]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[s,v]),lookbehind:!0,inside:E},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:E},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:E},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,d,g]),inside:E}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,m]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:E}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,v,g,C,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var A=S+"|"+k,O=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[A]),_=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),B=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,F=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,_]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[B,F]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[B]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[_]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var j=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),T=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,j]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[A]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,j]);function M(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,j]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[T]),lookbehind:!0,greedy:!0,inside:M(T,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:M(I,N)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var l=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(l=(/[a-z][\w-]*/i.exec(l)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],s=/language-(.+)/.exec(i);if(s){n=s[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=l[t];return r||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism);var dle=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function ple(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+ple(t)}),0)}var hle,gle=aoe.String,vle=function(e){if("Symbol"===Yie(e))throw TypeError("Cannot convert a Symbol value to a string");return gle(e)},mle=function(){var e=Qoe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},yle=aoe.RegExp,ble=Noe((function(){var e=yle("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),wle=ble||Noe((function(){return!yle("a","y").sticky})),xle={BROKEN_CARET:ble||Noe((function(){var e=yle("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:wle,UNSUPPORTED_Y:ble},Cle=Woe?Object.defineProperties:function(e,t){Qoe(e);for(var n,r=Tae(t),o=ale(t),i=o.length,a=0;i>a;)mie.f(e,n=o[a++],r[n]);return e},Ele=Ooe("document","documentElement"),kle=Oie("IE_PROTO"),Sle=function(){},Dle=function(e){return"<script>"+e+"<\/script>"},Ale=function(e){e.write(Dle("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ole=function(){try{hle=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ole="undefined"!=typeof document?document.domain&&hle?Ale(hle):((t=Yoe("iframe")).style.display="none",Ele.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Dle("document.F=Object")),e.close(),e.F):Ale(hle);for(var n=Hae.length;n--;)delete Ole.prototype[Hae[n]];return Ole()};_ie[kle]=!0;var _le,Ble,Fle=Object.create||function(e,t){var n;return null!==e?(Sle.prototype=Qoe(e),n=new Sle,Sle.prototype=null,n[kle]=e):n=Ole(),void 0===t?n:Cle(n,t)},jle=aoe.RegExp,Ple=Noe((function(){var e=jle(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Tle=aoe.RegExp,Nle=Noe((function(){var e=Tle("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ile=Mie.get,Mle=coe("native-string-replace",String.prototype.replace),Lle=RegExp.prototype.exec,Rle=Lle,zle=goe("".charAt),Vle=goe("".indexOf),$le=goe("".replace),Ule=goe("".slice),Hle=(Ble=/b*/g,tie(Lle,_le=/a/,"a"),tie(Lle,Ble,"a"),0!==_le.lastIndex||0!==Ble.lastIndex),Wle=xle.BROKEN_CARET,qle=void 0!==/()??/.exec("")[1];(Hle||qle||Wle||Ple||Nle)&&(Rle=function(e){var t,n,r,o,i,a,l,u=this,s=Ile(u),c=vle(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=tie(Rle,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=Wle&&u.sticky,h=tie(mle,u),g=u.source,v=0,m=c;if(p&&(h=$le(h,"y",""),-1===Vle(h,"g")&&(h+="g"),m=Ule(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==zle(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),qle&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Hle&&(r=u.lastIndex),o=tie(Lle,p?n:u,m),p?o?(o.input=Ule(o.input,v),o[0]=Ule(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Hle&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),qle&&o&&o.length>1&&tie(Mle,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Fle(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var Kle=Rle;ile({target:"RegExp",proto:!0,forced:/./.exec!==Kle},{exec:Kle});var Gle=Function.prototype,Yle=Gle.apply,Zle=Gle.bind,Jle=Gle.call,Xle="object"==typeof Reflect&&Reflect.apply||(Zle?Jle.bind(Yle):function(){return Jle.apply(Yle,arguments)}),Qle=$oe("species"),eue=RegExp.prototype,tue=$oe("match"),nue=aoe.TypeError,rue=$oe("species"),oue=function(e,t){var n,r=Qoe(e).constructor;return void 0===r||null==(n=Qoe(r)[rue])?t:function(e){if(xae(e))return e;throw nue(aie(e)+" is not a constructor")}(n)},iue=goe("".charAt),aue=goe("".charCodeAt),lue=goe("".slice),uue=function(e){return function(t,n){var r,o,i=vle(moe(t)),a=sae(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=aue(i,a))<55296||r>56319||a+1===l||(o=aue(i,a+1))<56320||o>57343?e?iue(i,a):r:e?lue(i,a,a+2):o-56320+(r-55296<<10)+65536}},sue={codeAt:uue(!1),charAt:uue(!0)}.charAt,cue=function(e,t,n){return t+(n?sue(e,t).length:1)},fue=aoe.Array,due=Math.max,pue=function(e,t,n){for(var r,o,i,a,l=dae(e),u=Rae(t,l),s=Rae(void 0===n?l:n,l),c=fue(due(s-u,0)),f=0;u<s;u++,f++)r=c,o=f,i=e[u],a=void 0,(a=hie(o))in r?mie.f(r,a,yie(0,i)):r[a]=i;return c.length=f,c},hue=aoe.TypeError,gue=function(e,t){var n=e.exec;if(Doe(n)){var r=tie(n,e,t);return null!==r&&Qoe(r),r}if("RegExp"===Wie(e))return tie(Kle,e,t);throw hue("RegExp#exec called on incompatible receiver")},vue=xle.UNSUPPORTED_Y,mue=Math.min,yue=[].push,bue=goe(/./.exec),wue=goe(yue),xue=goe("".slice);!function(e,t,n,r){var o=$oe(e),i=!Noe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Noe((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Qle]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=goe(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=goe(e),u=t.exec;return u===Kle||u===eue.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));$ie(String.prototype,e,u[0]),$ie(eue,o,u[1])}r&&bie(eue[o],"sham",!0)}("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=vle(moe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!qoe(r=e)||!(void 0!==(o=r[tue])?o:"RegExp"==Wie(r)))return tie(t,i,e,a);for(var l,u,s,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(l=tie(Kle,p,i))&&!((u=p.lastIndex)>d&&(wue(c,xue(i,d,l.index)),l.length>1&&l.index<i.length&&Xle(yue,c,pue(l,1)),s=l[0].length,d=u,c.length>=a));)p.lastIndex===l.index&&p.lastIndex++;return d===i.length?!s&&bue(p,"")||wue(c,""):wue(c,xue(i,d)),c.length>a?pue(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:tie(t,this,e,n)}:t,[function(t,n){var o=moe(this),i=null==t?void 0:sie(t,e);return i?tie(i,t,o,n):tie(r,vle(o),t,n)},function(e,o){var i=Qoe(this),a=vle(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var u=oue(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(vue?"g":"y"),f=new u(vue?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===gue(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=vue?0:h;var v,m=gue(f,vue?xue(a,h):a);if(null===m||(v=mue(fae(f.lastIndex+(vue?h:0)),a.length))===p)h=cue(a,h,s);else{if(wue(g,xue(a,p,h)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(wue(g,m[y]),g.length===d)return g;h=p=v}}return wue(g,xue(a,p)),g}]}),!!Noe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),vue),ile({global:!0},{globalThis:aoe}),go&&(co.fn.attr=go);var Cue=Vie.PROPER,Eue=RegExp.prototype,kue=Eue.toString,Sue=goe(mle),Due=Noe((function(){return"/a/b"!=kue.call({source:"a",flags:"b"})})),Aue=Cue&&"toString"!=kue.name;(Due||Aue)&&$ie(RegExp.prototype,"toString",(function(){var e=Qoe(this),t=vle(e.source),n=e.flags;return"/"+t+"/"+vle(void 0===n&&nie(Eue,e)&&!("flags"in Eue)?Sue(e):n)}),{unsafe:!0});var Oue=function(){function e(){this.title=ID("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!nt.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};Xt.setNodes(e,n,{match:function(e){return Iw.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=Iw.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Iw.getParentNode(e,t);return nt.isElement(n)?"pre"!==n.type?null:t:null},e}(),_ue={renderStyle:function(e,t){var n=e,r=t,o="";return dle.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=co(e);if(!nt.isElement(t))return t;if("code"!==Iw.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Oue},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Bue=/"/g,Fue=goe("".replace);ile({target:"String",proto:!0,forced:function(e){return Noe((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}("anchor")},{anchor:function(e){return t="a",n="name",r=e,o=vle(moe(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+Fue(vle(r),Bue,""")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var jue=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],l=[],u=function(e){if(!Pt.isText(e))return null;var t=Iw.getParentNode(null,e);if(t&&"code"===Iw.getNodeType(t)){var n=Iw.getParentNode(null,t);if(n&&"pre"===Iw.getNodeType(n))return t}return null}(i);if(null==u)return l;var s=u.language,c=void 0===s?"":s;if(!c)return l;var f=function(e,t){if(!t)return[];var n=fle.languages[t];return n?fle.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=
|
|
129
|
+
/*! *****************************************************************************
|
|
130
|
+
Copyright (c) Microsoft Corporation.
|
|
131
|
+
|
|
132
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
133
|
+
purpose with or without fee is hereby granted.
|
|
134
|
+
|
|
135
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
136
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
137
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
138
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
139
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
140
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
141
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
142
|
+
***************************************************************************** */
|
|
143
|
+
function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,v=d+ple(g);"string"!=typeof g&&l.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return l},Pue=function(){return Pue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Pue.apply(this,arguments)},Tue=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Pue(Pue({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Pue(Pue({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Pue(Pue({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Pue(Pue({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){zw(e,t)},e.registerRenderElem=function(e){Fk(e)},e.registerRenderStyle=function(e){_k(e)},e.registerElemToHtml=function(e){ux(e)},e.registerStyleToHtml=function(e){ax(e)},e.registerPreParseHtml=function(e){ZC(e)},e.registerParseElemHtml=function(e){eE(e)},e.registerParseStyleHtml=function(e){XC(e)},e.registerModule=function(e){Nue(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
|
|
144
|
+
/*! *****************************************************************************
|
|
145
|
+
Copyright (c) Microsoft Corporation.
|
|
146
|
+
|
|
147
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
148
|
+
purpose with or without fee is hereby granted.
|
|
149
|
+
|
|
150
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
151
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
152
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
153
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
154
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
155
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
156
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
157
|
+
***************************************************************************** */function Nue(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,l=e.parseElemsHtml,u=e.parseStyleHtml,s=e.editorPlugin;t&&t.forEach((function(e){return Tue.registerMenu(e)})),n&&n.forEach((function(e){return Tue.registerRenderElem(e)})),r&&Tue.registerRenderStyle(r),o&&o.forEach((function(e){return Tue.registerElemToHtml(e)})),i&&Tue.registerStyleToHtml(i),a&&a.forEach((function(e){return Tue.registerPreParseHtml(e)})),l&&l.forEach((function(e){return Tue.registerParseElemHtml(e)})),u&&Tue.registerParseStyleHtml(u),s&&Tue.registerPlugin(s)}zz.forEach((function(e){return Nue(e)})),Nue(PW),Nue(EJ),Nue(Q6),Nue(eoe),Nue(_ue);var Iue='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Mue='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Lue='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',Rue='<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',zue='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>';function Vue(){return["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:ID("editor.more"),iconSvg:Rue,menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:ID("editor.justify"),iconSvg:Mue,menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:ID("editor.indent"),iconSvg:Iue,menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:ID("editor.image"),iconSvg:Lue,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:ID("editor.video"),iconSvg:zue,menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]}function $ue(){return["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:ID("editor.image"),iconSvg:Lue,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]}var Uue={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}};function Hue(){return Pue(Pue({},Uue),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})}function Wue(){return Uue}function que(){return{hoverbarKeys:Hue()}}function Kue(){return{hoverbarKeys:Wue()}}function Gue(){return{toolbarKeys:Vue()}}function Yue(){return{toolbarKeys:$ue()}}var Zue=que();Tue.setEditorConfig(Pue(Pue({},Zue),{decorate:jue}));var Jue=Kue();Tue.setSimpleEditorConfig(Pue(Pue({},Jue),{decorate:jue}));var Xue=Gue();Tue.setToolbarConfig(Xue);var Que=Yue();function ese(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,l=void 0===a?{}:a,u=e.mode,s=void 0===u?"default":u,c="simple"===s?Tue.simpleEditorConfig:Tue.editorConfig,f=Pue(Pue({},c.hoverbarKeys||{}),l.hoverbarKeys||{}),d=BS({selector:n,config:Pue(Pue(Pue({},c),l),{hoverbarKeys:f}),content:o,html:i,plugins:Tue.plugins});return d}function tse(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var l="simple"===a?Tue.simpleToolbarConfig:Tue.toolbarConfig,u=IS(n,{selector:t,config:Pue(Pue({},l),o)});return u}Tue.setSimpleToolbarConfig(Que);var nse=Object.defineProperty,rse=Object.defineProperties,ose=Object.getOwnPropertyDescriptors,ise=Object.getOwnPropertySymbols,ase=Object.prototype.hasOwnProperty,lse=Object.prototype.propertyIsEnumerable,use=(e,t,n)=>t in e?nse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sse=(e,t)=>{for(var n in t||(t={}))ase.call(t,n)&&use(e,n,t[n]);if(ise)for(var n of ise(t))lse.call(t,n)&&use(e,n,t[n]);return e},cse=(e,t)=>rse(e,ose(t));function fse(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var dse=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const pse=(0,r.defineComponent)({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=(0,r.ref)(null),o=(0,r.shallowRef)(null),i=(0,r.ref)(""),a=()=>{if(!n.value)return;const a=(0,r.toRaw)(e.defaultContent);ese({selector:n.value,mode:e.mode,content:a||[],html:e.defaultHtml||e.modelValue||"",config:cse(sse({},e.defaultConfig),{onCreated(n){if(o.value=n,t.emit("onCreated",n),e.defaultConfig.onCreated){const e=fse("onCreated");throw new Error(e)}},onChange(n){const r=n.getHtml();if(i.value=r,t.emit("update:modelValue",r),t.emit("onChange",n),e.defaultConfig.onChange){const e=fse("onChange");throw new Error(e)}},onDestroyed(n){if(t.emit("onDestroyed",n),e.defaultConfig.onDestroyed){const e=fse("onDestroyed");throw new Error(e)}},onMaxLength(n){if(t.emit("onMaxLength",n),e.defaultConfig.onMaxLength){const e=fse("onMaxLength");throw new Error(e)}},onFocus(n){if(t.emit("onFocus",n),e.defaultConfig.onFocus){const e=fse("onFocus");throw new Error(e)}},onBlur(n){if(t.emit("onBlur",n),e.defaultConfig.onBlur){const e=fse("onBlur");throw new Error(e)}},customAlert(n,r){if(t.emit("customAlert",n,r),e.defaultConfig.customAlert){const e=fse("customAlert");throw new Error(e)}},customPaste:(n,r)=>{if(e.defaultConfig.customPaste){const e=fse("customPaste");throw new Error(e)}let o;return t.emit("customPaste",n,r,(e=>{o=e})),o}})})};function l(e){const t=o.value;null!=t&&t.setHtml(e)}return(0,r.onMounted)((()=>{a()})),(0,r.watch)((()=>e.modelValue),(e=>{e!==i.value&&l(e)})),{box:n}}}),hse={ref:"box",style:{height:"100%"}};function gse(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",hse,null,512)}var vse=dse(pse,[["render",gse]]);const mse=(0,r.defineComponent)({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=(0,r.ref)(null),n=n=>{if(t.value){if(null==n)throw new Error("Not found instance of Editor when create <Toolbar/> component");Iw.getToolbar(n)||tse({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return(0,r.watchEffect)((()=>{const{editor:t}=e;null!=t&&n(t)})),{selector:t}}}),yse={ref:"selector"};function bse(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",yse,null,512)}var wse=dse(mse,[["render",bse]]),xse=(0,r.defineComponent)({name:"JwtEditor",components:{Editor:vse,Toolbar:wse},props:{modelValue:{type:String,default:""},uploadUrl:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=(0,r.shallowRef)(),o=(0,r.ref)("<p>hello</p>"),i=(0,r.computed)((()=>e.modelValue||""));console.log("defaultHtml",i);const a=[{type:"paragraph",children:[{text:"一行文字"}]}];console.log("defaultContent",a.value);const l=(0,r.reactive)({defaultContent:a}),u={insertKeys:{index:22,keys:["uploadAttachment"]}},s={placeholder:"请输入内容...",MENU_CONF:{},hoverbarKeys:{attachment:{menuKeys:["downloadAttachment"]}}};s.MENU_CONF["uploadImage"]={server:e.uploadUrl,maxFileSize:20971520,headers:{Accept:"text/x-json",Authorization:window.localStorage.getItem("admin-token")},timeout:6e4},s.MENU_CONF["uploadVideo"]={server:e.uploadUrl,headers:{Accept:"text/x-json",Authorization:window.localStorage.getItem("admin-token")}},s.MENU_CONF["uploadAttachment"]={server:e.uploadUrl,headers:{Accept:"text/x-json",Authorization:window.localStorage.getItem("admin-token")}};const c=e=>{n.value=e},f=e=>{t("update:modelValue",y(e))},d=e=>{console.log("destroyed",e)},p=e=>{console.log("focus",e)},h=e=>{t("update:modelValue",y(e))},g=(e,t)=>{alert(`【自定义提示】${t} - ${e}`)},v=(e,t,n)=>{console.log("ClipboardEvent 粘贴事件对象",t),e.insertText("xxx"),t.preventDefault(),n(!1)},m=()=>{const e=n.value;console.log("editor",e),null!=e&&(e.select([]),e.deleteFragment(),Xt.setNodes(e,{type:"paragraph"},{mode:"highest"}),e.dangerouslyInsertHtml(i.value))},y=e=>{let t=e.getHtml();const n=t.match(/<span data-w-e-type="attachment"(?:[^<])*<\/span>/g);return n?.map((e=>{var n=e.match(/http(?:[^"])*/g)?.[0],r=e.match(/>(?:[^<])*/)[0].slice(1);t=t.replace(`>${r}<`,`><a href="${n}" download="${r}">${r}</a><`)})),console.log("html=====2",t),t};return(0,r.onMounted)((()=>{setTimeout((()=>{m()}),200)})),(0,r.onBeforeUnmount)((()=>{const e=n.value;null!=e&&e.destroy()})),{...(0,r.toRefs)(l),editorRef:n,valueHtml:o,mode:"default",defaultHtml:i,toolbarConfig:u,editorConfig:s,handleCreated:c,handleChange:f,handleDestroyed:d,handleFocus:p,handleBlur:h,customAlert:g,customPaste:v,updateContent:m}}}),Cse=n(3744);const Ese=(0,Cse.Z)(xse,[["render",i],["__scopeId","data-v-270f4f6c"]]);var kse=Ese},9065:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(7203);function o(e,t,n,o,i,a){const l=(0,r.resolveComponent)("el-radio-button"),u=(0,r.resolveComponent)("el-radio"),s=(0,r.resolveComponent)("el-radio-group"),c=(0,r.resolveComponent)("el-checkbox-button"),f=(0,r.resolveComponent)("el-checkbox"),d=(0,r.resolveComponent)("el-checkbox-group"),p=(0,r.resolveComponent)("el-input"),h=(0,r.resolveComponent)("el-autocomplete"),g=(0,r.resolveComponent)("el-input-number"),v=(0,r.resolveComponent)("el-option"),m=(0,r.resolveComponent)("el-option-group"),y=(0,r.resolveComponent)("el-select"),b=(0,r.resolveComponent)("jwt-select-server"),w=(0,r.resolveComponent)("el-cascader"),x=(0,r.resolveComponent)("el-cascader-panel"),C=(0,r.resolveComponent)("el-switch"),E=(0,r.resolveComponent)("el-slider"),k=(0,r.resolveComponent)("el-time-picker"),S=(0,r.resolveComponent)("el-time-select"),D=(0,r.resolveComponent)("el-date-picker"),A=(0,r.resolveComponent)("jwt-upload-image"),O=(0,r.resolveComponent)("jwt-tags"),_=(0,r.resolveComponent)("el-rate"),B=(0,r.resolveComponent)("jwt-rate-icon"),F=(0,r.resolveComponent)("el-color-picker"),j=(0,r.resolveComponent)("el-transfer"),P=(0,r.resolveComponent)("jwt-icon-select"),T=(0,r.resolveComponent)("jwt-editor"),N=(0,r.resolveComponent)("el-button"),I=(0,r.resolveComponent)("el-form-item"),M=(0,r.resolveComponent)("el-col"),L=(0,r.resolveComponent)("el-row"),R=(0,r.resolveComponent)("el-form");return e.formConfig?.formList?.length?((0,r.openBlock)(),(0,r.createBlock)(R,(0,r.mergeProps)({key:0},e.formConfig?.formAttrs,{ref:"formRef",class:"app-form-container",model:e.appModel}),{default:(0,r.withCtx)((()=>[(0,r.createVNode)(L,{gutter:10},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.formConfig?.formList,((n,o)=>((0,r.openBlock)(),(0,r.createBlock)(M,(0,r.mergeProps)({key:o,class:[e.formConfig?.formAttrs?.inline?"el-col-dl":"db"]},n?.layoutAttrs),{default:(0,r.withCtx)((()=>["slot"!==n.type?((0,r.openBlock)(),(0,r.createBlock)(I,(0,r.mergeProps)({key:0},n.labelAttrs,{key:o,prop:n.key}),{default:(0,r.withCtx)((()=>["radio"===n.type?((0,r.openBlock)(),(0,r.createBlock)(s,(0,r.mergeProps)({key:0,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),{default:(0,r.withCtx)((()=>[n.isButton?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(n.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(l,(0,r.mergeProps)(e.attrs,{key:t},(0,r.toHandlers)(e.events)),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)])),_:2},1040)))),128)):((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(n.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)(e.attrs,{key:t},(0,r.toHandlers)(e.events)),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)])),_:2},1040)))),128))])),_:2},1040,["modelValue","onUpdate:modelValue"])):"checkbox"===n.type?((0,r.openBlock)(),(0,r.createBlock)(d,{key:1,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},{default:(0,r.withCtx)((()=>[n.isButton?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(n.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(c,(0,r.mergeProps)(e.attrs,{key:t}),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)])),_:2},1040)))),128)):((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(n.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(f,(0,r.mergeProps)(e.attrs,{key:t,label:e.value}),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title||e.label),1)])),_:2},1040,["label"])))),128))])),_:2},1032,["modelValue","onUpdate:modelValue"])):"hidden"===n.type?((0,r.openBlock)(),(0,r.createBlock)(p,(0,r.mergeProps)({key:2,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t,type:"hidden"},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"input"===n.type?((0,r.openBlock)(),(0,r.createBlock)(p,(0,r.mergeProps)({key:3,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),(0,r.createSlots)({_:2},[n.formSlot&&n.formSlot.prefix?{name:"prefix",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.prefix,{},void 0,!0)]))}:void 0,n.formSlot&&n.formSlot.suffix?{name:"suffix",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.suffix,{},void 0,!0)]))}:void 0,n.formSlot&&n.formSlot.prepend?{name:"prepend",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.prepend,{},void 0,!0)]))}:void 0,n.formSlot&&n.formSlot.append?{name:"append",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.append,{},void 0,!0)]))}:void 0]),1040,["modelValue","onUpdate:modelValue"])):"autocomplete"===n.type?((0,r.openBlock)(),(0,r.createBlock)(h,(0,r.mergeProps)({key:4,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"inputNumber"===n.type?((0,r.openBlock)(),(0,r.createBlock)(g,(0,r.mergeProps)({key:5,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"select"===n.type?((0,r.openBlock)(),(0,r.createBlock)(y,(0,r.mergeProps)({key:6,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),(0,r.createSlots)({default:(0,r.withCtx)((()=>[n.formSlot&&n.formSlot.default?(0,r.renderSlot)(e.$slots,n.formSlot.default,{key:0},void 0,!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[n.isGroup?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(n.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(m,{key:t,disabled:e.disabled,label:e.label},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(v,(0,r.mergeProps)(e,{key:t}),null,16)))),128))])),_:2},1032,["disabled","label"])))),128)):((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(n.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(v,(0,r.mergeProps)(e,{key:t}),null,16)))),128))],64))])),_:2},[n.formSlot&&n.formSlot.prefix?{name:"prefix",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.prefix,{},void 0,!0)]))}:void 0,n.formSlot&&n.formSlot.empty?{name:"empty",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.empty,{},void 0,!0)]))}:void 0]),1040,["modelValue","onUpdate:modelValue"])):"selectServer"===n.type?((0,r.openBlock)(),(0,r.createBlock)(b,(0,r.mergeProps)({key:7,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{request:e.request},(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue","request"])):"cascader"===n.type?((0,r.openBlock)(),(0,r.createBlock)(w,(0,r.mergeProps)({key:8,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{class:"w"},(0,r.toHandlers)(n.formEvents),{onChange:t=>e.handleCascaderChange(t,n.key,n)}),(0,r.createSlots)({_:2},[n.formSlot&&n.formSlot.default?{name:"default",fn:(0,r.withCtx)((({node:t,data:o})=>[(0,r.renderSlot)(e.$slots,n.formSlot.default,{data:o,node:t},void 0,!0)]))}:void 0,n.formSlot&&n.formSlot.empty?{name:"empty",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.empty,{},void 0,!0)]))}:void 0]),1040,["modelValue","onUpdate:modelValue","onChange"])):"cascaderPanel"===n.type?((0,r.openBlock)(),(0,r.createBlock)(x,(0,r.mergeProps)({key:9,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),(0,r.createSlots)({_:2},[n.formSlot&&n.formSlot.default?{name:"default",fn:(0,r.withCtx)((({node:t,data:o})=>[(0,r.renderSlot)(e.$slots,n.formSlot.default,{data:o,node:t},void 0,!0)]))}:void 0]),1040,["modelValue","onUpdate:modelValue"])):"switch"===n.type?((0,r.openBlock)(),(0,r.createBlock)(C,(0,r.mergeProps)({key:10,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{"active-value":1,"inactive-value":0},(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"slider"===n.type?((0,r.openBlock)(),(0,r.createBlock)(E,(0,r.mergeProps)({key:11,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"timePicker"===n.type?((0,r.openBlock)(),(0,r.createBlock)(k,(0,r.mergeProps)({key:12,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{"value-format":"HH:mm:ss"},(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"timeSelect"===n.type?((0,r.openBlock)(),(0,r.createBlock)(S,(0,r.mergeProps)({key:13,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"datePicker"===n.type?((0,r.openBlock)(),(0,r.createBlock)(D,(0,r.mergeProps)({key:14,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{"value-format":"YYYY-MM-DD"},(0,r.toHandlers)(n.formEvents)),(0,r.createSlots)({_:2},[n.formSlot&&n.formSlot.rangeSeparator?{name:"range-separator",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.rangeSeparator,{},void 0,!0)]))}:void 0]),1040,["modelValue","onUpdate:modelValue"])):"datePickerRange"===n.type?((0,r.openBlock)(),(0,r.createBlock)(D,(0,r.mergeProps)({key:15,modelValue:e.datePickerRange,"onUpdate:modelValue":t[0]||(t[0]=t=>e.datePickerRange=t)},n.formAttrs,(0,r.toHandlers)(n.formEvents),{onChange:t=>e.datePickerChange(t,n)}),(0,r.createSlots)({_:2},[n.formSlot&&n.formSlot.rangeSeparator?{name:"range-separator",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.rangeSeparator,{},void 0,!0)]))}:void 0]),1040,["modelValue","onChange"])):"uploadImg"===n.type?((0,r.openBlock)(),(0,r.createBlock)(A,(0,r.mergeProps)({key:16,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{"fill-url":e.fillUrl,"upload-url":e.uploadImgUrl},(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue","fill-url","upload-url"])):"tag"===n.type?((0,r.openBlock)(),(0,r.createBlock)(O,(0,r.mergeProps)({key:17,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"rate"===n.type?((0,r.openBlock)(),(0,r.createBlock)(_,(0,r.mergeProps)({key:18,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"baseRate"===n.type?((0,r.openBlock)(),(0,r.createBlock)(B,(0,r.mergeProps)({key:19,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"colorPicker"===n.type?((0,r.openBlock)(),(0,r.createBlock)(F,(0,r.mergeProps)({key:20,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"transfer"===n.type?((0,r.openBlock)(),(0,r.createBlock)(j,(0,r.mergeProps)({key:21,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),(0,r.createSlots)({_:2},[n.formSlot&&n.formSlot.default?{name:"default",fn:(0,r.withCtx)((({option:t})=>[(0,r.renderSlot)(e.$slots,n.formSlot.default,{option:t},void 0,!0)]))}:void 0]),1040,["modelValue","onUpdate:modelValue"])):"icon"===n.type?((0,r.openBlock)(),(0,r.createBlock)(P,(0,r.mergeProps)({key:22,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"richText"===n.type?((0,r.openBlock)(),(0,r.createBlock)(T,(0,r.mergeProps)({key:23,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{"upload-url":e.uploadRichTextUrl},(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue","upload-url"])):"submit"===n.type?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:24},[n.submit?((0,r.openBlock)(),(0,r.createBlock)(N,(0,r.mergeProps)({key:0},n.submit.attrs,{loading:e.loading},(0,r.toHandlers)(n.submit.events),{onClick:e.formSubmit}),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(n.submit.title),1)])),_:2},1040,["loading","onClick"])):(0,r.createCommentVNode)("",!0),n.reset?((0,r.openBlock)(),(0,r.createBlock)(N,(0,r.mergeProps)({key:1},n.reset.attrs,{loading:e.loading},(0,r.toHandlers)(n.reset.events),{onClick:e.formReset}),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(n.reset.title),1)])),_:2},1040,["loading","onClick"])):(0,r.createCommentVNode)("",!0)],64)):(0,r.createCommentVNode)("",!0)])),_:2},1040,["prop"])):(0,r.createCommentVNode)("",!0),"slot"===n.type?(0,r.renderSlot)(e.$slots,n.name,{key:1,model:e.appModel},void 0,!0):(0,r.createCommentVNode)("",!0)])),_:2},1040,["class"])))),128))])),_:3})])),_:3},16,["model"])):(0,r.createCommentVNode)("",!0)}n(6699);var i=n(7484),a=n.n(i);function l(e=[]){const t=[];for(const n of e)if(-1===t.indexOf(n)){t.push(n);for(let e=0;e<t.length;e++){if(t[e].length>n.length&&t[e].includes(n)){t.pop();break}if(t[e].length<n.length&&n.includes(t[e])){t.splice(e,1);break}}}return t}var u=n(2343),s=(0,r.defineComponent)({name:"JwtForm",components:{},props:{modelValue:{require:!0,type:[Object,Function],default:()=>{}},config:{require:!0,type:[Object,Function],default:()=>{}},request:{type:Function,require:!0,default:()=>{}},fillUrl:{type:Function,require:!0,default:()=>{}},uploadImgUrl:{type:String,default:""},uploadRichTextUrl:{type:String,default:""}},emits:["submit","reset","update:modelValue","addSuccess","editSuccess","get-detail-success"],setup(e,{emit:t}){const n=(0,r.reactive)({loading:!1,datePickerRange:[]}),o=(0,r.computed)((()=>e.config?(console.log("F",u.F),u.F.copy(e.config)||{}):{})),i=(0,r.ref)(null),s=(0,r.computed)({get:()=>{if(e.modelValue){console.log("props.modelValue",e.modelValue);let t=f(e.modelValue);return t}return console.log("enter :>> ",o.value.formList),o.value.formList.forEach((e=>{void 0!==e.value&&(s[e.key]=e.value)})),console.warn("App Form Warn: 请填写 v-model 作为默认表单数据"),s},set:e=>{console.log("value",e),t("update:modelValue",e)}}),c=(0,r.computed)((()=>{const e=[];return o.value.formList.forEach((t=>{e.push(t.key)})),e})),f=(e={})=>(o.value.formList.forEach((t=>{const{key:n,type:r,startKey:o,endKey:i,formAttrs:a}=t,l=a?.multiple||!1,s=a?.valueType||"";e[n]&&"inputNumber"===r?e[n]=+e[n]:l?u.F.isArray(e[n])||(e[n]="number"===s?e[n]?e[n]?.split(",")?.map((e=>+e)):[]:e[n]?e[n]?.split(","):[]):"datePickerRange"===r?g([e[o]||"",e[i]||""]):e[n]=""===e[n]||void 0===e[n]?t.value:e[n]})),e),d=async()=>{let e=!0;return await i.value.validate((t=>{e=t})),e},p=async()=>{const r=await d();if(r)if(o?.value?.api?.add||o?.value?.api?.update){let r={};o.value?.formEditParams&&u.F.hasObject(o.value?.formEditParams)&&Object.assign(r,o.value?.formEditParams||{}),c?.value?.length?c.value.forEach((e=>{e&&(r[e]=s.value[e])})):r=Object.assign({},s.value),o.value.formList.map((e=>{if(e?.formAttrs?.multiple)if(e?.formAttrs?.props?.checkStrictly){const t=[];r[e.key].map((e=>{t.push(e[e.length-1])}));const n=l(t);r[e.key]=u.F.isArray(n)?n.join(","):"",console.log("data[item.key]",r[e.key])}else r[e.key]=u.F.isArray(r[e.key])?r[e.key].join(","):r[e.key]})),n.loading=!0,s.value.id?(r.id=s.value.id,e.request({url:o.value.api.update,method:"post",data:r}).then((e=>{e.id&&(n.loading=!1,s.value.id=e.id),t("editSuccess",e)})).catch((()=>{n.loading=!1}))):e.request({url:o.value.api.add,method:"post",data:r}).then((e=>{n.loading=!1,t("addSuccess",e)})).catch((()=>{n.loading=!1}))}else t("submit",e.modelValue)},h=(e,t)=>{const{startKey:n,endKey:r}=t,o=t.formAttrs.format||"YYYY-MM-DD HH:mm:ss";t.formAttrs.type&&t.formAttrs.type.includes("range")&&(s.value[n]=e?a()(e[0]).format(o):"",s.value[r]=e?a()(e[1]).format(o):"")},g=e=>{const{startVal:t,endVal:r}=e;n.datePickerRange=[t,r]},v=()=>{i.value.resetFields(),t("reset",e.modelValue)};o.value.formList=o.value.formList.map((e=>(e.formEvents||(e.formEvents={}),"submit"===e.type&&(e.submit&&!e.submit.attrs&&(e.submit.attrs={}),e.submit&&!e.submit.events&&(e.submit.events={}),e.reset&&!e.reset.attrs&&(e.reset.attrs={}),e.reset&&!e.reset.events&&(e.reset.events={})),e)));const m=(e,t,n)=>{if(e&&e.length)if(n.formAttrs?.multiple||n?.formAttrs?.props?.multiple){let r=[];n?.formAttrs?.props?.checkStrictly?r=e:e.map((e=>{r.push(e[e.length-1])})),s.value[t]=r}else s.value[t]=e[e.length-1];else s.value[t]=""},y=()=>{console.log("formConfig",o),o.value?.api?.detailParams&&o.value?.api?.detailParams[o.value?.api?.detailParamsKey||"id"]&&(console.log("根据ID获得数据",o.value.api.detailParams),e.request({url:o.value.api.detail,method:"get",params:o.value.api.detailParams}).then((e=>{let n=f(e);console.log("get-detail :>> ",n),s.value=n,t("get-detail-success",e)})))};return(0,r.onBeforeMount)((()=>{y()})),(0,r.onMounted)((()=>{})),{formRef:i,...(0,r.toRefs)(n),formConfig:o,appModel:s,appModelParams:c,formSubmit:p,formReset:v,formValidate:d,handleCascaderChange:m,getDetail:y,datePickerChange:h,setDatePickerRange:g,handleFormListData:f}}}),c=n(3744);const f=(0,c.Z)(s,[["render",o],["__scopeId","data-v-1d4a5280"]]);var d=f},1308:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});n(6699);var r=n(7203);const o={key:0,class:"table-header-actions"};function i(e,t,n,i,a,l){const u=(0,r.resolveComponent)("vab-icon"),s=(0,r.resolveComponent)("el-button");return e.headerButtonActions.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.headerButtonActions,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(s,{key:n,disabled:(t.code.includes("delete")||t.code.includes("batch"))&&!e.selectionRow.length,loading:e.loading,type:t.code.includes("delete")?"danger":"primary",onClick:n=>e.handleHeaderAction(t)},{default:(0,r.withCtx)((()=>[t.icon&&!e.loading?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,icon:t.icon},null,8,["icon"])):(0,r.createCommentVNode)("",!0),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(t.show_title||t.title),1)])),_:2},1032,["disabled","loading","type","onClick"])))),128))])):(0,r.createCommentVNode)("",!0)}var a=(0,r.defineComponent)({name:"JwtHeaderButton",props:{loading:{type:Boolean,default:!1},currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},selectionRow:{type:Array,default:()=>[]},actionList:{type:Array,default:()=>[]}},emits:["header-action"],setup(e,{emit:t}){let n=(0,r.computed)((()=>{const t=(e?.menusObj||{})[e?.currentPath];return t&&t.operations.length?t.operations.filter((t=>{let n=t.show_header;if(e.actionList&&e.actionList.length){const{code:r}=t;n=n&&e.actionList.includes(r)}return n})):[]}));const o=e=>{t("header-action",e)};return{headerButtonActions:n,handleHeaderAction:o}}}),l=n(3744);const u=(0,l.Z)(a,[["render",i]]);var s=u},4815:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(7203);function o(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("i",{class:(0,r.normalizeClass)(e.iconName),style:(0,r.normalizeStyle)({"font-size":e.size+"px"})},null,6)}var i=(0,r.defineComponent)({name:"JwtIcon",props:{icon:{type:String,default:"settings-3-line"},size:{type:[String,Number],default:16}},setup(e){const t=(0,r.computed)((()=>`ri-${e.icon}`));return{iconName:t}}}),a=n(3744);const l=(0,a.Z)(i,[["render",o]]);var u=l},3720:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(7203);const o=e=>((0,r.pushScopeId)("data-v-45bb6640"),e=e(),(0,r.popScopeId)(),e),i=o((()=>(0,r.createElementVNode)("span",{style:{padding:"0 5px"}},"图标选择器",-1))),a={class:"jwt-icon-select-wrapper"},l=(0,r.createTextVNode)("查询");function u(e,t,n,o,u,s){const c=(0,r.resolveComponent)("jwt-icon"),f=(0,r.resolveComponent)("el-button"),d=(0,r.resolveComponent)("el-input"),p=(0,r.resolveComponent)("el-col"),h=(0,r.resolveComponent)("el-row"),g=(0,r.resolveComponent)("el-card"),v=(0,r.resolveComponent)("el-pagination"),m=(0,r.resolveComponent)("el-popover");return(0,r.openBlock)(),(0,r.createBlock)(m,{trigger:"click",width:300},{reference:(0,r.withCtx)((()=>[(0,r.createVNode)(f,null,{default:(0,r.withCtx)((()=>[(0,r.createVNode)(c,{icon:e.selectIcon},null,8,["icon"]),i,(0,r.createVNode)(c,{icon:"arrow-down-s-line"})])),_:1})])),default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(h,null,{default:(0,r.withCtx)((()=>[(0,r.createVNode)(p,{span:18},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(d,{modelValue:e.searchVal,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchVal=t),clearable:"",placeholder:"",onKeydown:(0,r.withKeys)(e.handleSearchIcon,["enter"])},null,8,["modelValue","onKeydown"])])),_:1}),(0,r.createVNode)(p,{offset:1,span:4},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(f,{type:"primary",onClick:e.handleSearchIcon},{default:(0,r.withCtx)((()=>[l])),_:1},8,["onClick"])])),_:1})])),_:1}),(0,r.createVNode)(h,{class:"icon-list",gutter:10},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.listData,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(p,{key:n,span:6},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(g,{"body-style":{padding:"5px",textAlign:"center"},shadow:"hover",onClick:n=>e.handleSelectIcon(t)},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(c,{icon:t,size:"30"},null,8,["icon"])])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:1}),(0,r.createVNode)(h,{class:"pagination",justify:"center"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(p,{span:18},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(v,{background:"","current-page":e.pagination.pageNo,layout:e.pagination.layout,"page-size":e.pagination.pageSize,total:e.pagination.total,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange},null,8,["current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])),_:1})])),_:1})])])),_:1})}n(6699);var s=n(1980);const c=16;var f=(0,r.defineComponent)({name:"JwtIconSelect",props:{modelValue:{type:String,default:"settings-3-line"}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=(0,r.reactive)({searchVal:"",listData:s.iconList.slice(0,c),allIconData:[],pagination:{pageNo:1,pageSize:c,total:s.iconList.length,layout:"total, prev, next"}}),o=(0,r.computed)({get:()=>e.modelValue||"settings-3-line",set:e=>{t("update:modelValue",e)}}),i=e=>{n.pagination.pageSize=e},a=e=>{n.pagination.pageNo=e,f()},l=e=>{o.value=e,t("change",e)},u=()=>{n.pagination.pageNo=1,f()},f=()=>{let e=[];e=n.searchVal?s.iconList.filter((e=>e.includes(n.searchVal))):s.iconList,n.pagination.total=e.length,n.listData=e.slice(16*(n.pagination.pageNo-1),16*n.pagination.pageNo)};return{...(0,r.toRefs)(n),selectIcon:o,handleSearchIcon:u,handleSelectIcon:l,handleSizeChange:i,handleCurrentChange:a}}}),d=n(3744);const p=(0,d.Z)(f,[["render",u],["__scopeId","data-v-45bb6640"]]);var h=p},3420:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(7203);const o={key:0,class:"base-image-mask"};function i(e,t,n,i,a,l){const u=(0,r.resolveComponent)("el-image"),s=(0,r.resolveComponent)("jwt-icon");return(0,r.openBlock)(),(0,r.createElementBlock)("div",(0,r.mergeProps)({class:"base-image-wrapper"},e.attrs),[(0,r.createVNode)(u,(0,r.mergeProps)({fit:e.fit,"preview-src-list":[e.imgPath],"preview-teleported":"",src:e.imgPath},e.attrs),null,16,["fit","preview-src-list","src"]),e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(s,{icon:e.icon,size:"36"},null,8,["icon"])])):(0,r.createCommentVNode)("",!0)],16)}var a=n(2343),l=(0,r.defineComponent)({name:"JwtImage",inheritAttrs:!1,props:{fit:{type:String,default:"cover"},src:{type:String,default:""},type:{type:String,default:""},fillUrl:{type:Function,default:null}},emits:["table-action"],setup(e){const t=(0,r.useAttrs)(),n=t=>e.fillUrl&&a.F.isFunction(e.fillUrl)?e.fillUrl(t):t,o=(0,r.computed)((()=>n(e.src))),i=(0,r.computed)((()=>{const t={search:"search-line",add:"add-circle-line",delete:"delete-bin-line"};return t[e.type]}));return{attrs:t,imgPath:o,icon:i}}}),u=n(3744);const s=(0,u.Z)(l,[["render",i],["__scopeId","data-v-1c3cfede"]]);var c=s},5693:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(7203);function o(e,t,n,o,i,a){const l=(0,r.resolveComponent)("el-input");return(0,r.openBlock)(),(0,r.createBlock)(l,(0,r.mergeProps)({modelValue:e.inputModel,"onUpdate:modelValue":t[0]||(t[0]=t=>e.inputModel=t),class:"input-change-style",style:{backgroundColor:`${e.newValDiffOldVal?e.changeBg:e.defaultBg}`,color:e.textColor}},e.attrs,{onBlur:e.handleBlur}),null,16,["modelValue","style","onBlur"])}var i=(0,r.defineComponent)({name:"JwtInput",components:{},inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:null},defaultBg:{type:String,default:"red"},changeBg:{type:String,default:"blue"}},emits:["update:modelValue","blur"],setup(e,{emit:t}){const n=(0,r.useAttrs)(),o=(0,r.reactive)({oldVal:e.modelValue}),i=(0,r.computed)({get:()=>e.modelValue||"",set:e=>{t("update:modelValue",e)}}),a=(0,r.computed)((()=>o.oldVal!==i.value)),l=()=>{o.oldVal!==i.value&&(o.oldVal=i.value,t("blur",i.value))};return(0,r.onMounted)((()=>{})),{...(0,r.toRefs)(o),attrs:n,inputModel:i,newValDiffOldVal:a,handleBlur:l}}}),a=n(3744);const l=(0,a.Z)(i,[["render",o],["__scopeId","data-v-172e66e8"]]);var u=l},9832:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(7203);const o={class:"base-rate-icon"};function i(e,t,n,i,a,l){const u=(0,r.resolveComponent)("jwt-icon");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.maxLenIcon,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(u,{key:n,class:"mr5 cp",icon:e.hoverIndex>n?e.icon:e.voidIcon,style:(0,r.normalizeStyle)({fontSize:e.size+"px",color:e.hoverIndex>n?e.color:e.voidColor}),onClick:(0,r.withModifiers)((t=>e.handleChange(n)),["stop"]),onDblclick:t=>e.handleDblclick(n),onMouseenter:t=>e.handleMouseenter(n),onMouseleave:e.handleMouseleave},null,8,["icon","style","onClick","onDblclick","onMouseenter","onMouseleave"])))),128))])}var a=(0,r.defineComponent)({name:"JwtRateIcon",props:{modelValue:{type:[Number,String],default:0},size:{type:[Number,String],default:18},disabled:{type:Boolean,default:!1},voidIcon:{type:String,default:"star-line"},icon:{type:String,default:"star-fill"},color:{type:String,default:"#f7ba2a"},voidColor:{type:String,default:"#c6d1de"},max:{type:[Number,String],default:5}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=(0,r.computed)((()=>Math.min(+e.max,10))),o=(0,r.reactive)({activeIndex:e.modelValue,hoverIndex:e.modelValue});(0,r.watchEffect)((()=>{o.activeIndex=e.modelValue,o.hoverIndex=e.modelValue}));const i=t=>{e.disabled||(o.hoverIndex=t+1)},a=()=>{e.disabled||(o.hoverIndex=o.activeIndex)},l=n=>{e.disabled||(o.activeIndex=n+1,o.hoverInde=n+1,t("update:modelValue",n+1),t("change",n+1))},u=()=>{e.disabled||(o.activeIndex=0,o.hoverInde=0,t("update:modelValue",0),t("change",0))};return{...(0,r.toRefs)(o),maxLenIcon:n,handleMouseenter:i,handleMouseleave:a,handleChange:l,handleDblclick:u}}}),l=n(3744);const u=(0,l.Z)(a,[["render",i],["__scopeId","data-v-7950dc53"]]);var s=u},5451:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(7203);const o={key:0,class:"fxm ptb10"},i=["src"],a={class:"ml10"};function l(e,t,n,l,u,s){const c=(0,r.resolveComponent)("el-option"),f=(0,r.resolveComponent)("el-select");return(0,r.openBlock)(),(0,r.createBlock)(f,{modelValue:e.selectModel,"onUpdate:modelValue":t[0]||(t[0]=t=>e.selectModel=t),clearable:"",filterable:"",placeholder:"",remote:"","remote-method":e.remoteMethod,onChange:e.handleSelectChange},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.listData,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(c,{key:n,class:(0,r.normalizeClass)({"avatar-logo":e.avatarKey}),label:t[e.labelKey],value:t[e.valueKey]},{default:(0,r.withCtx)((()=>[e.avatarKey?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("img",{class:"w40 r100px",src:t[e.avatarKey]},null,8,i),(0,r.createElementVNode)("span",a,(0,r.toDisplayString)(t[e.labelKey]),1)])):(0,r.createCommentVNode)("",!0)])),_:2},1032,["class","label","value"])))),128))])),_:1},8,["modelValue","remote-method","onChange"])}var u=(0,r.defineComponent)({name:"JwtSelectServer",components:{},props:{listApi:{type:String,default:""},searchKey:{type:String,default:"search"},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"id"},avatarKey:{type:String,default:""},exParams:{type:Object,default:()=>{}},modelValue:{type:String,default:""},searchValueKey:{type:Boolean,default:!1},request:{type:Function,require:!0,default:()=>{}}},emits:["update:modelValue","change","select"],setup(e,{emit:t}){const n=(0,r.reactive)({content:"",listData:[],searchVal:"",timer:null}),o=(0,r.computed)({get:()=>e.modelValue||"",set:e=>{t("update:modelValue",e)}}),i=(t=!1)=>{const{listApi:r,searchKey:i,valueKey:a,searchValueKey:l}=e;if(!r)return;const u={sort:"id",order:"desc",per_page:100,...e.exParams};u[i]=n.searchVal,t&&l&&(u[a]=o.value||""),e.request({url:r,method:"get",params:u}).then((e=>{n.listData=e.data}))},a=r=>{if(t("change",r),r){const{valueKey:o}=e,i=n.listData.find((e=>e[o]===r));t("select",i)}},l=e=>{console.log("query",e),n.searchVal=e,e?(clearTimeout(n.timer),n.timer=setTimeout((()=>{i()}),500),console.log("query",e)):i()};return(0,r.onMounted)((()=>{setTimeout((()=>{i(!0)}),50)})),{selectModel:o,...(0,r.toRefs)(n),handleSelectChange:a,remoteMethod:l,getDataList:i}}}),s=n(3744);const c=(0,s.Z)(u,[["render",l]]);var f=c},9877:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ii}});var r=n(7203);const o={class:"app-table-wrapper"},i={class:"table-header-wrapper fx"},a={class:"fx pr10"},l=["onDblclick"],u={class:"image-slot wh fxmc"},s={class:"fxr"},c={class:"dialog-footer"};function f(e,t,n,f,d,p){const h=(0,r.resolveComponent)("jwt-form"),g=(0,r.resolveComponent)("jwt-header-button"),v=(0,r.resolveComponent)("jwt-table-button"),m=(0,r.resolveComponent)("el-input"),y=(0,r.resolveComponent)("el-input-number"),b=(0,r.resolveComponent)("jwt-upload-image"),w=(0,r.resolveComponent)("el-switch"),x=(0,r.resolveComponent)("jwt-icon"),C=(0,r.resolveComponent)("el-image"),E=(0,r.resolveComponent)("el-table-column"),k=(0,r.resolveComponent)("el-table"),S=(0,r.resolveComponent)("el-pagination"),D=(0,r.resolveComponent)("el-button"),A=(0,r.resolveComponent)("el-dialog"),O=(0,r.resolveDirective)("loading");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",o,[(0,r.renderSlot)(e.$slots,"search-before",{},void 0,!0),(0,r.createElementVNode)("div",i,[e.appConfig?.tableSearch?.formList?.length?((0,r.openBlock)(),(0,r.createBlock)(h,{key:0,modelValue:e.tableSearchModel,"onUpdate:modelValue":t[0]||(t[0]=t=>e.tableSearchModel=t),class:"app-table-search",config:e.appConfig.tableSearch,"fill-url":e.fillUrl,request:e.request,"upload-img-url":e.uploadUrl,"upload-rich-text-url":e.uploadRichTextUrl,onReset:e.onSearchReset,onSubmit:e.onSearchSubmit},null,8,["modelValue","config","fill-url","request","upload-img-url","upload-rich-text-url","onReset","onSubmit"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",a,[(0,r.renderSlot)(e.$slots,"header-button-before",{},void 0,!0),e.appConfig.headerActionsShow?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,"action-list":e.appConfig?.headerActions?.list,"current-path":e.currentPagePath,loading:e.ajaxLoading,"menus-obj":e.userMenusAuth,"selection-row":e.selectionRow,onHeaderAction:e.handleHeaderAction},null,8,["action-list","current-path","loading","menus-obj","selection-row","onHeaderAction"])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"header-button-after",{},void 0,!0)]),(0,r.renderSlot)(e.$slots,"table-before",{},void 0,!0),(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(k,(0,r.mergeProps)(e.appConfig.tableAttr,{ref:"tableRef",class:"mt15",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":"加载数据中...",height:e.tableHeight,onCurrentChange:e.handleTableCurrentChange,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.appConfig.tableColumn,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(E,{key:n,align:t.align||"center",fixed:t.fixed,label:t.label,"min-width":t.minWidth?t.minWidth:null,prop:t.prop,sortable:t.sortable,type:t.type,width:t.width?t.width:null},(0,r.createSlots)({_:2},[t.type?void 0:{name:"default",fn:(0,r.withCtx)((({row:n,$index:o})=>[t.action?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.renderSlot)(e.$slots,"action-before",{scope:n},void 0,!0),(0,r.createVNode)(v,{config:t,"current-path":e.currentPagePath,"menus-obj":e.userMenusAuthObj,row:n,onTableAction:r=>e.handleTableAction(r,n,t)},null,8,["config","current-path","menus-obj","row","onTableAction"]),(0,r.renderSlot)(e.$slots,"action-after",{scope:n},void 0,!0)],64)):t.dateTimeFormat?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.filterVal(n[t.prop],t.dateTimeFormat)),1)],64)):t.editType?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},["input"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,type:"text",onKeydown:(0,r.withKeys)((r=>e.handleEditRowProp(n,t)),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):"inputNumber"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(y,{key:1,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,"controls-position":"right",min:0,onBlur:r=>e.handleEditRowProp(n,t)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):"uploadImg"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(b,{key:2,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,"fill-url":e.fillUrl,"upload-url":e.uploadUrl,onOnChange:r=>e.handleEditRowProp(n,t)},null,8,["modelValue","onUpdate:modelValue","fill-url","upload-url","onOnChange"])):"switch"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(w,{key:3,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,"active-value":1,"inactive-value":0,onChange:r=>e.handleEditRowProp(n,t)},null,8,["modelValue","onUpdate:modelValue","onChange"])):(0,r.createCommentVNode)("",!0)],64)):t.editInput?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[(0,r.withDirectives)((0,r.createElementVNode)("div",{onDblclick:r=>e.handleEditRow(n,t)},(0,r.toDisplayString)(e.filterVal(n[t.prop])),41,l),[[r.vShow,!n[`isEdit${t.prop}`]]]),(0,r.withDirectives)((0,r.createVNode)(m,{modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,type:"text",onBlur:r=>e.handleEditRowProp(n,t),onKeyup:(0,r.withKeys)((r=>e.handleEditRowProp(n,t)),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeyup"]),[[r.vShow,n[`isEdit${t.prop}`]]])],64)):t.isImg?((0,r.openBlock)(),(0,r.createBlock)(C,{key:4,"preview-src-list":[e.handleFillUrl(n[t.prop])],"preview-teleported":"",size:80,src:e.handleFillUrl(n[t.prop]),teleported:""},{error:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(x,{class:"g9",icon:"image-line",style:{"font-size":"40px"}})])])),_:2},1032,["preview-src-list","src"])):(0,r.renderSlot)(e.$slots,t.prop,{key:5,index:o,scope:n},(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.filterVal(n[t.prop])),1)]),!0)]))}]),1032,["align","fixed","label","min-width","prop","sortable","type","width"])))),128))])),_:3},16,["data","height","onCurrentChange","onSelectionChange","onSortChange"])),[[O,e.ajaxLoading]]),(0,r.createElementVNode)("div",s,[e.appConfig.showPagination?((0,r.openBlock)(),(0,r.createBlock)(S,(0,r.mergeProps)({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):(0,r.createCommentVNode)("",!0)])]),(0,r.createVNode)(A,(0,r.mergeProps)({modelValue:e.editBoxInfo.visible,"onUpdate:modelValue":t[2]||(t[2]=t=>e.editBoxInfo.visible=t)},e.appConfig[e.editBoxInfo.boxName].dialog,{center:"",title:e.editBoxInfo.title}),(0,r.createSlots)({default:(0,r.withCtx)((()=>[(0,r.createVNode)(h,{ref:"editBoxRef",modelValue:e.editBoxInfo.model,"onUpdate:modelValue":t[1]||(t[1]=t=>e.editBoxInfo.model=t),config:e.appConfig[e.editBoxInfo.boxName].form,"fill-url":e.fillUrl,request:e.request,"upload-img-url":e.uploadUrl,"upload-rich-text-url":e.uploadRichTextUrl,onAddSuccess:e.handleAddSuccess,onEditSuccess:e.handleEditSuccess},(0,r.createSlots)({_:2},[(0,r.renderList)(e.appConfig[e.editBoxInfo.boxName].form.formList,(t=>({name:t.name,fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,t.name,{model:e.editBoxInfo.model},void 0,!0)]))})))]),1032,["modelValue","config","fill-url","request","upload-img-url","upload-rich-text-url","onAddSuccess","onEditSuccess"])])),_:2},[e.appConfig[e.editBoxInfo.boxName]?.footer?{name:"footer",fn:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",c,[(0,r.renderSlot)(e.$slots,"dialog-footer-before",{model:e.editBoxInfo.model},void 0,!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.appConfig[e.editBoxInfo.boxName].footer,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(D,(0,r.mergeProps)(t.attrs,{key:n,loading:e.submitLoading,onClick:n=>e.handleBox(t.action)}),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(t.title),1)])),_:2},1040,["loading","onClick"])))),128)),(0,r.renderSlot)(e.$slots,"dialog-footer-after",{model:e.editBoxInfo.model},void 0,!0)])]))}:void 0]),1040,["modelValue","title"])],64)}var d=n(7475),p=n(4181),h=n(5781),g=n(5027),v=n(5711),m=n(9809);const y=["default","primary","success","warning","info","danger","text",""],b=["button","submit","reset"],w=(0,g.o8)({size:v.Pp,disabled:Boolean,type:{type:String,values:y,default:""},icon:{type:m.AA,default:""},nativeType:{type:String,values:b,default:"button"},loading:Boolean,loadingIcon:{type:m.AA,default:()=>h.gbz},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),x={click:e=>e instanceof MouseEvent};function C(e,t){k(e)&&(e="100%");var n=S(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t)),e)}function E(e){return Math.min(1,Math.max(0,e))}function k(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function S(e){return"string"===typeof e&&-1!==e.indexOf("%")}function D(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e){return e<=1?"".concat(100*Number(e),"%"):e}function O(e){return 1===e.length?"0"+e:String(e)}function _(e,t,n){return{r:255*C(e,255),g:255*C(t,255),b:255*C(n,255)}}function B(e,t,n){e=C(e,255),t=C(t,255),n=C(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var u=r-o;switch(a=l>.5?u/(2-r-o):u/(r+o),r){case e:i=(t-n)/u+(t<n?6:0);break;case t:i=(n-e)/u+2;break;case n:i=(e-t)/u+4;break;default:break}i/=6}return{h:i,s:a,l:l}}function F(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function j(e,t,n){var r,o,i;if(e=C(e,360),t=C(t,100),n=C(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=F(l,a,e+1/3),o=F(l,a,e),i=F(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}function P(e,t,n){e=C(e,255),t=C(t,255),n=C(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,u=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break;default:break}i/=6}return{h:i,s:u,v:a}}function T(e,t,n){e=6*C(e,360),t=C(t,100),n=C(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),u=r%6,s=[n,a,i,i,l,n][u],c=[l,n,n,a,i,i][u],f=[i,i,l,n,n,a][u];return{r:255*s,g:255*c,b:255*f}}function N(e,t,n,r){var o=[O(Math.round(e).toString(16)),O(Math.round(t).toString(16)),O(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function I(e,t,n,r,o){var i=[O(Math.round(e).toString(16)),O(Math.round(t).toString(16)),O(Math.round(n).toString(16)),O(M(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function M(e){return Math.round(255*parseFloat(e)).toString(16)}function L(e){return R(e)/255}function R(e){return parseInt(e,16)}function z(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}var V={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function $(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return"string"===typeof e&&(e=Y(e)),"object"===typeof e&&(Z(e.r)&&Z(e.g)&&Z(e.b)?(t=_(e.r,e.g,e.b),a=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):Z(e.h)&&Z(e.s)&&Z(e.v)?(r=A(e.s),o=A(e.v),t=T(e.h,r,o),a=!0,l="hsv"):Z(e.h)&&Z(e.s)&&Z(e.l)&&(r=A(e.s),i=A(e.l),t=j(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=D(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var U="[-\\+]?\\d+%?",H="[-\\+]?\\d*\\.\\d+%?",W="(?:".concat(H,")|(?:").concat(U,")"),q="[\\s|\\(]+(".concat(W,")[,|\\s]+(").concat(W,")[,|\\s]+(").concat(W,")\\s*\\)?"),K="[\\s|\\(]+(".concat(W,")[,|\\s]+(").concat(W,")[,|\\s]+(").concat(W,")[,|\\s]+(").concat(W,")\\s*\\)?"),G={CSS_UNIT:new RegExp(W),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+K),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+K),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+K),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Y(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(V[e])e=V[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=G.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=G.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=G.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=G.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=G.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=G.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=G.hex8.exec(e),n?{r:R(n[1]),g:R(n[2]),b:R(n[3]),a:L(n[4]),format:t?"name":"hex8"}:(n=G.hex6.exec(e),n?{r:R(n[1]),g:R(n[2]),b:R(n[3]),format:t?"name":"hex"}:(n=G.hex4.exec(e),n?{r:R(n[1]+n[1]),g:R(n[2]+n[2]),b:R(n[3]+n[3]),a:L(n[4]+n[4]),format:t?"name":"hex8"}:(n=G.hex3.exec(e),!!n&&{r:R(n[1]+n[1]),g:R(n[2]+n[2]),b:R(n[3]+n[3]),format:t?"name":"hex"})))))))))}function Z(e){return Boolean(G.CSS_UNIT.exec(String(e)))}var J=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=z(t)),this.originalInput=t;var o=$(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e,t,n,r=this.toRgb(),o=r.r/255,i=r.g/255,a=r.b/255;return e=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=D(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=P(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=P(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=B(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=B(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),N(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),I(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*C(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*C(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+N(this.r,this.g,this.b,!1),t=0,n=Object.entries(V);t<n.length;t++){var r=n[t],o=r[0],i=r[1];if(e===i)return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0,o=!t&&r&&(e.startsWith("hex")||"name"===e);return o?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=E(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=E(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=E(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=E(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;while(t--)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();var X=n(9143);function Q(e,t=20){return e.mix("#141414",t).toString()}function ee(e){const t=(0,v.B4)(),n=(0,X.s)("button");return(0,r.computed)((()=>{let r={};const o=e.color;if(o){const i=new J(o),a=e.dark?i.tint(20).toString():Q(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Q(i,90):i.tint(90).toString(),"text-color":o,"border-color":e.dark?Q(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Q(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Q(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Q(i,80):i.tint(80).toString());else{const l=e.dark?Q(i,30):i.tint(30).toString(),u=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":u,"border-color":o,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":a,"active-border-color":a}),t.value){const t=e.dark?Q(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=t,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=t}}}return r}))}var te=n(1446),ne=n(4721);const re=({from:e,replacement:t,scope:n,version:o,ref:i,type:a="API"},l)=>{(0,r.watch)((()=>(0,r.unref)(l)),(r=>{r&&(0,ne.N)(n,`[${a}] ${e} is about to be deprecated in version ${o}, please use ${t} instead.\nFor more detail, please visit: ${i}\n`)}),{immediate:!0})},oe=Symbol("buttonGroupContextKey");var ie=n(7824);const ae={prefix:Math.floor(1e4*Math.random()),current:0},le=Symbol("elIdInjection"),ue=e=>{const t=(0,r.inject)(le,ae);d.C5||t!==ae||(0,ne.N)("IdInjection","Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed\nusage: app.provide(ID_INJECTION_KEY, {\n prefix: number,\n current: number,\n})");const n=(0,r.computed)((()=>(0,r.unref)(e)||`el-id-${t.prefix}-${t.current++}`));return n};var se=n(7815);const ce=()=>{const e=(0,r.inject)(se.H,void 0),t=(0,r.inject)(se.K,void 0);return{form:e,formItem:t}},fe=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=(0,r.ref)(!1)),o||(o=(0,r.ref)(!1));const i=(0,r.ref)();let a;const l=(0,r.computed)((()=>{var n;return!!(!e.label&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)}));return(0,r.onMounted)((()=>{a=(0,r.watch)([(0,r.toRef)(e,"id"),n],(([e,n])=>{const r=null!=e?e:n?void 0:ue().value;r!==i.value&&((null==t?void 0:t.removeInputId)&&(i.value&&t.removeInputId(i.value),(null==o?void 0:o.value)||n||!r||t.addInputId(r)),i.value=r)}),{immediate:!0})})),(0,r.onUnmounted)((()=>{a&&a(),(null==t?void 0:t.removeInputId)&&i.value&&t.removeInputId(i.value)})),{isLabeledByFormItem:l,inputId:i}},de=["aria-disabled","disabled","autofocus","type"],pe={name:"ElButton"},he=(0,r.defineComponent)({...pe,props:w,emits:x,setup(e,{expose:t,emit:n}){const o=e,i=(0,r.useSlots)();re({from:"type.text",replacement:"type.link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},(0,r.computed)((()=>"text"===o.type)));const a=(0,r.inject)(oe,void 0),l=(0,ie.W)("button"),u=(0,X.s)("button"),{form:s}=ce(),c=(0,v.tH)((0,r.computed)((()=>null==a?void 0:a.size))),f=(0,v.B4)(),d=(0,r.ref)(),h=(0,r.computed)((()=>o.type||(null==a?void 0:a.type)||"")),g=(0,r.computed)((()=>{var e,t,n;return null!=(n=null!=(t=o.autoInsertSpace)?t:null==(e=l.value)?void 0:e.autoInsertSpace)&&n})),m=(0,r.computed)((()=>{var e;const t=null==(e=i.default)?void 0:e.call(i);if(g.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===r.Text){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),y=ee(o),b=e=>{"reset"===o.nativeType&&(null==s||s.resetFields()),n("click",e)};return t({ref:d,size:c,type:h,disabled:f,shouldAddSpace:m}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("button",{ref_key:"_ref",ref:d,class:(0,r.normalizeClass)([(0,r.unref)(u).b(),(0,r.unref)(u).m((0,r.unref)(h)),(0,r.unref)(u).m((0,r.unref)(c)),(0,r.unref)(u).is("disabled",(0,r.unref)(f)),(0,r.unref)(u).is("loading",e.loading),(0,r.unref)(u).is("plain",e.plain),(0,r.unref)(u).is("round",e.round),(0,r.unref)(u).is("circle",e.circle),(0,r.unref)(u).is("text",e.text),(0,r.unref)(u).is("link",e.link),(0,r.unref)(u).is("has-bg",e.bg)]),"aria-disabled":(0,r.unref)(f)||e.loading,disabled:(0,r.unref)(f)||e.loading,autofocus:e.autofocus,type:e.nativeType,style:(0,r.normalizeStyle)((0,r.unref)(y)),onClick:b},[e.loading?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[e.$slots.loading?(0,r.renderSlot)(e.$slots,"loading",{key:0}):((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:1,class:(0,r.normalizeClass)((0,r.unref)(u).is("loading"))},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:1},{default:(0,r.withCtx)((()=>[e.icon?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.icon),{key:0})):(0,r.renderSlot)(e.$slots,"icon",{key:1})])),_:3})):(0,r.createCommentVNode)("v-if",!0),e.$slots.default?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:2,class:(0,r.normalizeClass)({[(0,r.unref)(u).em("text","expand")]:(0,r.unref)(m)})},[(0,r.renderSlot)(e.$slots,"default")],2)):(0,r.createCommentVNode)("v-if",!0)],14,de))}});var ge=(0,te.Z)(he,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const ve={size:w.size,type:w.type},me={name:"ElButtonGroup"},ye=(0,r.defineComponent)({...me,props:ve,setup(e){const t=e;(0,r.provide)(oe,(0,r.reactive)({size:(0,r.toRef)(t,"size"),type:(0,r.toRef)(t,"type")}));const n=(0,X.s)("button");return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(`${(0,r.unref)(n).b("group")}`)},[(0,r.renderSlot)(e.$slots,"default")],2))}});var be=(0,te.Z)(ye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]),we=n(2123);const xe=(0,we.nz)(ge,{ButtonGroup:be});(0,we.dp)(be);var Ce=n(6309);function Ee(e){return null==e}var ke=Ee;let Se;const De="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n",Ae=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Oe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width")),i=Ae.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";");return{contextStyle:i,paddingSize:r,borderSize:o,boxSizing:n}}function _e(e,t=1,n){var r;Se||(Se=document.createElement("textarea"),document.body.appendChild(Se));const{paddingSize:o,borderSize:i,boxSizing:a,contextStyle:l}=Oe(e);Se.setAttribute("style",`${l};${De}`),Se.value=e.value||e.placeholder||"";let u=Se.scrollHeight;const s={};"border-box"===a?u+=i:"content-box"===a&&(u-=o),Se.value="";const c=Se.scrollHeight-o;if((0,d.hj)(t)){let e=c*t;"border-box"===a&&(e=e+o+i),u=Math.max(e,u),s.minHeight=`${e}px`}if((0,d.hj)(n)){let e=c*n;"border-box"===a&&(e=e+o+i),u=Math.min(e,u)}return s.height=`${u}px`,null==(r=Se.parentNode)||r.removeChild(Se),Se=void 0,s}var Be=n(3577),Fe=n(5450);const je="update:modelValue",Pe=(0,g.o8)({id:{type:String,default:void 0},size:v.Pp,disabled:Boolean,modelValue:{type:(0,g.Cq)([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:(0,g.Cq)([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:m.AA,default:""},prefixIcon:{type:m.AA,default:""},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:(0,g.Cq)([Object,Array,String]),default:()=>(0,Fe.N)({})}}),Te={[je]:e=>(0,Be.HD)(e),input:e=>(0,Be.HD)(e),change:e=>(0,Be.HD)(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};var Ne=n(5937);const Ie=["class","style"],Me=/^on[A-Z]/,Le=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=(0,r.computed)((()=>((null==n?void 0:n.value)||[]).concat(Ie))),i=(0,r.getCurrentInstance)();return i?(0,r.computed)((()=>{var e;return(0,Ne.Z)(Object.entries(null==(e=i.proxy)?void 0:e.$attrs).filter((([e])=>!o.value.includes(e)&&!(t&&Me.test(e)))))})):((0,ne.N)("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),(0,r.computed)((()=>({}))))};function Re(e){const t=(0,r.ref)();function n(){if(void 0==e.value)return;const{selectionStart:n,selectionEnd:r,value:o}=e.value;if(null==n||null==r)return;const i=o.slice(0,Math.max(0,n)),a=o.slice(Math.max(0,r));t.value={selectionStart:n,selectionEnd:r,value:o,beforeTxt:i,afterTxt:a}}function o(){if(void 0==e.value||void 0==t.value)return;const{value:n}=e.value,{beforeTxt:r,afterTxt:o,selectionStart:i}=t.value;if(void 0==r||void 0==o||void 0==i)return;let a=n.length;if(n.endsWith(o))a=n.length-o.length;else if(n.startsWith(r))a=r.length;else{const e=r[i-1],t=n.indexOf(e,i-1);-1!==t&&(a=t+1)}e.value.setSelectionRange(a,a)}return[n,o]}const ze=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),Ve=["role"],$e=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],Ue=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],He={name:"ElInput",inheritAttrs:!1},We=(0,r.defineComponent)({...He,props:Pe,emits:Te,setup(e,{expose:t,emit:n}){const o=e,i={suffix:"append",prefix:"prepend"},a=(0,r.getCurrentInstance)(),l=(0,r.useAttrs)(),u=(0,r.useSlots)(),s=(0,r.computed)((()=>{const e={};return"combobox"===o.containerRole&&(e["aria-haspopup"]=l["aria-haspopup"],e["aria-owns"]=l["aria-owns"],e["aria-expanded"]=l["aria-expanded"]),e})),c=Le({excludeKeys:(0,r.computed)((()=>Object.keys(s.value)))}),{form:f,formItem:g}=ce(),{inputId:y}=fe(o,{formItemContext:g}),b=(0,v.tH)(),w=(0,v.B4)(),x=(0,X.s)("input"),C=(0,X.s)("textarea"),E=(0,r.shallowRef)(),k=(0,r.shallowRef)(),S=(0,r.ref)(!1),D=(0,r.ref)(!1),A=(0,r.ref)(!1),O=(0,r.ref)(!1),_=(0,r.ref)(),B=(0,r.shallowRef)(o.inputStyle),F=(0,r.computed)((()=>E.value||k.value)),j=(0,r.computed)((()=>{var e;return null!=(e=null==f?void 0:f.statusIcon)&&e})),P=(0,r.computed)((()=>(null==g?void 0:g.validateState)||"")),T=(0,r.computed)((()=>P.value&&m.rU[P.value])),N=(0,r.computed)((()=>O.value?h.G7x:h.caK)),I=(0,r.computed)((()=>[l.style,o.inputStyle])),M=(0,r.computed)((()=>[o.inputStyle,B.value,{resize:o.resize}])),L=(0,r.computed)((()=>ke(o.modelValue)?"":String(o.modelValue))),R=(0,r.computed)((()=>o.clearable&&!w.value&&!o.readonly&&!!L.value&&(S.value||D.value))),z=(0,r.computed)((()=>o.showPassword&&!w.value&&!o.readonly&&!!L.value&&(!!L.value||S.value))),V=(0,r.computed)((()=>o.showWordLimit&&!!c.value.maxlength&&("text"===o.type||"textarea"===o.type)&&!w.value&&!o.readonly&&!o.showPassword)),$=(0,r.computed)((()=>Array.from(L.value).length)),U=(0,r.computed)((()=>!!V.value&&$.value>Number(c.value.maxlength))),H=(0,r.computed)((()=>!!u.suffix||!!o.suffixIcon||R.value||o.showPassword||V.value||!!P.value&&j.value)),[W,q]=Re(E);(0,Ce.yU7)(k,(e=>{if(!V.value||"both"!==o.resize)return;const t=e[0],{width:n}=t.contentRect;_.value={right:`calc(100% - ${n+15+6}px)`}}));const K=()=>{const{type:e,autosize:t}=o;if(d.C5&&"textarea"===e)if(t){const e=(0,Be.Kn)(t)?t.minRows:void 0,n=(0,Be.Kn)(t)?t.maxRows:void 0;B.value={..._e(k.value,e,n)}}else B.value={minHeight:_e(k.value).minHeight}},G=()=>{const e=F.value;e&&e.value!==L.value&&(e.value=L.value)},Y=e=>{const{el:t}=a.vnode;if(!t)return;const n=Array.from(t.querySelectorAll(`.${x.e(e)}`)),r=n.find((e=>e.parentNode===t));if(!r)return;const o=i[e];u[o]?r.style.transform=`translateX(${"suffix"===e?"-":""}${t.querySelector(`.${x.be("group",o)}`).offsetWidth}px)`:r.removeAttribute("style")},Z=()=>{Y("prefix"),Y("suffix")},J=async e=>{W();let{value:t}=e.target;o.formatter&&(t=o.parser?o.parser(t):t,t=o.formatter(t)),A.value||t!==L.value&&(n(je,t),n("input",t),await(0,r.nextTick)(),G(),q())},Q=e=>{n("change",e.target.value)},ee=e=>{n("compositionstart",e),A.value=!0},te=e=>{var t;n("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,o=r[r.length-1]||"";A.value=!ze(o)},re=e=>{n("compositionend",e),A.value&&(A.value=!1,J(e))},oe=()=>{O.value=!O.value,ie()},ie=async()=>{var e;await(0,r.nextTick)(),null==(e=F.value)||e.focus()},ae=()=>{var e;return null==(e=F.value)?void 0:e.blur()},le=e=>{S.value=!0,n("focus",e)},ue=e=>{var t;S.value=!1,n("blur",e),o.validateEvent&&(null==(t=null==g?void 0:g.validate)||t.call(g,"blur").catch((e=>(0,ne.N)(e))))},se=e=>{D.value=!1,n("mouseleave",e)},de=e=>{D.value=!0,n("mouseenter",e)},pe=e=>{n("keydown",e)},he=()=>{var e;null==(e=F.value)||e.select()},ge=()=>{n(je,""),n("change",""),n("clear"),n("input","")};return(0,r.watch)((()=>o.modelValue),(()=>{var e;(0,r.nextTick)((()=>K())),o.validateEvent&&(null==(e=null==g?void 0:g.validate)||e.call(g,"change").catch((e=>(0,ne.N)(e))))})),(0,r.watch)(L,(()=>G())),(0,r.watch)((()=>o.type),(async()=>{await(0,r.nextTick)(),G(),K(),Z()})),(0,r.onMounted)((async()=>{!o.formatter&&o.parser&&(0,ne.N)("ElInput","If you set the parser, you also need to set the formatter."),G(),Z(),await(0,r.nextTick)(),K()})),(0,r.onUpdated)((async()=>{await(0,r.nextTick)(),Z()})),t({input:E,textarea:k,ref:F,textareaStyle:M,autosize:(0,r.toRef)(o,"autosize"),focus:ie,blur:ae,select:he,clear:ge,resizeTextarea:K}),(e,t)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",(0,r.mergeProps)((0,r.unref)(s),{class:["textarea"===e.type?(0,r.unref)(C).b():(0,r.unref)(x).b(),(0,r.unref)(x).m((0,r.unref)(b)),(0,r.unref)(x).is("disabled",(0,r.unref)(w)),(0,r.unref)(x).is("exceed",(0,r.unref)(U)),{[(0,r.unref)(x).b("group")]:e.$slots.prepend||e.$slots.append,[(0,r.unref)(x).bm("group","append")]:e.$slots.append,[(0,r.unref)(x).bm("group","prepend")]:e.$slots.prepend,[(0,r.unref)(x).m("prefix")]:e.$slots.prefix||e.prefixIcon,[(0,r.unref)(x).m("suffix")]:e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword,[(0,r.unref)(x).bm("suffix","password-clear")]:(0,r.unref)(R)&&(0,r.unref)(z)},e.$attrs.class],style:(0,r.unref)(I),role:e.containerRole,onMouseenter:de,onMouseleave:se}),[(0,r.createCommentVNode)(" input "),"textarea"!==e.type?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createCommentVNode)(" prepend slot "),e.$slots.prepend?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)((0,r.unref)(x).be("group","prepend"))},[(0,r.renderSlot)(e.$slots,"prepend")],2)):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([(0,r.unref)(x).e("wrapper"),(0,r.unref)(x).is("focus",S.value)])},[(0,r.createCommentVNode)(" prefix slot "),e.$slots.prefix||e.prefixIcon?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)((0,r.unref)(x).e("prefix"))},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(x).e("prefix-inner"))},[(0,r.renderSlot)(e.$slots,"prefix"),e.prefixIcon?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:0,class:(0,r.normalizeClass)((0,r.unref)(x).e("icon"))},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.prefixIcon)))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0)],2)],2)):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("input",(0,r.mergeProps)({id:(0,r.unref)(y),ref_key:"input",ref:E,class:(0,r.unref)(x).e("inner")},(0,r.unref)(c),{type:e.showPassword?O.value?"text":"password":e.type,disabled:(0,r.unref)(w),formatter:e.formatter,parser:e.parser,readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label,placeholder:e.placeholder,style:e.inputStyle,onCompositionstart:ee,onCompositionupdate:te,onCompositionend:re,onInput:J,onFocus:le,onBlur:ue,onChange:Q,onKeydown:pe}),null,16,$e),(0,r.createCommentVNode)(" suffix slot "),(0,r.unref)(H)?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:1,class:(0,r.normalizeClass)((0,r.unref)(x).e("suffix"))},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(x).e("suffix-inner"))},[(0,r.unref)(R)&&(0,r.unref)(z)&&(0,r.unref)(V)?(0,r.createCommentVNode)("v-if",!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.renderSlot)(e.$slots,"suffix"),e.suffixIcon?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:0,class:(0,r.normalizeClass)((0,r.unref)(x).e("icon"))},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.suffixIcon)))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0)],64)),(0,r.unref)(R)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:1,class:(0,r.normalizeClass)([(0,r.unref)(x).e("icon"),(0,r.unref)(x).e("clear")]),onMousedown:(0,r.withModifiers)((0,r.unref)(Be.dG),["prevent"]),onClick:ge},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(h.K41))])),_:1},8,["class","onMousedown"])):(0,r.createCommentVNode)("v-if",!0),(0,r.unref)(z)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:2,class:(0,r.normalizeClass)([(0,r.unref)(x).e("icon"),(0,r.unref)(x).e("password")]),onClick:oe},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(N))))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0),(0,r.unref)(V)?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:3,class:(0,r.normalizeClass)((0,r.unref)(x).e("count"))},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(x).e("count-inner"))},(0,r.toDisplayString)((0,r.unref)($))+" / "+(0,r.toDisplayString)((0,r.unref)(c).maxlength),3)],2)):(0,r.createCommentVNode)("v-if",!0),(0,r.unref)(P)&&(0,r.unref)(T)&&(0,r.unref)(j)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:4,class:(0,r.normalizeClass)([(0,r.unref)(x).e("icon"),(0,r.unref)(x).e("validateIcon"),(0,r.unref)(x).is("loading","validating"===(0,r.unref)(P))])},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(T))))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0)],2)],2)):(0,r.createCommentVNode)("v-if",!0)],2),(0,r.createCommentVNode)(" append slot "),e.$slots.append?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,class:(0,r.normalizeClass)((0,r.unref)(x).be("group","append"))},[(0,r.renderSlot)(e.$slots,"append")],2)):(0,r.createCommentVNode)("v-if",!0)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createCommentVNode)(" textarea "),(0,r.createElementVNode)("textarea",(0,r.mergeProps)({id:(0,r.unref)(y),ref_key:"textarea",ref:k,class:(0,r.unref)(C).e("inner")},(0,r.unref)(c),{tabindex:e.tabindex,disabled:(0,r.unref)(w),readonly:e.readonly,autocomplete:e.autocomplete,style:(0,r.unref)(M),"aria-label":e.label,placeholder:e.placeholder,onCompositionstart:ee,onCompositionupdate:te,onCompositionend:re,onInput:J,onFocus:le,onBlur:ue,onChange:Q,onKeydown:pe}),null,16,Ue),(0,r.unref)(V)?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,style:(0,r.normalizeStyle)(_.value),class:(0,r.normalizeClass)((0,r.unref)(x).e("count"))},(0,r.toDisplayString)((0,r.unref)($))+" / "+(0,r.toDisplayString)((0,r.unref)(c).maxlength),7)):(0,r.createCommentVNode)("v-if",!0)],64))],16,Ve)),[[r.vShow,"hidden"!==e.type]])}});var qe=(0,te.Z)(We,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Ke=(0,we.nz)(qe),Ge=e=>{if(!e)return{onClick:Be.dG,onMousedown:Be.dG,onMouseup:Be.dG};let t=!1,n=!1;const r=r=>{t&&n&&e(r),t=n=!1},o=e=>{t=e.target===e.currentTarget},i=e=>{n=e.target===e.currentTarget};return{onClick:r,onMousedown:o,onMouseup:i}};var Ye=(e=>(e[e["TEXT"]=1]="TEXT",e[e["CLASS"]=2]="CLASS",e[e["STYLE"]=4]="STYLE",e[e["PROPS"]=8]="PROPS",e[e["FULL_PROPS"]=16]="FULL_PROPS",e[e["HYDRATE_EVENTS"]=32]="HYDRATE_EVENTS",e[e["STABLE_FRAGMENT"]=64]="STABLE_FRAGMENT",e[e["KEYED_FRAGMENT"]=128]="KEYED_FRAGMENT",e[e["UNKEYED_FRAGMENT"]=256]="UNKEYED_FRAGMENT",e[e["NEED_PATCH"]=512]="NEED_PATCH",e[e["DYNAMIC_SLOTS"]=1024]="DYNAMIC_SLOTS",e[e["HOISTED"]=-1]="HOISTED",e[e["BAIL"]=-2]="BAIL",e))(Ye||{});const Ze=(0,g.o8)({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:(0,g.Cq)([String,Array,Object])},zIndex:{type:(0,g.Cq)([String,Number])}}),Je={click:e=>e instanceof MouseEvent};var Xe=(0,r.defineComponent)({name:"ElOverlay",props:Ze,emits:Je,setup(e,{slots:t,emit:n}){const o=(0,X.s)("overlay"),i=e=>{n("click",e)},{onClick:a,onMousedown:l,onMouseup:u}=Ge(e.customMaskEvent?void 0:i);return()=>e.mask?(0,r.createVNode)("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:a,onMousedown:l,onMouseup:u},[(0,r.renderSlot)(t,"default")],Ye.STYLE|Ye.CLASS|Ye.PROPS,["onClick","onMouseup","onMousedown"]):(0,r.h)("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[(0,r.renderSlot)(t,"default")])}});const Qe=Xe;var et=n(4309);const tt='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',nt=e=>{const t=getComputedStyle(e);return"fixed"!==t.position&&null!==e.offsetParent},rt=e=>Array.from(e.querySelectorAll(tt)).filter((e=>ot(e)&&nt(e))),ot=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},it=(e,t,n,r=!1)=>{e&&t&&n&&(null==e||e.addEventListener(t,n,r))},at=(e,t,n,r=!1)=>{e&&t&&n&&(null==e||e.removeEventListener(t,n,r))},lt="_trap-focus-children",ut=[],st=e=>{if(0===ut.length)return;const t=ut[ut.length-1][lt];if(t.length>0&&e.code===et.n.tab){if(1===t.length)return e.preventDefault(),void(document.activeElement!==t[0]&&t[0].focus());const n=e.shiftKey,r=e.target===t[0],o=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},ct={beforeMount(e){e[lt]=rt(e),ut.push(e),ut.length<=1&&it(document,"keydown",st)},updated(e){(0,r.nextTick)((()=>{e[lt]=rt(e)}))},unmounted(){ut.shift(),0===ut.length&&at(document,"keydown",st)}},ft=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(n.nextNode())t.push(n.currentNode);return t},dt=(e,t)=>{for(const n of e)if(!pt(n,t))return n},pt=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;while(e){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},ht=e=>{const t=ft(e),n=dt(t,e),r=dt(t.reverse(),e);return[n,r]},gt=e=>e instanceof HTMLInputElement&&"select"in e,vt=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&>(e)&&t&&e.select()}};function mt(e,t){const n=[...e],r=e.indexOf(t);return-1!==r&&n.splice(r,1),n}const yt=()=>{let e=[];const t=t=>{const n=e[0];n&&t!==n&&n.pause(),e=mt(e,t),e.unshift(t)},n=t=>{var n,r;e=mt(e,t),null==(r=null==(n=e[0])?void 0:n.resume)||r.call(n)};return{push:t,remove:n}},bt=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(vt(r,t),document.activeElement!==n)return},wt=yt(),xt="focus-trap.focus-after-trapped",Ct="focus-trap.focus-after-released",Et={cancelable:!0,bubbles:!1},kt="focusAfterTrapped",St="focusAfterReleased",Dt=Symbol("elFocusTrap");let At=[];const Ot=e=>{const t=e=>{const t=e;t.key===et.n.esc&&At.forEach((e=>e(t)))};(0,r.onMounted)((()=>{0===At.length&&document.addEventListener("keydown",t),d.C5&&At.push(e)})),(0,r.onBeforeUnmount)((()=>{At=At.filter((t=>t!==e)),0===At.length&&d.C5&&document.removeEventListener("keydown",t)}))},_t=(0,r.defineComponent)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[kt,St,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=(0,r.ref)();let o,i;Ot((n=>{e.trapped&&!a.paused&&t("release-requested",n)}));const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=n=>{if(!e.loop&&!e.trapped)return;if(a.paused)return;const{key:r,altKey:o,ctrlKey:i,metaKey:l,currentTarget:u,shiftKey:s}=n,{loop:c}=e,f=r===et.n.tab&&!o&&!i&&!l,d=document.activeElement;if(f&&d){const e=u,[r,o]=ht(e),i=r&&o;i?s||d!==o?s&&[r,e].includes(d)&&(n.preventDefault(),c&&vt(o,!0),t("focusout-prevented")):(n.preventDefault(),c&&vt(r,!0),t("focusout-prevented")):d===e&&(n.preventDefault(),t("focusout-prevented"))}};(0,r.provide)(Dt,{focusTrapRef:n,onKeydown:l}),(0,r.watch)((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),(0,r.watch)([n],(([e],[t])=>{e&&(e.addEventListener("keydown",l),e.addEventListener("focusin",c),e.addEventListener("focusout",f)),t&&(t.removeEventListener("keydown",l),t.removeEventListener("focusin",c),t.removeEventListener("focusout",f))}));const u=e=>{t(kt,e)},s=e=>t(St,e),c=o=>{const l=(0,r.unref)(n);if(!l)return;const u=o.target,s=u&&l.contains(u);s&&t("focusin",o),a.paused||e.trapped&&(s?i=u:vt(i,!0))},f=o=>{const l=(0,r.unref)(n);if(!a.paused&&l)if(e.trapped){const t=o.relatedTarget;ke(t)||l.contains(t)||setTimeout((()=>{!a.paused&&e.trapped&&vt(i,!0)}),0)}else{const e=o.target,n=e&&l.contains(e);n||t("focusout",o)}};async function d(){await(0,r.nextTick)();const t=(0,r.unref)(n);if(t){wt.push(a);const n=document.activeElement;o=n;const i=t.contains(n);if(!i){const o=new Event(xt,Et);t.addEventListener(xt,u),t.dispatchEvent(o),o.defaultPrevented||(0,r.nextTick)((()=>{let r=e.focusStartEl;(0,Be.HD)(r)||(vt(r),document.activeElement!==r&&(r="first")),"first"===r&&bt(ft(t),!0),document.activeElement!==n&&"container"!==r||vt(t)}))}}}function p(){const e=(0,r.unref)(n);if(e){e.removeEventListener(xt,u);const t=new Event(Ct,Et);e.addEventListener(Ct,s),e.dispatchEvent(t),t.defaultPrevented||vt(null!=o?o:document.body,!0),e.removeEventListener(Ct,u),wt.remove(a)}}return(0,r.onMounted)((()=>{e.trapped&&d(),(0,r.watch)((()=>e.trapped),(e=>{e?d():p()}))})),(0,r.onBeforeUnmount)((()=>{e.trapped&&p()})),{onKeydown:l}}});function Bt(e,t,n,o,i,a){return(0,r.renderSlot)(e.$slots,"default",{handleKeydown:e.onKeydown})}var Ft=(0,te.Z)(_t,[["render",Bt],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]),jt=n(209);const Pt=e=>["",...jt.k].includes(e);var Tt=Array.isArray,Nt=Tt,It="object"==typeof global&&global&&global.Object===Object&&global,Mt=It,Lt="object"==typeof self&&self&&self.Object===Object&&self,Rt=Mt||Lt||Function("return this")(),zt=Rt,Vt=zt.Symbol,$t=Vt,Ut=Object.prototype,Ht=Ut.hasOwnProperty,Wt=Ut.toString,qt=$t?$t.toStringTag:void 0;function Kt(e){var t=Ht.call(e,qt),n=e[qt];try{e[qt]=void 0;var r=!0}catch(i){}var o=Wt.call(e);return r&&(t?e[qt]=n:delete e[qt]),o}var Gt=Kt,Yt=Object.prototype,Zt=Yt.toString;function Jt(e){return Zt.call(e)}var Xt=Jt,Qt="[object Null]",en="[object Undefined]",tn=$t?$t.toStringTag:void 0;function nn(e){return null==e?void 0===e?en:Qt:tn&&tn in Object(e)?Gt(e):Xt(e)}var rn=nn;function on(e){return null!=e&&"object"==typeof e}var an=on,ln="[object Symbol]";function un(e){return"symbol"==typeof e||an(e)&&rn(e)==ln}var sn=un,cn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fn=/^\w*$/;function dn(e,t){if(Nt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!sn(e))||(fn.test(e)||!cn.test(e)||null!=t&&e in Object(t))}var pn=dn;function hn(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var gn=hn,vn="[object AsyncFunction]",mn="[object Function]",yn="[object GeneratorFunction]",bn="[object Proxy]";function wn(e){if(!gn(e))return!1;var t=rn(e);return t==mn||t==yn||t==vn||t==bn}var xn=wn,Cn=zt["__core-js_shared__"],En=Cn,kn=function(){var e=/[^.]+$/.exec(En&&En.keys&&En.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Sn(e){return!!kn&&kn in e}var Dn=Sn,An=Function.prototype,On=An.toString;function _n(e){if(null!=e){try{return On.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Bn=_n,Fn=/[\\^$.*+?()[\]{}|]/g,jn=/^\[object .+?Constructor\]$/,Pn=Function.prototype,Tn=Object.prototype,Nn=Pn.toString,In=Tn.hasOwnProperty,Mn=RegExp("^"+Nn.call(In).replace(Fn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ln(e){if(!gn(e)||Dn(e))return!1;var t=xn(e)?Mn:jn;return t.test(Bn(e))}var Rn=Ln;function zn(e,t){return null==e?void 0:e[t]}var Vn=zn;function $n(e,t){var n=Vn(e,t);return Rn(n)?n:void 0}var Un=$n,Hn=Un(Object,"create"),Wn=Hn;function qn(){this.__data__=Wn?Wn(null):{},this.size=0}var Kn=qn;function Gn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Yn=Gn,Zn="__lodash_hash_undefined__",Jn=Object.prototype,Xn=Jn.hasOwnProperty;function Qn(e){var t=this.__data__;if(Wn){var n=t[e];return n===Zn?void 0:n}return Xn.call(t,e)?t[e]:void 0}var er=Qn,tr=Object.prototype,nr=tr.hasOwnProperty;function rr(e){var t=this.__data__;return Wn?void 0!==t[e]:nr.call(t,e)}var or=rr,ir="__lodash_hash_undefined__";function ar(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Wn&&void 0===t?ir:t,this}var lr=ar;function ur(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}ur.prototype.clear=Kn,ur.prototype["delete"]=Yn,ur.prototype.get=er,ur.prototype.has=or,ur.prototype.set=lr;var sr=ur;function cr(){this.__data__=[],this.size=0}var fr=cr;function dr(e,t){return e===t||e!==e&&t!==t}var pr=dr;function hr(e,t){var n=e.length;while(n--)if(pr(e[n][0],t))return n;return-1}var gr=hr,vr=Array.prototype,mr=vr.splice;function yr(e){var t=this.__data__,n=gr(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():mr.call(t,n,1),--this.size,!0}var br=yr;function wr(e){var t=this.__data__,n=gr(t,e);return n<0?void 0:t[n][1]}var xr=wr;function Cr(e){return gr(this.__data__,e)>-1}var Er=Cr;function kr(e,t){var n=this.__data__,r=gr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Sr=kr;function Dr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}Dr.prototype.clear=fr,Dr.prototype["delete"]=br,Dr.prototype.get=xr,Dr.prototype.has=Er,Dr.prototype.set=Sr;var Ar=Dr,Or=Un(zt,"Map"),_r=Or;function Br(){this.size=0,this.__data__={hash:new sr,map:new(_r||Ar),string:new sr}}var Fr=Br;function jr(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var Pr=jr;function Tr(e,t){var n=e.__data__;return Pr(t)?n["string"==typeof t?"string":"hash"]:n.map}var Nr=Tr;function Ir(e){var t=Nr(this,e)["delete"](e);return this.size-=t?1:0,t}var Mr=Ir;function Lr(e){return Nr(this,e).get(e)}var Rr=Lr;function zr(e){return Nr(this,e).has(e)}var Vr=zr;function $r(e,t){var n=Nr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Ur=$r;function Hr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}Hr.prototype.clear=Fr,Hr.prototype["delete"]=Mr,Hr.prototype.get=Rr,Hr.prototype.has=Vr,Hr.prototype.set=Ur;var Wr=Hr,qr="Expected a function";function Kr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(qr);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Kr.Cache||Wr),n}Kr.Cache=Wr;var Gr=Kr,Yr=500;function Zr(e){var t=Gr(e,(function(e){return n.size===Yr&&n.clear(),e})),n=t.cache;return t}var Jr=Zr,Xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qr=/\\(\\)?/g,eo=Jr((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Xr,(function(e,n,r,o){t.push(r?o.replace(Qr,"$1"):n||e)})),t})),to=eo;function no(e,t){var n=-1,r=null==e?0:e.length,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}var ro=no,oo=1/0,io=$t?$t.prototype:void 0,ao=io?io.toString:void 0;function lo(e){if("string"==typeof e)return e;if(Nt(e))return ro(e,lo)+"";if(sn(e))return ao?ao.call(e):"";var t=e+"";return"0"==t&&1/e==-oo?"-0":t}var uo=lo;function so(e){return null==e?"":uo(e)}var co=so;function fo(e,t){return Nt(e)?e:pn(e,t)?[e]:to(co(e))}var po=fo,ho=1/0;function go(e){if("string"==typeof e||sn(e))return e;var t=e+"";return"0"==t&&1/e==-ho?"-0":t}var vo=go;function mo(e,t){t=po(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[vo(t[n++])];return n&&n==r?e:void 0}var yo=mo;function bo(e,t,n){var r=null==e?void 0:yo(e,t);return void 0===r?n:r}var wo=bo,xo={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Co=e=>(t,n)=>Eo(t,n,(0,r.unref)(e)),Eo=(e,t,n)=>wo(n,e,e).replace(/\{(\w+)\}/g,((e,n)=>{var r;return`${null!=(r=null==t?void 0:t[n])?r:`{${n}}`}`})),ko=e=>{const t=(0,r.computed)((()=>(0,r.unref)(e).name)),n=(0,r.isRef)(e)?e:(0,r.ref)(e);return{lang:t,locale:n,t:Co(e)}},So=()=>{const e=(0,ie.W)("locale");return ko((0,r.computed)((()=>e.value||xo)))};var Do=n(4568),Ao=n(7675);const Oo=(e,t,n)=>{let o={offsetX:0,offsetY:0};const i=t=>{const n=t.clientX,r=t.clientY,{offsetX:i,offsetY:a}=o,l=e.value.getBoundingClientRect(),u=l.left,s=l.top,c=l.width,f=l.height,d=document.documentElement.clientWidth,p=document.documentElement.clientHeight,h=-u+i,g=-s+a,v=d-u-c+i,m=p-s-f+a,y=t=>{const l=Math.min(Math.max(i+t.clientX-n,h),v),u=Math.min(Math.max(a+t.clientY-r,g),m);o={offsetX:l,offsetY:u},e.value.style.transform=`translate(${(0,Ao.Nn)(l)}, ${(0,Ao.Nn)(u)})`},b=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};(0,r.onMounted)((()=>{(0,r.watchEffect)((()=>{n.value?a():l()}))})),(0,r.onBeforeUnmount)((()=>{l()}))};let _o;const Bo=()=>{var e;if(!d.C5)return 0;if(void 0!==_o)return _o;const t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",t.appendChild(r);const o=r.offsetWidth;return null==(e=t.parentNode)||e.removeChild(t),_o=n-o,_o};const Fo=e=>{if((0,r.isRef)(e)||(0,ne._)("[useLockscreen]","You need to pass a ref param to this function"),!d.C5||(0,Ao.pv)(document.body,"el-popup-parent--hidden"))return;let t=0,n=!1,o="0",i=0;const a=()=>{(0,Ao.IV)(document.body,"el-popup-parent--hidden"),n&&(document.body.style.paddingRight=o)};(0,r.watch)(e,(e=>{if(!e)return void a();n=!(0,Ao.pv)(document.body,"el-popup-parent--hidden"),n&&(o=document.body.style.paddingRight,i=Number.parseInt((0,Ao.C2)(document.body,"paddingRight"),10)),t=Bo();const r=document.documentElement.clientHeight<document.body.scrollHeight,l=(0,Ao.C2)(document.body,"overflowY");t>0&&(r||"scroll"===l)&&n&&(document.body.style.paddingRight=`${i+t}px`),(0,Ao.cn)(document.body,"el-popup-parent--hidden")})),(0,r.onScopeDispose)((()=>a()))},jo=(e,t)=>{let n;(0,r.watch)((()=>e.value),(e=>{var o,i;e?(n=document.activeElement,(0,r.isRef)(t)&&(null==(i=(o=t.value).focus)||i.call(o))):n.focus()}))},Po=(0,r.defineComponent)({name:"ElMessageBox",directives:{TrapFocus:ct},components:{ElButton:xe,ElFocusTrap:Ft,ElInput:Ke,ElOverlay:Qe,ElIcon:p.gn,...m.f5},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Pt},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=So(),o=(0,X.s)("message-box"),i=(0,r.ref)(!1),{nextZIndex:a}=(0,Do.C)(),l=(0,r.reactive)({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:a()}),u=(0,r.computed)((()=>{const e=l.type;return{[o.bm("icon",e)]:e&&m.Rp[e]}})),s=ue(),c=ue(),f=(0,v.tH)((0,r.computed)((()=>e.buttonSize)),{prop:!0,form:!0,formItem:!0}),d=(0,r.computed)((()=>l.icon||m.Rp[l.type]||"")),p=(0,r.computed)((()=>!!l.message)),h=(0,r.ref)(),g=(0,r.ref)(),y=(0,r.ref)(),b=(0,r.ref)(),w=(0,r.ref)(),x=(0,r.computed)((()=>l.confirmButtonClass));(0,r.watch)((()=>l.inputValue),(async t=>{await(0,r.nextTick)(),"prompt"===e.boxType&&null!==t&&O()}),{immediate:!0}),(0,r.watch)((()=>i.value),(t=>{var n,o;t&&("prompt"!==e.boxType&&(l.autofocus?y.value=null!=(o=null==(n=w.value)?void 0:n.$el)?o:h.value:y.value=h.value),l.zIndex=a()),"prompt"===e.boxType&&(t?(0,r.nextTick)().then((()=>{var e;b.value&&b.value.$el&&(l.autofocus?y.value=null!=(e=_())?e:h.value:y.value=h.value)})):(l.editorErrorMessage="",l.validateError=!1))}));const C=(0,r.computed)((()=>e.draggable));function E(){i.value&&(i.value=!1,(0,r.nextTick)((()=>{l.action&&t("action",l.action)})))}Oo(h,g,C),(0,r.onMounted)((async()=>{await(0,r.nextTick)(),e.closeOnHashChange&&it(window,"hashchange",E)})),(0,r.onBeforeUnmount)((()=>{e.closeOnHashChange&&at(window,"hashchange",E)}));const k=()=>{e.closeOnClickModal&&A(l.distinguishCancelAndClose?"close":"cancel")},S=Ge(k),D=e=>{if("textarea"!==l.inputType)return e.preventDefault(),A("confirm")},A=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||O())&&(l.action=t,l.beforeClose?null==(n=l.beforeClose)||n.call(l,t,l,E):E())},O=()=>{if("prompt"===e.boxType){const e=l.inputPattern;if(e&&!e.test(l.inputValue||""))return l.editorErrorMessage=l.inputErrorMessage||n("el.messagebox.error"),l.validateError=!0,!1;const t=l.inputValidator;if("function"===typeof t){const e=t(l.inputValue);if(!1===e)return l.editorErrorMessage=l.inputErrorMessage||n("el.messagebox.error"),l.validateError=!0,!1;if("string"===typeof e)return l.editorErrorMessage=e,l.validateError=!0,!1}}return l.editorErrorMessage="",l.validateError=!1,!0},_=()=>{const e=b.value.$refs;return e.input||e.textarea},B=()=>{A("close")},F=()=>{e.closeOnPressEscape&&B()};return e.lockScroll&&Fo(i),jo(i),{...(0,r.toRefs)(l),ns:o,overlayEvent:S,visible:i,hasMessage:p,typeClass:u,contentId:s,inputId:c,btnSize:f,iconComponent:d,confirmButtonClasses:x,rootRef:h,focusStartRef:y,headerRef:g,inputRef:b,confirmRef:w,doClose:E,handleClose:B,onCloseRequested:F,handleWrapperClick:k,handleInputEnter:D,handleAction:A,t:n}}}),To=["aria-label","aria-describedby"],No=["aria-label"],Io=["id"];function Mo(e,t,n,o,i,a){const l=(0,r.resolveComponent)("el-icon"),u=(0,r.resolveComponent)("close"),s=(0,r.resolveComponent)("el-input"),c=(0,r.resolveComponent)("el-button"),f=(0,r.resolveComponent)("el-focus-trap"),d=(0,r.resolveComponent)("el-overlay");return(0,r.openBlock)(),(0,r.createBlock)(r.Transition,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=t=>e.$emit("vanish")),persisted:""},{default:(0,r.withCtx)((()=>[(0,r.withDirectives)((0,r.createVNode)(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:(0,r.normalizeClass)(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...t)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...t)),onMousedown:t[9]||(t[9]=(...t)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...t)),onMouseup:t[10]||(t[10]=(...t)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...t))},[(0,r.createVNode)(f,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",{ref:"rootRef",class:(0,r.normalizeClass)([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:(0,r.normalizeStyle)(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=(0,r.withModifiers)((()=>{}),["stop"]))},[null!==e.title&&void 0!==e.title?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,ref:"headerRef",class:(0,r.normalizeClass)(e.ns.e("header"))},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("title"))},[e.iconComponent&&e.center?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,class:(0,r.normalizeClass)([e.ns.e("status"),e.typeClass])},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.iconComponent)))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.title),1)],2),e.showClose?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:(0,r.normalizeClass)(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)((t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),["prevent"]),["enter"]))},[(0,r.createVNode)(l,{class:(0,r.normalizeClass)(e.ns.e("close"))},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(u)])),_:1},8,["class"])],42,No)):(0,r.createCommentVNode)("v-if",!0)],2)):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("div",{id:e.contentId,class:(0,r.normalizeClass)(e.ns.e("content"))},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,class:(0,r.normalizeClass)([e.ns.e("status"),e.typeClass])},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.iconComponent)))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0),e.hasMessage?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,class:(0,r.normalizeClass)(e.ns.e("message"))},[(0,r.renderSlot)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.dangerouslyUseHTMLString?"":e.message),1)])),_:1},8,["for"]))]))],2)):(0,r.createCommentVNode)("v-if",!0)],2),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("input"))},[(0,r.createVNode)(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputValue=t),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:(0,r.normalizeClass)({invalid:e.validateError}),onKeydown:(0,r.withKeys)(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("errormsg")),style:(0,r.normalizeStyle)({visibility:e.editorErrorMessage?"visible":"hidden"})},(0,r.toDisplayString)(e.editorErrorMessage),7)],2),[[r.vShow,e.showInput]])],10,Io),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("btns"))},[e.showCancelButton?((0,r.openBlock)(),(0,r.createBlock)(c,{key:0,loading:e.cancelButtonLoading,class:(0,r.normalizeClass)([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=t=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=(0,r.withKeys)((0,r.withModifiers)((t=>e.handleAction("cancel")),["prevent"]),["enter"]))},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.cancelButtonText||e.t("el.messagebox.cancel")),1)])),_:1},8,["loading","class","round","size"])):(0,r.createCommentVNode)("v-if",!0),(0,r.withDirectives)((0,r.createVNode)(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:(0,r.normalizeClass)([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=t=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=(0,r.withKeys)((0,r.withModifiers)((t=>e.handleAction("confirm")),["prevent"]),["enter"]))},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.confirmButtonText||e.t("el.messagebox.confirm")),1)])),_:1},8,["loading","class","round","disabled","size"]),[[r.vShow,e.showConfirmButton]])],2)],6)])),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,To)])),_:3},8,["z-index","overlay-class","mask"]),[[r.vShow,e.visible]])])),_:3})}var Lo=(0,te.Z)(Po,[["render",Mo],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]),Ro=n(5162);const zo=new Map,Vo=(e,t,n=null)=>{const o=(0,r.h)(Lo,e);return o.appContext=n,(0,r.render)(o,t),document.body.appendChild(t.firstElementChild),o.component},$o=()=>document.createElement("div"),Uo=(e,t)=>{const n=$o();e.onVanish=()=>{(0,r.render)(null,n),zo.delete(i)},e.onAction=t=>{const n=zo.get(i);let r;r=e.showInput?{value:i.inputValue,action:t}:t,e.callback?e.callback(r,o.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(r)};const o=Vo(e,n,t),i=o.proxy;for(const r in e)(0,Be.RI)(e,r)&&!(0,Be.RI)(i.$props,r)&&(i[r]=e[r]);return(0,r.watch)((()=>i.message),((e,t)=>{(0,r.isVNode)(e)?o.slots.default=()=>[e]:(0,r.isVNode)(t)&&!(0,r.isVNode)(e)&&delete o.slots.default}),{immediate:!0}),i.visible=!0,i};function Ho(e,t=null){if(!d.C5)return Promise.reject();let n;return(0,Be.HD)(e)||(0,r.isVNode)(e)?e={message:e}:n=e.callback,new Promise(((r,o)=>{const i=Uo(e,null!=t?t:Ho._context);zo.set(i,{options:e,callback:n,resolve:r,reject:o})}))}const Wo=["alert","confirm","prompt"],qo={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};function Ko(e){return(t,n,r,o)=>{let i;return(0,Be.Kn)(n)?(r=n,i=""):i=(0,Ro.o8)(n)?"":n,Ho(Object.assign({title:i,message:t,type:"",...qo[e]},r,{boxType:e}),o)}}Wo.forEach((e=>{Ho[e]=Ko(e)})),Ho.close=()=>{zo.forEach(((e,t)=>{t.doClose()})),zo.clear()},Ho._context=null;const Go=Ho;Go.install=e=>{Go._context=e._context,e.config.globalProperties.$msgbox=Go,e.config.globalProperties.$messageBox=Go,e.config.globalProperties.$alert=Go.alert,e.config.globalProperties.$confirm=Go.confirm,e.config.globalProperties.$prompt=Go.prompt};const Yo=Go;var Zo=n(9489),Jo=n(6486),Xo=n(2343),Qo=n(7484),ei=n.n(Qo);const ti={"page-sizes":[10,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"};var ni=(0,r.defineComponent)({name:"JwtTable",components:{},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},request:{type:Function,require:!0,default:()=>{}},uploadUrl:{type:String,default:""},uploadRichTextUrl:{type:String,default:""},fillUrl:{type:Function,default:null},userMenusAuth:{type:Object,default:()=>{}},route:{type:Object,default:()=>{}},router:{type:Object,default:()=>{}}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success"],setup(e,{emit:t}){const n=(0,r.reactive)({tableData:[],ajaxLoading:!1,submitLoading:!1}),{proxy:o}=(0,r.getCurrentInstance)();let i=(0,r.reactive)((0,Jo.merge)({headerActions:{list:[]},headerActionsShow:!0,tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0},tableColumn:[],tableListApi:null,tableListParams:{},tableDeleteApi:null,tableDeleteParams:{},pagination:ti,showPagination:!0,editBox:{title:"系统",dialog:{width:"960px"},form:{api:{add:null,update:null},formAttrs:{},formList:[]},footer:{confirm:{title:"确认",attrs:{type:"primary"}},cancel:{title:"取消",attrs:{}}}}},e.config));console.log("appConfig appConfig:>> ",i);const a=(0,r.reactive)({currentPage:1,pageCount:1,pageSize:i.pagination["page-sizes"][0],totalCount:1,sort:"id",order:"desc"}),l=(0,r.reactive)({title:"",type:"add",visible:!1,model:{},boxName:"editBox"}),u=(0,r.ref)([]),s=(0,r.ref)({}),c=(0,r.ref)(null),f=(0,r.computed)((()=>{const{path:t}=e.route;return t||""})),d=(0,r.computed)((()=>e.userMenusAuth||{})),p=(e={})=>{const t=l.boxName,n={};return i[t].form.formList.forEach((t=>{const{key:r,type:o,startKey:i,endKey:a,formAttrs:{multiple:l,valueType:u}}=t;e[r]&&"inputNumber"===o?n[r]=+e[r]:l?Xo.F.isArray(e[r])||(n[r]="number"===u?e[r]?e[r]?.split(",")?.map((e=>+e)):[]:e[r]?e[r]?.split(","):[]):"datePickerRange"===o?c.value.setDatePickerRange([e[i],e[a]]):n[r]=""===e[r]||void 0===e[r]?t.value:e[r]})),n},h=()=>{const{query:t}=e.route;if(t.fromJump){for(let[e,r]of Object.entries(t))Xo.F.isArray(r)&&(t[e]=r.map((e=>+e)));const n={...s.value,...e.route.query};delete n.fromJump,s.value=n}g()},g=()=>{const e=(0,Jo.merge)({page:a.currentPage,per_page:a.pageSize,sort:a.sort,order:a.order},i.tableListParams,s.value);console.log("appConfig.tableListParams :>> ",i.tableListParams),console.log("params :>> ",e),v(e)},v=r=>{i.tableListApi?(n.ajaxLoading=!0,e.request({url:i.tableListApi,method:"get",params:r}).then((e=>{n.tableData=e.data,a.pageCount=e.totalPage,a.totalCount=e.total,n.ajaxLoading=!1,t("tablelist-change")}))):i.tableData&&(n.tableData=i.tableData)},m=()=>{a.currentPage=1,a.pageSize=i.pagination["page-sizes"][0],g()},y=()=>{a.currentPage=1,a.pageSize=i.pagination["page-sizes"][0],g(s.value)},b=e=>{a.currentPage=e,g()},w=e=>{a.pageSize=e,g()},x=(e,t="")=>null===e||""===e||void 0===e?"-":t?ei()(e).format(t):e,C=e=>{u.value=e,t("selection-change",e)},E=({prop:e,order:t})=>{a.sort=e,a.order="ascending"===t?"asc":"desc",g()},k=e=>{t("table-current-change",e)},S=n=>{const{code:r}=n,o=i.headerActions[r];switch(console.log("handleHeaderAction",o),r){case"add":case"add1":case"add2":case"add3":o&&"editBox"===o.type?(B("",o),t("add-handle",u.value)):o&&"editRoute"===o.type?(console.log("跳转到新建页面"),o.jumpUrl&&e?.router?.push({path:o.jumpUrl,query:o.jumpParams})):t("add-handle",u.value);break;case"delete":case"delete1":case"delete2":case"deleteR":o&&o.event?t(o.event,u.value):Yo.confirm("此操作将会永久删除数据,是否继续?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{const e=u.value.map((e=>e.id)).join(",");j({id:e})})).catch((()=>{Zo.z8.info("取消操作!")}));break;case"exportF":P();break;default:o&&"editBox"===o.type?B("",o):t("header-action",n,u.value)}},D=(n,r,o)=>{const i=o.action[n.code];switch(n.code){case"edit":case"edit1":case"edit2":i&&"editBox"===i.type?(B(r,i),t("edit-handle",r)):i&&"editRoute"===i.type?(console.log("跳转到新建页面"),i.jumpUrl&&e?.router?.push({path:i.jumpUrl,query:r})):t("edit-handle",r);break;case"delete":case"delete1":case"delete2":case"deleteR":r&&r.event?t(r.event,u.value):Yo.confirm("此操作将会永久删除数据,是否继续?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{j({id:r.id})})).catch((()=>{Zo.z8.info("取消操作!")}));break;default:i&&"editRoute"===i.type?(console.log("跳转到新建页面"),e.router.push({path:i.jumpUrl,query:r})):i&&"editBox"===i.type?B(r,i):t("table-action",n,r)}},A=async e=>{"confirm"===e&&(n.submitLoading=!0,c.value.formSubmit()),"cancel"===e&&(l.visible=!1)},O=e=>{l.visible=!1,n.submitLoading=!1,t("list-change"),t("add-success",e),y()},_=e=>{l.visible=!1,n.submitLoading=!1,t("list-change"),t("edit-success",e),y()},B=(t,n)=>{if(console.log("handleEdit config",e.config.editBox),console.log("row",t),console.log("rowAction",n),!e.config.editBox)return;const{editBoxName:o}=n;console.log("boxName",o);const a=o||"editBox";console.log("editBoxName :>> ",a),l.boxName=a,l.visible=!0,(0,r.nextTick)((()=>{l.visible=!0,t?i?.[a]?.form?.api?.detail?F(t,a):(l.model=p(t),l.model.id=t.id,l.title=i[a].customTitle?i[a].title:"编辑"+i.editBox.title,l.type="edit"):(l.model={},i.editBox.form.formList.forEach((e=>{void 0!==e.value&&(l.model[e.key]=e.value)})),l.title=i[a].customTitle?i.editBox.title:"新建"+i.editBox.title,l.type="add")}))},F=(n,r)=>{const o={id:n.id};e.request({url:i[r].form.api.detail,method:"get",params:o}).then((e=>{l.model=p(e),l.model.id=e.id,l.title=i[r].customTitle?i[r].title:"编辑"+i.editBox.title,l.type="edit",t("get-detail-success",e)}))},j=n=>{e.request({url:i.tableDeleteApi,method:"post",data:n}).then((()=>{t("delete-success"),y()}))},P=()=>{if(!i.tableExportApi)return void Zo.z8.info("请配置导出接口!");if(!n.tableData.length)return void Zo.z8.info("暂无数据可导出!");const t=o.$baseColorfullLoading(0,"正在下载中。。。"),r=(0,Jo.merge)({page:a.currentPage,per_page:a.pageSize,sort:a.sort,order:a.order},i.tableListParams,s.value);e.request({url:i.tableExportApi,method:"get",resType:"blob",responseType:"blob",timeout:12e4,params:r}).then((e=>{let n=window.URL.createObjectURL(new Blob([e])),r=document.createElement("a");r.style.display="none",r.href=n,r.setAttribute("download",`${i.tableExportName||"文件"}-${ei()().format("YYYY-MM-DD")}.xlsx`),document.body.appendChild(r),r.click(),t.close()}))},T=(e,t,n=!0)=>{console.log("row",e),console.log("item",t),e[`isEdit${t.prop}`]=n},N=(t,n)=>{const{id:r}=t,{prop:o}=n;if(r){var a={id:r};if(a[o]=t[o],!i.tableUpdateApi)return Zo.z8.info("请配置编辑接口!tableUpdateApi");e.request({url:i.tableUpdateApi,method:"post",data:a}).then((()=>{t[`isEdit${o}`]=!1}))}},I=t=>e.fillUrl&&Xo.F.isFunction(e.fillUrl)?e.fillUrl(t):t;return(0,r.watch)(e,(t=>{console.log("watch props",e),i=(0,Jo.merge)(i,t.config),console.log("appConfig :>> ",i),t.config.tableData&&(n.tableData=t.config.tableData||[])})),(0,r.onBeforeMount)((()=>{h()})),{...(0,r.toRefs)(n),currentPagePath:f,appConfig:i,pagination:a,editBoxInfo:l,selectionRow:u,tableSearchModel:s,editBoxRef:c,dayjs:ei(),userMenusAuthObj:d,onSearchSubmit:y,onSearchReset:m,handleEdit:B,handleCurrentChange:b,handleSizeChange:w,handleSelectionChange:C,handleTableCurrentChange:k,handleSortChange:E,handleHeaderAction:S,handleTableAction:D,handleGetDetail:F,handleBox:A,filterVal:x,initSearch:h,handleAddSuccess:O,handleEditSuccess:_,handleEditRow:T,handleEditRowProp:N,handleFillUrl:I}}}),ri=n(3744);const oi=(0,ri.Z)(ni,[["render",f],["__scopeId","data-v-9e6b1136"]]);var ii=oi},1700:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});n(6699);var r=n(7203);const o={class:"table-actions"};function i(e,t,n,i,a,l){const u=(0,r.resolveComponent)("el-button");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.tableButtonActions,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(u,{key:n,class:(0,r.normalizeClass)([t.code.includes("delete")?"cd":""]),disabled:t.disabled,link:"",size:"small",type:"primary",onClick:n=>e.handleTableAction(t)},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(t.show_title||t.title),1)])),_:2},1032,["class","disabled","onClick"])))),128))])}var a=n(2343),l=(0,r.defineComponent)({name:"JwtTableButton",props:{currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},config:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},operationName:{type:String,default:"operations"}},emits:["table-action"],setup(e,{emit:t}){const{currentPath:n,menusObj:o,operationName:i}=e,l=(0,r.computed)((()=>e.config?.action||{})),u=(0,r.computed)((()=>{const t=o[n],r=e?.config?.action?.list||[];return t?.[i]?.length?t[i].filter((t=>{let n=t.show_table;if(r?.length){const{code:e}=t;n=n&&r.includes(e)}return l?.value?.[t.code]?.condition&&a.F.isFunction(l.value[t.code].condition)&&(n=n&&l.value[t.code].condition(e.row)),l?.value?.[t.code]?.disabledFun&&a.F.isFunction(l.value[t.code].disabledFun)&&(t.disabled=l.value[t.code].disabledFun(e.row)),n})):[]})),s=e=>{t("table-action",e)};return{tableButtonActions:u,handleTableAction:s}}}),u=n(3744);const s=(0,u.Z)(l,[["render",i]]);var c=s},5232:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var r=n(7203);const o={class:"app-table-wrapper"},i=["onDblclick"],a={class:"image-slot wh fxmc"},l={class:"fxr"};function u(e,t,n,u,s,c){const f=(0,r.resolveComponent)("el-input"),d=(0,r.resolveComponent)("el-input-number"),p=(0,r.resolveComponent)("jwt-upload-image"),h=(0,r.resolveComponent)("el-switch"),g=(0,r.resolveComponent)("jwt-icon"),v=(0,r.resolveComponent)("el-image"),m=(0,r.resolveComponent)("el-table-column"),y=(0,r.resolveComponent)("el-table"),b=(0,r.resolveComponent)("el-pagination"),w=(0,r.resolveDirective)("loading");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.renderSlot)(e.$slots,"table-before",{},void 0,!0),(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(y,(0,r.mergeProps)(e.appConfig.tableAttr,{ref:"tableRef",class:"mt15",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":"加载数据中...",height:e.tableHeight,onCurrentChange:e.handleTableCurrentChange,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.appConfig.tableColumn,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(m,{key:n,align:t.align||"center",fixed:t.fixed,label:t.label,"min-width":t.minWidth?t.minWidth:null,prop:t.prop,sortable:t.sortable,type:t.type,width:t.width?t.width:null},(0,r.createSlots)({_:2},[t.type?void 0:{name:"default",fn:(0,r.withCtx)((({row:n,$index:o})=>[t.dateTimeFormat?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createTextVNode)((0,r.toDisplayString)(e.filterVal(n[t.prop],t.dateTimeFormat)),1)],64)):t.editType?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},["input"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,type:"text",onKeydown:(0,r.withKeys)((r=>e.handleEditRowProp(n,t)),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):"inputNumber"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(d,{key:1,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,"controls-position":"right",min:0,onBlur:r=>e.handleEditRowProp(n,t)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):"uploadImg"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(p,{key:2,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,"fill-url":e.fillUrl,"upload-url":e.uploadUrl,onOnChange:r=>e.handleEditRowProp(n,t)},null,8,["modelValue","onUpdate:modelValue","fill-url","upload-url","onOnChange"])):"switch"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(h,{key:3,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,"active-value":1,"inactive-value":0,onChange:r=>e.handleEditRowProp(n,t)},null,8,["modelValue","onUpdate:modelValue","onChange"])):(0,r.createCommentVNode)("",!0)],64)):t.editInput?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[(0,r.withDirectives)((0,r.createElementVNode)("div",{onDblclick:r=>e.handleEditRow(n,t)},(0,r.toDisplayString)(e.filterVal(n[t.prop])),41,i),[[r.vShow,!n[`isEdit${t.prop}`]]]),(0,r.withDirectives)((0,r.createVNode)(f,{modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,type:"text",onBlur:r=>e.handleEditRowProp(n,t),onKeyup:(0,r.withKeys)((r=>e.handleEditRowProp(n,t)),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeyup"]),[[r.vShow,n[`isEdit${t.prop}`]]])],64)):t.isImg?((0,r.openBlock)(),(0,r.createBlock)(v,{key:3,"preview-src-list":[e.handleFillUrl(n[t.prop])],"preview-teleported":"",size:80,src:e.handleFillUrl(n[t.prop]),teleported:""},{error:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(g,{class:"g9",icon:"image-line",style:{"font-size":"40px"}})])])),_:2},1032,["preview-src-list","src"])):(0,r.renderSlot)(e.$slots,t.prop,{key:4,index:o,scope:n},(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.filterVal(n[t.prop])),1)]),!0)]))}]),1032,["align","fixed","label","min-width","prop","sortable","type","width"])))),128))])),_:3},16,["data","height","onCurrentChange","onSelectionChange","onSortChange"])),[[w,e.ajaxLoading]]),(0,r.createElementVNode)("div",l,[e.appConfig.showPagination?((0,r.openBlock)(),(0,r.createBlock)(b,(0,r.mergeProps)({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):(0,r.createCommentVNode)("",!0)])])}var s=n(9489),c=n(6486),f=n(2343),d=n(7484),p=n.n(d);const h={"page-sizes":[10,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"};var g=(0,r.defineComponent)({name:"JwtTableOnly",components:{},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},request:{type:Function,require:!0,default:()=>{}},uploadUrl:{type:String,default:""},fillUrl:{type:Function,default:null},userMenusAuth:{type:Object,default:()=>{}}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success"],setup(e,{emit:t}){const n=(0,r.reactive)({tableData:[],ajaxLoading:!1,submitLoading:!1});let o=(0,r.reactive)((0,c.merge)({tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0},tableColumn:[],tableListApi:null,tableListParams:{},tableDeleteApi:null,tableDeleteParams:{},pagination:h,showPagination:!0},e.config));console.log("appConfig appConfig:>> ",o);const i=(0,r.reactive)({currentPage:1,pageCount:1,pageSize:o.pagination["page-sizes"][0],totalCount:1,sort:"id",order:"desc"}),a=(0,r.ref)([]),l=(0,r.ref)({}),u=(0,r.ref)(null),d=(0,r.computed)((()=>e.userMenusAuth||{})),g=()=>{v()},v=()=>{const e=(0,c.merge)({page:i.currentPage,per_page:i.pageSize,sort:i.sort,order:i.order},o.tableListParams,l.value);console.log("appConfig.tableListParams :>> ",o.tableListParams),console.log("params :>> ",e),m(e)},m=r=>{o.tableListApi?(n.ajaxLoading=!0,e.request({url:o.tableListApi,method:"get",params:r}).then((e=>{n.tableData=e.data,i.pageCount=e.totalPage,i.totalCount=e.total,n.ajaxLoading=!1,t("tablelist-change")}))):o.tableData&&(n.tableData=o.tableData)},y=()=>{i.currentPage=1,i.pageSize=o.pagination["page-sizes"][0],v()},b=()=>{i.currentPage=1,i.pageSize=o.pagination["page-sizes"][0],v(l.value)},w=e=>{i.currentPage=e,v()},x=e=>{i.pageSize=e,v()},C=(e,t="")=>null===e||""===e||void 0===e?"-":t?p()(e).format(t):e,E=e=>{a.value=e,t("selection-change",e)},k=({prop:e,order:t})=>{i.sort=e,i.order="ascending"===t?"asc":"desc",v()},S=e=>{t("table-current-change",e)},D=(e,t,n=!0)=>{console.log("row",e),console.log("item",t),e[`isEdit${t.prop}`]=n},A=(t,n)=>{const{id:r}=t,{prop:i}=n;if(r){var a={id:r};if(a[i]=t[i],!o.tableUpdateApi)return s.z8.info("请配置编辑接口!tableUpdateApi");e.request({url:o.tableUpdateApi,method:"post",data:a}).then((()=>{t[`isEdit${i}`]=!1}))}},O=t=>e.fillUrl&&f.F.isFunction(e.fillUrl)?e.fillUrl(t):t;return(0,r.watch)(e,(t=>{console.log("watch props",e),o=(0,c.merge)(o,t.config),console.log("appConfig :>> ",o),t.config.tableData&&(n.tableData=t.config.tableData||[])})),(0,r.onBeforeMount)((()=>{g()})),{...(0,r.toRefs)(n),appConfig:o,pagination:i,selectionRow:a,tableSearchModel:l,editBoxRef:u,dayjs:p(),userMenusAuthObj:d,onSearchSubmit:b,onSearchReset:y,handleCurrentChange:w,handleSizeChange:x,handleSelectionChange:E,handleTableCurrentChange:S,handleSortChange:k,filterVal:C,initSearch:g,handleEditRow:D,handleEditRowProp:A,handleFillUrl:O}}}),v=n(3744);const m=(0,v.Z)(g,[["render",u],["__scopeId","data-v-a4fd9176"]]);var y=m},8050:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(7203);function o(e,t,n,o,i,a){const l=(0,r.resolveComponent)("el-tag"),u=(0,r.resolveComponent)("el-input"),s=(0,r.resolveComponent)("el-button");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.tagList,(t=>((0,r.openBlock)(),(0,r.createBlock)(l,{key:t,class:"mx-1",closable:"","disable-transitions":!1,onClose:n=>e.handleClose(t)},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(t),1)])),_:2},1032,["onClose"])))),128)),e.inputVisible?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.inputValue=t),class:"w120",size:"small",onBlur:e.handleInputConfirm,onKeyup:(0,r.withKeys)(e.handleInputConfirm,["enter"])},null,8,["modelValue","onBlur","onKeyup"])):((0,r.openBlock)(),(0,r.createBlock)(s,{key:1,class:"button-new-tag",size:"small",onClick:e.showInput},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)(" + "+(0,r.toDisplayString)(e.btnTitle),1)])),_:1},8,["onClick"]))],64)}var i=n(2343),a=(0,r.defineComponent)({name:"JwtTags",props:{modelValue:{type:[String,Array],default:""},btnTitle:{type:String,default:"添加"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=(0,r.ref)(null),o=(0,r.reactive)({tagList:[],inputVisible:!1,inputValue:"",initOnce:!1}),a=()=>{if(o.initOnce)return;let t=[];return e.modelValue&&i.F.isString(e.modelValue)&&(t=e?.modelValue?.split(",")),o.initOnce=!0,t};(0,r.watch)((()=>e.modelValue),(e=>{console.log("watch",e),o.initOnce||(o.tagList=e?a():[])}),{immediate:!0});const l=()=>{o.inputVisible=!0,(0,r.nextTick)((()=>{n.value?.input?.focus()}))},u=e=>{o.tagList.splice(o.tagList.indexOf(e),1),s()},s=()=>{const e=o.tagList.join(",");t("update:modelValue",e)},c=()=>{o.inputValue&&o.tagList.push(o.inputValue),o.inputVisible=!1,o.inputValue="",s()};return(0,r.onUpdated)((()=>{})),(0,r.onBeforeMount)((()=>{o.initOnce=!1})),{...(0,r.toRefs)(o),inputRef:n,showInput:l,handleClose:u,handleInputConfirm:c}}}),l=n(3744);const u=(0,l.Z)(a,[["render",o],["__scopeId","data-v-e05cefbc"]]);var s=u},3552:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(7203);const o=["src"];function i(e,t,n,i,a,l){const u=(0,r.resolveComponent)("jwt-icon"),s=(0,r.resolveComponent)("el-upload"),c=(0,r.resolveComponent)("el-dialog");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(s,{action:e.uploadUrl,"before-upload":e.handleBeforeUpload,class:(0,r.normalizeClass)({onlyOne:e.showOnlyOne}),data:e.uploadParam,disabled:e.disabled,"file-list":e.fileList,headers:e.headers,"list-type":e.listType,multiple:e.multiple,name:"filedata","on-error":e.handleUploadError,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"show-file-list":!0},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(u,{icon:"add-line",size:40})])),_:1},8,["action","before-upload","class","data","disabled","file-list","headers","list-type","multiple","on-error","on-preview","on-remove","on-success"]),(0,r.createVNode)(c,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[0]||(t[0]=t=>e.dialogVisible=t),"append-to-body":""},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("img",{src:e.dialogImageUrl,style:{width:"100%"},"w-full":""},null,8,o)])),_:1},8,["modelValue"])],64)}n(6699);var a=n(9489),l=n(2343),u=(0,r.defineComponent)({name:"JwtUploadImage",props:{uploadUrl:{type:String,default:""},modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:2048},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},listType:{type:String,default:"picture-card"},limit:{type:[String,Number],default:10},fillUrl:{type:Function,default:null},uploadParam:{type:Object,default:()=>{}}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=(0,r.reactive)({fileList:[],dialogVisible:!1,dialogImageUrl:"",initOnce:!1,onUploadProgress:!1}),o=t=>e.fillUrl&&l.F.isFunction(e.fillUrl)?e.fillUrl(t):t,i=(0,r.computed)((()=>!e.multiple&&(!!e?.modelValue?.length||n.onUploadProgress))),u=()=>{if(n.initOnce)return;let t=[];if(e.multiple)if(l.F.hasArray(e.modelValue))e.modelValue.map((e=>{e&&t.push({url:o(e),org_url:e,name:o(e)})}));else{if(!l.F.isString(e.modelValue))return n.initOnce=!1,[];e.modelValue.split(",").map((e=>{e&&t.push({url:o(e),org_url:e,name:o(e)})}))}else t=e.modelValue?[{url:o(e.modelValue),org_url:e.modelValue,name:o(e.modelValue)}]:[];return n.initOnce=!0,t};(0,r.watch)((()=>e.modelValue),(e=>{(0,r.nextTick)((()=>{if(console.log("person变化了 nextTick",e),!n.initOnce)if(e){const e=u();n.fileList=e}else n.fileList=[]}))}),{immediate:!0});const s=(0,r.computed)((()=>({Authorization:sessionStorage.getItem("admin-token")||localStorage.getItem("admin-token")}))),c=t=>{if(!e.uploadUrl)return a.z8.error("请配置上传的路径地址!");const r=t.type,o=parseInt(e.limitSize),i=o/1024,l=t.size/1024<o,u=["image/jpeg","image/png","image/gif","image/webp"];let s=u.includes(r);s||a.z8.error("上传图片只能是 JPG,PNG,GIF,WEBP 格式!"),l||(i>1?a.z8.error(`上传图片大小不能超过 ${i}MB!`):a.z8.error(`上传图片大小不能超过 ${o}KB!`));const c=s&&l;return c&&(n.onUploadProgress=!0),c},f=()=>{n.onUploadProgress=!1},d=(e,t,r)=>{n.onUploadProgress=!1,0===e.code?h(r):(a.z8.error(e.msg),this.dialogVisible=!1)},p=(e,t)=>{h(t)},h=r=>{n.initOnce=!0;let o=[];r.map((e=>{const t=e?.response?.data?.relative_path||e.org_url;t&&o.push(t)})),e.multiple?(t("update:modelValue",o),t("onChange",o)):(t("update:modelValue",o[0]||""),t("onChange",o[0]||""))},g=e=>{n.dialogImageUrl=e.url,n.dialogVisible=!0};return(0,r.onBeforeMount)((()=>{n.fileList=[],n.initOnce=!1})),{...(0,r.toRefs)(n),headers:s,showOnlyOne:i,handleRemove:p,handleBeforeUpload:c,handleUploadSuccess:d,handlePictureCardPreview:g,handleUploadError:f}}}),s=n(3744);const c=(0,s.Z)(u,[["render",i]]);var f=c},5355:function(e,t,n){var r={"./JwtCascaderArea/index.vue":1534,"./JwtEditor/index.vue":9838,"./JwtForm/index.vue":9065,"./JwtHeaderButton/index.vue":1308,"./JwtIcon/index.vue":4815,"./JwtIconSelect/index.vue":3720,"./JwtImage/index.vue":3420,"./JwtInput/index.vue":5693,"./JwtRateIcon/index.vue":9832,"./JwtSelectServer/index.vue":5451,"./JwtTable/index.vue":9877,"./JwtTableButton/index.vue":1700,"./JwtTableOnly/index.vue":5232,"./JwtTags/index.vue":8050,"./JwtUploadImage/index.vue":3552};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=5355},7203:function(t){"use strict";t.exports=e},5781:function(e,t,n){"use strict";n.d(t,{G7x:function(){return le},K41:function(){return k},Rrw:function(){return pe},Tw$:function(){return m},c5o:function(){return te},cEj:function(){return U},caK:function(){return M},gbz:function(){return Y},x8P:function(){return B},yGk:function(){return f}});var r=n(7203),o=(e,t)=>{let n=e.__vccOpts||e;for(let[r,o]of t)n[r]=o;return n};
|
|
158
|
+
/*! Element Plus Icons Vue v2.0.6 */var i={name:"CircleCheck"},a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},l=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),u=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),s=[l,u];function c(e,t,n,o,i,l){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",a,s)}var f=o(i,[["render",c],["__file","circle-check.vue"]]),d={name:"CircleCloseFilled"},p={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},h=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),g=[h];function v(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",p,g)}var m=o(d,[["render",v],["__file","circle-close-filled.vue"]]),y={name:"CircleClose"},b={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},w=(0,r.createElementVNode)("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),x=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),C=[w,x];function E(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",b,C)}var k=o(y,[["render",E],["__file","circle-close.vue"]]);var S={name:"Close"},D={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},A=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),O=[A];function _(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",D,O)}var B=o(S,[["render",_],["__file","close.vue"]]);var F={name:"Hide"},j={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},P=(0,r.createElementVNode)("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),T=(0,r.createElementVNode)("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),N=[P,T];function I(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",j,N)}var M=o(F,[["render",I],["__file","hide.vue"]]);var L={name:"InfoFilled"},R={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},z=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),V=[z];function $(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",R,V)}var U=o(L,[["render",$],["__file","info-filled.vue"]]);var H={name:"Loading"},W={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},q=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),K=[q];function G(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",W,K)}var Y=o(H,[["render",G],["__file","loading.vue"]]);var Z={name:"SuccessFilled"},J={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},X=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),Q=[X];function ee(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",J,Q)}var te=o(Z,[["render",ee],["__file","success-filled.vue"]]);var ne={name:"View"},re={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},oe=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),ie=[oe];function ae(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",re,ie)}var le=o(ne,[["render",ae],["__file","view.vue"]]);var ue={name:"WarningFilled"},se={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ce=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),fe=[ce];function de(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",se,fe)}var pe=o(ue,[["render",de],["__file","warning-filled.vue"]])},6309:function(e,t,n){"use strict";n.d(t,{ORN:function(){return l},yU7:function(){return h}});var r=n(7475),o=n(6121);function i(e){var t;const n=(0,o.unref)(e);return null!=(t=null==n?void 0:n.$el)?t:n}const a=r.C5?window:void 0;r.C5&&window.document,r.C5&&window.navigator,r.C5&&window.location;function l(...e){let t,n,l,u;if((0,r.HD)(e[0])?([n,l,u]=e,t=a):[t,n,l,u]=e,!t)return r.ZT;let s=r.ZT;const c=(0,o.watch)((()=>i(t)),(e=>{s(),e&&(e.addEventListener(n,l,u),s=()=>{e.removeEventListener(n,l,u),s=r.ZT})}),{immediate:!0,flush:"post"}),f=()=>{c(),s()};return(0,r.IY)(f),f}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},s="__vueuse_ssr_handlers__";u[s]=u[s]||{};u[s];Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t)=>{var n={};for(var r in e)f.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&c)for(var r of c(e))t.indexOf(r)<0&&d.call(e,r)&&(n[r]=e[r]);return n};function h(e,t,n={}){const l=n,{window:u=a}=l,s=p(l,["window"]);let c;const f=u&&"ResizeObserver"in u,d=()=>{c&&(c.disconnect(),c=void 0)},h=(0,o.watch)((()=>i(e)),(e=>{d(),f&&u&&e&&(c=new ResizeObserver(t),c.observe(e,s))}),{immediate:!0,flush:"post"}),g=()=>{d(),h()};return(0,r.IY)(g),{isSupported:f,stop:g}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;new Map;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var g;(function(e){e["UP"]="UP",e["RIGHT"]="RIGHT",e["DOWN"]="DOWN",e["LEFT"]="LEFT",e["NONE"]="NONE"})(g||(g={}));Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;r.yR},7475:function(e,t,n){"use strict";n.d(t,{C5:function(){return i},HD:function(){return l},IY:function(){return c},ZT:function(){return u},eM:function(){return f},hj:function(){return a},yR:function(){return s}});var r,o=n(6121);Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const i="undefined"!==typeof window,a=(Object.prototype.toString,e=>"number"===typeof e),l=e=>"string"===typeof e,u=()=>{};i&&(null==(r=null==window?void 0:window.navigator)?void 0:r.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);o.isVue3,o.isVue3,o.isVue3;function s(e){return e}function c(e){return!!(0,o.getCurrentScope)()&&((0,o.onScopeDispose)(e),!0)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function f(e,t,n={}){const{immediate:r=!0}=n,a=(0,o.ref)(!1);let l=null;function u(){l&&(clearTimeout(l),l=null)}function s(){a.value=!1,u()}function f(...n){u(),a.value=!0,l=setTimeout((()=>{a.value=!1,l=null,e(...n)}),(0,o.unref)(t))}return r&&(a.value=!0,i&&f()),c(s),{isPending:a,start:f,stop:s}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable},1446:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},4181:function(e,t,n){"use strict";n.d(t,{gn:function(){return h}});var r=n(7203),o=n(5027);const i=(0,o.o8)({size:{type:(0,o.Cq)([Number,String])},color:{type:String}});var a=n(1446),l=n(9143),u=n(5162),s=n(7675);const c={name:"ElIcon",inheritAttrs:!1},f=(0,r.defineComponent)({...c,props:i,setup(e){const t=e,n=(0,l.s)("icon"),o=(0,r.computed)((()=>t.size||t.color?{fontSize:(0,u.o8)(t.size)?void 0:(0,s.Nn)(t.size),"--color":t.color}:{}));return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("i",(0,r.mergeProps)({class:(0,r.unref)(n).b(),style:(0,r.unref)(o)},e.$attrs),[(0,r.renderSlot)(e.$slots,"default")],16))}});var d=(0,a.Z)(f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]),p=n(2123);const h=(0,p.nz)(d)},9489:function(e,t,n){"use strict";n.d(t,{z8:function(){return q}});var r=n(7203),o=n(7475),i=n(5027),a=n(5711),l=n(7824);const u={},s=(0,i.o8)({a11y:{type:Boolean,default:!0},locale:{type:(0,i.Cq)(Object)},size:a.Pp,button:{type:(0,i.Cq)(Object)},experimentalFeatures:{type:(0,i.Cq)(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:(0,i.Cq)(Object)},zIndex:Number,namespace:{type:String,default:"el"}});(0,r.defineComponent)({name:"ElConfigProvider",props:s,setup(e,{slots:t}){(0,r.watch)((()=>e.message),(e=>{Object.assign(u,null!=e?e:{})}),{immediate:!0,deep:!0});const n=(0,l.A)(e);return()=>(0,r.renderSlot)(t,"default",{config:null==n?void 0:n.value})}});var c=n(6309);const f=(0,i.o8)({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}});var d=n(1446),p=n(9143);const h=["textContent"],g={name:"ElBadge"},v=(0,r.defineComponent)({...g,props:f,setup(e,{expose:t}){const n=e,i=(0,p.s)("badge"),a=(0,r.computed)((()=>n.isDot?"":(0,o.hj)(n.value)&&(0,o.hj)(n.max)&&n.max<n.value?`${n.max}+`:`${n.value}`));return t({content:a}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)((0,r.unref)(i).b())},[(0,r.renderSlot)(e.$slots,"default"),(0,r.createVNode)(r.Transition,{name:`${(0,r.unref)(i).namespace.value}-zoom-in-center`,persisted:""},{default:(0,r.withCtx)((()=>[(0,r.withDirectives)((0,r.createElementVNode)("sup",{class:(0,r.normalizeClass)([(0,r.unref)(i).e("content"),(0,r.unref)(i).em("content",e.type),(0,r.unref)(i).is("fixed",!!e.$slots.default),(0,r.unref)(i).is("dot",e.isDot)]),textContent:(0,r.toDisplayString)((0,r.unref)(a))},null,10,h),[[r.vShow,!e.hidden&&((0,r.unref)(a)||e.isDot)]])])),_:1},8,["name"])],2))}});var m=(0,d.Z)(v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]),y=n(2123);const b=(0,y.nz)(m);var w=n(4181),x=n(5450),C=n(9809);const E=["success","info","warning","error"],k=(0,x.N)({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:"",id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:o.C5?document.body:void 0}),S=(0,i.o8)({customClass:{type:String,default:k.customClass},center:{type:Boolean,default:k.center},dangerouslyUseHTMLString:{type:Boolean,default:k.dangerouslyUseHTMLString},duration:{type:Number,default:k.duration},icon:{type:C.AA,default:k.icon},id:{type:String,default:k.id},message:{type:(0,i.Cq)([String,Object,Function]),default:k.message},onClose:{type:(0,i.Cq)(Function),required:!1},showClose:{type:Boolean,default:k.showClose},type:{type:String,values:E,default:k.type},offset:{type:Number,default:k.offset},zIndex:{type:Number,default:k.zIndex},grouping:{type:Boolean,default:k.grouping},repeatNum:{type:Number,default:k.repeatNum}}),D={destroy:()=>!0},A=(0,r.shallowReactive)([]),O=e=>{const t=A.findIndex((t=>t.id===e)),n=A[t];let r;return t>0&&(r=A[t-1]),{current:n,prev:r}},_=e=>{const{prev:t}=O(e);return t?t.vm.exposeProxy.bottom:0};var B=n(4309);const F=["id"],j=["innerHTML"],P={name:"ElMessage"},T=(0,r.defineComponent)({...P,props:S,emits:D,setup(e,{expose:t}){const n=e,{Close:i}=C.f5,a=(0,p.s)("message"),l=(0,r.ref)(),u=(0,r.ref)(!1),s=(0,r.ref)(0);let f;const d=(0,r.computed)((()=>n.type?"error"===n.type?"danger":n.type:"info")),h=(0,r.computed)((()=>{const e=n.type;return{[a.bm("icon",e)]:e&&C.Rp[e]}})),g=(0,r.computed)((()=>n.icon||C.Rp[n.type]||"")),v=(0,r.computed)((()=>_(n.id))),m=(0,r.computed)((()=>n.offset+v.value)),y=(0,r.computed)((()=>s.value+m.value)),x=(0,r.computed)((()=>({top:`${m.value}px`,zIndex:n.zIndex})));function E(){0!==n.duration&&({stop:f}=(0,o.eM)((()=>{S()}),n.duration))}function k(){null==f||f()}function S(){u.value=!1}function D({code:e}){e===B.n.esc&&S()}return(0,r.onMounted)((()=>{E(),u.value=!0})),(0,r.watch)((()=>n.repeatNum),(()=>{k(),E()})),(0,c.ORN)(document,"keydown",D),(0,c.yU7)(l,(()=>{s.value=l.value.getBoundingClientRect().height})),t({visible:u,bottom:y,close:S}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(r.Transition,{name:(0,r.unref)(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[0]||(t[0]=t=>e.$emit("destroy")),persisted:""},{default:(0,r.withCtx)((()=>[(0,r.withDirectives)((0,r.createElementVNode)("div",{id:e.id,ref_key:"messageRef",ref:l,class:(0,r.normalizeClass)([(0,r.unref)(a).b(),{[(0,r.unref)(a).m(e.type)]:e.type&&!e.icon},(0,r.unref)(a).is("center",e.center),(0,r.unref)(a).is("closable",e.showClose),e.customClass]),style:(0,r.normalizeStyle)((0,r.unref)(x)),role:"alert",onMouseenter:k,onMouseleave:E},[e.repeatNum>1?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(b),{key:0,value:e.repeatNum,type:(0,r.unref)(d),class:(0,r.normalizeClass)((0,r.unref)(a).e("badge"))},null,8,["value","type","class"])):(0,r.createCommentVNode)("v-if",!0),(0,r.unref)(g)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(w.gn),{key:1,class:(0,r.normalizeClass)([(0,r.unref)(a).e("icon"),(0,r.unref)(h)])},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(g))))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0),(0,r.renderSlot)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createCommentVNode)(" Caution here, message could've been compromised, never use user's input as message "),(0,r.createElementVNode)("p",{class:(0,r.normalizeClass)((0,r.unref)(a).e("content")),innerHTML:e.message},null,10,j)],2112)):((0,r.openBlock)(),(0,r.createElementBlock)("p",{key:0,class:(0,r.normalizeClass)((0,r.unref)(a).e("content"))},(0,r.toDisplayString)(e.message),3))])),e.showClose?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(w.gn),{key:2,class:(0,r.normalizeClass)((0,r.unref)(a).e("closeBtn")),onClick:(0,r.withModifiers)(S,["stop"])},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(i))])),_:1},8,["class","onClick"])):(0,r.createCommentVNode)("v-if",!0)],46,F),[[r.vShow,u.value]])])),_:3},8,["name","onBeforeLeave"]))}});var N=(0,d.Z)(T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]),I=n(3577),M=n(5162),L=n(4721),R=n(4568);let z=1;const V=e=>{const t=!e||(0,I.HD)(e)||(0,r.isVNode)(e)||(0,I.mf)(e)?{message:e}:e,n={...k,...t};if((0,I.HD)(n.appendTo)){let e=document.querySelector(n.appendTo);(0,M.kK)(e)||((0,L.N)("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body),n.appendTo=e}return n},$=e=>{const t=A.indexOf(e);if(-1===t)return;A.splice(t,1);const{handler:n}=e;n.close()},U=({appendTo:e,...t},n)=>{const{nextZIndex:o}=(0,R.C)(),i="message_"+z++,a=t.onClose,l=document.createElement("div"),u={...t,zIndex:o()+t.zIndex,id:i,onClose:()=>{null==a||a(),$(d)},onDestroy:()=>{(0,r.render)(null,l)}},s=(0,r.createVNode)(N,u,(0,I.mf)(u.message)||(0,r.isVNode)(u.message)?{default:u.message}:null);s.appContext=n||H._context,(0,r.render)(s,l),e.appendChild(l.firstElementChild);const c=s.component,f={close:()=>{c.exposeProxy.visible=!1}},d={id:i,vnode:s,vm:c,handler:f,props:s.component.props};return d},H=(e={},t)=>{if(!o.C5)return{close:()=>{}};if((0,o.hj)(u.max)&&A.length>=u.max)return{close:()=>{}};const n=V(e);if(n.grouping&&A.length){const e=A.find((({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===n.message}));if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}const r=U(n,t);return A.push(r),r.handler};function W(e){for(const t of A)e&&e!==t.props.type||t.handler.close()}E.forEach((e=>{H[e]=(t={},n)=>{const r=V(t);return H({...r,type:e},n)}})),H.closeAll=W,H._context=null;const q=(0,y.oN)(H,"$message")},4309:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});const r={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"}},209:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});const r=["","default","small","large"]},5711:function(e,t,n){"use strict";n.d(t,{B4:function(){return f},tH:function(){return c},Pp:function(){return s}});var r=n(7203);const o=e=>{const t=(0,r.getCurrentInstance)();return(0,r.computed)((()=>{var n,r;return null!=(r=(null==(n=t.proxy)?void 0:n.$props)[e])?r:void 0}))};var i=n(7824),a=n(5027),l=n(209),u=n(7815);const s=(0,a.l0)({type:String,values:l.k,required:!1}),c=(e,t={})=>{const n=(0,r.ref)(void 0),a=t.prop?n:o("size"),l=t.global?n:(0,i.W)("size"),s=t.form?{size:void 0}:(0,r.inject)(u.H,void 0),c=t.formItem?{size:void 0}:(0,r.inject)(u.K,void 0);return(0,r.computed)((()=>a.value||(0,r.unref)(e)||(null==c?void 0:c.size)||(null==s?void 0:s.size)||l.value||""))},f=e=>{const t=o("disabled"),n=(0,r.inject)(u.H,void 0);return(0,r.computed)((()=>t.value||(0,r.unref)(e)||(null==n?void 0:n.disabled)||!1))}},7824:function(e,t,n){"use strict";n.d(t,{A:function(){return s},W:function(){return u}});var r=n(7203);const o=Symbol();var i=n(4721);const a=e=>Object.keys(e),l=(0,r.ref)();function u(e,t){const n=(0,r.getCurrentInstance)()?(0,r.inject)(o,l):l;return e?(0,r.computed)((()=>{var r,o;return null!=(o=null==(r=n.value)?void 0:r[e])?o:t})):n}const s=(e,t,n=!1)=>{var a;const s=!!(0,r.getCurrentInstance)(),f=s?u():void 0,d=null!=(a=null==t?void 0:t.provide)?a:s?r.provide:void 0;if(!d)return void(0,i.N)("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");const p=(0,r.computed)((()=>{const t=(0,r.unref)(e);return(null==f?void 0:f.value)?c(f.value,t):t}));return d(o,p),!n&&l.value||(l.value=p.value),p},c=(e,t)=>{var n;const r=[...new Set([...a(e),...a(t)])],o={};for(const i of r)o[i]=null!=(n=t[i])?n:e[i];return o}},9143:function(e,t,n){"use strict";n.d(t,{s:function(){return u}});var r=n(7203),o=n(7824);const i="el",a="is-",l=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},u=e=>{const t=(0,o.W)("namespace"),n=(0,r.computed)((()=>t.value||i)),u=(t="")=>l((0,r.unref)(n),e,t,"",""),s=t=>t?l((0,r.unref)(n),e,"",t,""):"",c=t=>t?l((0,r.unref)(n),e,"","",t):"",f=(t,o)=>t&&o?l((0,r.unref)(n),e,t,o,""):"",d=(t,o)=>t&&o?l((0,r.unref)(n),e,"",t,o):"",p=(t,o)=>t&&o?l((0,r.unref)(n),e,t,"",o):"",h=(t,o,i)=>t&&o&&i?l((0,r.unref)(n),e,t,o,i):"",g=(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`${a}${e}`:""},v=e=>{const t={};for(const r in e)t[`--${n.value}-${r}`]=e[r];return t},m=t=>{const r={};for(const o in t)r[`--${n.value}-${e}-${o}`]=t[o];return r},y=e=>`--${n.value}-${e}`,b=t=>`--${n.value}-${e}-${t}`;return{namespace:n,b:u,e:s,m:c,be:f,em:d,bm:p,bem:h,is:g,cssVar:v,cssVarName:y,cssVarBlock:m,cssVarBlockName:b}}},4568:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(7203),o=n(7824);const i=(0,r.ref)(0),a=()=>{const e=(0,o.W)("zIndex",2e3),t=(0,r.computed)((()=>e.value+i.value)),n=()=>(i.value++,t.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:n}}},7815:function(e,t,n){"use strict";n.d(t,{H:function(){return r},K:function(){return o}});const r=Symbol("formContextKey"),o=Symbol("formItemContextKey")},7675:function(e,t,n){"use strict";n.d(t,{C2:function(){return f},IV:function(){return c},Nn:function(){return d},cn:function(){return s},pv:function(){return u}});var r=n(7475),o=n(4721),i=n(3577);const a="utils/dom/style",l=(e="")=>e.split(" ").filter((e=>!!e.trim())),u=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},s=(e,t)=>{e&&t.trim()&&e.classList.add(...l(t))},c=(e,t)=>{e&&t.trim()&&e.classList.remove(...l(t))},f=(e,t)=>{var n;if(!r.C5||!e||!t)return"";let o=(0,i._A)(t);"float"===o&&(o="cssFloat");try{const t=e.style[o];if(t)return t;const r=null==(n=document.defaultView)?void 0:n.getComputedStyle(e,"");return r?r[o]:""}catch(a){return e.style[o]}};function d(e,t="px"){return e?(0,i.HD)(e)?e:(0,r.hj)(e)?`${e}${t}`:void(0,o.N)(a,"binding value must be a string or number"):""}},4721:function(e,t,n){"use strict";n.d(t,{N:function(){return i},_:function(){return o}});class r extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function o(e,t){throw new r(`[${e}] ${t}`)}function i(e,t){0}},5162:function(e,t,n){"use strict";n.d(t,{kK:function(){return o},o8:function(){return r}});n(7203);const r=e=>void 0===e,o=e=>"undefined"!==typeof Element&&e instanceof Element},5450:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});const r=e=>e},9809:function(e,t,n){"use strict";n.d(t,{AA:function(){return i},Rp:function(){return l},f5:function(){return a},rU:function(){return u}});var r=n(5781),o=n(5027);const i=(0,o.Cq)([String,Object,Function]),a=(r.x8P,{Close:r.x8P,SuccessFilled:r.c5o,InfoFilled:r.cEj,WarningFilled:r.Rrw,CircleCloseFilled:r.Tw$}),l={success:r.c5o,warning:r.Rrw,error:r.Tw$,info:r.cEj},u={validating:r.gbz,success:r.yGk,error:r.K41}},2123:function(e,t,n){"use strict";n.d(t,{dp:function(){return a},nz:function(){return o},oN:function(){return i}});var r=n(3577);const o=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(null!=t?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},i=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),a=e=>(e.install=r.dG,e)},5027:function(e,t,n){"use strict";n.d(t,{Cq:function(){return l},l0:function(){return s},o8:function(){return c}});var r=n(7203),o=n(5937),i=n(3577);const a="__epPropKey",l=e=>e,u=e=>(0,i.Kn)(e)&&!!e[a],s=(e,t)=>{if(!(0,i.Kn)(e)||u(e))return e;const{values:n,required:o,default:l,type:s,validator:c}=e,f=n||c?o=>{let a=!1,u=[];if(n&&(u=Array.from(n),(0,i.RI)(e,"default")&&u.push(l),a||(a=u.includes(o))),c&&(a||(a=c(o))),!a&&u.length>0){const e=[...new Set(u)].map((e=>JSON.stringify(e))).join(", ");(0,r.warn)(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(o)}.`)}return a}:void 0,d={type:s,required:!!o,validator:f,[a]:!0};return(0,i.RI)(e,"default")&&(d.default=l),d},c=e=>(0,o.Z)(Object.entries(e).map((([e,t])=>[e,s(t,e)])))},5937:function(e,t){"use strict";function n(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var o=e[t];r[o[0]]=o[1]}return r}t["Z"]=n},6121:function(e,t,n){"use strict";n.d(t,{isVue3:function(){return o}});var r=n(7203);n.o(r,"getCurrentScope")&&n.d(t,{getCurrentScope:function(){return r.getCurrentScope}}),n.o(r,"onScopeDispose")&&n.d(t,{onScopeDispose:function(){return r.onScopeDispose}}),n.o(r,"ref")&&n.d(t,{ref:function(){return r.ref}}),n.o(r,"unref")&&n.d(t,{unref:function(){return r.unref}}),n.o(r,"watch")&&n.d(t,{watch:function(){return r.watch}});var o=!0}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}!function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){r.p=""}();var o={};return function(){"use strict";if(r.r(o),r.d(o,{setupJwt:function(){return n}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(r.p=t[1])}const n=e=>{const t=r(5355);n.installed||(n.installed=!0,t.keys().map((n=>{const r=t(n),o=r.default.name;e.component(o,r.default||r)})))}}(),o}()}));
|
|
2
159
|
//# sourceMappingURL=jwt-ui.umd.min.js.map
|